]> Git Repo - linux.git/commit
irqchip/gic-v4: Correctly deal with set_affinity on lazily-mapped VPEs
authorMarc Zyngier <[email protected]>
Sun, 27 Oct 2024 10:22:20 +0000 (10:22 +0000)
committerThomas Gleixner <[email protected]>
Sun, 27 Oct 2024 16:30:16 +0000 (17:30 +0100)
commite6c24e2d05bb05de96ffb9bdb0ee62d20ad526f8
tree36e92d418bf236b4fd00e2c889532bff8861eb5e
parent5f994f534120f47432092fb36f5cb0c7a80ed2bf
irqchip/gic-v4: Correctly deal with set_affinity on lazily-mapped VPEs

Zenghui points out that a recent change to the way set_affinity is
handled for VPEs has the potential to return an error if the VPE
hasn't been mapped yet (because the guest hasn't emited a MAPTI
command yet), affecting GICv4.0 implementations that rely on the
ITSList feature.

Fix this by making the set_affinity succeed in this case, and
return early, without trying to touch the HW.

Fixes: 1442ee0011983 ("irqchip/gic-v4: Don't allow a VMOVP on a dying VPE")
Reported-by: Zenghui Yu <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Zenghui Yu <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
Link: https://lore.kernel.org/r/[email protected]
drivers/irqchip/irq-gic-v3-its.c
This page took 0.050602 seconds and 4 git commands to generate.