KVM: X86: Add kvm_read_guest_page_mmu function
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 10 Sep 2010 15:30:51 +0000 (17:30 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:52:37 +0000 (10:52 +0200)
commitec92fe44e7ff94d04d8305e49efcffd8773e1cf6
treea1f3c9e47e5c05a83d0d507d0616f810234c80a4
parent6539e738f65a8f1fc7806295d5d701fba4008343
KVM: X86: Add kvm_read_guest_page_mmu function

This patch adds a function which can read from the guests
physical memory or from the guest's guest physical memory.
This will be used in the two-dimensional page table walker.

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