diff options
author | Amit Shah <amit.shah@qumranet.com> | 2007-08-25 04:35:52 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-10-13 04:18:27 -0400 |
commit | 380102c8e431ba8b25a5b3a29e4529ca02ede4c8 (patch) | |
tree | 27b4e5b9c6e6ed5f182955ef07af30fe893f94cb /drivers/kvm/kvm_main.c | |
parent | c5ec153402b6d276fe20029da1059ba42a4b55e5 (diff) |
KVM: Set the ET flag in CR0 after initializing FX
This was missed when moving stuff around in fbc4f2e
Fixes Solaris guests and bug #1773613
Signed-off-by: Amit Shah <amit.shah@qumranet.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm_main.c')
-rw-r--r-- | drivers/kvm/kvm_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c index d0a5a2b3d599..d3e534dcf585 100644 --- a/drivers/kvm/kvm_main.c +++ b/drivers/kvm/kvm_main.c | |||
@@ -655,6 +655,7 @@ void fx_init(struct kvm_vcpu *vcpu) | |||
655 | fx_restore(&vcpu->host_fx_image); | 655 | fx_restore(&vcpu->host_fx_image); |
656 | preempt_enable(); | 656 | preempt_enable(); |
657 | 657 | ||
658 | vcpu->cr0 |= X86_CR0_ET; | ||
658 | after_mxcsr_mask = offsetof(struct i387_fxsave_struct, st_space); | 659 | after_mxcsr_mask = offsetof(struct i387_fxsave_struct, st_space); |
659 | vcpu->guest_fx_image.mxcsr = 0x1f80; | 660 | vcpu->guest_fx_image.mxcsr = 0x1f80; |
660 | memset((void *)&vcpu->guest_fx_image + after_mxcsr_mask, | 661 | memset((void *)&vcpu->guest_fx_image + after_mxcsr_mask, |