]> xenbits.xensource.com Git - xen.git/commitdiff
libxl: Provide better error message when qemu restrict user not found
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 14 May 2018 13:33:50 +0000 (14:33 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 6 Jul 2018 15:27:52 +0000 (16:27 +0100)
Add mention of LIBXL_QEMU_USER_RANGE_BASE, in case that is what the
user was intending.

Cc: Anthony Perard <anthony.perard@citrix.com>
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
tools/libxl/libxl_dm.c

index bad3ef5b679d85430ff964d376ad45535cbe95d5..bd187463ec964cf5cbbbca391194457271992c79 100644 (file)
@@ -1702,8 +1702,9 @@ static int libxl__build_device_model_args_new(libxl__gc *gc,
         }
 
         LOGD(ERROR, guest_domid,
-             "Could not find user %s%d or %s, cannot restrict",
-             LIBXL_QEMU_USER_BASE, guest_domid, LIBXL_QEMU_USER_SHARED);
+ "Could not find user %s%d or %s or range base pseudo-user %s, cannot restrict",
+             LIBXL_QEMU_USER_BASE, guest_domid, LIBXL_QEMU_USER_SHARED,
+             LIBXL_QEMU_USER_RANGE_BASE);
         return ERROR_INVAL;
 
 end_search: