projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5ec153
)
KVM: Set the ET flag in CR0 after initializing FX
author
Amit Shah
<amit.shah@qumranet.com>
Sat, 25 Aug 2007 08:35:52 +0000
(11:35 +0300)
committer
Avi Kivity
<avi@qumranet.com>
Sat, 13 Oct 2007 08:18:27 +0000
(10:18 +0200)
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>
drivers/kvm/kvm_main.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/kvm/kvm_main.c
b/drivers/kvm/kvm_main.c
index d0a5a2b3d599d82d2336473cc8ef0269f78cbc76..d3e534dcf5857c049cc2f076974c1282f8f09ace 100644
(file)
--- a/
drivers/kvm/kvm_main.c
+++ b/
drivers/kvm/kvm_main.c
@@
-655,6
+655,7
@@
void fx_init(struct kvm_vcpu *vcpu)
fx_restore(&vcpu->host_fx_image);
preempt_enable();
+ vcpu->cr0 |= X86_CR0_ET;
after_mxcsr_mask = offsetof(struct i387_fxsave_struct, st_space);
vcpu->guest_fx_image.mxcsr = 0x1f80;
memset((void *)&vcpu->guest_fx_image + after_mxcsr_mask,