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

[Xen-devel] [PATCH 2/3][RFC] MSI/MSI-X support for dom0/driver domain

To: <keir@xxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH 2/3][RFC] MSI/MSI-X support for dom0/driver domain
From: "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>
Date: Mon, 28 May 2007 16:01:41 +0800
Delivery-date: Mon, 28 May 2007 01:00:30 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Aceg/mz7PRs/d4jlSeu7V67d+hYswQ==
Thread-topic: [PATCH 2/3][RFC] MSI/MSI-X support for dom0/driver domain
This patch adds msi/msi-x support for domain0.

In native Linux 2.6.18, instead of irq, it is vector that are used when
MSI is enabled. We change it to use irq still when msi is enabled (This
change also happened in 2.6.20 later native Linux).
Add functions to allocate irq.
These two changes are not needed if we update to 2.6.21 kernel.

Remove the ack function in domain0, since xen will do that for us.

Issues:
1) Two phys_ops are added, First is physdev_msi_setup, to notify xen
that the vector is msi-irq type. The second is PHYSDEVOP_msi_format, to
get the msi format from xen side (mainly for target CPU), is it ok to
add them?

2) Current pirq is a global resource, how about make pirq be a
per-domain resource? 
Thanks
Yunhong Jiang

Attachment: msi_xen_dom0.patch
Description: msi_xen_dom0.patch

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