mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +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;
|
||||
}
|
||||
|
||||
if (virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_BLOCKDEV) &&
|
||||
!qemuDiskBusIsSD(disk->bus)) {
|
||||
|
||||
if (!qemuDiskBusIsSD(disk->bus)) {
|
||||
nodename = disk->src->nodeformat;
|
||||
} else {
|
||||
if (!(device = qemuAliasDiskDriveFromDisk(disk)))
|
||||
@ -16161,8 +16159,7 @@ qemuDomainSetBlockIoTune(virDomainPtr dom,
|
||||
/* 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
|
||||
* once new media is inserted */
|
||||
if (!virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_BLOCKDEV) ||
|
||||
!virStorageSourceIsEmpty(disk->src)) {
|
||||
if (!virStorageSourceIsEmpty(disk->src)) {
|
||||
int rc = 0;
|
||||
|
||||
qemuDomainObjEnterMonitor(vm);
|
||||
|
Loading…
x
Reference in New Issue
Block a user