From f6fe0611a8980694b8e4e33b9c824805d353679f Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 12 Jun 2025 08:11:56 +0100 Subject: [PATCH] lib: Make libvirt ACPI feature flag conditional on x86 or Arm On ppc64 and s390x it failed with an error like: unsupported configuration: machine type 'pseries-10.0' does not support ACPI Updates: commit 7cf0ed750ef7119503fc72cb19c29a269a893e8e Related: https://bugzilla.redhat.com/show_bug.cgi?id=2372329 --- lib/launch-libvirt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/launch-libvirt.c b/lib/launch-libvirt.c index 40b57f7ca..55a4ad41c 100644 --- a/lib/launch-libvirt.c +++ b/lib/launch-libvirt.c @@ -1175,9 +1175,12 @@ construct_libvirt_xml_cpu (guestfs_h *g, single_element_format ("vcpu", "%d", g->smp); +#if defined(__i386__) || defined(__x86_64__) || \ + defined(__arm__) || defined(__aarch64__) start_element ("features") { empty_element ("acpi"); } end_element (); +#endif start_element ("clock") { attribute ("offset", "utc"); -- 2.47.1