6d3351
From 00e9313798b4e830b372d0069fc211019d67f978 Mon Sep 17 00:00:00 2001
6d3351
Message-Id: <00e9313798b4e830b372d0069fc211019d67f978@dist-git>
6d3351
From: Andrea Bolognani <abologna@redhat.com>
6d3351
Date: Tue, 4 Apr 2017 14:59:31 +0200
6d3351
Subject: [PATCH] qemu: Enforce ACPI, UEFI requirements
6d3351
6d3351
Depending on the architecture, requirements for ACPI and UEFI can
6d3351
be different; more specifically, while on x86 UEFI requires ACPI,
6d3351
on aarch64 it's the other way around.
6d3351
6d3351
Enforce these requirements when validating the domain, and make
6d3351
the error message more accurate by mentioning that they're not
6d3351
necessarily applicable to all architectures.
6d3351
6d3351
Several aarch64 test cases had to be tweaked because they would
6d3351
have failed the validation step otherwise.
6d3351
6d3351
(cherry picked from commit 396ca36cb0be87bdf6c337bbc8098920eddea065)
6d3351
6d3351
Bug: https://bugzilla.redhat.com/show_bug.cgi?id=1429509
6d3351
6d3351
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
6d3351
---
6d3351
 src/qemu/qemu_command.c                              | 20 ++++----------------
6d3351
 src/qemu/qemu_domain.c                               | 20 ++++++++++++++++++++
6d3351
 .../qemuxml2argv-aarch64-aavmf-virtio-mmio.args      |  1 +
6d3351
 .../qemuxml2argv-aarch64-aavmf-virtio-mmio.xml       |  1 -
6d3351
 .../qemuxml2argv-aarch64-cpu-passthrough.args        |  1 +
6d3351
 .../qemuxml2argv-aarch64-cpu-passthrough.xml         |  1 -
6d3351
 .../qemuxml2argv-aarch64-video-virtio-gpu-pci.args   |  1 +
6d3351
 .../qemuxml2argv-aarch64-video-virtio-gpu-pci.xml    |  3 ---
6d3351
 ...xml2argv-aarch64-virt-2.6-virtio-pci-default.args |  1 +
6d3351
 ...uxml2argv-aarch64-virt-2.6-virtio-pci-default.xml |  1 -
6d3351
 .../qemuxml2argv-aarch64-virt-default-nic.args       |  1 +
6d3351
 .../qemuxml2argv-aarch64-virt-default-nic.xml        |  3 ---
6d3351
 .../qemuxml2argv-aarch64-virt-virtio.args            |  1 +
6d3351
 .../qemuxml2argv-aarch64-virt-virtio.xml             |  1 -
6d3351
 .../qemuxml2argv-aarch64-virtio-pci-default.args     |  1 +
6d3351
 .../qemuxml2argv-aarch64-virtio-pci-default.xml      |  1 -
6d3351
 ...xml2argv-aarch64-virtio-pci-manual-addresses.args |  1 +
6d3351
 ...uxml2argv-aarch64-virtio-pci-manual-addresses.xml |  1 -
6d3351
 .../qemuxml2argv-balloon-mmio-deflate.args           |  1 +
6d3351
 .../qemuxml2argv-balloon-mmio-deflate.xml            |  1 -
6d3351
 .../qemuxml2xmlout-aarch64-aavmf-virtio-mmio.xml     |  1 -
6d3351
 .../qemuxml2xmlout-aarch64-video-virtio-gpu-pci.xml  |  1 -
6d3351
 .../qemuxml2xmlout-aarch64-virtio-pci-default.xml    |  1 -
6d3351
 ...ml2xmlout-aarch64-virtio-pci-manual-addresses.xml |  1 -
6d3351
 24 files changed, 33 insertions(+), 33 deletions(-)
6d3351
6d3351
diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
6d3351
index 59fedaaaf..8ec4ec3a6 100644
6d3351
--- a/src/qemu/qemu_command.c
6d3351
+++ b/src/qemu/qemu_command.c
6d3351
@@ -9346,18 +9346,16 @@ qemuBuildRedirdevCommandLine(virLogManagerPtr logManager,
6d3351
 }
6d3351
 
6d3351
 
