Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146603
b: refs/heads/master
c: 8db3baa
h: refs/heads/master
i:
  146601: 0b0488e
  146599: 940e84c
v: v3
  • Loading branch information
Gleb Natapov authored and Avi Kivity committed Jun 10, 2009
1 parent ba4d235 commit 1d113a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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: 36752c9b91f75aa3ff0f214a89f13d806cb2f61f
refs/heads/master: 8db3baa2db34035b2ddb7d0e8b186eb92a056532
11 changes: 6 additions & 5 deletions trunk/arch/x86/kvm/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -3142,7 +3142,10 @@ static void update_cr8_intercept(struct kvm_vcpu *vcpu)
if (!kvm_x86_ops->update_cr8_intercept)
return;

max_irr = kvm_lapic_find_highest_irr(vcpu);
if (!vcpu->arch.apic->vapic_addr)
max_irr = kvm_lapic_find_highest_irr(vcpu);
else
max_irr = -1;

if (max_irr != -1)
max_irr >>= 4;
Expand Down Expand Up @@ -3249,10 +3252,8 @@ static int vcpu_enter_guest(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
kvm_x86_ops->enable_irq_window(vcpu);

if (kvm_lapic_enabled(vcpu)) {
if (!vcpu->arch.apic->vapic_addr)
update_cr8_intercept(vcpu);
else
kvm_lapic_sync_to_vapic(vcpu);
update_cr8_intercept(vcpu);
kvm_lapic_sync_to_vapic(vcpu);
}

up_read(&vcpu->kvm->slots_lock);
Expand Down

0 comments on commit 1d113a6

Please sign in to comment.