public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Fw: Accessing guest memory from the host
       [not found] <DFE1359BFEB8E94F90ABE64FCDB7765015AAEB24@bgsmsx502.gar.corp.intel.com>
@ 2009-02-01 22:25 ` PG
  2009-02-02  0:14   ` Jun Koi
  0 siblings, 1 reply; 2+ messages in thread
From: PG @ 2009-02-01 22:25 UTC (permalink / raw)
  To: kvm, gioacchino.mendola

Gioacchino Mendola wrote:
>
> 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?
>
>   
One way is to walk the host's page directory and page tables to map the 
host linear address to host physical address, assuming you know how to 
get the host linear address that kvm has allocated to the guest vm.

-pg


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Fw: Accessing guest memory from the host
  2009-02-01 22:25 ` Fw: Accessing guest memory from the host PG
@ 2009-02-02  0:14   ` Jun Koi
  0 siblings, 0 replies; 2+ messages in thread
From: Jun Koi @ 2009-02-02  0:14 UTC (permalink / raw)
  To: PG; +Cc: kvm, gioacchino.mendola

On Mon, Feb 2, 2009 at 7:25 AM, PG <pg.lists@gmail.com> wrote:
> Gioacchino Mendola wrote:
>>
>> 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?
>>
>>
>
> One way is to walk the host's page directory and page tables to map the host
> linear address to host physical address, assuming you know how to get the
> host linear address that kvm has allocated to the guest vm.
>

The problem can be solved if libkvm provides the information on the
memory allocated for the guests. Is there anything like that in
libkvm?

Thanks,
Jun

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-02  0:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <DFE1359BFEB8E94F90ABE64FCDB7765015AAEB24@bgsmsx502.gar.corp.intel.com>
2009-02-01 22:25 ` Fw: Accessing guest memory from the host PG
2009-02-02  0:14   ` Jun Koi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox