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

[Xen-changelog] [xen stable-4.10] -xen-attach is needed for pvh boot with qemu-xen



commit 6f1979c8e4184f1f2b24b860e30d3b037b2e7f05
Author:     Michael Young <m.a.young@xxxxxxxxxxxx>
AuthorDate: Mon Jan 15 21:23:20 2018 +0000
Commit:     Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
CommitDate: Tue Jan 16 16:20:44 2018 +0000

    -xen-attach is needed for pvh boot with qemu-xen
    
    Currently the boot of a pvh guest using the qemu-xen device model fails
    with the error
    xen emulation not implemented (yet)
    in the qemu-dm log file. This patch adds the missing -xen-attach
    argument.
    
    V2: Use  b_info->type != LIBXL_DOMAIN_TYPE_HVM    instead of
            (b_info->type == LIBXL_DOMAIN_TYPE_PV) ||
            (b_info->type == LIBXL_DOMAIN_TYPE_PVH)
    as recommended by Roger Pau Monné.
    
    Signed-off-by: Michael Young <m.a.young@xxxxxxxxxxxx>
    Reviewed-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
    Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
 tools/libxl/libxl_dm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c
index a2ea95a9be..a3cddce8b7 100644
--- a/tools/libxl/libxl_dm.c
+++ b/tools/libxl/libxl_dm.c
@@ -1021,7 +1021,7 @@ static int libxl__build_device_model_args_new(libxl__gc 
*gc,
      */
     flexarray_append(dm_args, "-no-user-config");
 
-    if (b_info->type == LIBXL_DOMAIN_TYPE_PV) {
+    if (b_info->type != LIBXL_DOMAIN_TYPE_HVM) {
         flexarray_append(dm_args, "-xen-attach");
     }
 
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.10

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

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