summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/mmu.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2009-06-10 14:12:05 +0300
committerAvi Kivity <avi@redhat.com>2009-09-10 08:32:51 +0300
commit43a3795a3a12425de31e25ce0ebc3bb41501cef7 (patch)
tree93481c7731b8c81ad7066d0f1e2202e767d3bd35 /arch/x86/kvm/mmu.h
parent439e218a6f4716da484314fc5a1f0a59b0212c01 (diff)
downloadop-kernel-dev-43a3795a3a12425de31e25ce0ebc3bb41501cef7.zip
op-kernel-dev-43a3795a3a12425de31e25ce0ebc3bb41501cef7.tar.gz
KVM: MMU: Adjust pte accessors to explicitly indicate guest or shadow pte
Since the guest and host ptes can have wildly different format, adjust the pte accessor names to indicate on which type of pte they operate on. No functional changes. Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/mmu.h')
-rw-r--r--arch/x86/kvm/mmu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.h b/arch/x86/kvm/mmu.h
index 3494a2f..016bf71 100644
--- a/arch/x86/kvm/mmu.h
+++ b/arch/x86/kvm/mmu.h
@@ -75,7 +75,7 @@ static inline int is_paging(struct kvm_vcpu *vcpu)
return vcpu->arch.cr0 & X86_CR0_PG;
}
-static inline int is_present_pte(unsigned long pte)
+static inline int is_present_gpte(unsigned long pte)
{
return pte & PT_PRESENT_MASK;
}
OpenPOWER on IntegriCloud