diff options
author | Sean Christopherson <seanjc@google.com> | 2025-06-11 15:45:45 -0700 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2025-06-23 09:50:39 -0700 |
commit | f965255dc5033387ac7858787c6c792fd789ac34 (patch) | |
tree | e2005184f5ce1da192f9fa1fe0ad24fc6439836c /scripts/lib/kdoc/kdoc_re.py | |
parent | 0b2b541fa3cd85bb06fdd9353764673aa2bfd54a (diff) |
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 'scripts/lib/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions