From: Lai Jiangshan Date: Mon, 21 Feb 2011 03:51:35 +0000 (+0800) Subject: KVM: better readability of efer_reserved_bits X-Git-Tag: v2.6.39-rc1~436^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1260edbe7de85ccc58f60040f46034831069bfa2;p=platform%2Fkernel%2Flinux-exynos.git KVM: better readability of efer_reserved_bits use EFER_SCE, EFER_LME and EFER_LMA instead of magic numbers. Signed-off-by: Lai Jiangshan Signed-off-by: Avi Kivity --- diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index dae2d15..785ae0c 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -81,9 +81,10 @@ * - enable LME and LMA per default on 64 bit KVM */ #ifdef CONFIG_X86_64 -static u64 __read_mostly efer_reserved_bits = 0xfffffffffffffafeULL; +static +u64 __read_mostly efer_reserved_bits = ~((u64)(EFER_SCE | EFER_LME | EFER_LMA)); #else -static u64 __read_mostly efer_reserved_bits = 0xfffffffffffffffeULL; +static u64 __read_mostly efer_reserved_bits = ~((u64)EFER_SCE); #endif #define VM_STAT(x) offsetof(struct kvm, stat.x), KVM_STAT_VM