aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2011-02-21 11:51:35 +0800
committerMarcelo Tosatti <mtosatti@redhat.com>2011-03-17 13:08:31 -0300
commit1260edbe7de85ccc58f60040f46034831069bfa2 (patch)
tree190d3caefd4e39061a3e94e62347f97fe9eb2479 /arch/x86
parentd170c4190630bcbeb5db266e79ad7a174902e5de (diff)
downloadkernel_samsung_smdk4412-1260edbe7de85ccc58f60040f46034831069bfa2.zip
kernel_samsung_smdk4412-1260edbe7de85ccc58f60040f46034831069bfa2.tar.gz
kernel_samsung_smdk4412-1260edbe7de85ccc58f60040f46034831069bfa2.tar.bz2
KVM: better readability of efer_reserved_bits
use EFER_SCE, EFER_LME and EFER_LMA instead of magic numbers. Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kvm/x86.c5
1 files changed, 3 insertions, 2 deletions
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