Loading
KVM: arm64: Initialize the kvm host data's fpsimd_state pointer in pKVM
mainline inclusion from mainline-v6.10-rc1 commit 4c22a40dd9c3dcc2156f312ffc71955e56192a76 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I8EC9K CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=4c22a40dd9c3dcc2156f312ffc71955e56192a76 -------------------------------- Since the host_fpsimd_state has been removed from kvm_vcpu_arch, it isn't pointing to the hyp's version of the host fp_regs in protected mode. Initialize the host_data fpsimd_state point to the host_data's context fp_regs on pKVM initialization. Fixes: 51e09b5572d6 ("KVM: arm64: Exclude host_fpsimd_state pointer from kvm_vcpu_arch") Signed-off-by:Fuad Tabba <tabba@google.com> Acked-by:
Oliver Upton <oliver.upton@linux.dev> Link: https://lore.kernel.org/r/20240423150538.2103045-2-tabba@google.com Signed-off-by:
Marc Zyngier <maz@kernel.org> Signed-off-by:
Junhao He <hejunhao3@huawei.com>