Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186028
b: refs/heads/master
c: 2608d7a
h: refs/heads/master
v: v3
  • Loading branch information
Avi Kivity authored and Marcelo Tosatti committed Mar 1, 2010
1 parent 8499fa9 commit b01e764
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ab344828ebe729e52949d64046adaa196f6b9dbe
refs/heads/master: 2608d7a12fd4badfe2eac534150f0715a7fd3ff3
5 changes: 3 additions & 2 deletions trunk/arch/x86/kvm/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -4239,7 +4239,8 @@ static int vcpu_enter_guest(struct kvm_vcpu *vcpu)
preempt_disable();

kvm_x86_ops->prepare_guest_switch(vcpu);
kvm_load_guest_fpu(vcpu);
if (vcpu->fpu_active)
kvm_load_guest_fpu(vcpu);

local_irq_disable();

Expand Down Expand Up @@ -5285,7 +5286,7 @@ EXPORT_SYMBOL_GPL(fx_init);

void kvm_load_guest_fpu(struct kvm_vcpu *vcpu)
{
if (!vcpu->fpu_active || vcpu->guest_fpu_loaded)
if (vcpu->guest_fpu_loaded)
return;

vcpu->guest_fpu_loaded = 1;
Expand Down

0 comments on commit b01e764

Please sign in to comment.