libguestfs/0001-lib-Enable-ACPI-for-the-libvirt-backend.patch
Richard W.M. Jones 07bc9a99c5 Rebase to libguestfs 1.56.0
resolves: RHEL-81733
2025-06-12 08:58:36 +01:00

43 lines
1.2 KiB
Diff

From 7cf0ed750ef7119503fc72cb19c29a269a893e8e Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Wed, 11 Jun 2025 22:45:51 +0100
Subject: [PATCH] lib: Enable ACPI for the libvirt backend
Many years ago we used to pass acpi=off on the Linux kernel command
line. In commit db1f811b2 we stopped doing that (around 2016).
However unless you also use:
<features>
<acpi/>
</features>
then it turns out that libvirt disables ACPI generation at the qemu
level. None of this mattered until SeaBIOS 1.17 changed its
behaviour, causing ACPI to be required for virtio devices to work.
Updates: commit db1f811b29b055625ae1b03cf0daa9fed0d443ac
Related: https://bugzilla.redhat.com/show_bug.cgi?id=2372329
Thanks: Gerd Hoffmann
---
lib/launch-libvirt.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/launch-libvirt.c b/lib/launch-libvirt.c
index aa9534c68..40b57f7ca 100644
--- a/lib/launch-libvirt.c
+++ b/lib/launch-libvirt.c
@@ -1175,6 +1175,10 @@ construct_libvirt_xml_cpu (guestfs_h *g,
single_element_format ("vcpu", "%d", g->smp);
+ start_element ("features") {
+ empty_element ("acpi");
+ } end_element ();
+
start_element ("clock") {
attribute ("offset", "utc");
--
2.47.1