RE: [PATCH v8] introduce vfio-user protocol specification

2021-06-14 Thread Thanos Makatos
rwitz > ; changpeng@intel.com; > dgilb...@redhat.com; Yan Zhao ; Michael S . Tsirkin > ; Gerd Hoffmann ; Christophe de > Dinechin ; Jason Wang ; > Cornelia Huck ; Kirti Wankhede > ; Paolo Bonzini ; > mpiszc...@ddn.com; John Levon > Subject: Re: [PATCH v8] introduce vfio-user pr

RE: [PATCH v8] introduce vfio-user protocol specification

2021-06-14 Thread Thanos Makatos
> > Are there rules for avoiding deadlock between client->server and > > server->client messages? For example, the client sends > > VFIO_USER_REGION_WRITE and the server sends > VFIO_USER_VM_INTERRUPT > > before replying to the write message. > > > > Multi-threaded clients and servers could end up

RE: [PATCH v8] introduce vfio-user protocol specification

2021-06-14 Thread Thanos Makatos
> > > +VFIO_USER_DMA_UNMAP > > > +--- > > > + > > > +This command message is sent by the client to the server to inform > > > +it that a DMA region, previously made available via a > > > +VFIO_USER_DMA_MAP command message, is no longer available for > DMA. > > > +It typically

Re: [PATCH v8] introduce vfio-user protocol specification

2021-05-19 Thread John Levon
On Wed, May 19, 2021 at 03:08:17PM -0600, Alex Williamson wrote: > > +VFIO_USER_DMA_MAP > > +- > > + > > +Message Format > > +^^ > > + > > ++--++ > > +| Name | Value | > >

Re: [PATCH v8] introduce vfio-user protocol specification

2021-05-19 Thread Alex Williamson
On Wed, 14 Apr 2021 04:41:22 -0700 Thanos Makatos wrote: > + > +VFIO_USER_DMA_MAP > +- > + > +Message Format > +^^ > + > ++--++ > +| Name | Value | > ++==++ > +| Message ID

Re: [PATCH v8] introduce vfio-user protocol specification

2021-05-11 Thread John Johnson
> On May 10, 2021, at 3:25 PM, John Levon wrote: > > On Mon, May 10, 2021 at 05:57:37PM +0100, Stefan Hajnoczi wrote: > > >>> +VFIO_USER_VM_INTERRUPT >>> +-- >>> + >>> +Message format >>> +^^ >>> + >>> ++++ >>> +| Name

Re: [PATCH v8] introduce vfio-user protocol specification

2021-05-11 Thread Stefan Hajnoczi
On Tue, May 11, 2021 at 10:43:57AM +, John Levon wrote: > On Tue, May 11, 2021 at 11:09:53AM +0100, Stefan Hajnoczi wrote: > > Fleshing out irqs sounds like a 1.0 milestone to me. It will definitely > > be necessary but for now this can be dropped. > > I could be wrong, and probably am, but I

Re: [PATCH v8] introduce vfio-user protocol specification

2021-05-11 Thread John Levon
On Tue, May 11, 2021 at 11:09:53AM +0100, Stefan Hajnoczi wrote: > > > > +* *sub-regions* is the array of Sub-Region IO FD info structures > > > > + > > > > +The reply message will additionally include at least one file > > > > descriptor in the > > > > +ancillary data. Note that more than one

Re: [PATCH v8] introduce vfio-user protocol specification

2021-05-11 Thread Stefan Hajnoczi
On Mon, May 10, 2021 at 10:25:41PM +, John Levon wrote: > On Mon, May 10, 2021 at 05:57:37PM +0100, Stefan Hajnoczi wrote: > > On Wed, Apr 14, 2021 at 04:41:22AM -0700, Thanos Makatos wrote: > > > +Region IO FD info format > > > + > > > + > > >

Re: [PATCH v8] introduce vfio-user protocol specification

2021-05-10 Thread John Levon
On Mon, May 10, 2021 at 05:57:37PM +0100, Stefan Hajnoczi wrote: > On Wed, Apr 14, 2021 at 04:41:22AM -0700, Thanos Makatos wrote: > > Elena A: I CCed you in case you want to review the Sorry, we should have included Elena already. > > +VFIO sparse mmap > > + > > + > >

Re: [PATCH v8] introduce vfio-user protocol specification

