mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
KVM: Don't WARN if updating IRQ bypass route fails
Don't bother WARNing if updating an IRTE route fails now that vendor code provides much more precise WARNs. The generic WARN doesn't provide enough information to actually debug the problem, and has obviously done nothing to surface the myriad bugs in KVM x86's implementation. Drop all of the associated return code plumbing that existed just so that common KVM could WARN. Link: https://lore.kernel.org/r/20250611224604.313496-34-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
This commit is contained in:
@@ -285,11 +285,11 @@ void __attribute__((weak)) kvm_arch_irq_bypass_start(
|
||||
{
|
||||
}
|
||||
|
||||
int __weak kvm_arch_update_irqfd_routing(struct kvm_kernel_irqfd *irqfd,
|
||||
struct kvm_kernel_irq_routing_entry *old,
|
||||
struct kvm_kernel_irq_routing_entry *new)
|
||||
void __weak kvm_arch_update_irqfd_routing(struct kvm_kernel_irqfd *irqfd,
|
||||
struct kvm_kernel_irq_routing_entry *old,
|
||||
struct kvm_kernel_irq_routing_entry *new)
|
||||
{
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
bool __attribute__((weak)) kvm_arch_irqfd_route_changed(
|
||||
@@ -617,11 +617,8 @@ void kvm_irq_routing_update(struct kvm *kvm)
|
||||
|
||||
#if IS_ENABLED(CONFIG_HAVE_KVM_IRQ_BYPASS)
|
||||
if (irqfd->producer &&
|
||||
kvm_arch_irqfd_route_changed(&old, &irqfd->irq_entry)) {
|
||||
int ret = kvm_arch_update_irqfd_routing(irqfd, &old, &irqfd->irq_entry);
|
||||
|
||||
WARN_ON(ret);
|
||||
}
|
||||
kvm_arch_irqfd_route_changed(&old, &irqfd->irq_entry))
|
||||
kvm_arch_update_irqfd_routing(irqfd, &old, &irqfd->irq_entry);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user