libxl: Avoid advertising about device_model_user config option
PATCH v2 1/1 libxl: Avoid advertising about device_model_user config option
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.
---
Changes in V2:
- remove option from the man page
- add a comment in the IDL.
--- docs/man/xl.cfg.pod.5 | 7 ------- docs/misc/qemu-deprivilege.txt | 5 +++-- tools/libxl/libxl_dm.c | 2 +- tools/libxl/libxl_types.idl | 1 + 4 files changed, 5 insertions(+), 10 deletions(-)
docs/man/xl.cfg.pod.5 +0 -7
@@ -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
docs/misc/qemu-deprivilege.txt +3 -2
@@ -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.
tools/libxl/libxl_dm.c +1 -1
@@ -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:
tools/libxl/libxl_types.idl +1 -0
@@ -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
Signature · 7 lines
Anthony PERARD _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
Quoted 7 lines · Anthony PERARD
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 <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Anthony PERARD writes ("[PATCH v2] libxl: Avoid advertising about device_model_user config option"):
Quoted 5 lines
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.
LGTM
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel