diff options
author | Tang Chen <tangchen@cn.fujitsu.com> | 2014-09-24 03:57:55 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-09-24 08:07:59 -0400 |
commit | 445b8236959bfe624a5aa9bce89f44a3bec9b2b1 (patch) | |
tree | 02bd03edda87de57c795ca674477f4eff3e97784 /virt/kvm/kvm_main.c | |
parent | 57128468080a8b6ea452223036d3e417f748af55 (diff) |
kvm: Rename make_all_cpus_request() to kvm_make_all_cpus_request() and make it non-static
Different architectures need different requests, and in fact we
will use this function in architecture-specific code later. This
will be outside kvm_main.c, so make it non-static and rename it to
kvm_make_all_cpus_request().
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt/kvm/kvm_main.c')
-rw-r--r-- | virt/kvm/kvm_main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 0316314d48f4..5b8ca365932a 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -153,7 +153,7 @@ static void ack_flush(void *_completed) | |||
153 | { | 153 | { |
154 | } | 154 | } |
155 | 155 | ||
156 | static bool make_all_cpus_request(struct kvm *kvm, unsigned int req) | 156 | bool kvm_make_all_cpus_request(struct kvm *kvm, unsigned int req) |
157 | { | 157 | { |
158 | int i, cpu, me; | 158 | int i, cpu, me; |
159 | cpumask_var_t cpus; | 159 | cpumask_var_t cpus; |
@@ -190,7 +190,7 @@ void kvm_flush_remote_tlbs(struct kvm *kvm) | |||
190 | long dirty_count = kvm->tlbs_dirty; | 190 | long dirty_count = kvm->tlbs_dirty; |
191 | 191 | ||
192 | smp_mb(); | 192 | smp_mb(); |
193 | if (make_all_cpus_request(kvm, KVM_REQ_TLB_FLUSH)) | 193 | if (kvm_make_all_cpus_request(kvm, KVM_REQ_TLB_FLUSH)) |
194 | ++kvm->stat.remote_tlb_flush; | 194 | ++kvm->stat.remote_tlb_flush; |
195 | cmpxchg(&kvm->tlbs_dirty, dirty_count, 0); | 195 | cmpxchg(&kvm->tlbs_dirty, dirty_count, 0); |
196 | } | 196 | } |
@@ -198,17 +198,17 @@ EXPORT_SYMBOL_GPL(kvm_flush_remote_tlbs); | |||
198 | 198 | ||
199 | void kvm_reload_remote_mmus(struct kvm *kvm) | 199 | void kvm_reload_remote_mmus(struct kvm *kvm) |
200 | { | 200 | { |
201 | make_all_cpus_request(kvm, KVM_REQ_MMU_RELOAD); | 201 | kvm_make_all_cpus_request(kvm, KVM_REQ_MMU_RELOAD); |
202 | } | 202 | } |
203 | 203 | ||
204 | void kvm_make_mclock_inprogress_request(struct kvm *kvm) | 204 | void kvm_make_mclock_inprogress_request(struct kvm *kvm) |
205 | { | 205 | { |
206 | make_all_cpus_request(kvm, KVM_REQ_MCLOCK_INPROGRESS); | 206 | kvm_make_all_cpus_request(kvm, KVM_REQ_MCLOCK_INPROGRESS); |
207 | } | 207 | } |
208 | 208 | ||
209 | void kvm_make_scan_ioapic_request(struct kvm *kvm) | 209 | void kvm_make_scan_ioapic_request(struct kvm *kvm) |
210 | { | 210 | { |
211 | make_all_cpus_request(kvm, KVM_REQ_SCAN_IOAPIC); | 211 | kvm_make_all_cpus_request(kvm, KVM_REQ_SCAN_IOAPIC); |
212 | } | 212 | } |
213 | 213 | ||
214 | int kvm_vcpu_init(struct kvm_vcpu *vcpu, struct kvm *kvm, unsigned id) | 214 | int kvm_vcpu_init(struct kvm_vcpu *vcpu, struct kvm *kvm, unsigned id) |