From: Qing He Subject: [PATCH] xen: temporary workaround for MSI S3 Date: Wed, 16 Sep 2009 15:24:28 +0800 Message-ID: <20090916072428.GA26447@ub-qhe2> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: jeremy@goop.org Cc: xen-devel@lists.xensource.com, yunhong.jiang@intel.com List-Id: xen-devel@lists.xenproject.org (this patch is intended to provide people with a temporary solution to S3 of MSI dom0, before a more formal solution based on trap and emulation.) This patch adds a temporary workaround to enable S3 resume with MSI devices. Signed-off-by: Yunhong Jiang Signed-off-by: Qing He --- diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index d986afb..b40c6d0 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c @@ -20,6 +20,8 @@ #include #include +#include + #include "pci.h" #include "msi.h" @@ -269,7 +271,8 @@ void write_msi_msg(unsigned int irq, struct msi_msg *msg) { struct irq_desc *desc = irq_to_desc(irq); - write_msi_msg_desc(desc, msg); + if (!xen_initial_domain()) + write_msi_msg_desc(desc, msg); } static int msi_free_irqs(struct pci_dev* dev);