KVM: MMU: Introduce kvm_read_nested_guest_page()
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 10 Sep 2010 15:30:53 +0000 (17:30 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:52:38 +0000 (10:52 +0200)
commit3d06b8bfd44ec421c386241f7c5af66c8200cbf4
tree3b9c13bbc974a711db264d60384e869c94f8a6cd
parent2329d46d213d0721dafae18db29f54b196f11468
KVM: MMU: Introduce kvm_read_nested_guest_page()

This patch introduces the kvm_read_guest_page_x86 function
which reads from the physical memory of the guest. If the
guest is running in guest-mode itself with nested paging
enabled it will read from the guest's guest physical memory
instead.
The patch also changes changes the code to use this function
where it is necessary.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c