]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7ce4a1a1cc408aa3126eb9e7fb6c75f9a53f6d69
tree3b9c13bbc974a711db264d60384e869c94f8a6cd
parent545042b6dbb9240485e5153071862af7801243dd
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