summaryrefslogtreecommitdiff
path: root/rust/helpers/platform.c
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2025-06-12 01:45:45 +0300
committerSean Christopherson <seanjc@google.com>2025-06-23 19:50:39 +0300
commitf965255dc5033387ac7858787c6c792fd789ac34 (patch)
treee2005184f5ce1da192f9fa1fe0ad24fc6439836c /rust/helpers/platform.c
parent0b2b541fa3cd85bb06fdd9353764673aa2bfd54a (diff)
downloadlinux-f965255dc5033387ac7858787c6c792fd789ac34.tar.xz
iommu/amd: KVM: SVM: Set pCPU info in IRTE when setting vCPU affinity
Now that setting vCPU affinity is guarded with ir_list_lock, i.e. now that avic_physical_id_entry can be safely accessed, set the pCPU info straight-away when setting vCPU affinity. Putting the IRTE into posted mode, and then immediately updating the IRTE a second time if the target vCPU is running is wasteful and confusing. This also fixes a flaw where a posted IRQ that arrives between putting the IRTE into guest_mode and setting the correct destination could cause the IOMMU to ring the doorbell on the wrong pCPU. Link: https://lore.kernel.org/r/20250611224604.313496-44-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions