[PATCH 0/2] Tweaks to the kvm-arm.mode= early cmdline parsing

Will Deacon will at kernel.org
Wed May 1 09:33:58 PDT 2024


Hi folks,

Here are a couple of tweaks to the early parsing of the 'kvm-arm.mode='
cmdline option so that:

  1. kvm-arm.mode=nvhe overrides an earlier arm64_sw.hvhe=1 option
  2. Protected KVM initialises in hVHE if VH is available in the CPU

This is useful for Android, where we'd like the default cmdline to work
on all CPUs (i.e. with and without VH) but using hVHE by default where
available and finally allowing nVHE to be forced by the bootloader
appending additional arguments.

The patches could probably be squashed, but I kept them separate because
they're doing different things and this code is quite fiddly when you
start reasoning about the possible interactions between all of the
options.

Cheers,

Will

Cc: Marc Zyngier <maz at kernel.org>
Cc: Oliver Upton <oliver.upton at linux.dev>

--->8

Will Deacon (2):
  KVM: arm64: Fix hvhe/nvhe early alias parsing
  KVM: arm64: Use hVHE in pKVM by default on CPUs with VHE support

 arch/arm64/kernel/pi/idreg-override.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.45.0.rc0.197.gbae5840b3b-goog




More information about the linux-arm-kernel mailing list