mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
qemu: Always assume QEMU_CAPS_CPU_AARCH64_OFF
We always assert the flag for aarch64 qemus and in qemu the 'aarch64' cpu property doesn't seem to be optional. Remove checks and remove impossible test case. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
726efd6aa0
commit
85644c24c8
@ -430,15 +430,6 @@ qemuValidateDomainDefCpu(virQEMUDriver *driver,
|
||||
if (cpu->model || cpu->mode != VIR_CPU_MODE_CUSTOM) {
|
||||
switch ((virCPUMode) cpu->mode) {
|
||||
case VIR_CPU_MODE_HOST_PASSTHROUGH:
|
||||
if (def->os.arch == VIR_ARCH_ARMV7L &&
|
||||
driver->hostarch == VIR_ARCH_AARCH64) {
|
||||
if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_CPU_AARCH64_OFF)) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
_("QEMU binary does not support CPU host-passthrough for armv7l on aarch64 host"));
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
if (cpu->migratable &&
|
||||
cpu->migratable != VIR_TRISTATE_SWITCH_OFF &&
|
||||
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_CPU_MIGRATABLE)) {
|
||||
|
@ -1 +0,0 @@
|
||||
unsupported configuration: QEMU binary does not support CPU host-passthrough for armv7l on aarch64 host
|
@ -2536,10 +2536,7 @@ mymain(void)
|
||||
DO_TEST("aarch64-kvm-32-on-64",
|
||||
QEMU_CAPS_DEVICE_VIRTIO_MMIO,
|
||||
QEMU_CAPS_DEVICE_PL011,
|
||||
QEMU_CAPS_KVM, QEMU_CAPS_CPU_AARCH64_OFF);
|
||||
DO_TEST_PARSE_ERROR("aarch64-kvm-32-on-64",
|
||||
QEMU_CAPS_DEVICE_VIRTIO_MMIO,
|
||||
QEMU_CAPS_KVM);
|
||||
QEMU_CAPS_KVM);
|
||||
DO_TEST("aarch64-pci-serial",
|
||||
QEMU_CAPS_DEVICE_PCI_SERIAL,
|
||||
QEMU_CAPS_OBJECT_GPEX,
|
||||
|
Loading…
Reference in New Issue
Block a user