diff options
Diffstat (limited to 'drivers/kvm/vmx.c')
-rw-r--r-- | drivers/kvm/vmx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c index b909b5455675..0b2aace70aec 100644 --- a/drivers/kvm/vmx.c +++ b/drivers/kvm/vmx.c | |||
@@ -1238,9 +1238,9 @@ static int vmx_vcpu_setup(struct kvm_vcpu *vcpu) | |||
1238 | memset(vcpu->regs, 0, sizeof(vcpu->regs)); | 1238 | memset(vcpu->regs, 0, sizeof(vcpu->regs)); |
1239 | vcpu->regs[VCPU_REGS_RDX] = get_rdx_init_val(); | 1239 | vcpu->regs[VCPU_REGS_RDX] = get_rdx_init_val(); |
1240 | vcpu->cr8 = 0; | 1240 | vcpu->cr8 = 0; |
1241 | vcpu->apic_base = 0xfee00000 | | 1241 | vcpu->apic_base = 0xfee00000 | MSR_IA32_APICBASE_ENABLE; |
1242 | /*for vcpu 0*/ MSR_IA32_APICBASE_BSP | | 1242 | if (vcpu == &vcpu->kvm->vcpus[0]) |
1243 | MSR_IA32_APICBASE_ENABLE; | 1243 | vcpu->apic_base |= MSR_IA32_APICBASE_BSP; |
1244 | 1244 | ||
1245 | fx_init(vcpu); | 1245 | fx_init(vcpu); |
1246 | 1246 | ||