]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Track SVE state in the hypervisor vcpu structure
authorFuad Tabba <tabba@google.com>
Wed, 16 Apr 2025 15:26:41 +0000 (15:26 +0000)
committerMarc Zyngier <maz@kernel.org>
Mon, 28 Apr 2025 08:23:46 +0000 (09:23 +0100)
commit5db1bef933427aa467ad89c7b695a84a6b4afe16
tree4176fd9cc1179780d843eb8ff75207507e088cea
parentb4432656b36e5cc1d50a1f2dc15357543add530e
KVM: arm64: Track SVE state in the hypervisor vcpu structure

When dealing with a guest with SVE enabled, make sure the host SVE
state is pinned at EL2 S1, and that the hypervisor vCPU state is
correctly initialised (and then unpinned on teardown).

Co-authored-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Quentin Perret <qperret@google.com>
Link: https://lore.kernel.org/r/20250416152648.2982950-2-qperret@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/hyp/nvhe/hyp-main.c
arch/arm64/kvm/hyp/nvhe/pkvm.c