mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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 7cf0ed750e
Related: https://bugzilla.redhat.com/show_bug.cgi?id=2372329
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user