From 1fad8b3be32c2e91acbd55f2b0af57ed0723b1bb Mon Sep 17 00:00:00 2001 From: David Hildenbrand Date: Thu, 28 Aug 2014 13:58:51 +0200 Subject: [PATCH] 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 --- target-s390x/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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