[xen staging] libxl: Provide better error message when qemu restrict user not found

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen staging] libxl: Provide better error message when qemu restrict user not found

patchbot
commit bef007617e73d1fe7557a51765d37ee0e4b00e8d
Author:     Ian Jackson <[hidden email]>
AuthorDate: Mon May 14 14:33:50 2018 +0100
Commit:     Ian Jackson <[hidden email]>
CommitDate: Fri Jul 6 16:27:52 2018 +0100

    libxl: Provide better error message when qemu restrict user not found
   
    Add mention of LIBXL_QEMU_USER_RANGE_BASE, in case that is what the
    user was intending.
   
    Cc: Anthony Perard <[hidden email]>
    Signed-off-by: Ian Jackson <[hidden email]>
    Acked-by: Wei Liu <[hidden email]>
    Reviewed-by: Roger Pau Monné <[hidden email]>
---
 tools/libxl/libxl_dm.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c
index bad3ef5b67..bd187463ec 100644
--- a/tools/libxl/libxl_dm.c
+++ b/tools/libxl/libxl_dm.c
@@ -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:
--
generated by git-patchbot for /home/xen/git/xen.git#staging


_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog