Received: from [140.186.70.92] (port=33249 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJ3W6-0005GZ-K9 for qemu-devel@nongnu.org; Mon, 31 May 2010 07:50:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJ3W5-0007kx-Ge for qemu-devel@nongnu.org; Mon, 31 May 2010 07:50:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50210) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJ3W5-0007kl-9I for qemu-devel@nongnu.org; Mon, 31 May 2010 07:50:49 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o4VBom3l015400 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 31 May 2010 07:50:48 -0400 From: Markus Armbruster References: <4C022B59.80109@redhat.com> <4C039C2F.1070106@redhat.com> Date: Mon, 31 May 2010 13:50:45 +0200 In-Reply-To: <4C039C2F.1070106@redhat.com> (Avi Kivity's message of "Mon, 31 May 2010 14:23:27 +0300") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] Re: RFC: blockdev_add & friends, brief rationale, QMP docs List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: Kevin Wolf , Gerd Hoffmann , qemu-devel@nongnu.org, Luiz Capitulino Avi Kivity writes: > On 05/31/2010 01:54 PM, Markus Armbruster wrote: >> >>> We expose some of the cache property to the guest. IMO we need the >>> cache property to be both guest and host, with qemu bridging the >>> impedance mismatch if needed. >>> >> Yes. >> >> How should the device properties look like? >> > > write_cache=enabled|disabled|none? (disabled can be enabled by the > guest, but none cannot) > barrier=supported|unsupported? > > Need to look at our supported interfaces and see what's the LCM. I figure we Can flesh it out later. >>>> rerror, werror host, guest drivers will reject >>>> values they don't support >>>> >>>> >>> Did you mean 'block format drivers will reject'? >>> >> No. Actual implementation is in the guest drivers, >> e.g. ide_handle_rw_error(). >> > > That is not a guest driver. It is a device model. A guest driver is > something you modprobe. Sorry, sloppy QEMU terminology seeping into my writing :( >> I see this as the host outsourcing the actual work to guest drivers. >> Guest drivers that can't do the work should complain. Right now, they >> silently ignore the order. >> > > With the terminology change, it makes a bit of sense. > >> >>> Maybe we want an explicit blockdev_eject instead, not sure. >>> >> Either blockdev_change (can eject, insert with auto-eject) or completely >> orthogonal blockdev_eject (can only eject) + blockdev_insert (can only >> insert, no auto-eject), I'd say. >> > > I prefer the latter, especially as eject has numerous variants > (software locked eject button, force=true to unwrap paper clip and > insert into pinhole, tray ejects violently knocking down hot beverage, > etc). Okay.