mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: caps: Add lockout for -blockdev if QEMU_CAPS_SCSI_DISK_DEVICE_ID is not present
Avoid regressions by disallowing the BLOCKDEV capability. Signed-off-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
a1dce96236
commit
6d3c96f0d9
@ -4331,6 +4331,11 @@ virQEMUCapsInitQMPMonitor(virQEMUCapsPtr qemuCaps,
|
|||||||
virQEMUCapsClear(qemuCaps, QEMU_CAPS_SEV_GUEST);
|
virQEMUCapsClear(qemuCaps, QEMU_CAPS_SEV_GUEST);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* To avoid guest ABI regression, blockdev shall be enabled only when
|
||||||
|
* we are able to pass the custom 'device_id' for SCSI disks and cdroms. */
|
||||||
|
if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_SCSI_DISK_DEVICE_ID))
|
||||||
|
virQEMUCapsClear(qemuCaps, QEMU_CAPS_BLOCKDEV);
|
||||||
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
cleanup:
|
cleanup:
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user