OSDN Git Service

KVM: s390: Also reset registers in sync regs for initial cpu reset
authorChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 3 Mar 2020 08:10:57 +0000 (03:10 -0500)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 11 Mar 2020 07:25:26 +0000 (08:25 +0100)
commite93fc7b4544a5475cfdbc22f87e89f9829bf801c
tree83963e7a11847fed996217396b0d5658458a5688
parentd718fdc3e752ba51ddb2b5554d3db98a09355cc2
KVM: s390: Also reset registers in sync regs for initial cpu reset

When we do the initial CPU reset we must not only clear the registers
in the internal data structures but also in kvm_run sync_regs. For
modern userspace sync_regs is the only place that it looks at.

Fixes: 7de3f1423ff9 ("KVM: s390: Add new reset vcpu API")
Acked-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/kvm-s390.c