Patch series available in this git branch:
https://xenbits.xen.org/git-http/people/aperard/xen-unstable.git br.libxl-qemu-cmdline-probe-v1
Starting with QEMU 9.0, the option "-chroot", that we use for the
"dmrestrict" feature, is removed. We need to find out which to use
between "-chroot" and "-run-with chroot=dir".
Also, "-runas" is deprecated in QEMU 9.1 and will be remove in a future
release, it's replaced with "-run-with user=user".
To find out which command line option we can use, we'll spawn QEMU, and run the
QMP command "query-command-line-options".
Some example of running these patches:
with qemu-xen (8.0):
http://logs.test-lab.xenproject.org/osstest/logs/187352/
with QEMU (upstream, 9.1-rc3):
http://logs.test-lab.xenproject.org/osstest/logs/187353/
Anthony PERARD (3):
libxl: Implement QEMU command line probe
libxl: Probe QEMU for -run-with chroot=dir and use it
libxl: Probe QEMU for -run-with user=user and use it
tools/libs/light/libxl_dm.c | 297 +++++++++++++++++++++++++++---
tools/libs/light/libxl_internal.h | 7 +
2 files changed, 278 insertions(+), 26 deletions(-)
--
Anthony Perard | Vates XCP-ng Developer
XCP-ng & Xen Orchestra - Vates solutions
web: https://vates.tech