aboutsummaryrefslogtreecommitdiffstats
path: root/lib/net_utils.c
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2025-03-19 02:20:59 +0000
committerJoerg Roedel <[email protected]>2025-03-20 08:03:56 +0000
commit2454823e97a63d85a6b215905f71e5a06324eab7 (patch)
treec5d8c253f06d9392bf2b112e39ed038404bcd23e /lib/net_utils.c
parentiommu/vt-d: Cleanup intel_context_flush_present() (diff)
downloadkernel-2454823e97a63d85a6b215905f71e5a06324eab7.tar.gz
kernel-2454823e97a63d85a6b215905f71e5a06324eab7.zip
iommu/vt-d: Put IRTE back into posted MSI mode if vCPU posting is disabled
Add a helper to take care of reconfiguring an IRTE to deliver IRQs to the host, i.e. not to a vCPU, and use the helper when an IRTE's vCPU affinity is nullified, i.e. when KVM puts an IRTE back into "host" mode. Because posted MSIs use an ephemeral IRTE, using modify_irte() puts the IRTE into full remapped mode, i.e. unintentionally disables posted MSIs on the IRQ. Fixes: ed1e48ea4370 ("iommu/vt-d: Enable posted mode for device MSIs") Cc: [email protected] Cc: Thomas Gleixner <[email protected]> Cc: Jacob Pan <[email protected]> Signed-off-by: Sean Christopherson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lu Baolu <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'lib/net_utils.c')
0 files changed, 0 insertions, 0 deletions