mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
qemu: assume QEMU_CAPS_CHARDEV_LOGFILE
Introduced in QEMU 2.6 Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
be217321eb
commit
72768bde3d
@ -2230,14 +2230,6 @@ qemuValidateDomainChrSourceDef(const virDomainChrSourceDef *def,
|
||||
break;
|
||||
}
|
||||
|
||||
if (def->logfile) {
|
||||
if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_CHARDEV_LOGFILE)) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
_("logfile not supported in this QEMU binary"));
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1575,8 +1575,7 @@ mymain(void)
|
||||
QEMU_CAPS_DEVICE_VFIO_PCI);
|
||||
|
||||
DO_TEST("serial-file-log",
|
||||
QEMU_CAPS_DEVICE_ISA_SERIAL,
|
||||
QEMU_CAPS_CHARDEV_LOGFILE);
|
||||
QEMU_CAPS_DEVICE_ISA_SERIAL);
|
||||
DO_TEST("serial-spiceport",
|
||||
QEMU_CAPS_DEVICE_QXL,
|
||||
QEMU_CAPS_SPICE,
|
||||
@ -2823,7 +2822,6 @@ mymain(void)
|
||||
QEMU_CAPS_KVM);
|
||||
DO_TEST("aarch64-pci-serial",
|
||||
QEMU_CAPS_DEVICE_PCI_SERIAL,
|
||||
QEMU_CAPS_CHARDEV_LOGFILE,
|
||||
QEMU_CAPS_OBJECT_GPEX,
|
||||
QEMU_CAPS_DEVICE_PCI_BRIDGE,
|
||||
QEMU_CAPS_DEVICE_DMI_TO_PCI_BRIDGE,
|
||||
|
@ -991,7 +991,6 @@ mymain(void)
|
||||
QEMU_CAPS_DEVICE_VIRTIO_GPU);
|
||||
DO_TEST("aarch64-pci-serial",
|
||||
QEMU_CAPS_DEVICE_PCI_SERIAL,
|
||||
QEMU_CAPS_CHARDEV_LOGFILE,
|
||||
QEMU_CAPS_OBJECT_GPEX,
|
||||
QEMU_CAPS_DEVICE_PCI_BRIDGE,
|
||||
QEMU_CAPS_DEVICE_DMI_TO_PCI_BRIDGE,
|
||||
|
Loading…
x
Reference in New Issue
Block a user