Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68367
b: refs/heads/master
c: 9bd0150
h: refs/heads/master
i:
  68365: e0de84e
  68363: 0d1d474
  68359: 97b3eef
  68351: fc9b973
v: v3
  • Loading branch information
Rusty Russell authored and Avi Kivity committed Oct 13, 2007
1 parent 11c47db commit 541cfb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 11ec2804711896546ee3c945f3786c7f9fdd175a
refs/heads/master: 9bd01506ee551689b90ba5822c28ef55207146af
3 changes: 3 additions & 0 deletions trunk/drivers/kvm/kvm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -693,10 +693,13 @@ void fx_init(struct kvm_vcpu *vcpu)

} *fx_image;

/* Initialize guest FPU by resetting ours and saving into guest's */
preempt_disable();
fx_save(vcpu->host_fx_image);
fpu_init();
fx_save(vcpu->guest_fx_image);
fx_restore(vcpu->host_fx_image);
preempt_enable();

fx_image = (struct fx_image_s *)vcpu->guest_fx_image;
fx_image->mxcsr = 0x1f80;
Expand Down

0 comments on commit 541cfb6

Please sign in to comment.