From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MiWFp-0005lQ-Lf for qemu-devel@nongnu.org; Tue, 01 Sep 2009 12:30:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MiWFl-0005j6-LM for qemu-devel@nongnu.org; Tue, 01 Sep 2009 12:30:45 -0400 Received: from [199.232.76.173] (port=39953 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MiWFl-0005j2-IN for qemu-devel@nongnu.org; Tue, 01 Sep 2009 12:30:41 -0400 Received: from mx20.gnu.org ([199.232.41.8]:32291) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MiWFl-0003Ud-5W for qemu-devel@nongnu.org; Tue, 01 Sep 2009 12:30:41 -0400 Received: from mail-ew0-f223.google.com ([209.85.219.223]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MiWFk-00014T-FS for qemu-devel@nongnu.org; Tue, 01 Sep 2009 12:30:40 -0400 Received: by ewy23 with SMTP id 23so115324ewy.8 for ; Tue, 01 Sep 2009 09:30:39 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1251791775-5358-2-git-send-email-kraxel@redhat.com> References: <1251791775-5358-1-git-send-email-kraxel@redhat.com> <1251791775-5358-2-git-send-email-kraxel@redhat.com> From: Blue Swirl Date: Tue, 1 Sep 2009 19:30:17 +0300 Message-ID: Subject: Re: [Qemu-devel] [PATCH 1/4] qdev: integrate reset Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org On Tue, Sep 1, 2009 at 10:56 AM, Gerd Hoffmann wrote: > @@ -110,6 +110,9 @@ struct DeviceInfo { > =C2=A0 =C2=A0 Property *props; > =C2=A0 =C2=A0 int no_user; > > + =C2=A0 =C2=A0/* callbacks */ > + =C2=A0 =C2=A0QEMUResetHandler *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).