Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d917a6b9 authored by Avi Kivity's avatar Avi Kivity
Browse files

KVM: Initialize cr0 to indicate an fpu is present



Solaris panics if it sees a cpu with no fpu, and it seems to rely on this
bit.  Closes sourceforge bug 1698920.

Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
parent 3964994b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2332,6 +2332,7 @@ static int kvm_vm_ioctl_create_vcpu(struct kvm *kvm, int n)
	vcpu->host_fx_image = (char*)ALIGN((hva_t)vcpu->fx_buf,
					   FX_IMAGE_ALIGN);
	vcpu->guest_fx_image = vcpu->host_fx_image + FX_IMAGE_SIZE;
	vcpu->cr0 = 0x10;

	r = kvm_arch_ops->vcpu_create(vcpu);
	if (r < 0)