[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen master] libxl: set vuart_gfn in libxl__build_hvm



commit cd800ce442eeba5bc0857ade70a075367c01c350
Author:     Stefano Stabellini <sstabellini@xxxxxxxxxx>
AuthorDate: Fri Nov 6 16:12:56 2020 +0000
Commit:     Wei Liu <wl@xxxxxxx>
CommitDate: Fri Nov 6 16:12:56 2020 +0000

    libxl: set vuart_gfn in libxl__build_hvm
    
    Setting vuart_gfn was missed when switching ARM guests to the PVH build.
    Like libxl__build_pv, libxl__build_hvm should set state->vuart_gfn to
    dom->vuart_gfn.
    
    Without this change, xl console cannot connect to the vuart console (-t
    vuart), see https://marc.info/?l=xen-devel&m=160402342101366.
    
    Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxx>
    Reviewed-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
---
 tools/libs/light/libxl_dom.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/libs/light/libxl_dom.c b/tools/libs/light/libxl_dom.c
index 01d989a976..19168572fd 100644
--- a/tools/libs/light/libxl_dom.c
+++ b/tools/libs/light/libxl_dom.c
@@ -1177,6 +1177,7 @@ int libxl__build_hvm(libxl__gc *gc, uint32_t domid,
         LOG(ERROR, "hvm build set params failed");
         goto out;
     }
+    state->vuart_gfn = dom->vuart_gfn;
 
     rc = hvm_build_set_xs_values(gc, domid, dom, info);
     if (rc != 0) {
--
generated by git-patchbot for /home/xen/git/xen.git#master



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.