Received: from eggs.gnu.org ([140.186.70.92]:39896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QU4t2-00068N-UQ for qemu-devel@nongnu.org; Tue, 07 Jun 2011 18:36:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QU4t1-0006gX-QU for qemu-devel@nongnu.org; Tue, 07 Jun 2011 18:36:36 -0400 Received: from fmmailgate02.web.de ([217.72.192.227]:52459) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QU4t1-0006gI-73 for qemu-devel@nongnu.org; Tue, 07 Jun 2011 18:36:35 -0400 Message-Id: <9DA80797-F12A-4B01-8A27-F6E5B2DF5942@web.de> From: =?ISO-8859-1?Q?Andreas_F=E4rber?= In-Reply-To: <4DEE40B1.2030708@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v936) Date: Wed, 8 Jun 2011 00:36:31 +0200 References: <4DEDD0BA.1080407@redhat.com> <1307458978-51287-1-git-send-email-andreas.faerber@web.de> <4DEE40B1.2030708@redhat.com> Sender: andreas.faerber@web.de Subject: Re: [Qemu-devel] [RFC v2 00/10] ISA reconfigurability v2 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: =?ISO-8859-1?Q?Herv=E9_Poussineau?= , "qemu-devel@nongnu.org Developers" , Juan Quintela Am 07.06.2011 um 17:16 schrieb Gerd Hoffmann: > On 06/07/11 17:02, Andreas F=E4rber wrote: >> As suggested by Gerd, I've introduced a set_state() callback at ISA =20= >> level >> and implemented it as required for pc87312. >> >> This approach simplifies some things but currently has the drawback =20= >> that the >> devices are disabled and potentially re-enabled for each register =20 >> write. > > Doesn't the pc87312 keep track of the configured iobases and irqs? =20= > So it should know whenever a register write changed something or =20 > not ... The original patch submission kept copies of the values in the pc87312 =20= DeviceState. I consider that redundant with the devices' DeviceState though and =20 removed it with my introduction of helpers that had access to the =20 devices' DeviceState in v1. That access we have now lost in v2 (only the set_state callback has, =20 but that doesn't know its former state; disabling twice is expected to =20= succeed btw), so once set, the pc87312 has no clue about the current =20 property values. Just wondering, if we're allowing to change qdev properties at runtime =20= here, don't these fields need to be considered for VMState? (cc'ing =20 Juan) If I understand the theory of live migration correctly, then the =20 command line needs to be identical wrt devices on both machines - if =20 the migration source has executed firmware code changing the iobase =20 and the migration target resumes wherever the source was, they'd end =20 up with different DeviceState, right? Or are qdev properties =20 transmitted anyway? (not that I care for PReP but these are generic =20 ISA devices) Interestingly, I don't see any VMState in parallel.c. serial.c, fdc.c and ide/isa.c do have it, but I don't see iobase and =20 irq in there. Would having iobase and irq number defined as VMState =20 make reading them any easier? Andreas=