[libvirt] [PATCH] libvirt no longer supports qemu format=host_device

Jamie Strandboge jamie at canonical.com
Fri Nov 5 19:04:50 UTC 2010

Bug: https://launchpad.net/bugs/665531

The fixes for CVE-2010-2237, CVE-2010-2238 and CVE-2010-2239 broke
format=host_device for the qemu driver. Qemu's host_device is used to
specify raw files that don't have holes, so we need to treat <driver
name='qemu' type='host_device'/> as raw in virDomainDiskDefForeachPath()
(like we do for 'aio'). For example, the following xml is no longer
valid, but should be:

    <disk type='file' device='disk'>
      <driver name='qemu' type='host_device'/>
      <source file='/tmp/foo.img'/>
      <target dev='hda' bus='ide'/>

This is confirmed as not working on 0.8.3 and 0.8.5. The attached patch
against 0.8.5 fixes the issue and restores host_device support.

Jamie Strandboge             | http://www.canonical.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fix-qemu-host_device.patch
Type: text/x-patch
Size: 1837 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20101105/b9c7eaae/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20101105/b9c7eaae/attachment-0001.sig>

More information about the libvir-list mailing list