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] [PATCH 1/5] Add MSI support to XEN

To: "Keir Fraser" <keir.fraser@xxxxxxxxxxxxx>, "Shan, Haitao" <haitao.shan@xxxxxxxxx>, "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>, "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH 1/5] Add MSI support to XEN
From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Date: Fri, 28 Mar 2008 17:23:21 +0800
Cc: "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>, "Li, Xin B" <xin.b.li@xxxxxxxxx>
Delivery-date: Fri, 28 Mar 2008 02:26:13 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C4126246.1E717%keir.fraser@xxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <823A93EED437D048963A3697DB0E35DE0139CE1B@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <C4126246.1E717%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AciP14w6vOjg7j6MRbadB0OfiPPBYwAAB/ewADZXTlgAAM4IUA==
Thread-topic: [Xen-devel] [PATCH 1/5] Add MSI support to XEN
>From: Keir Fraser [mailto:keir.fraser@xxxxxxxxxxxxx] 
>Sent: 2008年3月28日 16:52
>
>I'm not sure why this would be a prerequisite for the rest of the MSI
>support. Still I have a feeling that I may have asked for this 
>a long time
>ago on a previous iteration of this patchset... :-) It looks pretty
>sensible, but PHYSDEVOP_map_irq shouldn't take an IRQ_TYPE_IRQ 
>-- 'IRQ' is a
>meaningless thing architecturally-speaking, and I think 
>instead we should
>allow to specify a 'GSI' or an 'ISA IRQ'.

I think the reverse. :-) Here IRQ is just a namespace which is allocatable
and not bound to platform hard-wired logic. Each MSI just requires one
IRQ placeholder to gear to evtchn core with the latter on top of IRQ name-
space. However GSI or ISA IRQ more indicates platform attribute which
doesn't fit the purpose here, though GSI can be also tweaked in some
version of Linux kernel.

>
>As for mapping pirq to MSI, I'm not sure about making real 
>interrupt vectors
>visible to the guest. But maybe that's unavoidable. The way I 
>could imagine
>this working is to teach Xen a bit about accessing PCI space, 
>and then have
>the guest relinquish control of critical MSI control fields in 
>the config
>space to Xen. The guest would tell Xen where the fields are, 
>and then Xen
>can freely configure the target APIC, mask, etc. Seems neater 
>to me, but is
>this a nuts idea?
>

This should work, and may solve the issue Yunhong described in 
another mail by giving Xen ability to mask device directly upon
spurious interrupts. And... seems like less change to Linux code?
The only concern is how complex the interface may finally go,
and in this case Xen still needs to sync PCI config space access
for port I/O style.

Thanks,
Kevin

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