From: David Hildenbrand Date: Thu, 28 Aug 2014 11:58:51 +0000 (+0200) Subject: s390x/kvm: execute "system reset" cpu resets on the vcpu thread X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.2~209^2~632^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1fad8b3be32c2e91acbd55f2b0af57ed0723b1bb;p=sdk%2Femulator%2Fqemu.git s390x/kvm: execute "system reset" cpu resets on the vcpu thread Let's execute resets triggered by qemu system resets on the target vcpu thread. This will avoid synchronize_rcu's in the kernel. Reviewed-by: Cornelia Huck Acked-by: Christian Borntraeger Signed-off-by: David Hildenbrand Signed-off-by: Jens Freimann Signed-off-by: Christian Borntraeger --- diff --git a/target-s390x/cpu.c b/target-s390x/cpu.c index c3082b73c5..4633282764 100644 --- a/target-s390x/cpu.c +++ b/target-s390x/cpu.c @@ -165,7 +165,7 @@ static void s390_cpu_machine_reset_cb(void *opaque) { S390CPU *cpu = opaque; - cpu_reset(CPU(cpu)); + run_on_cpu(CPU(cpu), s390_do_cpu_full_reset, CPU(cpu)); } #endif