All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Gioacchino Mendola <gioacchino.mendola@gmail.com>
Cc: kvm@vger.kernel.org
Subject: Re: Accessing guest memory from the host
Date: Mon, 02 Feb 2009 15:45:58 +0200	[thread overview]
Message-ID: <4986F916.9070000@redhat.com> (raw)
In-Reply-To: <42c6aeaf0902010754j730db237p5a63762f53919dc1@mail.gmail.com>

Gioacchino Mendola wrote:
> hello everyone,
>
> I'm trying to access guest memory from the host machine (x86_64).
> In particular I would like to be able to find
> the "physical" memory addresses the host machine allocates for the guest vm.
> Is there any function in KVM that allows me to do that?
> Could any of you please help me clarify the subject
> or point me to some detailed documentation?
>   

There is no direct mapping between guest physical addresses to host 
physical addresses.  kvm allocates memory on demand (when the guest 
first accesses it), so when a VM is started no memory is allocated to 
it.  Further, kvm can swap guest memory, so the host address can 
disappear or move.

What are you trying to accomplish?

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


  reply	other threads:[~2009-02-02 13:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-01 15:54 Accessing guest memory from the host Gioacchino Mendola
2009-02-02 13:45 ` Avi Kivity [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-02-02 17:19 Gioacchino Mendola
2009-02-06 12:39 ` Gioacchino Mendola

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=4986F916.9070000@redhat.com \
    --to=avi@redhat.com \
    --cc=gioacchino.mendola@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.