public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@qumranet.com>
To: Arn <cse.syslab@gmail.com>
Cc: kvm@vger.kernel.org
Subject: Re: Sharing variables/memory between host and guest ?
Date: Sun, 13 Jul 2008 13:10:28 +0300	[thread overview]
Message-ID: <4879D494.7020803@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.
> 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.
>
> 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.
>
>   

If you use the -mem-path qemu option, all guest memory will be in a file 
on tmpfs.  You can mmap that file and access all guest memory.  Of 
course, this is hitting the problem with a fairly bit hammer; more 
refined approaches are possible.


-- 
error compiling committee.c: too many arguments to function


  parent reply	other threads:[~2008-07-13 10:10 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
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 [this message]
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=4879D494.7020803@qumranet.com \
    --to=avi@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