From: Dor Laor <dor.laor@qumranet.com>
To: Arn <cse.syslab@gmail.com>
Cc: kvm@vger.kernel.org
Subject: Re: Sharing variables/memory between host and guest ?
Date: Sat, 12 Jul 2008 15:33:48 +0300 [thread overview]
Message-ID: <4878A4AC.7070805@qumranet.com> (raw)
In-Reply-To: <896ae46a0807111716u49fda2d7uf6481aa6c09daa90@mail.gmail.com>
Arn wrote:
> How can one share memory (a few variables not necessarily a page)
> between host/hypervisor and guest VM ?
> Since the guest is just a process within the host, there should be
> existing ways to do this.
>
It's not that straight forward since the host has its pfn (page frame
number) while the guest has gfn (guest frame number) and also use
virtual memory.
> What about using something like debugfs or sysfs, is it possible to
> share variables this way ? Note, I want a system that
> is fast, i.e. changes to shared variable/memory should be visible instantly.
>
>
A paravirtualized driver can take care of that with driver in the guest
and device side in qemu/host kernel.
You can use 9p virtio solution in Linux that implements a shared file
system.
> I search the kvm-devel archives and found emails referring to "kshmem"
> but a search on the kvm-70 code turns up nothing.
> There are also some emails on sharing a page but no final outcome or
> what exactly to do.
>
> Thanks
> Arn
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2008-07-12 12:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-12 0:16 Sharing variables/memory between host and guest ? Arn
2008-07-12 12:33 ` Dor Laor [this message]
2008-07-12 21:03 ` Arn
2008-07-12 21:15 ` Eric Van Hensbergen
2008-07-12 21:59 ` Arn
2008-07-12 22:06 ` Eric Van Hensbergen
2008-07-13 10:10 ` Avi Kivity
2008-07-14 21:43 ` Arn
2008-07-19 8:29 ` 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=4878A4AC.7070805@qumranet.com \
--to=dor.laor@qumranet.com \
--cc=cse.syslab@gmail.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