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] Re: hvm save restore support

To: "Zhai, Edwin" <edwin.zhai@xxxxxxxxx>, Keir Fraser <keir@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Re: hvm save restore support
From: Keir Fraser <keir@xxxxxxxxxxxxx>
Date: Fri, 15 Dec 2006 08:37:58 +0000
Cc: Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 15 Dec 2006 00:37:57 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20061215082552.GA21246@xxxxxxxxxxxxxxxxxxxxxx>
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: AccgJFKYkUm5mowXEduwywANk04WTA==
Thread-topic: [Xen-devel] Re: hvm save restore support
User-agent: Microsoft-Entourage/11.2.5.060620
On 15/12/06 8:25 am, "Zhai, Edwin" <edwin.zhai@xxxxxxxxx> wrote:

> no doubt that 256 bytes PCI configuration space should be saved(qemu already
> support it). but after that, we need some init for the device such as register
> mmio according to the saved configuration space. this is what
> pci_bios_init_device doing.
> it seems that we still need it for both create and restore, right?
> 
> this code has been moved to hvmloader, so we have to copy and execute it after
> all PCI devices are restored.

There is standard qemu code for doing this on create: it is hooked off the
defualt_write_handler() for PCI config writes. Perhaps we should reload the
PCI config space with a number of PCI-config writes from within qemu's PCI
load handler and that may suffice?

The code that was moved to hvmloader does not directly do mmio registration.
All it does is write device BARs, as any bootloader or OS is allowed to do.
We must handle that properly.

 -- Keir


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