KVM: Trivial: Use standard CR0 flags macros from asm/cpu-features.h
[deliverable/linux.git] / drivers / kvm / mmu.c
index 23965aa5ee7807315aebecf5b03d0970fbd1efbe..75faef4fb086151b05351c0af8108790659538ca 100644 (file)
@@ -158,7 +158,7 @@ static struct kmem_cache *mmu_page_header_cache;
 
 static int is_write_protection(struct kvm_vcpu *vcpu)
 {
-       return vcpu->cr0 & CR0_WP_MASK;
+       return vcpu->cr0 & X86_CR0_WP;
 }
 
 static int is_cpuid_PSE36(void)
This page took 0.030374 seconds and 5 git commands to generate.