From: Eric Blake <eblake@redhat.com>
To: Gary Jordan <jordgary@gmail.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Qemu Shared memory
Date: Mon, 30 Jun 2014 16:27:21 -0600 [thread overview]
Message-ID: <53B1E449.9000303@redhat.com> (raw)
In-Reply-To: <CAF8TkM+=R4Ok1suxQU6=-T2PYnMOW=1oEsNoc7qqBhk-tu9qwQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1387 bytes --]
On 06/30/2014 10:34 AM, Gary Jordan wrote:
> Dear developers,
>
> I want to design a shared memory for Vm in qemu. So, I also need to design
> a mechanism to let two vms communicate. Is there already some module in
> Qemu ?
It sounds like you are asking about ivshmem, which has already been
discussed a lot lately. Please search the list archives.
>
> I saw that qemu could support live migration. Can the vm also access the
> previous machine after migration? Thanks.
I'm not sure what you are asking here. From the guest's standpoint,
live migration is transparent (the guest should not know that it was
migrated). Migration is probably unrelated to intra-vm communication,
other than the fact that if you use shared memory to do intra-vm
communication, you have probably rendered your guest unmigrateable. How
would you communicate between two bare-metal hosts? The best design is
one in which your guests use the same (emulated) hardware for
intercommunication. So, if two hosts can effectively communicate via a
network, then using a virtio-net network to communicate between two
guests is the ideal emulation, and also avoids anti-migration lock-in
that you might get if you instead opt for shared memory solutions such
as ivshmem.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
prev parent reply other threads:[~2014-06-30 22:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-30 16:34 [Qemu-devel] Qemu Shared memory Gary Jordan
2014-06-30 17:13 ` [Qemu-devel] Fwd: " Gary Jordan
2014-06-30 22:27 ` Eric Blake [this message]
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=53B1E449.9000303@redhat.com \
--to=eblake@redhat.com \
--cc=jordgary@gmail.com \
--cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).