[Top][All Lists]

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

Re: [Qemu-devel] [PATCH 1/4] qdev: integrate reset

From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH 1/4] qdev: integrate reset
Date: Wed, 02 Sep 2009 08:43:38 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Lightning/1.0pre Thunderbird/3.0b3

On 09/01/09 18:30, Blue Swirl 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).

Interesting idea. Could work out pretty nicely. Chances are that the overlap of the fields which must be initialized on reset and which must be saved on migration is pretty high. If so the integration into vmstate would indeed make alot of sense.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]