Re: [RFC] hypercall-vsock: add a new vsock transport

2021-11-25 Thread Gerd Hoffmann
On Thu, Nov 25, 2021 at 08:43:55AM +, Wang, Wei W wrote: > On Thursday, November 25, 2021 2:38 PM, Jason Wang wrote: > > > We thought about virtio-mmio. There are some barriers: > > > 1) It wasn't originally intended for x86 machines. The only machine > > > type in QEMU that supports it (to run

RE: [RFC] hypercall-vsock: add a new vsock transport

2021-11-25 Thread Wang, Wei W
On Thursday, November 25, 2021 2:38 PM, Jason Wang wrote: > > We thought about virtio-mmio. There are some barriers: > > 1) It wasn't originally intended for x86 machines. The only machine > > type in QEMU that supports it (to run on x86) is microvm. But > > "microvm" doesn’t support TDX currently,

Re: [RFC] hypercall-vsock: add a new vsock transport

2021-11-24 Thread Jason Wang
On Thu, Nov 11, 2021 at 3:59 PM Wang, Wei W wrote: > > On Wednesday, November 10, 2021 6:50 PM, Michael S. Tsirkin wrote: > > On Wed, Nov 10, 2021 at 07:12:36AM +, Wang, Wei W wrote: > > > > hypercalls are fundamentally hypervisor dependent though. > > Yes, each hypervisor needs to support it.

Re: [RFC] hypercall-vsock: add a new vsock transport

2021-11-11 Thread Michael S. Tsirkin
On Thu, Nov 11, 2021 at 07:58:29AM +, Wang, Wei W wrote: > On Wednesday, November 10, 2021 6:50 PM, Michael S. Tsirkin wrote: > > On Wed, Nov 10, 2021 at 07:12:36AM +, Wang, Wei W wrote: > > > > hypercalls are fundamentally hypervisor dependent though. > > Yes, each hypervisor needs to sup

Re: [RFC] hypercall-vsock: add a new vsock transport

2021-11-11 Thread Paolo Bonzini
On 11/11/21 09:14, Wang, Wei W wrote: Adding Andra and Sergio, because IIRC Firecracker and libkrun emulates virtio-vsock with virtio-mmio so the implementation should be simple and also not directly tied to a specific VMM. OK. This would be OK for KVM based guests. For Hyperv and VMWare based

RE: [RFC] hypercall-vsock: add a new vsock transport

2021-11-11 Thread Wang, Wei W
On Wednesday, November 10, 2021 7:17 PM, Stefano Garzarella wrote: > Adding Andra and Sergio, because IIRC Firecracker and libkrun emulates > virtio-vsock with virtio-mmio so the implementation should be simple and also > not directly tied to a specific VMM. > OK. This would be OK for KVM based

RE: [RFC] hypercall-vsock: add a new vsock transport

2021-11-11 Thread Wang, Wei W
> From: Stefan Hajnoczi On Wednesday, November 10, 2021 5:35 PM, Stefan Hajnoczi wrote: > AF_VSOCK is designed to allow multiple transports, so why not. There is a cost > to developing and maintaining a vsock transport though. Yes. The effort could be reduced via simplifying the design as much as

RE: [RFC] hypercall-vsock: add a new vsock transport

2021-11-10 Thread Wang, Wei W
On Wednesday, November 10, 2021 6:50 PM, Michael S. Tsirkin wrote: > On Wed, Nov 10, 2021 at 07:12:36AM +, Wang, Wei W wrote: > > hypercalls are fundamentally hypervisor dependent though. Yes, each hypervisor needs to support it. We could simplify the design and implementation to the minimal,

Re: [RFC] hypercall-vsock: add a new vsock transport

2021-11-10 Thread Stefano Garzarella
On Wed, Nov 10, 2021 at 07:12:36AM +, Wang, Wei W wrote: Hi, We plan to add a new vsock transport based on hypercall (e.g. vmcall on Intel CPUs). It transports AF_VSOCK packets between the guest and host, which is similar to virtio-vsock, vmci-vsock and hyperv-vsock. Compared to the above

Re: [RFC] hypercall-vsock: add a new vsock transport

2021-11-10 Thread Michael S. Tsirkin
On Wed, Nov 10, 2021 at 07:12:36AM +, Wang, Wei W wrote: > Hi, > > > > We plan to add a new vsock transport based on hypercall (e.g. vmcall on Intel > CPUs). > > It transports AF_VSOCK packets between the guest and host, which is similar to > > virtio-vsock, vmci-vsock and hyperv-vsock. >

Re: [RFC] hypercall-vsock: add a new vsock transport

2021-11-10 Thread Stefan Hajnoczi
On Wed, Nov 10, 2021 at 07:12:36AM +, Wang, Wei W wrote: > We plan to add a new vsock transport based on hypercall (e.g. vmcall on Intel > CPUs). > It transports AF_VSOCK packets between the guest and host, which is similar to > virtio-vsock, vmci-vsock and hyperv-vsock. > > Compared to the a