KVM: arm64: Rework specifying restricted features for protected VMs
authorFuad Tabba <tabba@google.com>
Mon, 16 Dec 2024 10:50:49 +0000 (10:50 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 20 Dec 2024 13:53:01 +0000 (13:53 +0000)
commit3d7ff00700d1a4d0c8f092f2c1bf67553a8c7c4c
tree796004bc9f532c83b1b31e7dbc0f1659057ffd99
parent0401f7e76d707741d2562f4988743cc5daf445e4
KVM: arm64: Rework specifying restricted features for protected VMs

The existing code didn't properly distinguish between signed and
unsigned features, and was difficult to read and to maintain.
Rework it using the same method used in other parts of KVM when
handling vcpu features.

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