Re: [Xen-devel] vsnd issue

2019-11-25 Thread Oleksandr Grytsov
lman > > %2 > > >>> > > Flistinfo%2Fxen-devel__%3B!K6dmGCEab4ueJg!iTeJON61Y2nUcGMQr_y7-27 > > bR_ > > >>> > > QlOG8gXqvRMaU8yy8nJuDhzWizylvl_6stD-ILOQ%24data=02%7C01%7 > > Cpeng. > > >>> > > fan%40nxp.com%7Ca

[Xen-devel] [PATCH v2 1/3] libxl: introduce new backend type VINPUT

2019-11-21 Thread Oleksandr Grytsov
From: Oleksandr Grytsov There are two kind of VKBD devices: with QEMU backend and user space PV backend. In current implementation they can't be distinguished as both use VKBD backend type. As result, user space PV KBD backend is started and stopped as QEMU backend. This commit adds new device

[Xen-devel] [PATCH v2 3/3] libxl: make default path to add/remove all PV devices

2019-11-21 Thread Oleksandr Grytsov
From: Oleksandr Grytsov Adding/removing device is handled for specific devices only: VBD, VIF, QDISK. This commit adds default case to handle adding/removing for all PV devices by default, except QDISK device, which requires special handling. If any other device is required a special handling

[Xen-devel] [PATCH v2 0/3] Remove backend xen store entry on domain destroy

2019-11-21 Thread Oleksandr Grytsov
From: Oleksandr Grytsov Changes since v1: * add commit to rename VKB backend type "linux" to "pv"; * add default case to handle adding/removing PV devices in add_device, remove_device functions (libxl_device.c); * add comment about removing num_vifs, num_vbds into commit

[Xen-devel] [PATCH v2 2/3] libxl: rename VKB backend type "linux" to "pv"

2019-11-21 Thread Oleksandr Grytsov
From: Oleksandr Grytsov There are two kind of VKB backends: QEMU and user space PV backend. For PV backend "linux" enum is used but this name is confused. Rename "linux" enum to "pv" as it better matches user space PV backend. Signed-off-by: Oleksandr Grytsov

Re: [Xen-devel] Status of 4.13

