aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/mmu.c
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2010-09-10 11:30:58 -0400
committerAvi Kivity <avi@redhat.com>2010-10-24 04:52:42 -0400
commitd41d1895eb856b5d1c82f3be106b7a3e75e4216b (patch)
tree9c03b7f6b304fcebea1e242de53f39a9d26de395 /arch/x86/kvm/mmu.c
parentff03a073e715d49b5cfeeec862649b1df2481ae0 (diff)
KVM: MMU: Introduce kvm_pdptr_read_mmu
This function is implemented to load the pdptr pointers of the currently running guest (l1 or l2 guest). Therefore it takes care about the current paging mode and can read pdptrs out of l2 guest physical memory. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/mmu.c')
-rw-r--r--arch/x86/kvm/mmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index a26f13bd34e0..a25173a0d8b9 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -2398,7 +2398,7 @@ static int mmu_alloc_roots(struct kvm_vcpu *vcpu)
2398 2398
2399 ASSERT(!VALID_PAGE(root)); 2399 ASSERT(!VALID_PAGE(root));
2400 if (vcpu->arch.mmu.root_level == PT32E_ROOT_LEVEL) { 2400 if (vcpu->arch.mmu.root_level == PT32E_ROOT_LEVEL) {
2401 pdptr = kvm_pdptr_read(vcpu, i); 2401 pdptr = kvm_pdptr_read_mmu(vcpu, &vcpu->arch.mmu, i);
2402 if (!is_present_gpte(pdptr)) { 2402 if (!is_present_gpte(pdptr)) {
2403 vcpu->arch.mmu.pae_root[i] = 0; 2403 vcpu->arch.mmu.pae_root[i] = 0;
2404 continue; 2404 continue;