[PATCH v3 9/9] KVM: arm64: Reserve pKVM handle during pkvm_init_host_vm()

Mark Brown broonie at kernel.org
Mon Sep 8 11:52:02 PDT 2025


On Mon, Sep 08, 2025 at 05:05:56PM +0100, Mark Brown wrote:

> I'm seeing the KVM selftests failing in -next on multiple nVHE
> platforms (pretty sure it's all of them) which bisect down to this
> commit, when booted in standard nVHE mode the selftests are all failing
> to initialise with:

I'm seeing a different failure on the same commit with qemu in VHE mode,
we fault during pkvm_init_host():

<12>[  112.802609] kselftest: Running tests in kvm
TAP version 13
1..34
# timeout set to 120
# selftests: kvm: demand_paging_test
<2>[  113.800187] Unhandled 64-bit el1h sync exception on CPU0, ESR 0x000000005a000000 -- HVC (AArch64)
...
<4>[  113.812056] Call trace:
<4>[  113.812571]  show_stack+0x18/0x24 (C)
<4>[  113.813078]  dump_stack_lvl+0x60/0x80
<4>[  113.813448]  dump_stack+0x18/0x24
<4>[  113.813711]  vpanic+0x124/0x2ec
<4>[  113.813965]  abort+0x0/0x4
<4>[  113.814198]  arm64_exit_nmi.isra.0+0x0/0x94
<4>[  113.814517]  el1h_64_sync_handler+0x2c/0xac
<4>[  113.814812]  el1h_64_sync+0x6c/0x70
<4>[  113.815266]  pkvm_init_host_vm+0x20/0x48 (P)
<4>[  113.815629]  kvm_dev_ioctl+0x264/0x80c
<4>[  113.815960]  __arm64_sys_ioctl+0xac/0x104

Full log:

   https://lava.sirena.org.uk/scheduler/job/1794785#L2258
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20250908/f4c7f5c8/attachment.sig>


More information about the linux-arm-kernel mailing list