Re: How to implement message forwarding from one CID to another in vhost driver

2024-07-02 Thread Dorjoy Chowdhury
Hey Stefano, Thanks a lot for all the details. I guess my next step is to try to implement the forwarding logic in vhost-device-vsock and take it from there. Regards, Dorjoy On Tue, Jul 2, 2024 at 6:05 PM Stefano Garzarella wrote: > > On Sun, Jun 30, 2024 at 04:54:18PM GMT, Dorjoy Chowdhury wrot

Re: How to implement message forwarding from one CID to another in vhost driver

2024-07-02 Thread Stefano Garzarella
On Sun, Jun 30, 2024 at 04:54:18PM GMT, Dorjoy Chowdhury wrote: Hey Stefano, Apart from my questions in my previous email, I have some others as well. If the vhost-device-vsock modification to forward packets to VMADDR_CID_LOCAL is implemented, does the VMADDR_FLAG_TO_HOST need to be set by any

Re: How to implement message forwarding from one CID to another in vhost driver

2024-07-02 Thread Stefano Garzarella
On Wed, Jun 26, 2024 at 11:43:25PM GMT, Dorjoy Chowdhury wrote: Hey Stefano, Thanks a lot for all the details. I will look into them and reach out if I need further input. Thanks! I have tried to summarize my understanding below. Let me know if that sounds correct. On Wed, Jun 26, 2024 at 2:37 P

Re: How to implement message forwarding from one CID to another in vhost driver

2024-06-30 Thread Dorjoy Chowdhury
Hey Stefano, Apart from my questions in my previous email, I have some others as well. If the vhost-device-vsock modification to forward packets to VMADDR_CID_LOCAL is implemented, does the VMADDR_FLAG_TO_HOST need to be set by any application in the guest? I understand that the flag is set automa

Re: How to implement message forwarding from one CID to another in vhost driver

2024-06-26 Thread Dorjoy Chowdhury
Hey Stefano, Thanks a lot for all the details. I will look into them and reach out if I need further input. Thanks! I have tried to summarize my understanding below. Let me know if that sounds correct. On Wed, Jun 26, 2024 at 2:37 PM Stefano Garzarella wrote: > > Hi Dorjoy, > > On Tue, Jun 25, 20

Re: How to implement message forwarding from one CID to another in vhost driver

2024-06-26 Thread Stefano Garzarella
Hi Dorjoy, On Tue, Jun 25, 2024 at 11:44:30PM GMT, Dorjoy Chowdhury wrote: Hey Stefano, [...] > >So the immediate plan would be to: > > 1) Build a new vhost-vsock-forward object model that connects to >vhost as CID 3 and then forwards every packet from CID 1 to the >Enclave-CID and every pa

Re: How to implement message forwarding from one CID to another in vhost driver

2024-06-25 Thread Dorjoy Chowdhury
Hey Stefano, On Wed, May 29, 2024 at 4:56 PM Stefano Garzarella wrote: > > On Wed, May 29, 2024 at 12:43:57PM GMT, Alexander Graf wrote: > > > >On 29.05.24 10:04, Stefano Garzarella wrote: > >> > >>On Tue, May 28, 2024 at 06:38:24PM GMT, Paolo Bonzini wrote: > >>>On Tue, May 28, 2024 at 5:53 PM S

Re: How to implement message forwarding from one CID to another in vhost driver

2024-05-29 Thread Stefano Garzarella
On Wed, May 29, 2024 at 12:43:57PM GMT, Alexander Graf wrote: On 29.05.24 10:04, Stefano Garzarella wrote: On Tue, May 28, 2024 at 06:38:24PM GMT, Paolo Bonzini wrote: On Tue, May 28, 2024 at 5:53 PM Stefano Garzarella wrote: On Tue, May 28, 2024 at 05:49:32PM GMT, Paolo Bonzini wrote: On

Re: How to implement message forwarding from one CID to another in vhost driver

2024-05-29 Thread Alexander Graf
On 29.05.24 10:04, Stefano Garzarella wrote: On Tue, May 28, 2024 at 06:38:24PM GMT, Paolo Bonzini wrote: On Tue, May 28, 2024 at 5:53 PM Stefano Garzarella wrote: On Tue, May 28, 2024 at 05:49:32PM GMT, Paolo Bonzini wrote: >On Tue, May 28, 2024 at 5:41 PM Stefano Garzarella wrote: >> >

Re: How to implement message forwarding from one CID to another in vhost driver

2024-05-29 Thread Stefano Garzarella
On Tue, May 28, 2024 at 06:38:24PM GMT, Paolo Bonzini wrote: On Tue, May 28, 2024 at 5:53 PM Stefano Garzarella wrote: On Tue, May 28, 2024 at 05:49:32PM GMT, Paolo Bonzini wrote: >On Tue, May 28, 2024 at 5:41 PM Stefano Garzarella wrote: >> >I think it's either that or implementing virtio-vs

Re: How to implement message forwarding from one CID to another in vhost driver

2024-05-28 Thread Paolo Bonzini
On Tue, May 28, 2024 at 5:53 PM Stefano Garzarella wrote: > > On Tue, May 28, 2024 at 05:49:32PM GMT, Paolo Bonzini wrote: > >On Tue, May 28, 2024 at 5:41 PM Stefano Garzarella > >wrote: > >> >I think it's either that or implementing virtio-vsock in userspace > >> >(https://lore.kernel.org/qemu-

Re: How to implement message forwarding from one CID to another in vhost driver