6d3351
-static int
6d3351
+static void
6d3351
 qemuBuildDomainLoaderCommandLine(virCommandPtr cmd,
6d3351
-                                 virDomainDefPtr def,
6d3351
-                                 virQEMUCapsPtr qemuCaps)
6d3351
+                                 virDomainDefPtr def)
6d3351
 {
6d3351
-    int ret = -1;
6d3351
     virDomainLoaderDefPtr loader = def->os.loader;
6d3351
     virBuffer buf = VIR_BUFFER_INITIALIZER;
6d3351
     int unit = 0;
6d3351
 
6d3351
     if (!loader)
6d3351
-        return 0;
6d3351
+        return;
6d3351
 
6d3351
     switch ((virDomainLoader) loader->type) {
6d3351
     case VIR_DOMAIN_LOADER_TYPE_ROM:
6d3351
@@ -9366,12 +9364,6 @@ qemuBuildDomainLoaderCommandLine(virCommandPtr cmd,
6d3351
         break;
6d3351
 
6d3351
     case VIR_DOMAIN_LOADER_TYPE_PFLASH:
6d3351
-        if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_NO_ACPI) &&
6d3351
-            def->features[VIR_DOMAIN_FEATURE_ACPI] != VIR_TRISTATE_SWITCH_ON) {
6d3351
-            virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
6d3351
-                           _("ACPI must be enabled in order to use UEFI"));
6d3351
-            goto cleanup;
6d3351
-        }
6d3351
 
