xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] libxl: add libxl__is_driver_domain function
@ 2017-12-14 14:14 Oleksandr Grytsov
  2017-12-14 14:14 ` Oleksandr Grytsov
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Oleksandr Grytsov @ 2017-12-14 14:14 UTC (permalink / raw)
  To: xen-devel; +Cc: ian.jackson, wei.liu2, Oleksandr Grytsov

From: Oleksandr Grytsov <oleksandr_grytsov@epam.com>

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,
                        ARRAY_SIZE(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(-)

-- 
2.7.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-10-02 16:30 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-14 14:14 [PATCH] libxl: add libxl__is_driver_domain function Oleksandr Grytsov
2017-12-14 14:14 ` Oleksandr Grytsov
2018-01-09 11:34 ` Oleksandr Grytsov
2018-02-05 11:02   ` Oleksandr Grytsov
2018-02-06 12:36 ` Wei Liu
2018-02-06 13:08   ` Oleksandr Grytsov
2018-02-13 12:06     ` Wei Liu
2018-02-13 13:32       ` Oleksandr Grytsov
2018-02-23 17:44         ` Wei Liu
2018-02-26 10:14           ` Oleksandr Grytsov
2019-10-02 16:30             ` [Xen-devel] " Oleksandr Grytsov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).