From: Avi Kivity <avi@redhat.com>
To: "Kumar, Venkat" <Venkat.Kumar@lsi.com>
Cc: "kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: Inter VM Communication
Date: Tue, 24 Mar 2009 14:45:05 +0200 [thread overview]
Message-ID: <49C8D5D1.3010902@redhat.com> (raw)
In-Reply-To: <3D9CB4061D1EB3408D4A0B910433453C030275936E@inbmail01.lsi.com>
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.
next prev parent reply other threads:[~2009-03-24 12:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-24 11:00 Inter VM Communication Kumar, Venkat
2009-03-24 12:45 ` Avi Kivity [this message]
2009-03-24 20:41 ` Cam Macdonell
2009-03-24 21:06 ` Avi Kivity
2009-03-24 22:31 ` Brian Jackson
2009-03-25 2:19 ` Anthony Liguori
2009-03-25 6:44 ` Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49C8D5D1.3010902@redhat.com \
--to=avi@redhat.com \
--cc=Venkat.Kumar@lsi.com \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox