aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-03-05 10:45:40 -0500
committerAvi Kivity <avi@qumranet.com>2007-05-03 03:52:24 -0400
commit6722c51c51518af9581ab6cd9b6aec93774334a6 (patch)
tree41b2b77cfc486aeb25a154b4b476cc91054749ad
parent1b19f3e61d7e1edb395dd64bf7d63621a37af8ca (diff)
KVM: Initialize the apic_base msr on svm too
Older userspace didn't care, but newer userspace (with the cpuid changes) does. Signed-off-by: Avi Kivity <avi@qumranet.com>
-rw-r--r--drivers/kvm/svm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c
index 0311665e3c8..2396ada2377 100644
--- a/drivers/kvm/svm.c
+++ b/drivers/kvm/svm.c
@@ -582,6 +582,9 @@ static int svm_create_vcpu(struct kvm_vcpu *vcpu)
582 init_vmcb(vcpu->svm->vmcb); 582 init_vmcb(vcpu->svm->vmcb);
583 583
584 fx_init(vcpu); 584 fx_init(vcpu);
585 vcpu->apic_base = 0xfee00000 |
586 /*for vcpu 0*/ MSR_IA32_APICBASE_BSP |
587 MSR_IA32_APICBASE_ENABLE;
585 588
586 return 0; 589 return 0;
587 590