Re: Using virtio for inter-VM communication

2014-06-16 Thread Paolo Bonzini
Il 15/06/2014 08:20, Jan Kiszka ha scritto: I think implementing Xen hypercalls in jailhouse for grant table and event channels would actually make a lot of sense. The Xen implementation is 2.5kLOC and I think it should be possible to compact it noticeably, especially if you limit yourself

Re: Using virtio for inter-VM communication

2014-06-16 Thread Jan Kiszka
On 2014-06-17 07:24, Paolo Bonzini wrote: Il 15/06/2014 08:20, Jan Kiszka ha scritto: I think implementing Xen hypercalls in jailhouse for grant table and event channels would actually make a lot of sense. The Xen implementation is 2.5kLOC and I think it should be possible to compact it

Re: Using virtio for inter-VM communication

2014-06-15 Thread Jan Kiszka
On 2014-06-13 10:45, Paolo Bonzini wrote: Il 13/06/2014 08:23, Jan Kiszka ha scritto: That would preserve zero-copy capabilities (as long as you can work against the shared mem directly, e.g. doing DMA from a physical NIC or storage device into it) and keep the hypervisor out of the loop.

Re: Using virtio for inter-VM communication

2014-06-13 Thread Jan Kiszka
On 2014-06-13 02:47, Rusty Russell wrote: Jan Kiszka jan.kis...@siemens.com writes: On 2014-06-12 04:27, Rusty Russell wrote: Henning Schild henning.sch...@siemens.com writes: It was also never implemented, and remains a thought experiment. However, implementing it in lguest should be fairly

Re: Using virtio for inter-VM communication

2014-06-13 Thread Paolo Bonzini
Il 13/06/2014 08:23, Jan Kiszka ha scritto: That would preserve zero-copy capabilities (as long as you can work against the shared mem directly, e.g. doing DMA from a physical NIC or storage device into it) and keep the hypervisor out of the loop. This seems ill thought out. How will you

Re: Using virtio for inter-VM communication

2014-06-12 Thread Markus Armbruster
Vincent JARDIN vincent.jar...@6wind.com writes: On 10/06/2014 18:48, Henning Schild wrote: Hi, In a first prototype i implemented a ivshmem[2] device for the hypervisor. That way we can share memory between virtual machines. Ivshmem is nice and simple but does not seem to be used anymore.

Re: Using virtio for inter-VM communication

2014-06-12 Thread Henning Schild
On Thu, 12 Jun 2014 08:48:04 +0200 Markus Armbruster arm...@redhat.com wrote: Vincent JARDIN vincent.jar...@6wind.com writes: On 10/06/2014 18:48, Henning Schild wrote: Hi, In a first prototype i implemented a ivshmem[2] device for the hypervisor. That way we can share memory between

Re: Using virtio for inter-VM communication

2014-06-12 Thread Vincent JARDIN
On 12/06/2014 09:44, Henning Schild wrote: It may be used, but that doesn't mean it's maintained, or robust against abuse. My advice is to steer clear of it. Could you elaborate on why you advice against it? +1 elaborate please. beside the DPDK source code, some other common use cases: -

Re: [Qemu-devel] Using virtio for inter-VM communication

2014-06-12 Thread Markus Armbruster
Henning Schild henning.sch...@siemens.com writes: On Thu, 12 Jun 2014 08:48:04 +0200 Markus Armbruster arm...@redhat.com wrote: Vincent JARDIN vincent.jar...@6wind.com writes: On 10/06/2014 18:48, Henning Schild wrote: Hi, In a first prototype i implemented a ivshmem[2] device for the

Why I advise against using ivshmem (was: [Qemu-devel] Using virtio for inter-VM communication)

2014-06-12 Thread Markus Armbruster
Henning Schild henning.sch...@siemens.com writes: On Thu, 12 Jun 2014 08:48:04 +0200 Markus Armbruster arm...@redhat.com wrote: Vincent JARDIN vincent.jar...@6wind.com writes: On 10/06/2014 18:48, Henning Schild wrote: Hi, In a first prototype i implemented a ivshmem[2] device for the

