[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH 1/4] qdev: integrate reset
From: |
Blue Swirl |
Subject: |
[Qemu-devel] Re: [PATCH 1/4] qdev: integrate reset |
Date: |
Tue, 1 Sep 2009 19:45:53 +0300 |
On Tue, Sep 1, 2009 at 7:36 PM, Juan Quintela<address@hidden> wrote:
> Blue Swirl <address@hidden> wrote:
>> On Tue, Sep 1, 2009 at 10:56 AM, Gerd Hoffmann<address@hidden> wrote:
>>
>>> @@ -110,6 +110,9 @@ struct DeviceInfo {
>>> Property *props;
>>> int no_user;
>>>
>>> + /* callbacks */
>>> + QEMUResetHandler *reset;
>>> +
>>
>> This would remove the need for registration but I had in my mind a bit
>> more complex solution like VMState structures. Even better, VMState
>> could be enhanced so that the reset value of the fields could be
>> specified (when not zero).
>
> That soonds nice, but ... not every field in the structures are used
> during migration. Do we want to merge both things?
New flags that tell whether a VMState field is used for savevm or reset?