[PATCH 0/3] irqchip/gic-v3-its: Fix how zeroed table pages reach the GIC

Fuad Tabba posted 3 patches 2 weeks, 4 days ago
drivers/irqchip/irq-gic-v3-its.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
[PATCH 0/3] irqchip/gic-v3-its: Fix how zeroed table pages reach the GIC
Posted by Fuad Tabba 2 weeks, 4 days ago
Hi folks,

Three fixes to how the ITS driver allocates the tables it hands to the
GIC, which turned up while I was working on the pKVM ITS series [1].

The first zeroes every page in its_alloc_pages_node() before
set_memory_decrypted() can share it with the host. Every caller
already did, except for the LPI property table, which was allocated
unzeroed and filled after the share. The second orders the zeroing, in
the same function, before the store that exposes the page to the GIC.
On a coherent table it wasn't ordered at all. The third cleans the
GICv4.1 vPE table to PoC when the redistributor is non-shareable, as
the driver already does for its other tables.

Based on Linux 7.4-rc1 (6628e7d4c6b25).

Cheers,
/fuad

[1] https://lore.kernel.org/all/20261102130133.3684226-1-fuad.tabba@linux.dev/

Fuad Tabba (3):
  irqchip/gic-v3-its: Zero ITS pages before sharing them with the host
  irqchip/gic-v3-its: Order table zeroing before the GIC can see it
  irqchip/gic-v3-its: Clean a non-shareable vPE table to PoC

 drivers/irqchip/irq-gic-v3-its.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)


base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
-- 
2.47.3
Re: [PATCH 0/3] irqchip/gic-v3-its: Fix how zeroed table pages reach the GIC
Posted by Fuad Tabba 1 week, 6 days ago
Hi folks,

I'll respin this series and the ITT pool fixes as one [1], so please
ignore this one.

Cheers,
/fuad

[1] https://lore.kernel.org/all/86se1720q9.wl-maz@kernel.org/