Message ID | 1478532721-20160-3-git-send-email-roger.pau@citrix.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 11/07/2016 10:32 AM, Roger Pau Monne wrote: > 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> > --- > Cc: Ian Jackson <ian.jackson@eu.citrix.com> > Cc: Wei Liu <wei.liu2@citrix.com> > Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com> > Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
On 07/11/16 15:32, Roger Pau Monne wrote: > 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> > --- > Cc: Ian Jackson <ian.jackson@eu.citrix.com> > Cc: Wei Liu <wei.liu2@citrix.com> > Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com> > Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
diff --git a/tools/libxc/xc_dom_x86.c b/tools/libxc/xc_dom_x86.c index 0eab8a7..6495e7f 100644 --- a/tools/libxc/xc_dom_x86.c +++ b/tools/libxc/xc_dom_x86.c @@ -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 {
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> --- Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Wei Liu <wei.liu2@citrix.com> Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com> Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> --- Changes since v1: - Reword code comment. --- tools/libxc/xc_dom_x86.c | 3 +++ 1 file changed, 3 insertions(+)