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] Re: [PATCH][RFC] Support S3 for MSI interrupt in latest kern

To: "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH][RFC] Support S3 for MSI interrupt in latest kernel dom0
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Wed, 17 Dec 2008 12:27:52 +0000
Cc:
Delivery-date: Wed, 17 Dec 2008 04:28:06 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <E2263E4A5B2284449EEBD0AAB751098401C4BBA57F@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AclgQIdFN7aHoBN8ReW8QcHRT1Xb5gAAln7T
Thread-topic: [PATCH][RFC] Support S3 for MSI interrupt in latest kernel dom0
User-agent: Microsoft-Entourage/12.14.0.081024
On 17/12/2008 12:11, "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx> wrote:

> In latest kernel, the pci_save_state will not try to save msi/x_state anymore,
> instead, it will try to restore msi state when resume using kernel's msi data
> structure. This cause trouble for us, since thoese MSI data structure is
> meaningless in Xen environment.
> 
> Several option to resolve this issue:
> a) Change the latest kernel (as dom0) to still to save/restore the msi content
> b) Add a new hypercall, so when dom0 try to restore dom0, it will instruct Xen
> HV to restore the content based on Xen's MSI data structure

Could Xen remember the MSI state automatically, as it does for IO-APIC
presumably already? It knows what vectors are routed where at least, even if
dom0 has to reprogram the PCI device itself.

I'm not sure about option C. I didn't really understand the patch, but it
smelt like a hack.

 -- Keir




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