diff options
author | Like Xu <[email protected]> | 2023-07-24 19:12:36 +0800 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2023-07-29 11:05:26 -0400 |
commit | 5e1fe4a21c0c2a69419d97d62d3213e8f843920d (patch) | |
tree | 8d30d333559ff84e4f66cbb754a285ec51a7024e /scripts/gdb/linux/modules.py | |
parent | fd1815ea709e414f83a06e4cf13ade4a49dd0fda (diff) |
KVM: x86/irq: Conditionally register IRQ bypass consumer again
As was attempted commit 14717e203186 ("kvm: Conditionally register IRQ
bypass consumer"): "if we don't support a mechanism for bypassing IRQs,
don't register as a consumer. Initially this applied to AMD processors,
but when AVIC support was implemented for assigned devices,
kvm_arch_has_irq_bypass() was always returning true.
We can still skip registering the consumer where enable_apicv
or posted-interrupts capability is unsupported or globally disabled.
This eliminates meaningless dev_info()s when the connect fails
between producer and consumer", such as on Linux hosts where enable_apicv
or posted-interrupts capability is unsupported or globally disabled.
Cc: Alex Williamson <[email protected]>
Reported-by: Yong He <[email protected]>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217379
Signed-off-by: Like Xu <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions