Re: Inter VM Communication

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 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 files (possibly on /dev/shm).

Note that sharing will break as soon as one of the guests is migrated away.

To send events you can utilize pci interrupts.

An alternative approach is to use virtio, but this is somewhat more complicated.

--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux