Skip to content
Commit 85d70374 authored by Marc Zyngier's avatar Marc Zyngier
Browse files

KVM: arm64: Fully zero the vcpu state on reset



On vcpu reset, we expect all the registers to be brought back
to their initial state, which happens to be a bunch of zeroes.

However, some recent commit broke this, and is now leaving a bunch
of registers (such as the FP state) with whatever was left by the
guest. My bad.

Zero the reset of the state (32bit SPSRs and FPSIMD state).

Cc: stable@vger.kernel.org
Fixes: e47c2055 ("KVM: arm64: Make struct kvm_regs userspace-only")
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
parent 5b32a53d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment