diff options
| author | Sean Christopherson <[email protected]> | 2025-03-19 02:21:00 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2025-03-20 08:03:56 +0000 |
| commit | 688124cc541f60d26a7547f45637b23dada4e527 (patch) | |
| tree | 07cbca32b2fa9af109284e5d56a9d5f841fd38fb /tools/testing/selftests/net/lib/py/utils.py | |
| parent | iommu/vt-d: Put IRTE back into posted MSI mode if vCPU posting is disabled (diff) | |
| download | kernel-688124cc541f60d26a7547f45637b23dada4e527.tar.gz kernel-688124cc541f60d26a7547f45637b23dada4e527.zip | |
iommu/vt-d: Don't clobber posted vCPU IRTE when host IRQ affinity changes
Don't overwrite an IRTE that is posting IRQs to a vCPU with a posted MSI
entry if the host IRQ affinity happens to change. If/when the IRTE is
reverted back to "host mode", it will be reconfigured as a posted MSI or
remapped entry as appropriate.
Drop the "mode" field, which doesn't differentiate between posted MSIs and
posted vCPUs, in favor of a dedicated posted_vcpu flag. Note! The two
posted_{msi,vcpu} flags are intentionally not mutually exclusive; an IRTE
can transition between posted MSI and posted vCPU.
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 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions
