WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] pvops-2.6.32 - Interrupt routing problem

To: Bastian Blank <waldi@xxxxxxxxxx>, Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Subject: RE: [Xen-devel] pvops-2.6.32 - Interrupt routing problem
From: "Zhang, Xiantao" <xiantao.zhang@xxxxxxxxx>
Date: Mon, 15 Mar 2010 12:30:32 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: Keir, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Fraser <keir.fraser@xxxxxxxxxxxxx>
Delivery-date: Sun, 14 Mar 2010 21:31:18 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20100314161750.GA7790@xxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20100310111923.GA7087@xxxxxxxxxxxxxxxxxxxxxxx> <20100314140813.GA5309@xxxxxxxxxxxxxxxxxxxxxxx> <20100314152334.GA6483@xxxxxxxxxxxxxxxxxxxxxxx> <4B9D0726.3060304@xxxxxxxx> <20100314161750.GA7790@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcrDkh/QwN+uMK5YRz6FbErKYFKuXAAZbl7w
Thread-topic: [Xen-devel] pvops-2.6.32 - Interrupt routing problem
Could you try the following patch ?  Currently, the GSI 0-15 's polarity and 
trigger mode are determined by hypervisor, and maybe hypervisor and dom0 has no 
agreement to determin them. Just follow dom0's setting with this patch, and I 
think it maybe work for you. 
Xiantao

diff -r 4152a3ce90a7 xen/arch/x86/physdev.c
--- a/xen/arch/x86/physdev.c    Thu Mar 11 17:40:35 2010 +0000
+++ b/xen/arch/x86/physdev.c    Mon Mar 15 12:27:15 2010 +0800
@@ -477,7 +477,7 @@ ret_t do_physdev_op(int cmd, XEN_GUEST_H
         if ( setup_gsi.gsi < 0 || setup_gsi.gsi >= nr_irqs_gsi )
             break;
         /* GSI < 16 has been setup by hypervisor */
-        if ( setup_gsi.gsi >= 16 )
+        if ( setup_gsi.gsi >= 5 )
             ret = mp_register_gsi(setup_gsi.gsi, setup_gsi.triggering,
                             setup_gsi.polarity);
         else


Bastian Blank wrote:
> On Sun, Mar 14, 2010 at 08:56:22AM -0700, Jeremy Fitzhardinge wrote:
>> global because otherwise nothing would work).  It's interesting your
>> devices both have GSIs in the "legacy ISA" range (< 16); I wonder if
>> something somewhere is misdescribing the interrupts.
> 
> Well, they are connected to the first IO-APIC, which only serves 0-15,
> so they can't be bound to other GSI.  But I haven't seem this
> behaviour on any other machine.  Is there a standard that forbids
> this behaviour? 




>> Could you post full boot logs for the kernel booting both native and
>> under Xen to see how they differ?
> 
> Attached.
> 
> Bastian


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>