[libvirt] [PATCH 2/2] qemu: command: Don't format image properties for empty -drive

Peter Krempa pkrempa at redhat.com
Wed Jan 16 12:12:01 UTC 2019


On Wed, Jan 16, 2019 at 09:52:42 +0000, Daniel Berrange wrote:
> On Wed, Jan 16, 2019 at 10:42:10AM +0100, Peter Krempa wrote:
> > If a -drive has no image, using image properties makes qemu whine that
> > they should not be used.
> > 
> > This patch stops formating cache/readonly/... for empty drives
> > for the pre-blockdev syntax. Unfortunately those parameters can't be
> > added later when inserting media, but on the other hand qemu will start
> > with an empty drive.
> 
> So, IIUC, if you need to set cache/readonly/etc when inserting media,
> then the fix is simply to use a QEMU that supports blockdev?

Yes. With blockdev we setup the cache modes as the user
wishes/configures. Currently AFAIK the user would not get the required
mode anyways.

This should not be any problem for cdroms. Floppy drives might end up
with incorrect cache mode.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190116/17a6c41e/attachment-0001.sig>


More information about the libvir-list mailing list