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 0/3] xen: msi support for Xen dom0

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 0/3] xen: msi support for Xen dom0
From: Qing He <qing.he@xxxxxxxxx>
Date: Tue, 18 Aug 2009 13:45:11 +0800
Cc: jeremy@xxxxxxxx, yunhong.jiang@xxxxxxxxx, Qing He <qing.he@xxxxxxxxx>
Delivery-date: Mon, 17 Aug 2009 22:42:52 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <>
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: <>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
This patch set adds support for msi in Xen dom0. It's based on the
pci notifier patches of Weidong Han (on rebase/pci branch) and
contains the following 3 patches.

        [PATCH 1/3] xen: make pci notifier work with booting devices
        [PATCH 2/3] xen: add msi support for dom0
        [PATCH 3/3] xen: re-enable msi (effectively revert bf89bc29)

One of the problem left is how to save/restore MSI across S3. Since
pci_restore_msi_state() now doesn't have any arch specific hook, the
code in arch/x86/ won't get a chance to run during S3 wakeup, so
write_msi_msg() is called instead of xen specific functions. One of
the possible solutions (and which I prefer) is to add something like
arch_pci_restore_msi, but that involves slightly changing
drivers/pci/msi.c, which probably needs more thinking and discussion.

An alternative is to trap and emulate any access to pci configuration
space. In that case, nothing in dom0 needs changing, and write_msi_msg
can be reused, but considerable logic may need to change in Xen
hypervisor.

Thanks,
Qing


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