mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 07:36:19 +00:00
qemu: use qemuDomainMachineIsPSeries
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
ac97658d4f
commit
8a8e3de0e0
@ -5544,8 +5544,7 @@ virQEMUCapsFillDomainDeviceDiskCaps(virQEMUCapsPtr qemuCaps,
|
||||
VIR_DOMAIN_DISK_DEVICE_LUN);
|
||||
|
||||
/* PowerPC pseries based VMs do not support floppy device */
|
||||
if (!ARCH_IS_PPC64(qemuCaps->arch) ||
|
||||
(STRNEQ(machine, "pseries") && !STRPREFIX(machine, "pseries-")))
|
||||
if (!qemuDomainMachineIsPSeries(machine, qemuCaps->arch))
|
||||
VIR_DOMAIN_CAPS_ENUM_SET(disk->diskDevice, VIR_DOMAIN_DISK_DEVICE_FLOPPY);
|
||||
|
||||
VIR_DOMAIN_CAPS_ENUM_SET(disk->bus,
|
||||
@ -5555,8 +5554,7 @@ virQEMUCapsFillDomainDeviceDiskCaps(virQEMUCapsPtr qemuCaps,
|
||||
/* VIR_DOMAIN_DISK_BUS_SD */);
|
||||
|
||||
/* PowerPC pseries based VMs do not support floppy device */
|
||||
if (!ARCH_IS_PPC64(qemuCaps->arch) ||
|
||||
(STRNEQ(machine, "pseries") && !STRPREFIX(machine, "pseries-")))
|
||||
if (!qemuDomainMachineIsPSeries(machine, qemuCaps->arch))
|
||||
VIR_DOMAIN_CAPS_ENUM_SET(disk->bus, VIR_DOMAIN_DISK_BUS_FDC);
|
||||
|
||||
if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_USB_STORAGE))
|
||||
|
Loading…
Reference in New Issue
Block a user