From 03e98a52d25a4cd0ad4203af46a20b8142ff5178 Mon Sep 17 00:00:00 2001 From: Ivan Kardykov Date: Sun, 15 Sep 2019 21:43:22 +0200 Subject: [PATCH] libxl: add acpi slic table support MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Libxl driver did not support setup additional acpi firmware to xen guest. It is necessary to activate OEM Windows installs. This patch allow to define in OS section acpi table param (which supported domain common schema). Signed-off-by: Ivan Kardykov [added info to docs/formatdomain.html.in] Signed-off-by: Marek Marczykowski-Górecki --- docs/formatdomain.html.in | 3 ++- src/libxl/libxl_conf.c | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index 7ec57135f6..500f114f41 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -363,7 +363,8 @@
The table element contains a fully-qualified path to the ACPI table. The type attribute contains the ACPI table type (currently only slic is supported) - Since 1.3.5 (QEMU only)
+ Since 1.3.5 (QEMU) + Since 5.8.0 (Xen)

Container boot

diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c index c76704a11d..c0d4861753 100644 --- a/src/libxl/libxl_conf.c +++ b/src/libxl/libxl_conf.c @@ -506,6 +506,11 @@ libxlMakeDomBuildInfo(virDomainDefPtr def, def->features[VIR_DOMAIN_FEATURE_ACPI] == VIR_TRISTATE_SWITCH_ON); + /* 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.47.2