diff options
author | Marc Zyngier <maz@kernel.org> | 2021-04-13 17:35:58 +0300 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2021-04-13 17:35:58 +0300 |
commit | ad569b70aa02ffba1e86411b79570cbe4e6c7bb8 (patch) | |
tree | e7cb9d5b58e9421d7a5840fe97fcb2f740de216d /arch/arm64/kvm/reset.c | |
parent | 3d63ef4d523edb365dd6c91464ccc18e7bda510d (diff) | |
parent | 85d703746154cdc6794b6654b587b0b0354c97e9 (diff) | |
download | linux-ad569b70aa02ffba1e86411b79570cbe4e6c7bb8.tar.xz |
Merge branch 'kvm-arm64/misc-5.13' into kvmarm-master/next
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'arch/arm64/kvm/reset.c')
-rw-r--r-- | arch/arm64/kvm/reset.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm64/kvm/reset.c b/arch/arm64/kvm/reset.c index 86d94f616a1e..956cdc240148 100644 --- a/arch/arm64/kvm/reset.c +++ b/arch/arm64/kvm/reset.c @@ -238,6 +238,11 @@ int kvm_reset_vcpu(struct kvm_vcpu *vcpu) /* Reset core registers */ memset(vcpu_gp_regs(vcpu), 0, sizeof(*vcpu_gp_regs(vcpu))); + memset(&vcpu->arch.ctxt.fp_regs, 0, sizeof(vcpu->arch.ctxt.fp_regs)); + vcpu->arch.ctxt.spsr_abt = 0; + vcpu->arch.ctxt.spsr_und = 0; + vcpu->arch.ctxt.spsr_irq = 0; + vcpu->arch.ctxt.spsr_fiq = 0; vcpu_gp_regs(vcpu)->pstate = pstate; /* Reset system registers */ |