]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Move checking protected vcpu features to a separate function
authorFuad Tabba <tabba@google.com>
Mon, 16 Dec 2024 10:50:43 +0000 (10:50 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 20 Dec 2024 13:45:25 +0000 (13:45 +0000)
commit1fea164ccf19750c5bea688afd9122eb84eb3a72
treef8f1be1d278c44fe56f385f5ef52857d36876f6c
parentf50758260bfff393f2a800469b37c45a7ef50376
KVM: arm64: Move checking protected vcpu features to a separate function

At the moment, checks for supported vcpu features for protected
VMs are build-time bugs. In the following patch, they will become
runtime checks based on the vcpu's features registers. Therefore,
consolidate them into one function that would return an error if
it encounters an unsupported feature.

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