Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libxl: add ACPI SLIC table support #15

Merged
merged 1 commit into from
Oct 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions libvirt.spec
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ Patch0024: patches.qubes/0025-libxl-add-support-for-multiple-IP-addresses.patch
Patch0025: patches.qubes/0026-xenMakeIPList-Don-t-leak-address_array.patch
Patch0026: patches.qubes/0027-Add-permissive-option-for-PCI-devices.patch
Patch0027: patches.qubes/0028-libxl-Add-basic-support-for-type-pvh.patch
Patch0028: patches.qubes/0029-libxl-add-acpi-slic-table-support.patch

Requires: libvirt-daemon = %{version}-%{release}
%if %{with_network}
Expand Down
29 changes: 29 additions & 0 deletions patches.qubes/0029-libxl-add-acpi-slic-table-support.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
From 6affb1710701af84b0bcbd4f321a9dbd31d8aaee Mon Sep 17 00:00:00 2001
From: Ivan Kardykov <kardykov@tabit.pro>
Date: Wed, 28 Aug 2019 16:53:48 +0300
Subject: [PATCH] libxl: add acpi slic table support
Signed-off-by: Ivan Kardykov <kardykov@tabit.pro>

---
src/libxl/libxl_conf.c | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c
index c8c10604bc..aa9d6f4e1e 100644
--- a/src/libxl/libxl_conf.c
+++ b/src/libxl/libxl_conf.c
@@ -485,6 +485,11 @@ libxlMakeDomBuildInfo(virDomainDefPtr def,
}
}

+ /* copy SLIC table path to acpi_firmware */
+ if (def->os.slic_table &&
+ VIR_STRDUP(b_info->u.hvm.acpi_firmware, def->os.slic_table) < 0)
+ return -1;
+
if (def->nsounds > 0) {
/*
* Use first sound device. man xl.cfg(5) describes soundhw as
--
2.20.1