提交 993225ad 编写于 作者: D David Hildenbrand 提交者: Radim Krčmář

KVM: x86: rename kvm_vcpu_request_scan_ioapic()

Let's rename it into a proper arch specific callback.
Signed-off-by: NDavid Hildenbrand <david@redhat.com>
Signed-off-by: NRadim Krčmář <rkrcmar@redhat.com>
上级 ca8ab3f8
...@@ -266,7 +266,7 @@ void kvm_ioapic_scan_entry(struct kvm_vcpu *vcpu, ulong *ioapic_handled_vectors) ...@@ -266,7 +266,7 @@ void kvm_ioapic_scan_entry(struct kvm_vcpu *vcpu, ulong *ioapic_handled_vectors)
spin_unlock(&ioapic->lock); spin_unlock(&ioapic->lock);
} }
void kvm_vcpu_request_scan_ioapic(struct kvm *kvm) void kvm_arch_post_irq_ack_notifier_list_update(struct kvm *kvm)
{ {
if (!ioapic_in_kernel(kvm)) if (!ioapic_in_kernel(kvm))
return; return;
......
...@@ -502,10 +502,10 @@ int __must_check vcpu_load(struct kvm_vcpu *vcpu); ...@@ -502,10 +502,10 @@ int __must_check vcpu_load(struct kvm_vcpu *vcpu);
void vcpu_put(struct kvm_vcpu *vcpu); void vcpu_put(struct kvm_vcpu *vcpu);
#ifdef __KVM_HAVE_IOAPIC #ifdef __KVM_HAVE_IOAPIC
void kvm_vcpu_request_scan_ioapic(struct kvm *kvm); void kvm_arch_post_irq_ack_notifier_list_update(struct kvm *kvm);
void kvm_arch_post_irq_routing_update(struct kvm *kvm); void kvm_arch_post_irq_routing_update(struct kvm *kvm);
#else #else
static inline void kvm_vcpu_request_scan_ioapic(struct kvm *kvm) static inline void kvm_arch_post_irq_ack_notifier_list_update(struct kvm *kvm)
{ {
} }
static inline void kvm_arch_post_irq_routing_update(struct kvm *kvm) static inline void kvm_arch_post_irq_routing_update(struct kvm *kvm)
......
...@@ -490,7 +490,7 @@ void kvm_register_irq_ack_notifier(struct kvm *kvm, ...@@ -490,7 +490,7 @@ void kvm_register_irq_ack_notifier(struct kvm *kvm,
mutex_lock(&kvm->irq_lock); mutex_lock(&kvm->irq_lock);
hlist_add_head_rcu(&kian->link, &kvm->irq_ack_notifier_list); hlist_add_head_rcu(&kian->link, &kvm->irq_ack_notifier_list);
mutex_unlock(&kvm->irq_lock); mutex_unlock(&kvm->irq_lock);
kvm_vcpu_request_scan_ioapic(kvm); kvm_arch_post_irq_ack_notifier_list_update(kvm);
} }
void kvm_unregister_irq_ack_notifier(struct kvm *kvm, void kvm_unregister_irq_ack_notifier(struct kvm *kvm,
...@@ -500,7 +500,7 @@ void kvm_unregister_irq_ack_notifier(struct kvm *kvm, ...@@ -500,7 +500,7 @@ void kvm_unregister_irq_ack_notifier(struct kvm *kvm,
hlist_del_init_rcu(&kian->link); hlist_del_init_rcu(&kian->link);
mutex_unlock(&kvm->irq_lock); mutex_unlock(&kvm->irq_lock);
synchronize_srcu(&kvm->irq_srcu); synchronize_srcu(&kvm->irq_srcu);
kvm_vcpu_request_scan_ioapic(kvm); kvm_arch_post_irq_ack_notifier_list_update(kvm);
} }
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册