]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
libxl: add acpi slic table support
authorIvan Kardykov <kardykov@tabit.pro>
Sun, 15 Sep 2019 19:43:22 +0000 (21:43 +0200)
committerJim Fehlig <jfehlig@suse.com>
Fri, 11 Oct 2019 03:01:54 +0000 (21:01 -0600)
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 <kardykov@tabit.pro>
[added info to docs/formatdomain.html.in]
Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
docs/formatdomain.html.in
src/libxl/libxl_conf.c

index 7ec57135f6ef643cb675d746571edb88e0ce7824..500f114f41a5cc90dcc9b79236f59b0c37091212 100644 (file)
       <dd>The <code>table</code> element contains a fully-qualified path
         to the ACPI table. The <code>type</code> attribute contains the
         ACPI table type (currently only <code>slic</code> is supported)
-        <span class="since">Since 1.3.5 (QEMU only)</span></dd>
+        <span class="since">Since 1.3.5 (QEMU)</span>
+        <span class="since">Since 5.8.0 (Xen)</span></dd>
     </dl>
 
     <h4><a id="elementsOSContainer">Container boot</a></h4>
index c76704a11d0228163273374794e3509b84195528..c0d4861753910960822c66946746e62b4e04235e 100644 (file)
@@ -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