s390x/kvm: cleanup calls to cpu_synchronize_state()
commite7c3246162398677eb96f55f267de00809ea213d
authorDavid Hildenbrand <david@redhat.com>
Thu, 12 Apr 2018 09:35:21 +0000 (12 11:35 +0200)
committerCornelia Huck <cohuck@redhat.com>
Mon, 30 Apr 2018 08:31:41 +0000 (30 10:31 +0200)
treec6566fbab2b8a775798fb4cdc2637adb3fd93965
parentc96f2c2a165acf92ff987ebc9e225452250c5083
s390x/kvm: cleanup calls to cpu_synchronize_state()

We have a call to cpu_synchronize_state() on every kvm_arch_handle_exit().

Let's remove the ones that are no longer needed.

Remaining places (for s390x) are in
- target/s390x/sigp.c, on the target CPU
- target/s390x/cpu.c:s390_cpu_get_crash_info()

While at it, use kvm_cpu_synchronize_state() instead of
cpu_synchronize_state() in KVM code. (suggested by Thomas Huth)

Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20180412093521.2469-1-david@redhat.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
hw/s390x/s390-pci-inst.c
target/s390x/kvm.c