public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* How guest virtual address is translated to physical address?
@ 2008-04-02 13:49 Guillaume Thouvenin
  2008-04-02 15:22 ` Anthony Liguori
  0 siblings, 1 reply; 3+ messages in thread
From: Guillaume Thouvenin @ 2008-04-02 13:49 UTC (permalink / raw)
  To: kvm-devel

Hello,

 I have a question about how guest page table and shadow page table
work together and more precisely, about how host is involved when guest
access a page that it's already in the page table.

 The guest maintains its page table to translate guest virtual address
to guest physical address. It uses the MMU and cr3 register for the
translation. When there is a page fault, the host gets involved and it
catches the guest physical address (by walking through the guest page
table?) and fills its shadow page table. Thus the host can make the
translation from guest physical address to physical address. Now, if
the guest reads the same page, the PTE will point to guest physical
address but there will not be any page fault so the host will not be
involved in the translation (not so sure). I don't see how the guest
virtual address will be translated to physical address? I miss
something but I don't see what.


Thanks for your help,
Guillaume

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

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

end of thread, other threads:[~2008-04-03 14:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-02 13:49 How guest virtual address is translated to physical address? Guillaume Thouvenin
2008-04-02 15:22 ` Anthony Liguori
2008-04-03 14:30   ` Guillaume Thouvenin

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