diff options
author | Avi Kivity <avi@redhat.com> | 2009-12-29 11:07:30 -0500 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-03-01 10:35:50 -0500 |
commit | 4d4ec0874583b127caac1d0f84033c8971b2fd2a (patch) | |
tree | 2ed5d1edff6a5253561fff0593e89d1c49518b1b /arch/x86/kvm/mmu.h | |
parent | a1f83a74feaa9718a5c61587256ea6cc1b993d16 (diff) |
KVM: Replace read accesses of vcpu->arch.cr0 by an accessor
Since we'd like to allow the guest to own a few bits of cr0 at times, we need
to know when we access those bits.
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 ff583423968d..599159f728b9 100644 --- a/arch/x86/kvm/mmu.h +++ b/arch/x86/kvm/mmu.h | |||
@@ -79,7 +79,7 @@ static inline int is_pse(struct kvm_vcpu *vcpu) | |||
79 | 79 | ||
80 | static inline int is_paging(struct kvm_vcpu *vcpu) | 80 | static inline int is_paging(struct kvm_vcpu *vcpu) |
81 | { | 81 | { |
82 | return vcpu->arch.cr0 & X86_CR0_PG; | 82 | return kvm_read_cr0_bits(vcpu, X86_CR0_PG); |
83 | } | 83 | } |
84 | 84 | ||
85 | static inline int is_present_gpte(unsigned long pte) | 85 | static inline int is_present_gpte(unsigned long pte) |