2021-05-10 Thread Stefan Hajnoczi
On Wed, Apr 14, 2021 at 04:41:22AM -0700, Thanos Makatos wrote: Elena A: I CCed you in case you want to review the VFIO_USER_DEVICE_GET_REGION_IO_FDS section that describes how ioregionfd can be used by the vfio-user protocol. If you're busy, don't worry but it's just nice to know that your

RE: [PATCH v8] introduce vfio-user protocol specification

2021-05-07 Thread Thanos Makatos
rwitz > ; changpeng@intel.com; > dgilb...@redhat.com; Yan Zhao ; Michael S . Tsirkin > ; Gerd Hoffmann ; Christophe de > Dinechin ; Jason Wang ; > Cornelia Huck ; Kirti Wankhede > ; Paolo Bonzini ; > mpiszc...@ddn.com > Subject: Re: [PATCH v8] introduce vfio-user protocol s

Re: [PATCH v8] introduce vfio-user protocol specification

2021-05-06 Thread Stefan Hajnoczi
Thanks, I will review the rest of the spec early next week. Stefan signature.asc Description: PGP signature

Re: [PATCH v8] introduce vfio-user protocol specification

2021-05-05 Thread John Levon
On Tue, May 04, 2021 at 02:51:45PM +0100, Stefan Hajnoczi wrote: > > +While passing of file descriptors is desirable for performance reasons, it > > is > > +not necessary neither for the client nor for the server to support it in > > order > > Double negative. "not" can be removed. Done. I

Re: [PATCH v8] introduce vfio-user protocol specification

2021-05-05 Thread Stefan Hajnoczi
On Tue, May 04, 2021 at 02:31:45PM +, John Levon wrote: > On Tue, May 04, 2021 at 02:51:45PM +0100, Stefan Hajnoczi wrote: > > > On Wed, Apr 14, 2021 at 04:41:22AM -0700, Thanos Makatos wrote: > > By the way, this DMA mapping design is the eager mapping approach. Another > > approach is the

Re: [PATCH v8] introduce vfio-user protocol specification

2021-05-04 Thread John Levon
On Tue, May 04, 2021 at 02:51:45PM +0100, Stefan Hajnoczi wrote: > On Wed, Apr 14, 2021 at 04:41:22AM -0700, Thanos Makatos wrote: > > This patch introduces the vfio-user protocol specification (formerly > > known as VFIO-over-socket), which is designed to allow devices to be Thanks for your

Re: [PATCH v8] introduce vfio-user protocol specification

2021-05-04 Thread Stefan Hajnoczi
On Wed, Apr 14, 2021 at 04:41:22AM -0700, Thanos Makatos wrote: > This patch introduces the vfio-user protocol specification (formerly > known as VFIO-over-socket), which is designed to allow devices to be > emulated outside QEMU, in a separate process. vfio-user reuses the > existing VFIO

Re: [PATCH v8] introduce vfio-user protocol specification

2021-04-27 Thread Stefan Hajnoczi
; Gerd Hoffmann ; Christophe de > > Dinechin ; Jason Wang ; > > Cornelia Huck ; Kirti Wankhede > > ; Paolo Bonzini ; > > mpiszc...@ddn.com; John Levon > > Subject: Re: [PATCH v8] introduce vfio-user protocol specification > > > > On Wed, Apr 14, 2021 a

RE: [PATCH v8] introduce vfio-user protocol specification

2021-04-27 Thread Thanos Makatos
tomassetti.and...@gmail.com; Raphael Norwitz > ; changpeng@intel.com; > dgilb...@redhat.com; Yan Zhao ; Michael S . Tsirkin > ; Gerd Hoffmann ; Christophe de > Dinechin ; Jason Wang ; > Cornelia Huck ; Kirti Wankhede > ; Paolo Bonzini ; > mpiszc...@ddn.com; John Levon &g

Re: [PATCH v8] introduce vfio-user protocol specification

2021-04-26 Thread Stefan Hajnoczi
On Wed, Apr 14, 2021 at 04:41:22AM -0700, Thanos Makatos wrote: > This patch introduces the vfio-user protocol specification (formerly > known as VFIO-over-socket), which is designed to allow devices to be > emulated outside QEMU, in a separate process. vfio-user reuses the > existing VFIO

[PATCH v8] introduce vfio-user protocol specification

2021-04-14 Thread Thanos Makatos
This patch introduces the vfio-user protocol specification (formerly known as VFIO-over-socket), which is designed to allow devices to be emulated outside QEMU, in a separate process. vfio-user reuses the existing VFIO defines, structs and concepts. It has been earlier discussed as an RFC in: