KVM: Replace read accesses of vcpu->arch.cr0 by an accessor
authorAvi Kivity <avi@redhat.com>
Tue, 29 Dec 2009 16:07:30 +0000 (18:07 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:35:50 +0000 (12:35 -0300)
commit4d4ec0874583b127caac1d0f84033c8971b2fd2a
tree2ed5d1edff6a5253561fff0593e89d1c49518b1b
parenta1f83a74feaa9718a5c61587256ea6cc1b993d16
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>
arch/x86/kvm/emulate.c
arch/x86/kvm/kvm_cache_regs.h
arch/x86/kvm/mmu.c
arch/x86/kvm/mmu.h
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c