diff options
author | Avi Kivity <avi@redhat.com> | 2009-06-10 07:12:05 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-09-10 01:32:51 -0400 |
commit | 43a3795a3a12425de31e25ce0ebc3bb41501cef7 (patch) | |
tree | 93481c7731b8c81ad7066d0f1e2202e767d3bd35 /arch/x86/kvm/x86.c | |
parent | 439e218a6f4716da484314fc5a1f0a59b0212c01 (diff) |
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/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 05cbe83c74e2..e877efa37620 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -237,7 +237,7 @@ int load_pdptrs(struct kvm_vcpu *vcpu, unsigned long cr3) | |||
237 | goto out; | 237 | goto out; |
238 | } | 238 | } |
239 | for (i = 0; i < ARRAY_SIZE(pdpte); ++i) { | 239 | for (i = 0; i < ARRAY_SIZE(pdpte); ++i) { |
240 | if (is_present_pte(pdpte[i]) && | 240 | if (is_present_gpte(pdpte[i]) && |
241 | (pdpte[i] & vcpu->arch.mmu.rsvd_bits_mask[0][2])) { | 241 | (pdpte[i] & vcpu->arch.mmu.rsvd_bits_mask[0][2])) { |
242 | ret = 0; | 242 | ret = 0; |
243 | goto out; | 243 | goto out; |