Re: [PATCH 1/2] PCI: Add interfaces to store and load the device saved state

2011-04-18 Thread Alex Williamson
On Sun, 2011-04-17 at 12:23 +0300, Avi Kivity wrote: On 04/15/2011 10:54 PM, Alex Williamson wrote: For KVM device assignment, we'd like to save off the state of a device prior to passing it to the guest and restore it later. We also want to allow pci_reset_funciton() to be called while

Re: [PATCH 1/2] PCI: Add interfaces to store and load the device saved state

2011-04-17 Thread Avi Kivity
On 04/15/2011 10:54 PM, Alex Williamson wrote: For KVM device assignment, we'd like to save off the state of a device prior to passing it to the guest and restore it later. We also want to allow pci_reset_funciton() to be called while the device is owned by the guest. This however overwrites

[PATCH 1/2] PCI: Add interfaces to store and load the device saved state

2011-04-15 Thread Alex Williamson
For KVM device assignment, we'd like to save off the state of a device prior to passing it to the guest and restore it later. We also want to allow pci_reset_funciton() to be called while the device is owned by the guest. This however overwrites and invalidates the struct pci_dev buffers, so we