[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Re: hvm save restore support

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



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.