From: Stefan Hajnoczi <stefanha@gmail.com>
To: Cutter 409 <cutter409@gmail.com>
Cc: kvm@vger.kernel.org
Subject: Re: Mapping guest memory from another process?
Date: Wed, 4 Sep 2013 10:47:46 +0200 [thread overview]
Message-ID: <20130904084746.GA9654@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <CAG4Ohu9qjiwycQrRmoC3gq5o-s-aASh_+-gnZdEmCjvFQcoGcg@mail.gmail.com>
On Tue, Sep 03, 2013 at 07:56:33PM -0400, Cutter 409 wrote:
> I'm working on a tool that needs the ability to map the physical
> memory of a virtual machine into its own address space. With Xen, I
> can simply call xc_map_foreign_pages().
>
> Is there something similar for KVM? So far, I can only figure out how
> to do it if I were the process that created the VM (then I could
> mmap() the handle of the virtual machine). Is there a way for an
> outside process to do this?
You can get QEMU to do a shared mapping of a files as guest RAM using
-mem-path and -mem-prealloc, see man qemu.
Stefan
next prev parent reply other threads:[~2013-09-04 8:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAG4Ohu_ZxZodnVpA=ym0WdM++Bdhwkx8MUg69aQHG8kOfTUB=A@mail.gmail.com>
2013-09-03 23:56 ` Mapping guest memory from another process? Cutter 409
2013-09-04 8:47 ` Stefan Hajnoczi [this message]
[not found] ` <CAG4Ohu-6Rksa3UgirBAKBEuWst6gG2yc4EUWebfn2U=MU9FwnA@mail.gmail.com>
2013-09-04 17:10 ` Cutter 409
2013-09-09 10:01 ` Paolo Bonzini
2013-09-09 9:33 ` Stefan Hajnoczi
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=20130904084746.GA9654@stefanha-thinkpad.redhat.com \
--to=stefanha@gmail.com \
--cc=cutter409@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