]> xenbits.xensource.com Git - xen.git/commitdiff
libxl: Avoid advertising about device_model_user config option
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 24 May 2016 14:45:36 +0000 (15:45 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 24 May 2016 15:26:26 +0000 (16:26 +0100)
Running QEMU as non-root user is not ready yet, so replace the warning
with a debug message and remove the option from the man page.

Also improve the doc to include more potential issue with running QEMU
as non-root.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
docs/man/xl.cfg.pod.5
docs/misc/qemu-deprivilege.txt
tools/libxl/libxl_dm.c
tools/libxl/libxl_types.idl

index a4cc1b3b3cfca2c10c04ec427fd84dac5027d767..4a8bf511998319fcbc071d168725a3ab9a3e78ae 100644 (file)
@@ -1949,13 +1949,6 @@ Pass additional arbitrary options on the device-model command line for
 an HVM device model only. Each element in the list is passed as an
 option to the device-model.
 
-=item B<device_model_user="username">
-
-Run the device model as user "username", instead of
-xen-qemudepriv-domid$domid or xen-qemudepriv-shared or root.
-Please note that running QEMU as non-root causes migration and PCI
-passthrough not to work properly.
-
 =back
 
 =head2 Keymaps
index 879a98eee615e398c11ce69c099351727e9b3479..58b86a39083d73b64148ae879357f90d7f1186b7 100644 (file)
@@ -31,5 +31,6 @@ adduser --no-create-home --system xen-qemuuser-shared
 As a last resort, libxl will start QEMU as root.
 
 
-Please note that running QEMU as non-root causes migration and PCI
-passthrough not to work properly.
+Please note that running QEMU as non-root causes several features like
+migration and PCI passthrough to not work properly and may prevent the guest
+from booting.
index 65dceeeb3bf57abf21750e18015684be45ace191..6bbc7c34f1fdc2cf529aa9399e3c046b2218808d 100644 (file)
@@ -1482,7 +1482,7 @@ static int libxl__build_device_model_args_new(libxl__gc *gc,
         }
 
         user = NULL;
-        LOG(WARN, "Could not find user %s, starting QEMU as root",
+        LOG(DEBUG, "Could not find user %s, starting QEMU as root",
             LIBXL_QEMU_USER_SHARED);
 
 end_search:
index 9840f3bcd75a082b198fcb9e4f68c05d5d66b7da..ef614be474ce4a842edd3c121831caa7111ef60c 100644 (file)
@@ -468,6 +468,7 @@ libxl_domain_build_info = Struct("domain_build_info",[
     ("device_model",     string),
     ("device_model_ssidref", uint32),
     ("device_model_ssid_label", string),
+    # device_model_user is not ready for use yet
     ("device_model_user", string),
 
     # extra parameters pass directly to qemu, NULL terminated