Re: [Xen-devel] [RFC v1] ALSA: xen-front: Add Xen para-virtualized frontend driver

2017-11-17 Thread Oleksandr Andrushchenko
ping On 11/02/2017 03:11 PM, Oleksandr Andrushchenko wrote: Hi, all! Foreword This RFC is aimed to introduce support of para-virtualized sound frontend driver for Xen [1] and gather opinions from the relevant communities (ALSA, Xen). It implements the protocol from [2

[Xen-devel] [RFC v1] ALSA: xen-front: Add Xen para-virtualized frontend driver

2017-11-02 Thread Oleksandr Andrushchenko
Hi, all! Foreword This RFC is aimed to introduce support of para-virtualized sound frontend driver for Xen [1] and gather opinions from the relevant communities (ALSA, Xen). It implements the protocol from [2] with the following limitations:   - mute/unmute is not supported   - get/set

Re: [Xen-devel] [RFC] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-11-02 Thread Oleksandr Andrushchenko
On 11/02/2017 11:44 AM, Takashi Sakamoto wrote: On Oct 30 2017 15:33, Oleksandr Andrushchenko wrote: This is an attempt to summarize previous discussions on Xen para-virtual sound driver. A first attempt has been made to upstream the driver [1] which brought number of fundamental questions

[Xen-devel] [RFC] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-10-30 Thread Oleksandr Andrushchenko
Hi, all! This is an attempt to summarize previous discussions on Xen para-virtual sound driver. A first attempt has been made to upstream the driver [1] which brought number of fundamental questions, one of the biggest ones was that the frontend driver has no means to synchronize its period

Re: [Xen-devel] [alsa-devel] [PATCH RESEND1 00/12] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-10-13 Thread Oleksandr Andrushchenko
ping On 10/04/2017 09:50 AM, Oleksandr Andrushchenko wrote: gentle reminder On 09/26/2017 02:35 PM, Oleksandr Andrushchenko wrote: Clemens, Sakamoto-san, could you please review the below if you by chance have a minute? Thank you, Oleksandr On 09/19/2017 11:57 AM, Oleksandr Andrushchenko

Re: [Xen-devel] DomD: passthroughing an arbitrary device

2017-10-07 Thread Oleksandr Andrushchenko
On 10/05/2017 06:29 PM, Julien Grall wrote: Hi, On 04/10/17 19:10, Oleksandr Andrushchenko wrote: sorry, pressed send too fast On 10/04/2017 09:02 PM, Oleksandr Andrushchenko wrote: On 10/04/2017 08:22 PM, Julien Grall wrote: On 04/10/17 17:32, Oleksandr Andrushchenko wrote: Hi, all

Re: [Xen-devel] DomD: passthroughing an arbitrary device

2017-10-04 Thread Oleksandr Andrushchenko
sorry, pressed send too fast On 10/04/2017 09:02 PM, Oleksandr Andrushchenko wrote: On 10/04/2017 08:22 PM, Julien Grall wrote: On 04/10/17 17:32, Oleksandr Andrushchenko wrote: Hi, all! Hello, We have a use-case where we want to passthrough and arbitrary device to driver domain, e.g

Re: [Xen-devel] DomD: passthroughing an arbitrary device

2017-10-04 Thread Oleksandr Andrushchenko
On 10/04/2017 08:22 PM, Julien Grall wrote: On 04/10/17 17:32, Oleksandr Andrushchenko wrote: Hi, all! Hello, We have a use-case where we want to passthrough and arbitrary device to driver domain, e.g. GPIO controller or the like (doesn't do any DMA). I will assume you are speaking

[Xen-devel] DomD: passthroughing an arbitrary device

2017-10-04 Thread Oleksandr Andrushchenko
Hi, all! We have a use-case where we want to passthrough and arbitrary device to driver domain, e.g. GPIO controller or the like (doesn't do any DMA). I know that for device to be pass throughed it must be tied to an IOMMU, but in my case the controller doesn’t have any. The problem is that

Re: [Xen-devel] [alsa-devel] [PATCH RESEND1 00/12] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-10-04 Thread Oleksandr Andrushchenko
gentle reminder On 09/26/2017 02:35 PM, Oleksandr Andrushchenko wrote: Clemens, Sakamoto-san, could you please review the below if you by chance have a minute? Thank you, Oleksandr On 09/19/2017 11:57 AM, Oleksandr Andrushchenko wrote: Hi, all! We did some work on implementing the idea

Re: [Xen-devel] [alsa-devel] [PATCH RESEND1 00/12] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-09-26 Thread Oleksandr Andrushchenko
Clemens, Sakamoto-san, could you please review the below if you by chance have a minute? Thank you, Oleksandr On 09/19/2017 11:57 AM, Oleksandr Andrushchenko wrote: Hi, all! We did some work on implementing the idea with feedback events from the backend to the frontend. Please see attached

Re: [Xen-devel] [alsa-devel] [PATCH RESEND1 00/12] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-09-19 Thread Oleksandr Andrushchenko
the general approach is accepted by the ALSA community). Thank you very much for your time, Oleksandr Andrushchenko Oleksandr Grytsov [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/xen/interface/io/sndif.h?h=v4.14-rc1 On 09/12/2017 10:52 AM, Oleksandr Grytsov

Re: [Xen-devel] [PATCH RESEND1 00/12] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-09-04 Thread Oleksandr Andrushchenko
On 08/24/2017 10:04 AM, Oleksandr Andrushchenko wrote: Hello, On 08/24/2017 07:38 AM, Takashi Sakamoto wrote: On Aug 23 2017 23:51, Oleksandr Grytsov wrote: Hi, Thank you for detailed explanation. We understand that emulated interrupt on the frontend side is completely not acceptable

Re: [Xen-devel] [PATCH RESEND1 00/12] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-08-24 Thread Oleksandr Andrushchenko
the driver with timer implementation upstreamed as experimental until we have some acceptable synchronization solution? This will allow broader audience to try and feel the solution and probably contribute? Regards Takashi Sakamoto Thank you very much for your time, Oleksandr Andrushchenko

Re: [Xen-devel] Xen 4.10 Development Update

2017-08-22 Thread Oleksandr Andrushchenko
Andrushchenko - Oleksanr Grytsov nothing to be done in Xen, mtouch support is already in the Linux kernel. We are not considering QEMU's backend atm * Sound - Oleksandr Andrushchenko - Oleksanr Grytsov nothing to be done in Xen atm, Linux kernel frontend is on review now - may need

Re: [Xen-devel] [PATCH RESEND1 00/12] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-08-18 Thread Oleksandr Andrushchenko
On 08/18/2017 10:17 AM, Takashi Sakamoto wrote: On Aug 18 2017 14:56, Oleksandr Andrushchenko wrote: Taking into account the fact that the backend we have is a user-space application running on top of ALSA/PulseAudio we cannot get HW pointers from actual hardware by any means (PulseAudio use

Re: [Xen-devel] [PATCH RESEND1 00/12] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-08-17 Thread Oleksandr Andrushchenko
thoughts? Regards Takashi Sakamoto Thank you, Oleksandr Andrushchenko ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] Xen Backend for sound sharing for arm

2017-08-10 Thread Oleksandr Andrushchenko
Hi, On 08/10/2017 12:03 PM, ajmalmalib4u wrote: Hi, I need to do sound sharing in RCar H3. Great that there is some interest in the work we do I'm just curious, what is the nature of your interest? Are you going to just use that sound solution or may want to contribute as well

Re: [Xen-devel] [PATCH RESEND1 00/12] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-08-10 Thread Oleksandr Andrushchenko
Hi, thank you very much for valuable comments and your time! On 08/10/2017 06:14 AM, Takashi Sakamoto wrote: Hi, On Aug 7 2017 21:22, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> This patch series adds support for Xen [1] para-virtu

Re: [Xen-devel] [alsa-devel] [PATCH 08/11] ALSA: vsnd: Add timer for period interrupt emulation

2017-08-08 Thread Oleksandr Andrushchenko
On 08/07/2017 06:14 PM, Oleksandr Andrushchenko wrote: On 08/07/2017 04:55 PM, Clemens Ladisch wrote: Oleksandr Andrushchenko wrote: On 08/07/2017 04:11 PM, Clemens Ladisch wrote: How does that interface work? For the buffer received in .copy_user/.copy_kernel we send a request

Re: [Xen-devel] [alsa-devel] [PATCH 08/11] ALSA: vsnd: Add timer for period interrupt emulation

2017-08-07 Thread Oleksandr Andrushchenko
On 08/07/2017 04:55 PM, Clemens Ladisch wrote: Oleksandr Andrushchenko wrote: On 08/07/2017 04:11 PM, Clemens Ladisch wrote: How does that interface work? For the buffer received in .copy_user/.copy_kernel we send a request to the backend and get response back (async) when it has copied

Re: [Xen-devel] [alsa-devel] [PATCH 08/11] ALSA: vsnd: Add timer for period interrupt emulation

2017-08-07 Thread Oleksandr Andrushchenko
On 08/07/2017 04:11 PM, Clemens Ladisch wrote: Oleksandr Andrushchenko wrote: On 08/07/2017 01:27 PM, Clemens Ladisch wrote: You have to implement period interrupts (and the .pointer callback) based on when the samples are actually moved from/to the backend. Do you think I can implement

Re: [Xen-devel] [PATCH RESEND 00/11] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-08-07 Thread Oleksandr Andrushchenko
On 08/07/2017 03:30 PM, Takashi Sakamoto wrote: On Aug 7 2017 21:18, Oleksandr Andrushchenko wrote: Your first patch includes code difference under line 26, thus it expects existence of a file 'sound/drivers/xen-front.c' in tree. However, the file is not introduced in any upstream yet

[Xen-devel] [PATCH RESEND1 09/12] ALSA: vsnd: Add timer for period interrupt emulation

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Front sound driver has no real interrupts, so playback/capture period passed interrupt needs to be emulated: this is done via timer. Add required timer operations, this is based on sound/drivers/dummy.c. Signed-off-by: Ole

[Xen-devel] [PATCH RESEND1 06/12] ALSA: vsnd: Implement handling of shared buffers

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Implement shared buffer handling according to the para-virtualized sound device protocol at xen/interface/io/sndif.h: - manage buffer memory - handle granted references - handle page directories Signed-off-by: Ole

[Xen-devel] [PATCH RESEND1 07/12] ALSA: vsnd: Introduce ALSA virtual sound driver

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Implement essential initialization of the sound driver: - introduce required data structures - handle driver registration - handle sound card registration - register sound driver on backend connection - remove sound

[Xen-devel] [PATCH RESEND1 10/12] ALSA: vsnd: Implement ALSA PCM operations

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Implement ALSA driver operations including: - start/stop period interrupt emulation - manage frontend/backend shraed buffers - manage Xen bus event channel state Signed-off-by: Oleksandr Andrushchenko <oleksandr_a

[Xen-devel] [PATCH RESEND1 08/12] ALSA: vsnd: Initialize virtul sound card

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Initialize virtual sound card with streams according to the Xen store configuration. Add stubs for stream PCM operations. Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> --- sound/drivers

[Xen-devel] [PATCH RESEND1 12/12] ALSA: vsnd: Introduce Kconfig option to enable Xen PV sound

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Introduce Kconfig option to enable Xen para-virtualized sound frontend driver. Also add sound frontend to the Makefile. Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> --- sound/drivers/K

[Xen-devel] [PATCH RESEND1 11/12] ALSA: vsnd: Implement communication with backend

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Implement frontend to backend communication according to the para-virtualized sound protocol: xen/interface/io/sndif.h. Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> --- sound/drivers/xen-f

[Xen-devel] [PATCH RESEND1 05/12] ALSA: vsnd: Implement Xen event channel handling

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> 1. Create event channels for all configured streams and publish corresponding ring references and event channels in Xen store, so backend can connect. 2. Implement event channel interrupt handler. 3. Create and destroy

[Xen-devel] [PATCH RESEND1 03/12] ALSA: vsnd: Implement Xen bus state handling

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Initial handling for Xen bus states: implement Xen bus state machine for the front driver according to the state diagram and recovery flow from sound para-virtualized protocol: xen/interface/io/sndif.h. Signed-off-by: Ole

[Xen-devel] [PATCH RESEND1 02/12] ALSA: vsnd: Implement driver's probe/remove

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Add essential driver private info structure, initialize locks and implement probe/remove of the Xen frontend driver. Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> --- sound/drivers/xen-

[Xen-devel] [PATCH RESEND1 04/12] ALSA: vsnd: Read sound driver configuration from Xen store

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Read configuration values from Xen store according to xen/interface/io/sndif.h protocol: - introduce configuration structures for different components, e.g. sound card, device, stream - read PCM HW parameters, e.g rate, form

[Xen-devel] [PATCH RESEND1 01/12] ALSA: vsnd: Introduce Xen para-virtualized sound frontend driver

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Introduce skeleton of the para-virtualized Xen sound frontend driver. This patch only adds required essential stubs. Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> --- sound/drivers/xen-

[Xen-devel] [PATCH RESEND1 00/12] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> This patch series adds support for Xen [1] para-virtualized sound frontend driver. It implements the protocol from include/xen/interface/io/sndif.h with the following limitations: - mute/unmute is not supported - get/set

Re: [Xen-devel] [PATCH RESEND 00/11] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-08-07 Thread Oleksandr Andrushchenko
On 08/07/2017 03:09 PM, Takashi Sakamoto wrote: Hi, On Aug 7 2017 20:50, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> This patch series adds support for Xen [1] para-virtualized sound frontend driver. It implements the protocol from i

[Xen-devel] [PATCH RESEND 10/11] ALSA: vsnd: Implement communication with backend

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Implement frontend to backend communication according to the para-virtualized sound protocol: xen/interface/io/sndif.h. Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> --- sound/drivers/xen-f

[Xen-devel] [PATCH RESEND 04/11] ALSA: vsnd: Implement Xen event channel handling

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> 1. Create event channels for all configured streams and publish corresponding ring references and event channels in Xen store, so backend can connect. 2. Implement event channel interrupt handler. 3. Create and destroy

[Xen-devel] [PATCH RESEND 06/11] ALSA: vsnd: Introduce ALSA virtual sound driver

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Implement essential initialization of the sound driver: - introduce required data structures - handle driver registration - handle sound card registration - register sound driver on backend connection - remove sound

[Xen-devel] [PATCH RESEND 01/11] ALSA: vsnd: Implement driver's probe/remove

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Add essential driver private info structure, initialize locks and implement probe/remove of the Xen frontend driver. Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> --- sound/drivers/xen-

[Xen-devel] [PATCH RESEND 02/11] ALSA: vsnd: Implement Xen bus state handling

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Initial handling for Xen bus states: implement Xen bus state machine for the front driver according to the state diagram and recovery flow from sound para-virtualized protocol: xen/interface/io/sndif.h. Signed-off-by: Ole

[Xen-devel] [PATCH RESEND 05/11] ALSA: vsnd: Implement handling of shared buffers

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Implement shared buffer handling according to the para-virtualized sound device protocol at xen/interface/io/sndif.h: - manage buffer memory - handle granted references - handle page directories Signed-off-by: Ole

[Xen-devel] [PATCH RESEND 07/11] ALSA: vsnd: Initialize virtul sound card

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Initialize virtual sound card with streams according to the Xen store configuration. Add stubs for stream PCM operations. Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> --- sound/drivers

[Xen-devel] [PATCH RESEND 00/11] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> This patch series adds support for Xen [1] para-virtualized sound frontend driver. It implements the protocol from include/xen/interface/io/sndif.h with the following limitations: - mute/unmute is not supported - get/set

[Xen-devel] [PATCH RESEND 08/11] ALSA: vsnd: Add timer for period interrupt emulation

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Front sound driver has no real interrupts, so playback/capture period passed interrupt needs to be emulated: this is done via timer. Add required timer operations, this is based on sound/drivers/dummy.c. Signed-off-by: Ole

[Xen-devel] [PATCH RESEND 03/11] ALSA: vsnd: Read sound driver configuration from Xen store

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Read configuration values from Xen store according to xen/interface/io/sndif.h protocol: - introduce configuration structures for different components, e.g. sound card, device, stream - read PCM HW parameters, e.g rate, form

[Xen-devel] [PATCH RESEND 09/11] ALSA: vsnd: Implement ALSA PCM operations

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Implement ALSA driver operations including: - start/stop period interrupt emulation - manage frontend/backend shraed buffers - manage Xen bus event channel state Signed-off-by: Oleksandr Andrushchenko <oleksandr_a

[Xen-devel] [PATCH RESEND 11/11] ALSA: vsnd: Introduce Kconfig option to enable Xen PV sound

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Introduce Kconfig option to enable Xen para-virtualized sound frontend driver. Also add sound frontend to the Makefile. Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> --- sound/drivers/K

Re: [Xen-devel] [PATCH 00/11] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-08-07 Thread Oleksandr Andrushchenko
Hi, On 08/07/2017 02:28 PM, Takashi Sakamoto wrote: Hi, On Aug 7 2017 16:43, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> This patch series adds support for Xen [1] para-virtualized sound frontend driver. It implements the protoco

Re: [Xen-devel] [alsa-devel] [PATCH 08/11] ALSA: vsnd: Add timer for period interrupt emulation

2017-08-07 Thread Oleksandr Andrushchenko
Hi, Clemens! On 08/07/2017 01:27 PM, Clemens Ladisch wrote: Oleksandr Andrushchenko wrote: Front sound driver has no real interrupts, so playback/capture period passed interrupt needs to be emulated: this is done via timer. Add required timer operations, this is based on sound/drivers/dummy.c

[Xen-devel] [PATCH 08/11] ALSA: vsnd: Add timer for period interrupt emulation

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Front sound driver has no real interrupts, so playback/capture period passed interrupt needs to be emulated: this is done via timer. Add required timer operations, this is based on sound/drivers/dummy.c. Signed-off-by: Ole

[Xen-devel] [PATCH 00/11] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> This patch series adds support for Xen [1] para-virtualized sound frontend driver. It implements the protocol from include/xen/interface/io/sndif.h with the following limitations: - mute/unmute is not supported - get/set

[Xen-devel] [PATCH 07/11] ALSA: vsnd: Initialize virtul sound card

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Initialize virtual sound card with streams according to the Xen store configuration. Add stubs for stream PCM operations. Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> --- sound/drivers

[Xen-devel] [PATCH 04/11] ALSA: vsnd: Implement Xen event channel handling

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> 1. Create event channels for all configured streams and publish corresponding ring references and event channels in Xen store, so backend can connect. 2. Implement event channel interrupt handler. 3. Create and destroy

[Xen-devel] [PATCH 03/11] ALSA: vsnd: Read sound driver configuration from Xen store

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Read configuration values from Xen store according to xen/interface/io/sndif.h protocol: - introduce configuration structures for different components, e.g. sound card, device, stream - read PCM HW parameters, e.g rate, form

[Xen-devel] [PATCH 09/11] ALSA: vsnd: Implement ALSA PCM operations

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Implement ALSA driver operations including: - start/stop period interrupt emulation - manage frontend/backend shraed buffers - manage Xen bus event channel state Signed-off-by: Oleksandr Andrushchenko <oleksandr_a

[Xen-devel] [PATCH 11/11] ALSA: vsnd: Introduce Kconfig option to enable Xen PV sound

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Introduce Kconfig option to enable Xen para-virtualized sound frontend driver. Also add sound frontend to the Makefile. Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> --- sound/drivers/K

[Xen-devel] [PATCH 01/11] ALSA: vsnd: Implement driver's probe/remove

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Add essential driver private info structure, initialize locks and implement probe/remove of the Xen frontend driver. Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> --- sound/drivers/xen-

[Xen-devel] [PATCH 06/11] ALSA: vsnd: Introduce ALSA virtual sound driver

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Implement essential initialization of the sound driver: - introduce required data structures - handle driver registration - handle sound card registration - register sound driver on backend connection - remove sound

[Xen-devel] [PATCH 10/11] ALSA: vsnd: Implement communication with backend

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Implement frontend to backend communication according to the para-virtualized sound protocol: xen/interface/io/sndif.h. Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> --- sound/drivers/xen-f

[Xen-devel] [PATCH 05/11] ALSA: vsnd: Implement handling of shared buffers

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Implement shared buffer handling according to the para-virtualized sound device protocol at xen/interface/io/sndif.h: - manage buffer memory - handle granted references - handle page directories Signed-off-by: Ole

[Xen-devel] [PATCH 02/11] ALSA: vsnd: Implement Xen bus state handling

2017-08-07 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Initial handling for Xen bus states: implement Xen bus state machine for the front driver according to the state diagram and recovery flow from sound para-virtualized protocol: xen/interface/io/sndif.h. Signed-off-by: Ole

Re: [Xen-devel] PV drivers and zero copying

2017-08-01 Thread Oleksandr Andrushchenko
Hi, Stefano! On 07/31/2017 11:28 PM, Stefano Stabellini wrote: On Mon, 31 Jul 2017, Oleksandr Andrushchenko wrote: 3 Sharing with page exchange (XENMEM_exchange) == This API was pointed to me by Stefano Stabellini as one of the possible ways

Re: [Xen-devel] PV drivers and zero copying

2017-07-31 Thread Oleksandr Andrushchenko
On 07/31/2017 02:58 PM, Joao Martins wrote: On 07/31/2017 12:41 PM, Oleksandr Andrushchenko wrote: Hi, Joao! On 07/31/2017 02:03 PM, Joao Martins wrote: Hey Oleksandr, On 07/31/2017 09:34 AM, Oleksandr Andrushchenko wrote: Hi, all! [snip] Comparison for display use-case

Re: [Xen-devel] PV drivers and zero copying

2017-07-31 Thread Oleksandr Andrushchenko
Hi, Joao! On 07/31/2017 02:03 PM, Joao Martins wrote: Hey Oleksandr, On 07/31/2017 09:34 AM, Oleksandr Andrushchenko wrote: Hi, all! [snip] Comparison for display use-case === 1 Number of grant references used 1-1 grant references: nr_pages 1-2

Re: [Xen-devel] [XenSummit 2017] Build tools follow up

2017-07-31 Thread Oleksandr Andrushchenko
ping On 07/17/2017 03:47 PM, Oleksandr Andrushchenko wrote: Hi, all! This is a follow-up on Xen distribution build systems we saw at the summit and invitation for sharing thoughts and ways we build our images and distros. I would like to specifically ask OpenXT project to reply

Re: [Xen-devel] PV drivers and zero copying

2017-07-31 Thread Oleksandr Andrushchenko
On 07/31/2017 01:04 PM, Julien Grall wrote: On 31/07/17 10:52, Oleksandr Andrushchenko wrote: On 07/31/2017 12:47 PM, Julien Grall wrote: On 31/07/17 10:46, Oleksandr Andrushchenko wrote: Do you have any example of hardware? What are the performance you require with them? Currently our

Re: [Xen-devel] PV drivers and zero copying

2017-07-31 Thread Oleksandr Andrushchenko
On 07/31/2017 12:47 PM, Julien Grall wrote: On 31/07/17 10:46, Oleksandr Andrushchenko wrote: Hi, Julien! On 07/31/2017 12:24 PM, Julien Grall wrote: (+ Joao) On 31/07/17 09:34, Oleksandr Andrushchenko wrote: Hi, all! Hi Oleksandr, The aim of this mail is to highlight and discuss

Re: [Xen-devel] PV drivers and zero copying

2017-07-31 Thread Oleksandr Andrushchenko
Hi, Julien! On 07/31/2017 12:24 PM, Julien Grall wrote: (+ Joao) On 31/07/17 09:34, Oleksandr Andrushchenko wrote: Hi, all! Hi Oleksandr, The aim of this mail is to highlight and discuss possible approaches to implementing zero copying for PV drivers. Rationale behind

Re: [Xen-devel] PV drivers and zero copying

2017-07-31 Thread Oleksandr Andrushchenko
On 07/31/2017 12:31 PM, Andrew Cooper wrote: On 31/07/17 10:03, Paul Durrant wrote: -Original Message- [snip] Comparison for display use-case === 1 Number of grant references used 1-1 grant references: nr_pages 1-2 GNTTABOP_transfer: nr_pages 1-3

Re: [Xen-devel] PV drivers and zero copying

2017-07-31 Thread Oleksandr Andrushchenko
Hi, Paul! On 07/31/2017 12:03 PM, Paul Durrant wrote: -Original Message- [snip] Comparison for display use-case === 1 Number of grant references used 1-1 grant references: nr_pages 1-2 GNTTABOP_transfer: nr_pages 1-3 XENMEM_exchange: not an option 2

[Xen-devel] PV drivers and zero copying

2017-07-31 Thread Oleksandr Andrushchenko
Hi, all! The aim of this mail is to highlight and discuss possible approaches to implementing zero copying for PV drivers. Rationale behind this is that there are use-cases when drivers operate with big shared buffers, e.g. display, when memory copying from front’s buffer into back’s one may

Re: [Xen-devel] [PATCH v4 00/13] libxl: add PV display device driver interface

2017-07-27 Thread Oleksandr Andrushchenko
ping On 07/18/2017 05:25 PM, Oleksandr Grytsov wrote: From: Oleksandr Grytsov Changes since V3: * libxl__device_add renamed to libxl__device_add_async and reworked to match the former design; * libxl__device_add used for devices which don't require

Re: [Xen-devel] Next Xen ARM community call - Wednesday 2nd August 2017

2017-07-27 Thread Oleksandr Andrushchenko
Works for EPAM as well On 07/27/2017 12:12 AM, Edgar E. Iglesias wrote: Hi, this time works for me too. I'd like to have a slot to introduce and discuss the work that Xilinx and Aggios are doing on Power management for Xen/Arm. Cheers, Edgar Sent from my phone On Jul 26, 2017 6:59 PM,

[Xen-devel] [XenSummit 2017] Build tools follow up

2017-07-17 Thread Oleksandr Andrushchenko
Hi, all! This is a follow-up on Xen distribution build systems we saw at the summit and invitation for sharing thoughts and ways we build our images and distros. I would like to specifically ask OpenXT project to reply with the description of their build system so we have clear picture of what

Re: [Xen-devel] [PATCH] kbdif: Define "feature-raw-pointer" and "request-raw-pointer"

2017-07-03 Thread Oleksandr Andrushchenko
Hi, Owen! On 07/03/2017 03:57 PM, Owen Smith wrote: determine the difference between older backends and newer backends. In the case I'm interested in, the difference between old QEMU vkbd backend which blocks waiting for the vfb device, which is not present on HVM guests, and a newer QEMU

Re: [Xen-devel] [PATCH v1] xen/input: add multi-touch support

2017-06-30 Thread Oleksandr Andrushchenko
Hi, Dmitry! On 06/29/2017 10:24 PM, Dmitry Torokhov wrote: On June 29, 2017 11:40:30 AM PDT, Oleksandr Andrushchenko <andr2...@gmail.com> wrote: Hi, Dmitry! First of all thank you for both the comments and the patch On 06/29/2017 11:17 AM, Dmitry Torokhov wrote: Hi Oleksandr, On Fr

Re: [Xen-devel] [PATCH v1] xen/input: add multi-touch support

2017-06-29 Thread Oleksandr Andrushchenko
Hi, Dmitry! First of all thank you for both the comments and the patch On 06/29/2017 11:17 AM, Dmitry Torokhov wrote: Hi Oleksandr, On Fri, Jun 23, 2017 at 09:09:55AM +0300, Oleksandr Andrushchenko wrote: + switch (event->mtouch.event_t

Re: [Xen-devel] [PATCH v1] xen/input: add multi-touch support

2017-06-28 Thread Oleksandr Andrushchenko
ping On 06/23/2017 09:09 AM, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Extend xen_kbdfront to provide multi-touch support to unprivileged domains. Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> --- C

Re: [Xen-devel] [For 4.9] Updating https://wiki.xenproject.org/wiki/Xen_Project_Release_Features to reflect support status of new features

2017-06-27 Thread Oleksandr Andrushchenko
On 06/27/2017 04:30 PM, Lars Kurth wrote: Removing security@ On 27/06/2017, 14:28, "Oleksandr Andrushchenko" <andr2...@gmail.com> wrote: Did I miss anything? Please consider adding new topics: 1. Shared coprocessor framework 2. Native applications, e.g. EL0 app, stubdoms

Re: [Xen-devel] [For 4.9] Updating https://wiki.xenproject.org/wiki/Xen_Project_Release_Features to reflect support status of new features

2017-06-27 Thread Oleksandr Andrushchenko
Did I miss anything? Please consider adding new topics: 1. Shared coprocessor framework 2. Native applications, e.g. EL0 app, stubdoms ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [For 4.9] Updating https://wiki.xenproject.org/wiki/Xen_Project_Release_Features to reflect support status of new features

2017-06-27 Thread Oleksandr Andrushchenko
Hi, all New Heading: PV Protocols and Drivers - PV Protocols and Drivers > pvcalls : tech preview or experimental - PV Protocols and Drivers > 9pfs : tech preview or experimental - PV Protocols and Drivers* > sndif (sound device) : tech preview or experimental - PV Protocols and Drivers* >

[Xen-devel] [PATCH v1] xen/input: add multi-touch support

2017-06-23 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Extend xen_kbdfront to provide multi-touch support to unprivileged domains. Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> --- Changes since initial: - use input_set_capability instead of s

Re: [Xen-devel] [PATCH 2/2] xen/input: add multi-touch support

2017-06-21 Thread Oleksandr Andrushchenko
Hi, Dmitry! On 06/21/2017 10:24 AM, Dmitry Torokhov wrote: On Thu, Jun 08, 2017 at 09:45:18AM +0300, Oleksandr Andrushchenko wrote: Hi, Dmitry! On 06/07/2017 07:56 PM, Dmitry Torokhov wrote: On Wed, May 31, 2017 at 12:06:56PM +0300, Oleksandr Andrushchenko wrote: Hi, Dmitry! On 05/30/2017

Re: [Xen-devel] [PATCH 2/2] xen/input: add multi-touch support

2017-06-19 Thread Oleksandr Andrushchenko
Ping On 06/08/2017 09:45 AM, Oleksandr Andrushchenko wrote: Hi, Dmitry! On 06/07/2017 07:56 PM, Dmitry Torokhov wrote: On Wed, May 31, 2017 at 12:06:56PM +0300, Oleksandr Andrushchenko wrote: Hi, Dmitry! On 05/30/2017 07:37 PM, Dmitry Torokhov wrote: On Tue, May 30, 2017 at 03:50:20PM +0300

Re: [Xen-devel] [PATCH] kbdif.h: Introduce feature-vkbd-standalone

2017-06-14 Thread Oleksandr Andrushchenko
://xenbits.xen.org/gitweb/?p=pvdrivers/win/xenvkbd.git;a=tree) Owen Anyway, I would like to hear from Konrad on this *From: *Oleksandr Andrushchenko <mailto:andr2...@gmail.com> *Sent: *12 June 2017 08:07 *To: *Owen Smith <mailto:owen.sm...@citrix.com>; xen-de...@lists.xenproject.org &l

Re: [Xen-devel] [PATCH] kbdif.h: Introduce feature-vkbd-standalone

2017-06-12 Thread Oleksandr Andrushchenko
Hi, Owen! On 06/08/2017 04:09 PM, Owen Smith wrote: Backends set "feature-vkbd-standalone" to 1 if they can connect without waiting for the PV framebuffer. If this value is missing or not 1, then a backend will wait for the PV framebuffer before connecting, potentially causing the frontend to

Re: [Xen-devel] [PATCH 2/2] xen/input: add multi-touch support

2017-06-08 Thread Oleksandr Andrushchenko
Hi, Dmitry! On 06/07/2017 07:56 PM, Dmitry Torokhov wrote: On Wed, May 31, 2017 at 12:06:56PM +0300, Oleksandr Andrushchenko wrote: Hi, Dmitry! On 05/30/2017 07:37 PM, Dmitry Torokhov wrote: On Tue, May 30, 2017 at 03:50:20PM +0300, Oleksandr Andrushchenko wrote: Hi, Dmitry! On 05/30/2017

Re: [Xen-devel] [PATCH 2/2] xen/input: add multi-touch support

2017-06-07 Thread Oleksandr Andrushchenko
Hi, Dmitry! I would appreciate your comments on the below On 05/31/2017 12:06 PM, Oleksandr Andrushchenko wrote: Hi, Dmitry! On 05/30/2017 07:37 PM, Dmitry Torokhov wrote: On Tue, May 30, 2017 at 03:50:20PM +0300, Oleksandr Andrushchenko wrote: Hi, Dmitry! On 05/30/2017 08:51 AM, Dmitry

Re: [Xen-devel] [PATCH 2/2] xen/input: add multi-touch support

2017-05-31 Thread Oleksandr Andrushchenko
Hi, Dmitry! On 05/30/2017 07:37 PM, Dmitry Torokhov wrote: On Tue, May 30, 2017 at 03:50:20PM +0300, Oleksandr Andrushchenko wrote: Hi, Dmitry! On 05/30/2017 08:51 AM, Dmitry Torokhov wrote: On Fri, Apr 21, 2017 at 09:40:36AM +0300, Oleksandr Andrushchenko wrote: Hi, Dmitry! On 04/21/2017

Re: [Xen-devel] [PATCH 2/2] xen/input: add multi-touch support

2017-05-30 Thread Oleksandr Andrushchenko
Hi, Dmitry! On 05/30/2017 08:51 AM, Dmitry Torokhov wrote: On Fri, Apr 21, 2017 at 09:40:36AM +0300, Oleksandr Andrushchenko wrote: Hi, Dmitry! On 04/21/2017 05:10 AM, Dmitry Torokhov wrote: Hi Oleksandr, On Thu, Apr 13, 2017 at 02:38:04PM +0300, Oleksandr Andrushchenko wrote: From

Re: [Xen-devel] [PATCH 1/2] xen/input: use string constants from PV protocol

2017-05-30 Thread Oleksandr Andrushchenko
Hi, Dmitry! On 04/21/2017 05:11 AM, Dmitry Torokhov wrote: On Thu, Apr 13, 2017 at 02:38:03PM +0300, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Xen input para-virtual protocol defines string constants used by both back and fronten

Re: [Xen-devel] [PATCH 2/2] xen/input: add multi-touch support

2017-05-22 Thread Oleksandr Andrushchenko
Hi, Dmitry! It's been quite a while now, I'm just wondering if you had a chance to look at the patch? Thank you, Oleksandr On 05/12/2017 04:44 PM, Oleksandr Andrushchenko wrote: gentle reminder On 05/05/2017 07:45 AM, Oleksandr Andrushchenko wrote: Hi, Dmitry! On 04/21/2017 09:40 AM

Re: [Xen-devel] [PATCH 1/2] xen/input: use string constants from PV protocol

2017-05-22 Thread Oleksandr Andrushchenko
Hi, Dmitry! It's been quite a while now, I'm just wondering if you had a chance to look at the patch? Thank you, Oleksandr On 05/12/2017 04:43 PM, Oleksandr Andrushchenko wrote: gentle reminder On 05/05/2017 07:43 AM, Oleksandr Andrushchenko wrote: Hello, Dmitry! On 04/21/2017 09:42 AM

Re: [Xen-devel] [PATCH 2/2] xen/input: add multi-touch support

2017-05-12 Thread Oleksandr Andrushchenko
gentle reminder On 05/05/2017 07:45 AM, Oleksandr Andrushchenko wrote: Hi, Dmitry! On 04/21/2017 09:40 AM, Oleksandr Andrushchenko wrote: Hi, Dmitry! On 04/21/2017 05:10 AM, Dmitry Torokhov wrote: Hi Oleksandr, On Thu, Apr 13, 2017 at 02:38:04PM +0300, Oleksandr Andrushchenko wrote

Re: [Xen-devel] [PATCH 1/2] xen/input: use string constants from PV protocol

2017-05-12 Thread Oleksandr Andrushchenko
gentle reminder On 05/05/2017 07:43 AM, Oleksandr Andrushchenko wrote: Hello, Dmitry! On 04/21/2017 09:42 AM, Oleksandr Andrushchenko wrote: On 04/21/2017 05:11 AM, Dmitry Torokhov wrote: On Thu, Apr 13, 2017 at 02:38:03PM +0300, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko

Re: [Xen-devel] [PATCH 2/2] xen/input: add multi-touch support

2017-05-04 Thread Oleksandr Andrushchenko
Hi, Dmitry! On 04/21/2017 09:40 AM, Oleksandr Andrushchenko wrote: Hi, Dmitry! On 04/21/2017 05:10 AM, Dmitry Torokhov wrote: Hi Oleksandr, On Thu, Apr 13, 2017 at 02:38:04PM +0300, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com>

Re: [Xen-devel] [PATCH 1/2] xen/input: use string constants from PV protocol

2017-05-04 Thread Oleksandr Andrushchenko
Hello, Dmitry! On 04/21/2017 09:42 AM, Oleksandr Andrushchenko wrote: On 04/21/2017 05:11 AM, Dmitry Torokhov wrote: On Thu, Apr 13, 2017 at 02:38:03PM +0300, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com> Xen input para-virtual pr

Re: [Xen-devel] x86: mapping from Dom0 to DomU

2017-04-24 Thread Oleksandr Andrushchenko
On 04/24/2017 09:43 AM, Jan Beulich wrote: On 24.04.17 at 08:10, wrote: On 04/21/2017 06:55 PM, Jan Beulich wrote: On 21.04.17 at 15:04, wrote: I am working on a zero-copy scenario for x86 and for that I am mapping pages from Dom0 to DomU (yes, I know

  1   2   3   4   >