2024-05-28 Thread Stefano Garzarella
On Tue, May 28, 2024 at 05:49:32PM GMT, Paolo Bonzini wrote: On Tue, May 28, 2024 at 5:41 PM Stefano Garzarella wrote: >I think it's either that or implementing virtio-vsock in userspace >(https://lore.kernel.org/qemu-devel/30baeb56-64d2-4ea3-8e53-6a5c50999...@redhat.com/, >search for "To conne

Re: How to implement message forwarding from one CID to another in vhost driver

2024-05-28 Thread Paolo Bonzini
On Tue, May 28, 2024 at 5:41 PM Stefano Garzarella wrote: > >I think it's either that or implementing virtio-vsock in userspace > >(https://lore.kernel.org/qemu-devel/30baeb56-64d2-4ea3-8e53-6a5c50999...@redhat.com/, > >search for "To connect host<->guest"). > > For in this case AF_VSOCK can't be

Re: How to implement message forwarding from one CID to another in vhost driver

2024-05-28 Thread Stefano Garzarella
On Tue, May 28, 2024 at 05:19:34PM GMT, Paolo Bonzini wrote: On 5/27/24 09:54, Alexander Graf wrote: On 27.05.24 09:08, Alexander Graf wrote: Hey Stefano, On 23.05.24 10:45, Stefano Garzarella wrote: On Tue, May 21, 2024 at 08:50:22AM GMT, Alexander Graf wrote: Howdy, On 20.05.24 14:44, Do

Re: How to implement message forwarding from one CID to another in vhost driver

2024-05-28 Thread Paolo Bonzini
On 5/27/24 09:54, Alexander Graf wrote: On 27.05.24 09:08, Alexander Graf wrote: Hey Stefano, On 23.05.24 10:45, Stefano Garzarella wrote: On Tue, May 21, 2024 at 08:50:22AM GMT, Alexander Graf wrote: Howdy, On 20.05.24 14:44, Dorjoy Chowdhury wrote: Hey Stefano, Thanks for the reply. O

Re: How to implement message forwarding from one CID to another in vhost driver

2024-05-28 Thread Stefano Garzarella
On Mon, May 27, 2024 at 09:54:17AM GMT, Alexander Graf wrote: On 27.05.24 09:08, Alexander Graf wrote: Hey Stefano, On 23.05.24 10:45, Stefano Garzarella wrote: On Tue, May 21, 2024 at 08:50:22AM GMT, Alexander Graf wrote: Howdy, On 20.05.24 14:44, Dorjoy Chowdhury wrote: Hey Stefano, Tha

Re: How to implement message forwarding from one CID to another in vhost driver

2024-05-27 Thread Alexander Graf
On 27.05.24 09:08, Alexander Graf wrote: Hey Stefano, On 23.05.24 10:45, Stefano Garzarella wrote: On Tue, May 21, 2024 at 08:50:22AM GMT, Alexander Graf wrote: Howdy, On 20.05.24 14:44, Dorjoy Chowdhury wrote: Hey Stefano, Thanks for the reply. On Mon, May 20, 2024, 2:55 PM Stefano Garz

Re: How to implement message forwarding from one CID to another in vhost driver

2024-05-27 Thread Alexander Graf
Hey Stefano, On 23.05.24 10:45, Stefano Garzarella wrote: On Tue, May 21, 2024 at 08:50:22AM GMT, Alexander Graf wrote: Howdy, On 20.05.24 14:44, Dorjoy Chowdhury wrote: Hey Stefano, Thanks for the reply. On Mon, May 20, 2024, 2:55 PM Stefano Garzarella wrote: Hi Dorjoy, On Sat, May 18

Re: How to implement message forwarding from one CID to another in vhost driver

2024-05-23 Thread Stefano Garzarella
On Tue, May 21, 2024 at 08:50:22AM GMT, Alexander Graf wrote: Howdy, On 20.05.24 14:44, Dorjoy Chowdhury wrote: Hey Stefano, Thanks for the reply. On Mon, May 20, 2024, 2:55 PM Stefano Garzarella wrote: Hi Dorjoy, On Sat, May 18, 2024 at 04:17:38PM GMT, Dorjoy Chowdhury wrote: Hi, Hope

Re: How to implement message forwarding from one CID to another in vhost driver

2024-05-20 Thread Alexander Graf
Howdy, On 20.05.24 14:44, Dorjoy Chowdhury wrote: Hey Stefano, Thanks for the reply. On Mon, May 20, 2024, 2:55 PM Stefano Garzarella wrote: Hi Dorjoy, On Sat, May 18, 2024 at 04:17:38PM GMT, Dorjoy Chowdhury wrote: Hi, Hope you are doing well. I am working on adding AWS Nitro Enclave[1]

Re: How to implement message forwarding from one CID to another in vhost driver

2024-05-20 Thread Dorjoy Chowdhury
Hey Stefano, Thanks for the reply. On Mon, May 20, 2024, 2:55 PM Stefano Garzarella wrote: > > Hi Dorjoy, > > On Sat, May 18, 2024 at 04:17:38PM GMT, Dorjoy Chowdhury wrote: > >Hi, > > > >Hope you are doing well. I am working on adding AWS Nitro Enclave[1] > >emulation support in QEMU. Alexande

Re: How to implement message forwarding from one CID to another in vhost driver

2024-05-20 Thread Stefano Garzarella
Hi Dorjoy, On Sat, May 18, 2024 at 04:17:38PM GMT, Dorjoy Chowdhury wrote: Hi, Hope you are doing well. I am working on adding AWS Nitro Enclave[1] emulation support in QEMU. Alexander Graf is mentoring me on this work. A v1 patch series has already been posted to the qemu-devel mailing list[2]