6d3351
         if (loader->secure == VIR_TRISTATE_BOOL_YES) {
6d3351
             virCommandAddArgList(cmd,
6d3351
@@ -9409,10 +9401,7 @@ qemuBuildDomainLoaderCommandLine(virCommandPtr cmd,
6d3351
         break;
6d3351
     }
6d3351
 
6d3351
-    ret = 0;
6d3351
- cleanup:
6d3351
     virBufferFreeAndReset(&buf;;
6d3351
-    return ret;
6d3351
 }
6d3351
 
6d3351
 
6d3351
@@ -9849,8 +9838,7 @@ qemuBuildCommandLine(virQEMUDriverPtr driver,
6d3351
     if (qemuBuildCpuCommandLine(cmd, driver, def, qemuCaps) < 0)
6d3351
         goto error;
6d3351
 
6d3351
-    if (qemuBuildDomainLoaderCommandLine(cmd, def, qemuCaps) < 0)
6d3351
-        goto error;
6d3351
+    qemuBuildDomainLoaderCommandLine(cmd, def);
6d3351
 
6d3351
     if (!migrateURI && !snapshot && qemuDomainAlignMemorySizes(def) < 0)
6d3351
         goto error;
6d3351
diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
6d3351
index 9f165c1da..f383a6cf2 100644
6d3351
--- a/src/qemu/qemu_domain.c
6d3351
+++ b/src/qemu/qemu_domain.c
6d3351
@@ -2884,6 +2884,26 @@ qemuDomainDefValidate(const virDomainDef *def,
6d3351
         goto cleanup;
6d3351
     }
6d3351
 
6d3351
+    /* On x86, UEFI requires ACPI */
6d3351
+    if (def->os.loader &&
6d3351
+        def->os.loader->type == VIR_DOMAIN_LOADER_TYPE_PFLASH &&
6d3351
+        ARCH_IS_X86(def->os.arch) &&
6d3351
+        def->features[VIR_DOMAIN_FEATURE_ACPI] != VIR_TRISTATE_SWITCH_ON) {
6d3351
+        virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
6d3351
+                       _("UEFI requires ACPI on this architecture"));
6d3351
+        goto cleanup;
6d3351
+    }
6d3351
+
6d3351
+    /* On aarch64, ACPI requires UEFI */
6d3351
+    if (def->features[VIR_DOMAIN_FEATURE_ACPI] == VIR_TRISTATE_SWITCH_ON &&
6d3351
+        def->os.arch == VIR_ARCH_AARCH64 &&
6d3351
+        (!def->os.loader ||
6d3351
+         def->os.loader->type != VIR_DOMAIN_LOADER_TYPE_PFLASH)) {
6d3351
+        virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
6d3351
+                       _("ACPI requires UEFI on this architecture"));
6d3351
+        goto cleanup;
6d3351
+    }
6d3351
+
6d3351
     if (def->os.loader &&
6d3351
         def->os.loader->secure == VIR_TRISTATE_BOOL_YES) {
6d3351
         /* These are the QEMU implementation limitations. But we
6d3351
diff --git a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-aavmf-virtio-mmio.args b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-aavmf-virtio-mmio.args
6d3351
index bf4b2f793..68fb61b1e 100644
6d3351
--- a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-aavmf-virtio-mmio.args
6d3351
+++ b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-aavmf-virtio-mmio.args
6d3351
@@ -16,6 +16,7 @@ QEMU_AUDIO_DRV=none \
6d3351
 -nodefconfig \
6d3351
 -nodefaults \
6d3351
 -monitor unix:/tmp/lib/domain--1-aarch64test/monitor.sock,server,nowait \
6d3351
+-no-acpi \
6d3351
 -boot c \
6d3351
 -kernel /aarch64.kernel \
6d3351
 -initrd /aarch64.initrd \
6d3351
diff --git a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-aavmf-virtio-mmio.xml b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-aavmf-virtio-mmio.xml
6d3351
index 8c7428cf8..5d7217307 100644
6d3351
--- a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-aavmf-virtio-mmio.xml
6d3351
+++ b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-aavmf-virtio-mmio.xml
6d3351
@@ -13,7 +13,6 @@
6d3351
     <boot dev='hd'/>
6d3351
   </os>
6d3351
   <features>
6d3351
-    <acpi/>
6d3351
     <apic/>
6d3351
     <pae/>
6d3351
     <gic version='2'/>
6d3351
diff --git a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-cpu-passthrough.args b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-cpu-passthrough.args
6d3351
index 52d2112b8..9c8c001f1 100644
6d3351
--- a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-cpu-passthrough.args
6d3351
+++ b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-cpu-passthrough.args
6d3351
@@ -16,6 +16,7 @@ QEMU_AUDIO_DRV=none \
6d3351
 -nodefconfig \
6d3351
 -nodefaults \
6d3351
 -monitor unix:/tmp/lib/domain--1-aarch64test/monitor.sock,server,nowait \
6d3351
+-no-acpi \
6d3351
 -boot c \
6d3351
 -drive file=/aarch64.raw,format=raw,if=none,id=drive-virtio-disk0 \
6d3351
 -device virtio-blk-device,drive=drive-virtio-disk0,id=virtio-disk0
6d3351
diff --git a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-cpu-passthrough.xml b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-cpu-passthrough.xml
6d3351
index 4cdf387f3..0dda09504 100644
6d3351
--- a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-cpu-passthrough.xml
6d3351
+++ b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-cpu-passthrough.xml
6d3351
@@ -8,7 +8,6 @@
6d3351
     <type arch="aarch64" machine="virt">hvm</type>
6d3351
   </os>
6d3351
   <features>
6d3351
-    <acpi/>
6d3351
     <apic/>
6d3351
     <pae/>
6d3351
   </features>
6d3351
diff --git a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-video-virtio-gpu-pci.args b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-video-virtio-gpu-pci.args
6d3351
index 76ee977a3..2f8c51610 100644
6d3351
--- a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-video-virtio-gpu-pci.args
6d3351
+++ b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-video-virtio-gpu-pci.args
6d3351
@@ -16,6 +16,7 @@ QEMU_AUDIO_DRV=none \
6d3351
 -nodefconfig \
6d3351
 -nodefaults \
6d3351
 -monitor unix:/tmp/lib/domain--1-aarch64-vgpu/monitor.sock,server,nowait \
6d3351
+-no-acpi \
6d3351
 -device ioh3420,port=0x8,chassis=1,id=pci.1,bus=pcie.0,multifunction=on,\
6d3351
 addr=0x1 \
6d3351
 -device ioh3420,port=0x9,chassis=2,id=pci.2,bus=pcie.0,multifunction=on,\
6d3351
diff --git a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-video-virtio-gpu-pci.xml b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-video-virtio-gpu-pci.xml
6d3351
index 4b52a731b..d9a012893 100644
6d3351
--- a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-video-virtio-gpu-pci.xml
6d3351
+++ b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-video-virtio-gpu-pci.xml
6d3351
@@ -7,9 +7,6 @@
6d3351
   <os>
6d3351
     <type arch='aarch64' machine='virt'>hvm</type>
6d3351
   </os>
6d3351
-  <features>
6d3351
-    <acpi/>
6d3351
-  </features>
6d3351
   <cpu mode='custom' match='exact'>
6d3351
     <model fallback='allow'>cortex-a57</model>
6d3351
   </cpu>
6d3351
diff --git a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-2.6-virtio-pci-default.args b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-2.6-virtio-pci-default.args
6d3351
index df03c6e02..e99d412a7 100644
6d3351
--- a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-2.6-virtio-pci-default.args
6d3351
+++ b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-2.6-virtio-pci-default.args
6d3351
@@ -16,6 +16,7 @@ QEMU_AUDIO_DRV=none \
6d3351
 -nodefconfig \
6d3351
 -nodefaults \
6d3351
 -monitor unix:/tmp/lib/domain--1-aarch64test/monitor.sock,server,nowait \
6d3351
+-no-acpi \
6d3351
 -boot c \
6d3351
 -kernel /aarch64.kernel \
6d3351
 -initrd /aarch64.initrd \
6d3351
diff --git a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-2.6-virtio-pci-default.xml b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-2.6-virtio-pci-default.xml
6d3351
index e745101f1..43bc0089c 100644
6d3351
--- a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-2.6-virtio-pci-default.xml
6d3351
+++ b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-2.6-virtio-pci-default.xml
6d3351
@@ -12,7 +12,6 @@
6d3351
     <cmdline>earlyprintk console=ttyAMA0,115200n8 rw root=/dev/vda rootwait</cmdline>
6d3351
   </os>
6d3351
   <features>
6d3351
-    <acpi/>
6d3351
     <apic/>
6d3351
     <pae/>
6d3351
   </features>
6d3351
diff --git a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-default-nic.args b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-default-nic.args
6d3351
index 29f65f6b9..47d77618b 100644
6d3351
--- a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-default-nic.args
6d3351
+++ b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-default-nic.args
6d3351
@@ -17,6 +17,7 @@ QEMU_AUDIO_DRV=none \
6d3351
 -nodefaults \
6d3351
 -monitor unix:/tmp/lib/domain--1-aarch64-virt-default/monitor.sock,server,\
6d3351
 nowait \
6d3351
+-no-acpi \
6d3351
 -boot c \
6d3351
 -kernel /aarch64.kernel \
6d3351
 -initrd /aarch64.initrd \
6d3351
diff --git a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-default-nic.xml b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-default-nic.xml
6d3351
index 3a6f098d0..17ddc9096 100644
6d3351
--- a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-default-nic.xml
6d3351
+++ b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-default-nic.xml
6d3351
@@ -4,9 +4,6 @@
6d3351
   <memory>1048576</memory>
6d3351
   <currentMemory>1048576</currentMemory>
6d3351
   <vcpu>1</vcpu>
6d3351
-  <features>
6d3351
-    <acpi/>
6d3351
-  </features>
6d3351
   <cpu match='exact'>
6d3351
     <model>cortex-a53</model>
6d3351
   </cpu>
6d3351
diff --git a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-virtio.args b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-virtio.args
6d3351
index b5b010ca4..5fef3b488 100644
6d3351
--- a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-virtio.args
6d3351
+++ b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-virtio.args
6d3351
@@ -16,6 +16,7 @@ QEMU_AUDIO_DRV=none \
6d3351
 -nodefconfig \
6d3351
 -nodefaults \
6d3351
 -monitor unix:/tmp/lib/domain--1-aarch64test/monitor.sock,server,nowait \
6d3351
+-no-acpi \
6d3351
 -boot c \
6d3351
 -kernel /aarch64.kernel \
6d3351
 -initrd /aarch64.initrd \
6d3351
diff --git a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-virtio.xml b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-virtio.xml
6d3351
index ad3461512..2692e61c4 100644
6d3351
--- a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-virtio.xml
6d3351
+++ b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virt-virtio.xml
6d3351
@@ -12,7 +12,6 @@
6d3351
     <cmdline>earlyprintk console=ttyAMA0,115200n8 rw root=/dev/vda rootwait</cmdline>
6d3351
   </os>
6d3351
   <features>
6d3351
-    <acpi/>
6d3351
     <apic/>
6d3351
     <pae/>
6d3351
   </features>
6d3351
diff --git a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virtio-pci-default.args b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virtio-pci-default.args
6d3351
index 46ac51d50..23a5fffd0 100644
6d3351
--- a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virtio-pci-default.args
6d3351
+++ b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virtio-pci-default.args
6d3351
@@ -16,6 +16,7 @@ QEMU_AUDIO_DRV=none \
6d3351
 -nodefconfig \
6d3351
 -nodefaults \
6d3351
 -monitor unix:/tmp/lib/domain--1-aarch64test/monitor.sock,server,nowait \
6d3351
+-no-acpi \
6d3351
 -boot c \
6d3351
 -kernel /aarch64.kernel \
6d3351
 -initrd /aarch64.initrd \
6d3351
diff --git a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virtio-pci-default.xml b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virtio-pci-default.xml
6d3351
index 2a84a9669..72bf0c95c 100644
6d3351
--- a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virtio-pci-default.xml
6d3351
+++ b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virtio-pci-default.xml
6d3351
@@ -12,7 +12,6 @@
6d3351
     <cmdline>earlyprintk console=ttyAMA0,115200n8 rw root=/dev/vda rootwait</cmdline>
6d3351
   </os>
6d3351
   <features>
6d3351
-    <acpi/>
6d3351
     <apic/>
6d3351
     <pae/>
6d3351
   </features>
6d3351
diff --git a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virtio-pci-manual-addresses.args b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virtio-pci-manual-addresses.args
6d3351
index 06403996e..54244fdcf 100644
6d3351
--- a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virtio-pci-manual-addresses.args
6d3351
+++ b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virtio-pci-manual-addresses.args
6d3351
@@ -16,6 +16,7 @@ QEMU_AUDIO_DRV=none \
6d3351
 -nodefconfig \
6d3351
 -nodefaults \
6d3351
 -monitor unix:/tmp/lib/domain--1-aarch64test/monitor.sock,server,nowait \
6d3351
+-no-acpi \
6d3351
 -boot c \
6d3351
 -kernel /aarch64.kernel \
6d3351
 -initrd /aarch64.initrd \
6d3351
diff --git a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virtio-pci-manual-addresses.xml b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virtio-pci-manual-addresses.xml
6d3351
index 5e1b494ed..fee32588f 100644
6d3351
--- a/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virtio-pci-manual-addresses.xml
6d3351
+++ b/tests/qemuxml2argvdata/qemuxml2argv-aarch64-virtio-pci-manual-addresses.xml
6d3351
@@ -13,7 +13,6 @@
6d3351
     <boot dev='hd'/>
6d3351
   </os>
6d3351
   <features>
6d3351
-    <acpi/>
6d3351
     <apic/>
6d3351
     <pae/>
6d3351
   </features>
6d3351
diff --git a/tests/qemuxml2argvdata/qemuxml2argv-balloon-mmio-deflate.args b/tests/qemuxml2argvdata/qemuxml2argv-balloon-mmio-deflate.args
6d3351
index 10d136258..e568e3c39 100644
6d3351
--- a/tests/qemuxml2argvdata/qemuxml2argv-balloon-mmio-deflate.args
6d3351
+++ b/tests/qemuxml2argvdata/qemuxml2argv-balloon-mmio-deflate.args
6d3351
@@ -16,6 +16,7 @@ QEMU_AUDIO_DRV=none \
6d3351
 -nodefconfig \
6d3351
 -nodefaults \
6d3351
 -monitor unix:/tmp/lib/domain--1-aarch64test/monitor.sock,server,nowait \
6d3351
+-no-acpi \
6d3351
 -boot c \
6d3351
 -kernel /aarch64.kernel \
6d3351
 -initrd /aarch64.initrd \
6d3351
diff --git a/tests/qemuxml2argvdata/qemuxml2argv-balloon-mmio-deflate.xml b/tests/qemuxml2argvdata/qemuxml2argv-balloon-mmio-deflate.xml
6d3351
index 1b5b48c42..49b7d2c60 100644
6d3351
--- a/tests/qemuxml2argvdata/qemuxml2argv-balloon-mmio-deflate.xml
6d3351
+++ b/tests/qemuxml2argvdata/qemuxml2argv-balloon-mmio-deflate.xml
6d3351
@@ -12,7 +12,6 @@
6d3351
     <cmdline>earlyprintk console=ttyAMA0,115200n8 rw root=/dev/vda rootwait</cmdline>
6d3351
   </os>
6d3351
   <features>
6d3351
-    <acpi/>
6d3351
     <apic/>
6d3351
     <pae/>
6d3351
   </features>
6d3351
diff --git a/tests/qemuxml2xmloutdata/qemuxml2xmlout-aarch64-aavmf-virtio-mmio.xml b/tests/qemuxml2xmloutdata/qemuxml2xmlout-aarch64-aavmf-virtio-mmio.xml
6d3351
index bea65990e..9e728300e 100644
6d3351
--- a/tests/qemuxml2xmloutdata/qemuxml2xmlout-aarch64-aavmf-virtio-mmio.xml
6d3351
+++ b/tests/qemuxml2xmloutdata/qemuxml2xmlout-aarch64-aavmf-virtio-mmio.xml
6d3351
@@ -13,7 +13,6 @@
6d3351
     <boot dev='hd'/>
6d3351
   </os>
6d3351
   <features>
6d3351
-    <acpi/>
6d3351
     <apic/>
6d3351
     <pae/>
6d3351
     <gic version='2'/>
6d3351
diff --git a/tests/qemuxml2xmloutdata/qemuxml2xmlout-aarch64-video-virtio-gpu-pci.xml b/tests/qemuxml2xmloutdata/qemuxml2xmlout-aarch64-video-virtio-gpu-pci.xml
6d3351
index 2c765e7c3..8590f485e 100644
6d3351
--- a/tests/qemuxml2xmloutdata/qemuxml2xmlout-aarch64-video-virtio-gpu-pci.xml
6d3351
+++ b/tests/qemuxml2xmloutdata/qemuxml2xmlout-aarch64-video-virtio-gpu-pci.xml
6d3351
@@ -8,7 +8,6 @@
6d3351
     <type arch='aarch64' machine='virt'>hvm</type>
6d3351
   </os>
6d3351
   <features>
6d3351
-    <acpi/>
6d3351
     <gic version='2'/>
6d3351
   </features>
6d3351
   <cpu mode='custom' match='exact' check='none'>
6d3351
diff --git a/tests/qemuxml2xmloutdata/qemuxml2xmlout-aarch64-virtio-pci-default.xml b/tests/qemuxml2xmloutdata/qemuxml2xmlout-aarch64-virtio-pci-default.xml
6d3351
index 88a6a6a0c..e5496424b 100644
6d3351
--- a/tests/qemuxml2xmloutdata/qemuxml2xmlout-aarch64-virtio-pci-default.xml
6d3351
+++ b/tests/qemuxml2xmloutdata/qemuxml2xmlout-aarch64-virtio-pci-default.xml
6d3351
@@ -13,7 +13,6 @@
6d3351
     <boot dev='hd'/>
6d3351
   </os>
6d3351
   <features>
6d3351
-    <acpi/>
6d3351
     <apic/>
6d3351
     <pae/>
6d3351
     <gic version='2'/>
6d3351
diff --git a/tests/qemuxml2xmloutdata/qemuxml2xmlout-aarch64-virtio-pci-manual-addresses.xml b/tests/qemuxml2xmloutdata/qemuxml2xmlout-aarch64-virtio-pci-manual-addresses.xml
6d3351
index 83cf0d1f5..83d8dcc4a 100644
6d3351
--- a/tests/qemuxml2xmloutdata/qemuxml2xmlout-aarch64-virtio-pci-manual-addresses.xml
6d3351
+++ b/tests/qemuxml2xmloutdata/qemuxml2xmlout-aarch64-virtio-pci-manual-addresses.xml
6d3351
@@ -13,7 +13,6 @@
6d3351
     <boot dev='hd'/>
6d3351
   </os>
6d3351
   <features>
6d3351
-    <acpi/>
6d3351
     <apic/>
6d3351
     <pae/>
6d3351
     <gic version='2'/>
6d3351
-- 
6d3351
2.12.2
6d3351