Skip to content

drivers/virt: pkvm: Protected VMs with PAGE_SIZE smaller than the hypervisor granule

Vincent Donnefort linux-arm-kernel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5drivers/virt: pkvm: Make pkvm_init_hyp_services() __initdrivers/virt/coco/pkvm-guest/arm-pkvm-guest.c+2 -11 reply
2/5drivers/virt: pkvm: Make pkvm_granule __ro_after_initdrivers/virt/coco/pkvm-guest/arm-pkvm-guest.c+1 -11 reply
3/5drivers/virt: pkvm: Handle a granule larger than PAGE_SIZE for MEM_SHAREdrivers/virt/coco/pkvm-guest/arm-pkvm-guest.c+15 -270 replies
4/5drivers/virt: pkvm: Handle a granule larger than PAGE_SIZE for MMIO_GUARDdrivers/virt/coco/pkvm-guest/arm-pkvm-guest.c+43 -81 reply
5/5drivers/virt: pkvm: Allow granule larger than PAGE_SIZEdrivers/virt/coco/pkvm-guest/arm-pkvm-guest.c+1 -11 reply

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchFuad Tabba
1/5R-b T-b
2/5R-b T-b
3/5
4/5R-b
5/5R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] drivers/virt: pkvm: Protected VMs with PAGE_SIZE smaller than the hypervisor granule

This series allows a protected VM to boot with a hypervisor whose protection granule is larger than the guest's PAGE_SIZE (e.g. a 4K guest on a 16K host).

This is best-effort: non-granule-aligned sharing requests are rejected. In practice this works because only the swiotlb is shared with the host, which is allocated early and large enough to be aligned with the granule.

Tested with a 4K protected guest on both upstream and android17-6.18 16K hosts (with MMIO guard auto-enrollment forced).

Fuad Tabba (1):
drivers/virt: pkvm: Handle a granule larger than PAGE_SIZE for
MEM_SHARE

Vincent Donnefort (4):
drivers/virt: pkvm: Make pkvm_init_hyp_services() __init drivers/virt: pkvm: Make pkvm_granule __ro_after_init drivers/virt: pkvm: Handle a granule larger than PAGE_SIZE for
MMIO_GUARD
drivers/virt: pkvm: Allow granule larger than PAGE_SIZE

 drivers/virt/coco/pkvm-guest/arm-pkvm-guest.c | 102 +++++++++++-------
 1 file changed, 63 insertions(+), 39 deletions(-)

base-commit: a90ee4305c4a5df72c11b31dacfdc76e00fcf78a

Signature · 1 line
2.56.0.rc1.315.gc6ed9934b7-goog