Re: Hermetic virtio-vsock in QEMU

2024-05-08 Thread Daniel P . Berrangé
On Wed, May 08, 2024 at 03:00:30PM +0200, Paolo Bonzini wrote: > On Wed, May 8, 2024 at 2:51 PM Daniel P. Berrangé wrote: > > Designwise, a native VSOCK backend in QEMU really should implement the > > same approach defined by firecracker, so that we have interoperability > > with systemd, firecrac

Re: Hermetic virtio-vsock in QEMU

2024-05-08 Thread Paolo Bonzini
On Wed, May 8, 2024 at 2:51 PM Daniel P. Berrangé wrote: > Designwise, a native VSOCK backend in QEMU really should implement the > same approach defined by firecracker, so that we have interoperability > with systemd, firecracker and cloud-hypervisor. See > > https://gitlab.com/qemu-project/qem

Re: Hermetic virtio-vsock in QEMU

2024-05-08 Thread Daniel P . Berrangé
On Wed, May 08, 2024 at 02:37:52PM +0200, Paolo Bonzini wrote: > On 5/8/24 11:38, Stefano Garzarella wrote: > > On Wed, May 08, 2024 at 01:13:09PM GMT, Marc-André Lureau wrote: > > > Hi > > > > > > On Wed, May 8, 2024 at 11:50 AM Stefano Garzarella > > > wrote: > > > > > > > > Hi Roman, > > > >

Re: Hermetic virtio-vsock in QEMU

2024-05-08 Thread Paolo Bonzini
On 5/8/24 11:38, Stefano Garzarella wrote: On Wed, May 08, 2024 at 01:13:09PM GMT, Marc-André Lureau wrote: Hi On Wed, May 8, 2024 at 11:50 AM Stefano Garzarella wrote: Hi Roman, On Tue, May 07, 2024 at 11:20:50PM GMT, Roman Kiryanov wrote: >Hi Stefano, > >On Tue, May 7, 2024 at 1:10 AM St

Re: Hermetic virtio-vsock in QEMU

2024-05-08 Thread Stefano Garzarella
On Wed, May 08, 2024 at 01:13:09PM GMT, Marc-André Lureau wrote: Hi On Wed, May 8, 2024 at 11:50 AM Stefano Garzarella wrote: Hi Roman, On Tue, May 07, 2024 at 11:20:50PM GMT, Roman Kiryanov wrote: >Hi Stefano, > >On Tue, May 7, 2024 at 1:10 AM Stefano Garzarella wrote: >> I have no experie

Re: Hermetic virtio-vsock in QEMU

2024-05-08 Thread Marc-André Lureau
Hi On Wed, May 8, 2024 at 11:50 AM Stefano Garzarella wrote: > > Hi Roman, > > On Tue, May 07, 2024 at 11:20:50PM GMT, Roman Kiryanov wrote: > >Hi Stefano, > > > >On Tue, May 7, 2024 at 1:10 AM Stefano Garzarella > >wrote: > >> I have no experience with Windows, but what we need for vhost-user

Re: Hermetic virtio-vsock in QEMU

2024-05-08 Thread Stefano Garzarella
Hi Roman, On Tue, May 07, 2024 at 11:20:50PM GMT, Roman Kiryanov wrote: Hi Stefano, On Tue, May 7, 2024 at 1:10 AM Stefano Garzarella wrote: I have no experience with Windows, but what we need for vhost-user is: - AF_UNIX and be able to send file descriptors using ancillary data (i.e. SCM

Re: Hermetic virtio-vsock in QEMU

2024-05-07 Thread Roman Kiryanov
Hi Stefano, On Tue, May 7, 2024 at 1:10 AM Stefano Garzarella wrote: > I have no experience with Windows, but what we need for vhost-user is: > > - AF_UNIX and be able to send file descriptors using ancillary data >(i.e. SCM_RIGHTS) As far as I understand, Windows does NOT support SCM_RIGHTS

Re: Hermetic virtio-vsock in QEMU

2024-05-07 Thread Stefano Garzarella
Hi, sorry for the delay, but I have been away most of last month. On Thu, Apr 18, 2024 at 10:34:43AM GMT, Daniel P. Berrangé wrote: On Wed, Apr 17, 2024 at 12:31:41PM -0700, Roman Kiryanov wrote: Hi Daniel, thank you for looking into this. I checked how VHOST_USER_VSOCK and it refers to the vh

Re: Hermetic virtio-vsock in QEMU

2024-04-18 Thread Daniel P . Berrangé
On Wed, Apr 17, 2024 at 12:31:41PM -0700, Roman Kiryanov wrote: > Hi Daniel, > > thank you for looking into this. I checked how VHOST_USER_VSOCK and it > refers to the vhost-user protocol. It is implemented in the > subprojects/libvhost-user library, but this library depends on poll.h > and linux/

Re: Hermetic virtio-vsock in QEMU

2024-04-17 Thread Roman Kiryanov
Hi Daniel, thank you for looking into this. I checked how VHOST_USER_VSOCK and it refers to the vhost-user protocol. It is implemented in the subprojects/libvhost-user library, but this library depends on poll.h and linux/vhost.h files. Do you know if it builds/works on Windows? I checked how pol

Re: Hermetic virtio-vsock in QEMU

2024-04-15 Thread Daniel P . Berrangé
On Wed, Apr 03, 2024 at 02:30:33PM -0700, Roman Kiryanov wrote: > Hi Peter, Alex and QEMU, > > I work in Android Studio Emulator and we use virtio-vsock to emulate > devices (e.g. sensors) which live in the Emulator binary. We need to run on > Windows and in environments without CONFIG_VHOST_VSOCK

Hermetic virtio-vsock in QEMU

2024-04-03 Thread Roman Kiryanov
Hi Peter, Alex and QEMU, I work in Android Studio Emulator and we use virtio-vsock to emulate devices (e.g. sensors) which live in the Emulator binary. We need to run on Windows and in environments without CONFIG_VHOST_VSOCK, that is why we cannot use vhost-vsock and invented our implementation. I