aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/vmx.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2010-05-25 10:01:50 -0400
committerAvi Kivity <avi@redhat.com>2010-08-01 03:39:22 -0400
commit10ab25cd6bf7ee4e5a55d81f203f7dc1a855c27e (patch)
tree89b1f58c09a102f1aa5c9b549c13e1f9a0a3ee3d /arch/x86/kvm/vmx.c
parent6dc696d4ddf2181eefee361e1d24a49351aef1f6 (diff)
KVM: x86: Propagate fpu_alloc errors
Memory allocation may fail. Propagate such errors. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Reviewed-by: Sheng Yang <sheng@linux.intel.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r--arch/x86/kvm/vmx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 9c3ffc5fde44..e71c731433ee 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -2659,7 +2659,9 @@ static int vmx_vcpu_reset(struct kvm_vcpu *vcpu)
2659 msr |= MSR_IA32_APICBASE_BSP; 2659 msr |= MSR_IA32_APICBASE_BSP;
2660 kvm_set_apic_base(&vmx->vcpu, msr); 2660 kvm_set_apic_base(&vmx->vcpu, msr);
2661 2661
2662 fx_init(&vmx->vcpu); 2662 ret = fx_init(&vmx->vcpu);
2663 if (ret != 0)
2664 goto out;
2663 2665
2664 seg_setup(VCPU_SREG_CS); 2666 seg_setup(VCPU_SREG_CS);
2665 /* 2667 /*