KVM: Trivial: Use standard CR0 flags macros from asm/cpu-features.h
The kernel now has asm/cpu-features.h: use those macros instead of inventing our own. Also spell out definition of CR0_RESEVED_BITS (no code change) and fix typo. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Avi Kivity <avi@qumranet.com>
This commit is contained in:
committed by
Avi Kivity
parent
9a2b85c620
commit
707d92fa72
@@ -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)
|
||||
|
Reference in New Issue
Block a user