]> xenbits.xensource.com Git - xen.git/commitdiff
libxc: set rsdp pointer for PVHv2 guests
authorRoger Pau Monne <roger.pau@citrix.com>
Mon, 7 Nov 2016 15:32:01 +0000 (16:32 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 8 Nov 2016 01:56:39 +0000 (01:56 +0000)
Set the address of the RSDP in the HVM start info structure for PVHv2 DomUs
that have ACPI tables.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxc/xc_dom_x86.c

index 0eab8a74a794e651847ee845a0beb3ee41584994..6495e7fc305b157bb91b3635fce2aebfd981a356 100644 (file)
@@ -1797,6 +1797,9 @@ static int bootlate_hvm(struct xc_dom_image *dom)
             modlist[0].size = dom->ramdisk_seg.vend - dom->ramdisk_seg.vstart;
             start_info->nr_modules = 1;
         }
+
+        /* ACPI module 0 is the RSDP */
+        start_info->rsdp_paddr = dom->acpi_modules[0].guest_addr_out ? : 0;
     }
     else
     {