mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 20:54:10 +08:00
KVM: x86: rename kvm_vcpu_request_scan_ioapic()
Let's rename it into a proper arch specific callback. Signed-off-by: David Hildenbrand <david@redhat.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
This commit is contained in:
parent
ca8ab3f895
commit
993225adf4
@ -266,7 +266,7 @@ void kvm_ioapic_scan_entry(struct kvm_vcpu *vcpu, ulong *ioapic_handled_vectors)
|
||||
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))
|
||||
return;
|
||||
|
@ -502,10 +502,10 @@ int __must_check vcpu_load(struct kvm_vcpu *vcpu);
|
||||
void vcpu_put(struct kvm_vcpu *vcpu);
|
||||
|
||||
#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);
|
||||
#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)
|
||||
|
@ -490,7 +490,7 @@ void kvm_register_irq_ack_notifier(struct kvm *kvm,
|
||||
mutex_lock(&kvm->irq_lock);
|
||||
hlist_add_head_rcu(&kian->link, &kvm->irq_ack_notifier_list);
|
||||
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,
|
||||
@ -500,7 +500,7 @@ void kvm_unregister_irq_ack_notifier(struct kvm *kvm,
|
||||
hlist_del_init_rcu(&kian->link);
|
||||
mutex_unlock(&kvm->irq_lock);
|
||||
synchronize_srcu(&kvm->irq_srcu);
|
||||
kvm_vcpu_request_scan_ioapic(kvm);
|
||||
kvm_arch_post_irq_ack_notifier_list_update(kvm);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user