[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] libxl: add libxl__is_driver_domain function

On Tue, Jan 9, 2018 at 1:34 PM, Oleksandr Grytsov <al1img@xxxxxxxxx> wrote:
On Thu, Dec 14, 2017 at 4:14 PM, Oleksandr Grytsov <al1img@xxxxxxxxx> wrote:
From: Oleksandr Grytsov <oleksandr_grytsov@xxxxxxxx>

We have following arm-based setup:

- Dom0 with xen and xen tools;
- Dom1 with device backends (but it is not the driver domain);
- Dom2 with device frontend;

On Dom2 destroying we have timeout error. Because xl treats our
Dom1 as driver domain and waits for backend path to be cleared
by the driver domain which is not our case.

According to libxl__domain_make in case of driver domain it has
"libxl" xen store entry:

    if (libxl_defbool_val(info->driver_domain)) {
         * Create a local "libxl" directory for each guest, since we might want
         * to use libxl from inside the guest
        libxl__xs_mknod(gc, t, GCSPRINTF("%s/libxl", dom_path), rwperm,

This patch introduces libxl__is_driver_domain which determines the driver
domain by checking if "libxl" entry is present and uses this function on
device destroy to check by whom domain path should be cleaned up (libxl
or the driver domain).

Oleksandr Grytsov (1):
  libxl: add libxl__is_driver_domain function

 tools/libxl/libxl_device.c   | 17 ++++++++++-------
 tools/libxl/libxl_internal.c | 16 ++++++++++++++++
 tools/libxl/libxl_internal.h |  4 ++++
 3 files changed, 30 insertions(+), 7 deletions(-)


ping and update

There is run_hotplug_scripts parameter in xl.cfg. I guess it is related to this issue. But looking
through the code I see that this parameter is not used. Could anyone provide more info about
this parameter?

Best Regards,
Oleksandr Grytsov.


Best Regards,
Oleksandr Grytsov.
Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.