2019-11-21 Thread Oleksandr Grytsov
end type VINPUT > of which I am awaiting a respin from Oleksandr Grytsov (in the To). > > There is a new defect in the 4.13 API, where a particular enum has the > value `linux' for a non-Linux-specific protocol. I'm wanting to > change it and I think we have agreed a name chang

Re: [Xen-devel] [PATCH for-4.13 v1 1/2] libxl: introduce new backend type VINPUT

2019-11-19 Thread Oleksandr Grytsov
On Mon, Nov 18, 2019 at 7:55 PM Ian Jackson wrote: > > Oleksandr Grytsov writes ("[PATCH v1 1/2] libxl: introduce new backend type > VINPUT"): > > From: Oleksandr Grytsov > > > > There are two kind of VKBD devices: with QEMU backend and user space &

Re: [Xen-devel] [PATCH v1 1/2] libxl: introduce new backend type VINPUT

2019-11-18 Thread Oleksandr Grytsov
On Fri, Nov 15, 2019 at 9:43 PM Ian Jackson wrote: > > Oleksandr Grytsov writes ("Re: [PATCH v1 1/2] libxl: introduce new backend > type VINPUT"): > > 1. Move QEMU_BACKEND macro to libxl__device_type structure as function > > and let the device to decide it h

Re: [Xen-devel] [PATCH v1 1/2] libxl: introduce new backend type VINPUT

2019-11-04 Thread Oleksandr Grytsov
On Mon, Oct 28, 2019 at 4:06 PM Oleksandr Grytsov wrote: > > On Wed, Oct 16, 2019 at 4:26 PM Oleksandr Grytsov wrote: > > > > On Fri, Oct 11, 2019 at 8:04 PM Ian Jackson wrote: > > > > > > Oleksandr Grytsov writes ("Re: [PATCH v1 1/2] libxl:

[Xen-devel] [PATCH v1 0/1] libxl/gentypes: add range init to array elements in json parsing

2019-10-28 Thread Oleksandr Grytsov
From: Oleksandr Grytsov There are two old threads in which this issues was addresses ([1], [2]) but the root cause wasn't defined. The real root cause is that when libxl creates json file it doesn't put entries for fields with default value (which is correct). Then during parsing json back

[Xen-devel] [PATCH v1 1/1] libxl/gentypes: add range init to array elements in json parsing

2019-10-28 Thread Oleksandr Grytsov
From: Oleksandr Grytsov Add initialization of array elements in parse json function. Currently, array elements are initialized with calloc. Which means initialize all element fields with zero values. If entries are missed in json for such fields, it will be equal to zero instead of default

Re: [Xen-devel] [PATCH v1 1/2] libxl: introduce new backend type VINPUT

2019-10-28 Thread Oleksandr Grytsov
On Wed, Oct 16, 2019 at 4:26 PM Oleksandr Grytsov wrote: > > On Fri, Oct 11, 2019 at 8:04 PM Ian Jackson wrote: > > > > Oleksandr Grytsov writes ("Re: [PATCH v1 1/2] libxl: introduce new backend > > type VINPUT"): > > > On Fri, Oct 11, 2019 at 5:58 PM

Re: [Xen-devel] [XEN PATCH for-4.13 v1] Reset iomem's gfn to LIBXL_INVALID_GFN on reboot

2019-10-24 Thread Oleksandr Grytsov
On Tue, Oct 22, 2019 at 9:14 PM Julien Grall wrote: > > Hi Oleksandr, > > Apologies for the late answer. > > On 16/10/2019 14:09, Oleksandr Grytsov wrote: > > On Mon, Oct 14, 2019 at 12:28 PM Julien Grall wrote: > > Thanks to point me out for this old thread. I com

Re: [Xen-devel] [XEN PATCH v1] libxl: Add DTB compatible list to config file

2019-10-16 Thread Oleksandr Grytsov
On Wed, Oct 16, 2019 at 5:12 PM Julien Grall wrote: > > Hi Oleksandr, > > On 16/10/2019 15:04, Oleksandr Grytsov wrote: > > On Fri, Oct 11, 2019 at 8:21 PM Stefano Stabellini > > wrote: > >> > >> On Fri, 11 Oct 2019, Julien Grall wrote: > >>

Re: [Xen-devel] [XEN PATCH v1] libxl: Add DTB compatible list to config file

2019-10-16 Thread Oleksandr Grytsov
On Fri, Oct 11, 2019 at 8:21 PM Stefano Stabellini wrote: > > On Fri, 11 Oct 2019, Julien Grall wrote: > > Hi, > > > > On 11/10/2019 16:23, Ian Jackson wrote: > > > Oleksandr Grytsov writes ("[PATCH v1] libxl: Add DTB compatible list to > > >

Re: [Xen-devel] [PATCH v1 1/2] libxl: introduce new backend type VINPUT

2019-10-16 Thread Oleksandr Grytsov
On Fri, Oct 11, 2019 at 8:04 PM Ian Jackson wrote: > > Oleksandr Grytsov writes ("Re: [PATCH v1 1/2] libxl: introduce new backend > type VINPUT"): > > On Fri, Oct 11, 2019 at 5:58 PM Ian Jackson wrote: > > > I think it was a48e00f14a2d "libxl: add

Re: [Xen-devel] [XEN PATCH for-4.13 v1] Reset iomem's gfn to LIBXL_INVALID_GFN on reboot

2019-10-16 Thread Oleksandr Grytsov
On Mon, Oct 14, 2019 at 12:28 PM Julien Grall wrote: > > Hi Ian, > > On 11/10/2019 16:14, Ian Jackson wrote: > > Oleksandr Grytsov writes ("[PATCH v1] Reset iomem's gfn to > > LIBXL_INVALID_GFN on reboot"): > >> During domain reboot its configuration

Re: [Xen-devel] [PATCH v1 2/2] libxl: add removing XS backend path for PV devices on domain destroy

2019-10-16 Thread Oleksandr Grytsov
ange? > > > > No, I don't think so. Those variables just tell us when the thing is > > torn down but Oleksandr's code is able to use the devices slist itself > > for that. Please do check to see if you agree. > > Yes, that's fine. I don't think those changes are wrong, I

Re: [Xen-devel] [PATCH v1 1/2] libxl: introduce new backend type VINPUT

2019-10-11 Thread Oleksandr Grytsov
On Fri, Oct 11, 2019 at 5:58 PM Ian Jackson wrote: > > Oleksandr Grytsov writes ("[PATCH v1 1/2] libxl: introduce new backend type > VINPUT"): > > From: Oleksandr Grytsov > > > > There are two kind of VKBD devices: with QEMU backend and user space &

[Xen-devel] [PATCH v1] libxl: Add DTB compatible list to config file

2019-10-10 Thread Oleksandr Grytsov
From: Oleksandr Grytsov Some platforms need more compatible property values in device tree root node in addition to "xen,xenvm-%d.%d" and "xen,xenvm" values that are given by Xen by default. Specify in domain configuration file which values should be added by providing &

[Xen-devel] [PATCH v1] Reset iomem's gfn to LIBXL_INVALID_GFN on reboot

2019-10-10 Thread Oleksandr Grytsov
From: Oleksandr Andrushchenko During domain reboot its configuration is partially reused to re-create a new domain, but iomem's GFN field for the iomem is only restored for those memory ranges, which are configured in form of [IOMEM_START,NUM_PAGES[@GFN], but not for those in form of

[Xen-devel] [PATCH v1 2/2] libxl: add removing XS backend path for PV devices on domain destroy

2019-10-08 Thread Oleksandr Grytsov
From: Oleksandr Grytsov Currently backend path is remove for specific devices: VBD, VIF, QDISK. This commit adds removing backend path for: VDISPL, VSND, VINPUT. Signed-off-by: Oleksandr Grytsov --- tools/libxl/libxl_device.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions

[Xen-devel] [PATCH v1 1/2] libxl: introduce new backend type VINPUT

2019-10-08 Thread Oleksandr Grytsov
From: Oleksandr Grytsov There are two kind of VKBD devices: with QEMU backend and user space backend. In current implementation they can't be distinguished as both use VKBD backend type. As result, user space KBD backend is started and stopped as QEMU backend. This commit adds new device kind

[Xen-devel] [PATCH v1 0/2] Remove backend xen store entry on domain destroy

2019-10-08 Thread Oleksandr Grytsov
From: Oleksandr Grytsov We have added VKBD device with user space PV backend. But libxl can't differentiate domain kind for this device. As result, it performs QEMU procedure for adding and removing VKB device with user space backend. To fix this issue, new device kind VINPUT is introduced

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

2019-10-02 Thread Oleksandr Grytsov
On Mon, Feb 26, 2018 at 12:14 PM Oleksandr Grytsov wrote: > > On Fri, Feb 23, 2018 at 7:44 PM, Wei Liu wrote: >> >> On Tue, Feb 13, 2018 at 03:32:04PM +0200, Oleksandr Grytsov wrote: >> > On Tue, Feb 13, 2018 at 2:06 PM, Wei Liu wrote: >> > >> &g

[Xen-devel] [PATCH v3 2/7] libxl: add backend type and id to vkb

2018-07-17 Thread Oleksandr Grytsov
From: Oleksandr Grytsov New field backend_type is added to vkb device in order to have QEMU and user space backend simultaneously. Each vkb backend shall read appropriate XS entry and service only own frontends. Id is a string field which used by the backend to indentify the frontend. Signed

[Xen-devel] [PATCH v3 1/7] libxl: move vkb device to libxl_vkb.c

2018-07-17 Thread Oleksandr Grytsov
From: Oleksandr Grytsov Logically it is better to move vkb to separate file as vkb device used not only by vfb and console. Signed-off-by: Oleksandr Grytsov Acked-by: Wei Liu --- tools/libxl/Makefile| 2 +- tools/libxl/libxl_console.c | 53 - tools

[Xen-devel] [PATCH v3 3/7] libxl: vkb add list and info functions

2018-07-17 Thread Oleksandr Grytsov
From: Oleksandr Grytsov Signed-off-by: Oleksandr Grytsov Acked-by: Wei Liu --- tools/libxl/libxl.h | 10 +++ tools/libxl/libxl_types.idl | 11 tools/libxl/libxl_utils.h | 3 + tools/libxl/libxl_vkb.c | 127 +++- 4 files changed, 149

[Xen-devel] [PATCH v3 5/7] docs: add vkb device to xl.cfg and xl

2018-07-17 Thread Oleksandr Grytsov
From: Oleksandr Grytsov Signed-off-by: Oleksandr Grytsov Acked-by: Wei Liu --- docs/man/xl.cfg.pod.5.in | 24 docs/man/xl.pod.1.in | 22 ++ 2 files changed, 46 insertions(+) diff --git a/docs/man/xl.cfg.pod.5.in b/docs/man/xl.cfg.pod.5

[Xen-devel] [PATCH v3 7/7] libxl: add LIBXL_HAVE_EXTENDED_VKB define

2018-07-17 Thread Oleksandr Grytsov
From: Oleksandr Grytsov LIBXL_HAVE_EXTENDED_VKB define indicates that libxl_device_vkb structure has extended fields. Signed-off-by: Oleksandr Grytsov --- tools/libxl/libxl.h | 16 1 file changed, 16 insertions(+) diff --git a/tools/libxl/libxl.h b/tools/libxl/libxl.h index

[Xen-devel] [PATCH v3 6/7] libxl: vkb add extended parameters

2018-07-17 Thread Oleksandr Grytsov
From: Oleksandr Grytsov Add parsing and adding to xen store following extended parameters: * feature-disable-keyboard * feature-disable-pointer * feature-abs-pointer * feature-multi-touch * feature-raw-pointer * width * height * multi-touch-width * multi-touch-height * multi-touch-num-contacts

[Xen-devel] [PATCH v3 4/7] xl: add vkb config parser and CLI

2018-07-17 Thread Oleksandr Grytsov
From: Oleksandr Grytsov Signed-off-by: Oleksandr Grytsov Acked-by: Wei Liu --- tools/xl/Makefile | 2 +- tools/xl/xl.h | 3 + tools/xl/xl_cmdtable.c | 16 + tools/xl/xl_parse.c| 76 - tools/xl/xl_parse.h| 1 + tools/xl/xl_vkb.c | 147

[Xen-devel] [PATCH v3 0/7] libxl: create standalone vkb device

2018-07-17 Thread Oleksandr Grytsov
From: Oleksandr Grytsov Changes since v2: * fix indentation in libxl__device_vkb_dm_needed * add LIBXL_HAVE_EXTENDED_VKB define to indicates that libxl__device_vkb has extended fields Oleksandr Grytsov (7): libxl: move vkb device to libxl_vkb.c libxl: add backend type and id to vkb

Re: [Xen-devel] [PATCH v2 0/6] libxl: create standalone vkb device

2018-07-02 Thread Oleksandr Grytsov
On Tue, Jun 12, 2018 at 4:31 PM, Oleksandr Grytsov wrote: > From: Oleksandr Grytsov > > Changes since initial: > * id field is changed to unique_id in libxl_device_vkb to be comply >with protocol; > * use XENKBD_FIELD_... defines from protocol to address xen store entri

Re: [Xen-devel] [PATCH 0/1] libxl/xl: rename id to unique-id in vdispl xen store

2018-07-02 Thread Oleksandr Grytsov
On Tue, Jun 12, 2018 at 6:40 PM, Oleksandr Grytsov wrote: > From: Oleksandr Grytsov > > As new version of the display protocol introduces unique-id variable, it > needs > to be changed in libxl/xl. This patchset renames it in the xen store and in > display device struct

Re: [Xen-devel] [PATCH v3 0/5] libxl: add PV sound device

2018-07-02 Thread Oleksandr Grytsov
On Fri, Jun 15, 2018 at 1:15 PM, Oleksandr Grytsov wrote: > From: Oleksandr Grytsov > > This patch set adds PV sound device support to xl.cfg and xl. > See sndif.h for protocol implementation details. > > Changes since v2: > * address comments > * ren

[Xen-devel] [PATCH v3 1/5] libxl: add PV sound device

2018-06-15 Thread Oleksandr Grytsov
From: Oleksandr Grytsov Add PV sound device described in sndif.h Signed-off-by: Oleksandr Grytsov Acked-by: Wei Liu --- tools/libxl/Makefile | 2 +- tools/libxl/libxl.h | 14 ++ tools/libxl/libxl_create.c | 1 + tools/libxl/libxl_internal.h

[Xen-devel] [PATCH v3 5/5] docs: add PV sound device config

2018-06-15 Thread Oleksandr Grytsov
From: Oleksandr Grytsov Update documentation with virtual sound device Signed-off-by: Oleksandr Grytsov Acked-by: Wei Liu --- docs/man/xl.cfg.pod.5.in | 149 +++ docs/man/xl.pod.1.in | 30 2 files changed, 179 insertions(+) diff --git a/docs

[Xen-devel] [PATCH v3 4/5] xl: add vsnd CLI commands

2018-06-15 Thread Oleksandr Grytsov
From: Oleksandr Grytsov Add CLI commands to attach, detach and list virtual sound devices Signed-off-by: Oleksandr Grytsov Acked-by: Wei Liu --- tools/xl/Makefile | 2 +- tools/xl/xl.h | 3 + tools/xl/xl_cmdtable.c | 15 +++ tools/xl/xl_vsnd.c | 206

[Xen-devel] [PATCH v3 3/5] xl: add PV sound condif parser

2018-06-15 Thread Oleksandr Grytsov
From: Oleksandr Grytsov Add config parser for virtual sound devices Signed-off-by: Oleksandr Grytsov Acked-by: Wei Liu --- tools/xl/xl_parse.c | 246 tools/xl/xl_parse.h | 1 + 2 files changed, 247 insertions(+) diff --git a/tools/xl/xl_parse.c

[Xen-devel] [PATCH v3 0/5] libxl: add PV sound device

2018-06-15 Thread Oleksandr Grytsov
From: Oleksandr Grytsov This patch set adds PV sound device support to xl.cfg and xl. See sndif.h for protocol implementation details. Changes since v2: * address comments * rename libxl_vsnd_stream.id -> libxl_vsnd_stream.unique_id * use XENSND_FIELD_... defines in xl_parse.c and xl_vsn

[Xen-devel] [PATCH 1/1] libxl/xl: rename id to unique-id in vdispl xen store

2018-06-12 Thread Oleksandr Grytsov
From: Oleksandr Grytsov In the display protocol connector's id is named as unique-id. This patch renames it in the libxl/xl code and uses XENDISPL_FIELD... definitions from the protocol header. Signed-off-by: Oleksandr Grytsov --- docs/man/xl.cfg.pod.5.in| 2 +- tools/libxl

[Xen-devel] [PATCH v2 6/6] libxl: vkb add extended parameters

2018-06-12 Thread Oleksandr Grytsov
From: Oleksandr Grytsov Add parsing and adding to xen store following extended parameters: * feature-disable-keyboard * feature-disable-pointer * feature-abs-pointer * feature-multi-touch * feature-raw-pointer * width * height * multi-touch-width * multi-touch-height * multi-touch-num-contacts

[Xen-devel] [PATCH v2 3/6] libxl: vkb add list and info functions

2018-06-12 Thread Oleksandr Grytsov
From: Oleksandr Grytsov Signed-off-by: Oleksandr Grytsov Acked-by: Wei Liu --- tools/libxl/libxl.h | 10 +++ tools/libxl/libxl_types.idl | 11 tools/libxl/libxl_utils.h | 3 + tools/libxl/libxl_vkb.c | 127 +++- 4 files changed, 149

[Xen-devel] [PATCH v2 0/6] libxl: create standalone vkb device

2018-06-12 Thread Oleksandr Grytsov
From: Oleksandr Grytsov Changes since initial: * id field is changed to unique_id in libxl_device_vkb to be comply with protocol; * use XENKBD_FIELD_... defines from protocol to address xen store entries and fields in domain config file; * add support of new protocol parameters

[Xen-devel] [PATCH v2 4/6] xl: add vkb config parser and CLI

2018-06-12 Thread Oleksandr Grytsov
From: Oleksandr Grytsov Signed-off-by: Oleksandr Grytsov Acked-by: Wei Liu --- tools/xl/Makefile | 2 +- tools/xl/xl.h | 3 + tools/xl/xl_cmdtable.c | 16 + tools/xl/xl_parse.c| 76 - tools/xl/xl_parse.h| 2 +- tools/xl/xl_vkb.c | 147

[Xen-devel] [PATCH v2 1/6] libxl: move vkb device to libxl_vkb.c

2018-06-12 Thread Oleksandr Grytsov
From: Oleksandr Grytsov Logically it is better to move vkb to separate file as vkb device used not only by vfb and console. Signed-off-by: Oleksandr Grytsov Acked-by: Wei Liu --- tools/libxl/Makefile| 2 +- tools/libxl/libxl_console.c | 53 - tools

[Xen-devel] [PATCH v2 5/6] docs: add vkb device to xl.cfg and xl

2018-06-12 Thread Oleksandr Grytsov
From: Oleksandr Grytsov Signed-off-by: Oleksandr Grytsov Acked-by: Wei Liu --- docs/man/xl.cfg.pod.5.in | 24 docs/man/xl.pod.1.in | 22 ++ 2 files changed, 46 insertions(+) diff --git a/docs/man/xl.cfg.pod.5.in b/docs/man/xl.cfg.pod.5

[Xen-devel] [PATCH v2 2/6] libxl: add backend type and id to vkb

2018-06-12 Thread Oleksandr Grytsov
From: Oleksandr Grytsov New field backend_type is added to vkb device in order to have QEMU and user space backend simultaneously. Each vkb backend shall read appropriate XS entry and service only own frontends. Id is a string field which used by the backend to indentify the frontend. Signed

[Xen-devel] [PATCH v2 3/5] xl: add PV sound condif parser

2018-05-18 Thread Oleksandr Grytsov
From: Oleksandr Grytsov <oleksandr_gryt...@epam.com> Add config parser for virtual sound devices Signed-off-by: Oleksandr Grytsov <oleksandr_gryt...@epam.com> Acked-by: Wei Liu <wei.l...@citrix.com> --- tools/xl/xl_parse.c | 246 t

[Xen-devel] [PATCH v2 4/5] xl: add vsnd CLI commands

2018-05-18 Thread Oleksandr Grytsov
From: Oleksandr Grytsov <oleksandr_gryt...@epam.com> Add CLI commands to attach, detach and list virtual sound devices Signed-off-by: Oleksandr Grytsov <oleksandr_gryt...@epam.com> Acked-by: Wei Liu <wei.l...@citrix.com> --- tools/xl/Makefile | 2 +- tools/xl/xl.h

[Xen-devel] [PATCH v2 2/5] libxl: add vsnd list and info

2018-05-18 Thread Oleksandr Grytsov
From: Oleksandr Grytsov <oleksandr_gryt...@epam.com> Add getting vsnd list amd info API Signed-off-by: Oleksandr Grytsov <oleksandr_gryt...@epam.com> --- tools/libxl/libxl.h | 10 + tools/libxl/libxl_types.idl | 19 ++ tools/libxl/libxl_utils.h | 3 + tools/libxl/

[Xen-devel] [PATCH v2 5/5] docs: add PV sound device config

2018-05-18 Thread Oleksandr Grytsov
From: Oleksandr Grytsov <oleksandr_gryt...@epam.com> Update documentation with virtual sound device Signed-off-by: Oleksandr Grytsov <oleksandr_gryt...@epam.com> Acked-by: Wei Liu <wei.l...@citrix.com> --- docs/man/xl.cfg.pod.5.in | 149 +++

[Xen-devel] [PATCH v2 1/5] libxl: add PV sound device

2018-05-18 Thread Oleksandr Grytsov
From: Oleksandr Grytsov <oleksandr_gryt...@epam.com> Add PV sound device described in sndif.h Signed-off-by: Oleksandr Grytsov <oleksandr_gryt...@epam.com> Acked-by: Wei Liu <wei.l...@citrix.com> --- tools/libxl/Makefile | 2 +- tools/libxl/libxl.h

Re: [Xen-devel] [PATCH] tools/xl: fix uninitialized variable in xl_vdispl

2018-03-13 Thread Oleksandr Grytsov
gt; > > Signed-off-by: Doug Goldstein <car...@cardoe.com> > > --- > > CC: Oleksandr Grytsov <oleksandr_gryt...@epam.com> > > --- > > tools/xl/xl_vdispl.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > Please trim your Cc list -

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

2018-02-26 Thread Oleksandr Grytsov
On Fri, Feb 23, 2018 at 7:44 PM, Wei Liu <wei.l...@citrix.com> wrote: > On Tue, Feb 13, 2018 at 03:32:04PM +0200, Oleksandr Grytsov wrote: > > On Tue, Feb 13, 2018 at 2:06 PM, Wei Liu <wei.l...@citrix.com> wrote: > > > > > On Tue, Feb 06, 2018 at 03:08

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

2018-02-13 Thread Oleksandr Grytsov
On Tue, Feb 13, 2018 at 2:06 PM, Wei Liu <wei.l...@citrix.com> wrote: > On Tue, Feb 06, 2018 at 03:08:45PM +0200, Oleksandr Grytsov wrote: > > On Tue, Feb 6, 2018 at 2:36 PM, Wei Liu <wei.l...@citrix.com> wrote: > > > > > On Thu, Dec 14, 2017 at 04:14

Re: [Xen-devel] [PATCH v1 2/5] libxl: add vsnd list and info

2018-02-08 Thread Oleksandr Grytsov
On Tue, Feb 6, 2018 at 4:43 PM, Wei Liu <wei.l...@citrix.com> wrote: > On Wed, Nov 01, 2017 at 05:04:44PM +0200, Oleksandr Grytsov wrote: > > From: Oleksandr Grytsov <oleksandr_gryt...@epam.com> > > > > Add getting vsnd list amd info API > > > > Sig

Re: [Xen-devel] [PATCH v1 3/6] libxl: add backend type and id to vkb

2018-02-06 Thread Oleksandr Grytsov
On Tue, Feb 6, 2018 at 4:25 PM, Wei Liu <wei.l...@citrix.com> wrote: > On Wed, Nov 01, 2017 at 05:05:04PM +0200, Oleksandr Grytsov wrote: > > From: Oleksandr Grytsov <oleksandr_gryt...@epam.com> > > > > New field backend_type is added to vkb device > > in or

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

2018-02-06 Thread Oleksandr Grytsov
On Tue, Feb 6, 2018 at 2:36 PM, Wei Liu <wei.l...@citrix.com> wrote: > On Thu, Dec 14, 2017 at 04:14:12PM +0200, Oleksandr Grytsov wrote: > > From: Oleksandr Grytsov <oleksandr_gryt...@epam.com> > > > > We have following arm-based setup: > > > &

Re: [Xen-devel] [PATCH v1 0/5] libxl: add PV sound device

2018-02-05 Thread Oleksandr Grytsov
On Tue, Jan 9, 2018 at 1:30 PM, Oleksandr Grytsov <al1...@gmail.com> wrote: > On Mon, Nov 20, 2017 at 3:44 PM, Oleksandr Grytsov <al1...@gmail.com> > wrote: > >> On Tue, Nov 14, 2017 at 2:38 PM, Oleksandr Grytsov <al1...@gmail.com> >> wrote: >>

Re: [Xen-devel] [PATCH v1 0/6] libxl: create standalone vkb device

2018-02-05 Thread Oleksandr Grytsov
On Tue, Jan 9, 2018 at 1:31 PM, Oleksandr Grytsov <al1...@gmail.com> wrote: > > > On Mon, Nov 20, 2017 at 3:44 PM, Oleksandr Grytsov <al1...@gmail.com> > wrote: > >> On Tue, Nov 14, 2017 at 2:39 PM, Oleksandr Grytsov <al1...@gmail.com> >> wrote: >

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

2018-02-05 Thread Oleksandr Grytsov
On Tue, Jan 9, 2018 at 1:34 PM, Oleksandr Grytsov <al1...@gmail.com> wrote: > On Thu, Dec 14, 2017 at 4:14 PM, Oleksandr Grytsov <al1...@gmail.com> > wrote: > >> From: Oleksandr Grytsov <oleksandr_gryt...@epam.com> >> >> We have following arm-bas

[Xen-devel] [PATCH v1 2/4] libxl: use libxl__device_kind in LIBXL_DEFINE_UPDATE_DEVID

2018-01-24 Thread Oleksandr Grytsov
From: Oleksandr Grytsov <oleksandr_gryt...@epam.com> Use libxl__..._devtype.type to update device id. Signed-off-by: Oleksandr Grytsov <oleksandr_gryt...@epam.com> Acked-by: Wei Liu <wei.l...@citrix.com> --- tools/libxl/libxl_9pfs.c | 2 +- tools/libxl/libxl_console.c

[Xen-devel] [PATCH v1 1/4] libxl: use libxl__device_kind to get device XS entry

2018-01-24 Thread Oleksandr Grytsov
From: Oleksandr Grytsov <oleksandr_gryt...@epam.com> On adding to XS name of device is taken from libxl__device_kind enum. On getting device from XS the name is hardcoded. It leads to potential mistmatch errors. The patch is using libxl__device_kind everywere to have one source of devic

[Xen-devel] [PATCH v1 4/4] libxl: move ibxl_devid_to_device_... to LIBXL_DEFINE_DEVID_TO_DEVICE

2018-01-24 Thread Oleksandr Grytsov
From: Oleksandr Grytsov <oleksandr_gryt...@epam.com> Signed-off-by: Oleksandr Grytsov <oleksandr_gryt...@epam.com> Acked-by: Wei Liu <wei.l...@citrix.com> --- tools/libxl/libxl_internal.h | 38 ++ tools/libxl/libxl_nic.c | 22 +--

[Xen-devel] [PATCH v1 3/4] libxl: move libxl__device_from_ to LIBXL_DEFINE_DEVICE_FROM_TYPE

2018-01-24 Thread Oleksandr Grytsov
From: Oleksandr Grytsov <oleksandr_gryt...@epam.com> LIBXL_DEFINE_DEVICE_FROM_TYPE uses libxl__..._devtype.type to be assigned as device and backend type. Signed-off-by: Oleksandr Grytsov <oleksandr_gryt...@epam.com> Acked-by: Wei Liu <wei.l...@citrix.com> --- tools/libxl/lib

[Xen-devel] [PATCH v1 0/4] libxl: use libxl__device_kind string to access device

2018-01-24 Thread Oleksandr Grytsov
From: Oleksandr Grytsov <oleksandr_gryt...@epam.com> Changes since initial version: * add libxl__domain_device_..._path functions to get backend, frontend, libxl device path's from device type, domain id and device id * rebase Oleksandr Grytsov (4): libxl: use libxl__device_kind

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

2018-01-09 Thread Oleksandr Grytsov
On Thu, Dec 14, 2017 at 4:14 PM, Oleksandr Grytsov <al1...@gmail.com> wrote: > From: Oleksandr Grytsov <oleksandr_gryt...@epam.com> > > We have following arm-based setup: > > - Dom0 with xen and xen tools; > - Dom1 with device backends (but it is not the driver

Re: [Xen-devel] [PATCH v1 0/6] libxl: create standalone vkb device

2018-01-09 Thread Oleksandr Grytsov
On Mon, Nov 20, 2017 at 3:44 PM, Oleksandr Grytsov <al1...@gmail.com> wrote: > On Tue, Nov 14, 2017 at 2:39 PM, Oleksandr Grytsov <al1...@gmail.com> > wrote: > >> On Wed, Nov 1, 2017 at 5:05 PM, Oleksandr Grytsov <al1...@gmail.com> >> wrote: >>

Re: [Xen-devel] [PATCH v1 0/5] libxl: add PV sound device

2018-01-09 Thread Oleksandr Grytsov
On Mon, Nov 20, 2017 at 3:44 PM, Oleksandr Grytsov <al1...@gmail.com> wrote: > On Tue, Nov 14, 2017 at 2:38 PM, Oleksandr Grytsov <al1...@gmail.com> > wrote: > >> On Wed, Nov 1, 2017 at 5:04 PM, Oleksandr Grytsov <al1...@gmail.com> >> wrote: >>

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

2017-12-14 Thread Oleksandr Grytsov
From: Oleksandr Grytsov <oleksandr_gryt...@epam.com> libxl__is_driver_domain determines the driver domain by presence of libxl entry in the domain xen store. Use this function on device destroy to properly manage cleanup in case backends are located on domain with non zero id. Sign

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

2017-12-14 Thread Oleksandr Grytsov
From: Oleksandr Grytsov <oleksandr_gryt...@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