aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kvm/vmx.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 0ba706e87c50..31c3a8740c42 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -571,12 +571,15 @@ static void reload_tss(void)
571static void load_transition_efer(struct vcpu_vmx *vmx) 571static void load_transition_efer(struct vcpu_vmx *vmx)
572{ 572{
573 int efer_offset = vmx->msr_offset_efer; 573 int efer_offset = vmx->msr_offset_efer;
574 u64 host_efer = vmx->host_msrs[efer_offset].data; 574 u64 host_efer;
575 u64 guest_efer = vmx->guest_msrs[efer_offset].data; 575 u64 guest_efer;
576 u64 ignore_bits; 576 u64 ignore_bits;
577 577
578 if (efer_offset < 0) 578 if (efer_offset < 0)
579 return; 579 return;
580 host_efer = vmx->host_msrs[efer_offset].data;
581 guest_efer = vmx->guest_msrs[efer_offset].data;
582
580 /* 583 /*
581 * NX is emulated; LMA and LME handled by hardware; SCE meaninless 584 * NX is emulated; LMA and LME handled by hardware; SCE meaninless
582 * outside long mode 585 * outside long mode