Re: [RFC PATCH 00/14] KVM: ITS hardening for pKVM

From: Fuad Tabba

Date: Sun Mar 15 2026 - 09:25:53 EST


> I tested the patches on Lenovo ideacenter Mini X Gen 10 Snapdragon,
> and the kernel hangs at boot for me with messags the following log:
>
> [ 2.735838] ITS queue timeout (1056 1024)
> [ 2.739969] ITS cmd its_build_mapd_cmd failed
> [ 4.776344] ITS queue timeout (1120 1024)
> [ 4.780472] ITS cmd its_build_mapti_cmd failed
> [ 6.816677] ITS queue timeout (1184 1024)
> [ 6.820806] ITS cmd its_build_mapti_cmd failed
> [ 8.857009] ITS queue timeout (1248 1024)
> [ 8.861129] ITS cmd its_build_mapti_cmd failed

I get the same running it on QEMU.

Cheers,
/fuad

> I am happy to do more debugging, let me know if I can try anything.
>
> Thanks,
> Mostafa
>
> >
> > arch/arm64/include/asm/kvm_arm.h | 3 +
> > arch/arm64/include/asm/kvm_asm.h | 1 +
> > arch/arm64/include/asm/kvm_pkvm.h | 20 +
> > arch/arm64/kvm/hyp/include/nvhe/its_emulate.h | 17 +
> > arch/arm64/kvm/hyp/include/nvhe/mem_protect.h | 2 +
> > arch/arm64/kvm/hyp/nvhe/Makefile | 3 +-
> > arch/arm64/kvm/hyp/nvhe/hyp-main.c | 14 +
> > arch/arm64/kvm/hyp/nvhe/its_emulate.c | 653 ++++++++++++++++++
> > arch/arm64/kvm/hyp/nvhe/mem_protect.c | 134 ++++
> > arch/arm64/kvm/hyp/nvhe/setup.c | 28 +
> > arch/arm64/kvm/hyp/pgtable.c | 9 +-
> > arch/arm64/kvm/pkvm.c | 60 ++
> > drivers/irqchip/irq-gic-v3-its.c | 177 ++++-
> > include/linux/irqchip/arm-gic-v3.h | 36 +
> > 14 files changed, 1126 insertions(+), 31 deletions(-)
> > create mode 100644 arch/arm64/kvm/hyp/include/nvhe/its_emulate.h
> > create mode 100644 arch/arm64/kvm/hyp/nvhe/its_emulate.c
> >
> > --
> > 2.53.0.473.g4a7958ca14-goog
> >