Re: [PATCH 0/3] arm64/coco: Convert pKVM to a CC platform

From: Aneesh Kumar K . V

Date: Tue Jul 07 2026 - 04:05:22 EST


Mostafa Saleh <smostafa@xxxxxxxxxx> writes:

> The goal of series is to convert pKVM as a CC platform similar to
> ARM CCA, that makes CC guests consistently discovered which avoid
> breaking it by the ongoing DMA rework [1]
>
> The first patch is a minor clean up I noticed while reading the code.
>
> And the second patch is a bug fix found by Sashiko.
>
> The third patch is the main one.
>
> [1]https://lore.kernel.org/all/20260522042815.370873-1-aneesh.kumar@xxxxxxxxxx/
>
> Mostafa Saleh (3):
> arm64/mm: Simplify SWIOTLB setup in arch_mm_preinit()
> drivers/virt: pkvm: Fix end calculation in mmio_guard_ioremap_hook()
> arm64/coco: Add pKVM as a CC platform
>
> arch/arm64/include/asm/hypervisor.h | 13 ++++++++++
> arch/arm64/include/asm/mem_encrypt.h | 3 ++-
> arch/arm64/kernel/rsi.c | 12 ---------
> arch/arm64/mm/init.c | 26 +++++++++++++------
> drivers/virt/coco/pkvm-guest/arm-pkvm-guest.c | 5 +++-
> 5 files changed, 37 insertions(+), 22 deletions(-)
>
> --
> 2.54.0.1032.g2f8565e1d1-goog

A rebased dma-rework tree on top of the pKVM changes can be found at:
https://gitlab.arm.com/linux-arm/linux-cca/-/tree/scratch/pkvm/testing?ref_type=heads

I was able to successfully boot a protected VM using the latest version of kvmtool.

Tested-by: Aneesh Kumar K.V (Arm) <aneesh.kumar@xxxxxxxxxx>

-aneesh