Re: Using virtio for inter-VM communication

2014-06-12 Thread Rusty Russell
Jan Kiszka jan.kis...@siemens.com writes: On 2014-06-12 04:27, Rusty Russell wrote: Henning Schild henning.sch...@siemens.com writes: It was also never implemented, and remains a thought experiment. However, implementing it in lguest should be fairly easy. The reason why a trusted helper,

Re: Using virtio for inter-VM communication

2014-06-11 Thread Rusty Russell
Henning Schild henning.sch...@siemens.com writes: Hi, i am working on the jailhouse[1] project and am currently looking at inter-VM communication. We want to connect guests directly with virtual consoles based on shared memory. The code complexity in the hypervisor should be minimal

Re: Using virtio for inter-VM communication

2014-06-11 Thread Jan Kiszka
On 2014-06-12 04:27, Rusty Russell wrote: Henning Schild henning.sch...@siemens.com writes: Hi, i am working on the jailhouse[1] project and am currently looking at inter-VM communication. We want to connect guests directly with virtual consoles based on shared memory. The code complexity

Using virtio for inter-VM communication

2014-06-10 Thread Henning Schild
Hi, i am working on the jailhouse[1] project and am currently looking at inter-VM communication. We want to connect guests directly with virtual consoles based on shared memory. The code complexity in the hypervisor should be minimal, it should just make the shared memory discoverable and provide

Re: Using virtio for inter-VM communication

2014-06-10 Thread Vincent JARDIN
On 10/06/2014 18:48, Henning Schild wrote: Hi, In a first prototype i implemented a ivshmem[2] device for the hypervisor. That way we can share memory between virtual machines. Ivshmem is nice and simple but does not seem to be used anymore. And it does not define higher level devices, like

Best method for inter-vm communication in KVM

2013-12-14 Thread Pratik Lahoti
Hi, I am Pratik from India. We are working on inter-vm communication in KVM. We have read about some implementations like IVSHMEM Nahanni Device [1] and Zero-copy Inter-VM Communication (ZIVM) [2]. We want to pick one of these for our project. Performance wise, which one is better? Also, we got

Inter VM Communication

2009-03-24 Thread Kumar, Venkat
Just like how Xen has Xenbus, Emulated Platform-PCI device and Events for Inter VM communication, Does KVM has any mechanism for Inter VM communication? How to share a page between two virtual machines running on KVM? Thx, Venkat -- To unsubscribe from this list: send the line unsubscribe kvm

Re: Inter VM Communication

2009-03-24 Thread Avi Kivity
Kumar, Venkat wrote: Just like how Xen has Xenbus, Emulated Platform-PCI device and Events for Inter VM communication, Does KVM has any mechanism for Inter VM communication? How to share a page between two virtual machines running on KVM? If you just want to share a page (or a bunch

Re: Inter VM Communication

2009-03-24 Thread Avi Kivity
Cam Macdonell wrote: If you just want to share a page (or a bunch of memory), write a qemu PCI device model that exposes that page through a BAR. The guests can then map the BAR and access the page. To share the page, use normal Linux memory sharing, such as shared memory segments or mapped

Re: Inter VM Communication

2009-03-24 Thread Cam Macdonell
Avi Kivity wrote: Kumar, Venkat wrote: Just like how Xen has Xenbus, Emulated Platform-PCI device and Events for Inter VM communication, Does KVM has any mechanism for Inter VM communication? How to share a page between two virtual machines running on KVM? If you just want to share

Re: Inter VM Communication

2009-03-24 Thread Anthony Liguori
Avi Kivity wrote: Kumar, Venkat wrote: Just like how Xen has Xenbus, Emulated Platform-PCI device and Events for Inter VM communication, Does KVM has any mechanism for Inter VM communication? How to share a page between two virtual machines running on KVM? If you just want to share