From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:39594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeM8j-0002uP-6r for qemu-devel@nongnu.org; Tue, 12 Jun 2012 04:07:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SeM8d-0001N9-Jr for qemu-devel@nongnu.org; Tue, 12 Jun 2012 04:07:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:5952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeM8d-0001Mm-Cb for qemu-devel@nongnu.org; Tue, 12 Jun 2012 04:07:43 -0400 Message-ID: <4FD6F8C8.2080001@redhat.com> Date: Tue, 12 Jun 2012 10:07:36 +0200 From: Kevin Wolf MIME-Version: 1.0 References: <4FD66B8F.4080203@codemonkey.ws> <4FD6DD47.7020802@redhat.com> In-Reply-To: <4FD6DD47.7020802@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Semantics of DeviceState::realized and BlockDriverState List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Stefan Hajnoczi , qemu-devel , Anthony Liguori , =?ISO-8859-1?Q?Andreas_F=E4rber?= Am 12.06.2012 08:10, schrieb Paolo Bonzini: > Il 12/06/2012 00:05, Anthony Liguori ha scritto: >> >> opened = true >> attached = true >> >> This means that the device is in-use by something in QEMU. Requests may >> be in flight as read/write requests are now allowed to be issued. >> >> Most properties cannot be changed in this state (presumably). > > So this is "realized". I tend to agree, but it's not quite clear to me. It could also be the intermediate state, but I guess that in practice that would be less useful. > Or Object needs to provide support for multiple states, and (static) > properties can have a bitmap of which states let them be modified. That would probably be the cleanest solution. Not sure if it's worth the effort, though. Kevin