On 10/11/2011 09:54 AM, Anthony Liguori wrote:
On 10/11/2011 08:27 AM, Juan Quintela wrote:

I've been thinking about it this morning. I think it's solvable. We need to be able to save off the qdev construction properties right before init. This is just a matter of storing a list of strings. Then we need a qdev_torture function that will save the device state (will require a dummy QEMUFile that saves to memory). We then need to invoke destruction w/o actually freeing the memory of the device. We should then zero out the device memory.

We then need to run through qdev creation, setting properties based on the saved construction properties. Then we should init and invoke the device's reset function. Finally we can pass the dummy QEMUFile to the device's load function (or vmstate).
If you want, I have a 'dummy QEMUFile' implementation...

   Stefan


Reply via email to