mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
qemu: driver: Remove remaining QEMU_CAPS_BLOCKDEV capability checks
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
9f6151f50d
commit
83273b5214
@ -9961,9 +9961,7 @@ qemuDomainBlockResize(virDomainPtr dom,
|
|||||||
goto endjob;
|
goto endjob;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_BLOCKDEV) &&
|
if (!qemuDiskBusIsSD(disk->bus)) {
|
||||||
!qemuDiskBusIsSD(disk->bus)) {
|
|
||||||
|
|
||||||
nodename = disk->src->nodeformat;
|
nodename = disk->src->nodeformat;
|
||||||
} else {
|
} else {
|
||||||
if (!(device = qemuAliasDiskDriveFromDisk(disk)))
|
if (!(device = qemuAliasDiskDriveFromDisk(disk)))
|
||||||
@ -16161,8 +16159,7 @@ qemuDomainSetBlockIoTune(virDomainPtr dom,
|
|||||||
/* blockdev-based qemu doesn't want to set the throttling when a cdrom
|
/* blockdev-based qemu doesn't want to set the throttling when a cdrom
|
||||||
* is empty. Skip the monitor call here since we will set the throttling
|
* is empty. Skip the monitor call here since we will set the throttling
|
||||||
* once new media is inserted */
|
* once new media is inserted */
|
||||||
if (!virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_BLOCKDEV) ||
|
if (!virStorageSourceIsEmpty(disk->src)) {
|
||||||
!virStorageSourceIsEmpty(disk->src)) {
|
|
||||||
int rc = 0;
|
int rc = 0;
|
||||||
|
|
||||||
qemuDomainObjEnterMonitor(vm);
|
qemuDomainObjEnterMonitor(vm);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user