KVM: arm64: Initialize feature id registers for protected VMs
authorFuad Tabba <tabba@google.com>
Mon, 16 Dec 2024 10:50:46 +0000 (10:50 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 20 Dec 2024 13:52:50 +0000 (13:52 +0000)
commit7ba5b8f80475e48b486f095ee9fb67dc9f9d02df
treefa88717ca8157c45fbb5be33bf73930807659a42
parenta3163dca4817e9a30b154a14c793641e39a00592
KVM: arm64: Initialize feature id registers for protected VMs

The hypervisor maintains the state of protected VMs. Initialize
the values for feature ID registers for protected VMs, to be used
when setting traps and when advertising features to protected
VMs.

Signed-off-by: Fuad Tabba <tabba@google.com>
Link: https://lore.kernel.org/r/20241216105057.579031-7-tabba@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/hyp/include/nvhe/fixed_config.h
arch/arm64/kvm/hyp/include/nvhe/pkvm.h
arch/arm64/kvm/hyp/nvhe/pkvm.c
arch/arm64/kvm/hyp/nvhe/sys_regs.c