]> err.no Git - linux-2.6/commitdiff
KVM: Rename KVM_TLB_FLUSH to KVM_REQ_TLB_FLUSH
authorAvi Kivity <avi@qumranet.com>
Tue, 16 Oct 2007 15:22:08 +0000 (17:22 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:52:53 +0000 (17:52 +0200)
We now have a new namespace, KVM_REQ_*, for bits in vcpu->requests.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm.h
drivers/kvm/kvm_main.c

index 1edf8a5e365e4ab1d7e049babe6bb706d1cfc890..6ae7b6332e32eb5622f027a86b7aea04546c2805 100644 (file)
@@ -67,7 +67,7 @@
 /*
  * vcpu->requests bit members
  */
-#define KVM_TLB_FLUSH 0
+#define KVM_REQ_TLB_FLUSH          0
 
 /*
  * Address types:
index 4c96817929fd68e8fec900b3dd216ba5836a54fc..1879b409bed2fc4e3e23b02ecefdb3c883bc207c 100644 (file)
@@ -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())
@@ -2171,7 +2171,7 @@ again:
        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);