diff options
author | Avi Kivity <avi@redhat.com> | 2009-06-10 13:12:05 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-09-10 07:32:51 +0200 |
commit | 43a3795a3a12425de31e25ce0ebc3bb41501cef7 (patch) | |
tree | 93481c7731b8c81ad7066d0f1e2202e767d3bd35 /arch/x86/kvm/mmu.h | |
parent | KVM: MMU: Fix is_dirty_pte() (diff) | |
download | linux-43a3795a3a12425de31e25ce0ebc3bb41501cef7.tar.xz linux-43a3795a3a12425de31e25ce0ebc3bb41501cef7.zip |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.h b/arch/x86/kvm/mmu.h index 3494a2fb136e..016bf7183e9f 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; } |