From 6b4c1e010eb32d85bb09449086b45e2f67302c24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Thu, 11 Aug 2022 19:08:35 +0200 Subject: [PATCH] qemu: always assume QEMU_CAPS_*_HOLE64_SIZE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Introduced back in 2013 by QEMU commit: commit 398489018183d613306ab022653552247d93919f pc: limit 64 bit hole to 2G by default Released in 1.6.0 Signed-off-by: Ján Tomko Reviewed-by: Peter Krempa --- src/qemu/qemu_validate.c | 14 ---------- tests/qemuxml2argvdata/pcihole64-none.err | 1 - tests/qemuxml2argvdata/pcihole64-none.xml | 25 ----------------- tests/qemuxml2argvtest.c | 6 ++--- tests/qemuxml2xmloutdata/pcihole64-none.xml | 30 --------------------- tests/qemuxml2xmltest.c | 8 +++--- 6 files changed, 5 insertions(+), 79 deletions(-) delete mode 100644 tests/qemuxml2argvdata/pcihole64-none.err delete mode 100644 tests/qemuxml2argvdata/pcihole64-none.xml delete mode 100644 tests/qemuxml2xmloutdata/pcihole64-none.xml diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c index 41765bba37..703d9776a9 100644 --- a/src/qemu/qemu_validate.c +++ b/src/qemu/qemu_validate.c @@ -3984,13 +3984,6 @@ qemuValidateDomainDeviceDefControllerPCI(const virDomainControllerDef *cont, "supported for machine '%s'"), def->os.machine); return -1; } - - if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_I440FX_PCI_HOLE64_SIZE)) { - virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("64-bit PCI hole size setting is not supported " - "with this QEMU binary")); - return -1; - } } break; @@ -4002,13 +3995,6 @@ qemuValidateDomainDeviceDefControllerPCI(const virDomainControllerDef *cont, "supported for machine '%s'"), def->os.machine); return -1; } - - if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_Q35_PCI_HOLE64_SIZE)) { - virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", - _("64-bit PCI hole size setting is not supported " - "with this QEMU binary")); - return -1; - } } break; diff --git a/tests/qemuxml2argvdata/pcihole64-none.err b/tests/qemuxml2argvdata/pcihole64-none.err deleted file mode 100644 index 049065a763..0000000000 --- a/tests/qemuxml2argvdata/pcihole64-none.err +++ /dev/null @@ -1 +0,0 @@ -unsupported configuration: 64-bit PCI hole size setting is not supported with this QEMU binary diff --git a/tests/qemuxml2argvdata/pcihole64-none.xml b/tests/qemuxml2argvdata/pcihole64-none.xml deleted file mode 100644 index e924747418..0000000000 --- a/tests/qemuxml2argvdata/pcihole64-none.xml +++ /dev/null @@ -1,25 +0,0 @@ - - foo - c84fc647-6198-4ff9-bf81-d65a1f8f5ec0 - 2097152 - 2097152 - 2 - - hvm - - - - destroy - restart - destroy - - /usr/bin/qemu-system-x86_64 - - 0 - - - - - - - diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index 4ecccdc272..32f1e8ce3b 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -2798,13 +2798,11 @@ mymain(void) DO_TEST("hotplug-base", QEMU_CAPS_KVM, QEMU_CAPS_VIRTIO_SCSI); - DO_TEST("pcihole64", QEMU_CAPS_I440FX_PCI_HOLE64_SIZE); - DO_TEST_PARSE_ERROR_NOCAPS("pcihole64-none"); + DO_TEST_NOCAPS("pcihole64"); DO_TEST("pcihole64-q35", QEMU_CAPS_DEVICE_IOH3420, QEMU_CAPS_ICH9_AHCI, - QEMU_CAPS_DEVICE_QXL, - QEMU_CAPS_Q35_PCI_HOLE64_SIZE); + QEMU_CAPS_DEVICE_QXL); DO_TEST_NOCAPS("arm-vexpressa9-nodevs"); DO_TEST_NOCAPS("arm-vexpressa9-basic"); diff --git a/tests/qemuxml2xmloutdata/pcihole64-none.xml b/tests/qemuxml2xmloutdata/pcihole64-none.xml deleted file mode 100644 index c4b12510bf..0000000000 --- a/tests/qemuxml2xmloutdata/pcihole64-none.xml +++ /dev/null @@ -1,30 +0,0 @@ - - foo - c84fc647-6198-4ff9-bf81-d65a1f8f5ec0 - 2097152 - 2097152 - 2 - - hvm - - - - destroy - restart - destroy - - /usr/bin/qemu-system-x86_64 - - 0 - - -
- - - -