Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80663
b: refs/heads/master
c: 3176bc3
h: refs/heads/master
i:
  80661: 914fa8c
  80659: 9727cc0
  80655: fedca51
v: v3
  • Loading branch information
Avi Kivity committed Jan 30, 2008
1 parent b5ee749 commit a40ee00
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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: ab6ef34b906546d85d92dbc3e0fb4e01cce05f62
refs/heads/master: 3176bc3e59cc4e30ac10888f08124b31969a7a88
2 changes: 1 addition & 1 deletion trunk/drivers/kvm/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
/*
* vcpu->requests bit members
*/
#define KVM_TLB_FLUSH 0
#define KVM_REQ_TLB_FLUSH 0

/*
* Address types:
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/kvm/kvm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ void kvm_flush_remote_tlbs(struct kvm *kvm)
vcpu = kvm->vcpus[i];
if (!vcpu)
continue;
if (test_and_set_bit(KVM_TLB_FLUSH, &vcpu->requests))
if (test_and_set_bit(KVM_REQ_TLB_FLUSH, &vcpu->requests))
continue;
cpu = vcpu->cpu;
if (cpu != -1 && cpu != raw_smp_processor_id())
Expand Down Expand Up @@ -2171,7 +2171,7 @@ static int __vcpu_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
kvm_guest_enter();

if (vcpu->requests)
if (test_and_clear_bit(KVM_TLB_FLUSH, &vcpu->requests))
if (test_and_clear_bit(KVM_REQ_TLB_FLUSH, &vcpu->requests))
kvm_x86_ops->tlb_flush(vcpu);

kvm_x86_ops->run(vcpu, kvm_run);
Expand Down

0 comments on commit a40ee00

Please sign in to comment.