irqchip/gic-v3-its: Fix how zeroed table pages reach the GIC
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | irqchip/gic-v3-its: Zero ITS pages before sharing them with the hostdrivers/ | +2 | 2 replies | |
| 2/3 | irqchip/gic-v3-its: Order table zeroing before the GIC can see itdrivers/ | +3 | 0 replies | |
| 3/3 | irqchip/gic-v3-its: Clean a non-shareable vPE table to PoCdrivers/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] irqchip/gic-v3-its: Fix how zeroed table pages reach the GIC
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/[email protected]/
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
Signature · 1 line
2.47.3