Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-22 Thread Roger Pau Monné
On Wed, Jul 22, 2020 at 12:17:26PM +0100, Julien Grall wrote: > > > On 22/07/2020 12:10, Roger Pau Monné wrote: > > On Wed, Jul 22, 2020 at 11:47:18AM +0100, Julien Grall wrote: > > > > > > > > You can still use the map-on-fault behaviour as above, but I would > > > > recommend that you try to l

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-22 Thread Julien Grall
On 22/07/2020 12:10, Roger Pau Monné wrote: On Wed, Jul 22, 2020 at 11:47:18AM +0100, Julien Grall wrote: You can still use the map-on-fault behaviour as above, but I would recommend that you try to limit the number of hypercalls issued. Having to issue a single hypercall for each page fault

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-22 Thread Roger Pau Monné
On Wed, Jul 22, 2020 at 11:47:18AM +0100, Julien Grall wrote: > Hi Roger, > > On 22/07/2020 09:21, Roger Pau Monné wrote: > > On Tue, Jul 21, 2020 at 10:12:40PM +0100, Julien Grall wrote: > > > Hi Oleksandr, > > > > > > On 21/07/2020 19:16, Oleksandr wrote: > > > > > > > > On 21.07.20 17:27, Jul

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-22 Thread Julien Grall
Hi Roger, On 22/07/2020 09:21, Roger Pau Monné wrote: On Tue, Jul 21, 2020 at 10:12:40PM +0100, Julien Grall wrote: Hi Oleksandr, On 21/07/2020 19:16, Oleksandr wrote: On 21.07.20 17:27, Julien Grall wrote: On a similar topic, I am a bit surprised you didn't encounter memory exhaustion when

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-22 Thread Roger Pau Monné
On Tue, Jul 21, 2020 at 10:12:40PM +0100, Julien Grall wrote: > Hi Oleksandr, > > On 21/07/2020 19:16, Oleksandr wrote: > > > > On 21.07.20 17:27, Julien Grall wrote: > > > On a similar topic, I am a bit surprised you didn't encounter memory > > > exhaustion when trying to use virtio. Because on

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-21 Thread Julien Grall
Hi Oleksandr, On 21/07/2020 19:16, Oleksandr wrote: On 21.07.20 17:27, Julien Grall wrote: On a similar topic, I am a bit surprised you didn't encounter memory exhaustion when trying to use virtio. Because on how Linux currently works (see XSA-300), the backend domain as to have a least as mu

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-21 Thread Oleksandr
On 21.07.20 17:27, Julien Grall wrote: Hi, Hello On a similar topic, I am a bit surprised you didn't encounter memory exhaustion when trying to use virtio. Because on how Linux currently works (see XSA-300), the backend domain as to have a least as much RAM as the domain it serves. For

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-21 Thread Oleksandr
On 21.07.20 17:27, Julien Grall wrote: Hi, Hello Julien On 17/07/2020 19:34, Oleksandr wrote: On 17.07.20 18:00, Roger Pau Monné wrote: requires some implementation to forward guest MMIO access to a device model. And as it turned out the Xen on x86 contains most of the pieces to be a

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-21 Thread André Przywara
On 21/07/2020 17:09, Oleksandr wrote: > > On 21.07.20 17:58, André Przywara wrote: >> On 21/07/2020 15:52, Oleksandr wrote: >>> On 21.07.20 17:32, André Przywara wrote: On 21/07/2020 14:43, Julien Grall wrote: >>> Hello Andre, Julien >>> >>> > (+ Andre) > > Hi Oleksandr, > >>>

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-21 Thread Stefano Stabellini
On Tue, 21 Jul 2020, Julien Grall wrote: > Hi Alex, > > Thank you for your feedback! > > On 21/07/2020 15:15, Alex Bennée wrote: > > Julien Grall writes: > > > > > (+ Andree for the vGIC). > > > > > > Hi Stefano, > > > > > > On 20/07/2020 21:38, Stefano Stabellini wrote: > > > > On Fri, 17 Ju

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-21 Thread Stefano Stabellini
On Tue, 21 Jul 2020, Alex Bennée wrote: > Julien Grall writes: > > > Hi Stefano, > > > > On 20/07/2020 21:37, Stefano Stabellini wrote: > >> On Mon, 20 Jul 2020, Roger Pau Monné wrote: > >>> On Mon, Jul 20, 2020 at 10:40:40AM +0100, Julien Grall wrote: > > > On 20/07/2020 10:17, Ro

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-21 Thread Oleksandr
On 21.07.20 17:58, André Przywara wrote: On 21/07/2020 15:52, Oleksandr wrote: On 21.07.20 17:32, André Przywara wrote: On 21/07/2020 14:43, Julien Grall wrote: Hello Andre, Julien (+ Andre) Hi Oleksandr, On 21/07/2020 13:26, Oleksandr wrote: On 20.07.20 23:38, Stefano Stabellini wrote

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-21 Thread André Przywara
On 21/07/2020 15:52, Oleksandr wrote: > > On 21.07.20 17:32, André Przywara wrote: >> On 21/07/2020 14:43, Julien Grall wrote: > > Hello Andre, Julien > > >>> (+ Andre) >>> >>> Hi Oleksandr, >>> >>> On 21/07/2020 13:26, Oleksandr wrote: On 20.07.20 23:38, Stefano Stabellini wrote: > Fo

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-21 Thread Oleksandr
On 21.07.20 17:32, André Przywara wrote: On 21/07/2020 14:43, Julien Grall wrote: Hello Andre, Julien (+ Andre) Hi Oleksandr, On 21/07/2020 13:26, Oleksandr wrote: On 20.07.20 23:38, Stefano Stabellini wrote: For instance, what's your take on notifications with virtio-mmio? How are the

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-21 Thread Julien Grall
Hi Alex, Thank you for your feedback! On 21/07/2020 15:15, Alex Bennée wrote: Julien Grall writes: (+ Andree for the vGIC). Hi Stefano, On 20/07/2020 21:38, Stefano Stabellini wrote: On Fri, 17 Jul 2020, Oleksandr wrote: *A few word about solution:* As it was mentioned at [1], in order t

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-21 Thread André Przywara
On 21/07/2020 14:43, Julien Grall wrote: > (+ Andre) > > Hi Oleksandr, > > On 21/07/2020 13:26, Oleksandr wrote: >> On 20.07.20 23:38, Stefano Stabellini wrote: >>> For instance, what's your take on notifications with virtio-mmio? How >>> are they modelled today? Are they good enough or do we nee

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-21 Thread Julien Grall
Hi, On 17/07/2020 19:34, Oleksandr wrote: On 17.07.20 18:00, Roger Pau Monné wrote: requires some implementation to forward guest MMIO access to a device model. And as it turned out the Xen on x86 contains most of the pieces to be able to use that transport (via existing IOREQ concept). Jul

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-21 Thread Alex Bennée
Julien Grall writes: > (+ Andree for the vGIC). > > Hi Stefano, > > On 20/07/2020 21:38, Stefano Stabellini wrote: >> On Fri, 17 Jul 2020, Oleksandr wrote: > *A few word about solution:* > As it was mentioned at [1], in order to implement virtio-mmio Xen on Arm Any plans for virtio

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-21 Thread Alex Bennée
Julien Grall writes: > Hi Stefano, > > On 20/07/2020 21:37, Stefano Stabellini wrote: >> On Mon, 20 Jul 2020, Roger Pau Monné wrote: >>> On Mon, Jul 20, 2020 at 10:40:40AM +0100, Julien Grall wrote: On 20/07/2020 10:17, Roger Pau Monné wrote: > On Fri, Jul 17, 2020 at 09:34:1

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-21 Thread Julien Grall
(+ Andre) Hi Oleksandr, On 21/07/2020 13:26, Oleksandr wrote: On 20.07.20 23:38, Stefano Stabellini wrote: For instance, what's your take on notifications with virtio-mmio? How are they modelled today? Are they good enough or do we need MSIs? Notifications are sent from device (backend) to t

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-21 Thread Roger Pau Monné
On Tue, Jul 21, 2020 at 02:32:38PM +0100, Julien Grall wrote: > Hi Roger, > > On 21/07/2020 14:25, Roger Pau Monné wrote: > > On Tue, Jul 21, 2020 at 01:31:48PM +0100, Julien Grall wrote: > > > Hi Stefano, > > > > > > On 20/07/2020 21:37, Stefano Stabellini wrote: > > > > On Mon, 20 Jul 2020, Rog

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-21 Thread Julien Grall
Hi Roger, On 21/07/2020 14:25, Roger Pau Monné wrote: On Tue, Jul 21, 2020 at 01:31:48PM +0100, Julien Grall wrote: Hi Stefano, On 20/07/2020 21:37, Stefano Stabellini wrote: On Mon, 20 Jul 2020, Roger Pau Monné wrote: On Mon, Jul 20, 2020 at 10:40:40AM +0100, Julien Grall wrote: On 20/07

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-21 Thread Roger Pau Monné
On Tue, Jul 21, 2020 at 01:31:48PM +0100, Julien Grall wrote: > Hi Stefano, > > On 20/07/2020 21:37, Stefano Stabellini wrote: > > On Mon, 20 Jul 2020, Roger Pau Monné wrote: > > > On Mon, Jul 20, 2020 at 10:40:40AM +0100, Julien Grall wrote: > > > > > > > > > > > > On 20/07/2020 10:17, Roger Pa

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-21 Thread Julien Grall
(+ Andree for the vGIC). Hi Stefano, On 20/07/2020 21:38, Stefano Stabellini wrote: On Fri, 17 Jul 2020, Oleksandr wrote: *A few word about solution:* As it was mentioned at [1], in order to implement virtio-mmio Xen on Arm Any plans for virtio-pci? Arm seems to be moving to the PCI bus, and

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-21 Thread Oleksandr
On 20.07.20 23:40, Stefano Stabellini wrote: Hello Stefano On Mon, 20 Jul 2020, Roger Pau Monné wrote: On Mon, Jul 20, 2020 at 01:56:51PM +0300, Oleksandr wrote: On 20.07.20 12:17, Roger Pau Monné wrote: On Fri, Jul 17, 2020 at 09:34:14PM +0300, Oleksandr wrote: On 17.07.20 18:00, Roger P

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-21 Thread Julien Grall
Hi Stefano, On 20/07/2020 21:37, Stefano Stabellini wrote: On Mon, 20 Jul 2020, Roger Pau Monné wrote: On Mon, Jul 20, 2020 at 10:40:40AM +0100, Julien Grall wrote: On 20/07/2020 10:17, Roger Pau Monné wrote: On Fri, Jul 17, 2020 at 09:34:14PM +0300, Oleksandr wrote: On 17.07.20 18:00, Rog

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-21 Thread Oleksandr
On 20.07.20 23:38, Stefano Stabellini wrote: Hello Stefano On Fri, 17 Jul 2020, Oleksandr wrote: *A few word about solution:* As it was mentioned at [1], in order to implement virtio-mmio Xen on Arm Any plans for virtio-pci? Arm seems to be moving to the PCI bus, and it would be very intere

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-20 Thread Stefano Stabellini
On Mon, 20 Jul 2020, Roger Pau Monné wrote: > On Mon, Jul 20, 2020 at 01:56:51PM +0300, Oleksandr wrote: > > On 20.07.20 12:17, Roger Pau Monné wrote: > > > On Fri, Jul 17, 2020 at 09:34:14PM +0300, Oleksandr wrote: > > > > On 17.07.20 18:00, Roger Pau Monné wrote: > > > > > On Fri, Jul 17, 2020 at

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-20 Thread Stefano Stabellini
On Mon, 20 Jul 2020, Roger Pau Monné wrote: > On Mon, Jul 20, 2020 at 10:40:40AM +0100, Julien Grall wrote: > > > > > > On 20/07/2020 10:17, Roger Pau Monné wrote: > > > On Fri, Jul 17, 2020 at 09:34:14PM +0300, Oleksandr wrote: > > > > On 17.07.20 18:00, Roger Pau Monné wrote: > > > > > On Fri,

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-20 Thread Stefano Stabellini
On Fri, 17 Jul 2020, Oleksandr wrote: > > > *A few word about solution:* > > > As it was mentioned at [1], in order to implement virtio-mmio Xen on Arm > > Any plans for virtio-pci? Arm seems to be moving to the PCI bus, and > > it would be very interesting from a x86 PoV, as I don't think > > virt

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-20 Thread Roger Pau Monné
On Mon, Jul 20, 2020 at 01:56:51PM +0300, Oleksandr wrote: > On 20.07.20 12:17, Roger Pau Monné wrote: > > On Fri, Jul 17, 2020 at 09:34:14PM +0300, Oleksandr wrote: > > > On 17.07.20 18:00, Roger Pau Monné wrote: > > > > On Fri, Jul 17, 2020 at 05:11:02PM +0300, Oleksandr Tyshchenko wrote: > > > T

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-20 Thread Oleksandr
On 20.07.20 12:17, Roger Pau Monné wrote: Hello Roger On Fri, Jul 17, 2020 at 09:34:14PM +0300, Oleksandr wrote: On 17.07.20 18:00, Roger Pau Monné wrote: On Fri, Jul 17, 2020 at 05:11:02PM +0300, Oleksandr Tyshchenko wrote: requires some implementation to forward guest MMIO access to a de

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-20 Thread Roger Pau Monné
On Mon, Jul 20, 2020 at 10:40:40AM +0100, Julien Grall wrote: > > > On 20/07/2020 10:17, Roger Pau Monné wrote: > > On Fri, Jul 17, 2020 at 09:34:14PM +0300, Oleksandr wrote: > > > On 17.07.20 18:00, Roger Pau Monné wrote: > > > > On Fri, Jul 17, 2020 at 05:11:02PM +0300, Oleksandr Tyshchenko wro

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-20 Thread Julien Grall
On 20/07/2020 10:17, Roger Pau Monné wrote: On Fri, Jul 17, 2020 at 09:34:14PM +0300, Oleksandr wrote: On 17.07.20 18:00, Roger Pau Monné wrote: On Fri, Jul 17, 2020 at 05:11:02PM +0300, Oleksandr Tyshchenko wrote: requires some implementation to forward guest MMIO access to a device model.

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-20 Thread Roger Pau Monné
On Fri, Jul 17, 2020 at 09:34:14PM +0300, Oleksandr wrote: > On 17.07.20 18:00, Roger Pau Monné wrote: > > On Fri, Jul 17, 2020 at 05:11:02PM +0300, Oleksandr Tyshchenko wrote: > > > requires > > > some implementation to forward guest MMIO access to a device model. And as > > > it > > > turned out

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-17 Thread Oleksandr
On 17.07.20 18:00, Roger Pau Monné wrote: Hello, Hello Roger I'm very happy to see this proposal, as I think having proper (1st class) VirtIO support on Xen is crucial to our survival. Almost all OSes have VirtIO frontends, while the same can't be said about Xen PV frontends. It would also

Re: Virtio in Xen on Arm (based on IOREQ concept)

2020-07-17 Thread Roger Pau Monné
Hello, I'm very happy to see this proposal, as I think having proper (1st class) VirtIO support on Xen is crucial to our survival. Almost all OSes have VirtIO frontends, while the same can't be said about Xen PV frontends. It would also allow us to piggyback on any new VirtIO devices without havin

Virtio in Xen on Arm (based on IOREQ concept)

2020-07-17 Thread Oleksandr Tyshchenko
Hello all. We would like to resume Virtio in Xen on Arm activities. You can find some background at [1] and Virtio specification at [2]. *A few words about importance:* There is an increasing interest, I would even say, the requirement to have flexible, generic and standardized cross-hypervisor s