]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Set protected VM traps based on its view of feature registers
authorFuad Tabba <tabba@google.com>
Mon, 16 Dec 2024 10:50:48 +0000 (10:50 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 20 Dec 2024 13:53:00 +0000 (13:53 +0000)
commit0401f7e76d707741d2562f4988743cc5daf445e4
tree72ded18b29d6f2bc49e88a6ac79dcd3a46dc5456
parent9df9186f8df513dc9bf9f95f68525c7ebc941bcd
KVM: arm64: Set protected VM traps based on its view of feature registers

Now that the VM's feature id registers are initialized with the
values of the supported features, use those values to determine
which traps to set using kvm_has_feature().

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