s390x/tcg: fix DIAG 308 with > 1 VCPU (MTTCG)
commit7337c6eb98786372cdbfe7ebe7affbd166fdc7ca
authorDavid Hildenbrand <david@redhat.com>
Thu, 16 Nov 2017 17:05:26 +0000 (16 18:05 +0100)
committerCornelia Huck <cohuck@redhat.com>
Mon, 20 Nov 2017 08:31:46 +0000 (20 09:31 +0100)
tree92a93bff6e05ba66bd574d7744ed938fdc740feb
parentdc0bbef5e6049920873204d35cd27172b65d204f
s390x/tcg: fix DIAG 308 with > 1 VCPU (MTTCG)

Currently, multi threaded TCG with > 1 VCPU gets stuck during IPL, when
the bios tries to switch to the loaded kernel via DIAG 308.

As run_on_cpu() is used, we run into a deadlock after handling the reset.
We need the iolock (just like KVM).

Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20171116170526.12643-4-david@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
target/s390x/misc_helper.c