Patchwork s390x kvm and smp

login
register
mail settings
Submitter Christian Borntraeger
Date May 4, 2011, 4:13 p.m.
Message ID <4DC17B1E.2080305@de.ibm.com>
Download mbox | patch
Permalink /patch/94085/
State New
Headers show

Comments

Christian Borntraeger - May 4, 2011, 4:13 p.m.
On 04/05/11 12:59, Jan Kiszka wrote:
> s390 just need to return a meaningful value from
> kvm_arch_process_async_events, e.g. env->halted, see other archs.

Yes indeed. This patch fixes smp for kvm on s390x.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Alexander Graf - May 4, 2011, 5:11 p.m.
Am 04.05.2011 um 18:13 schrieb Christian Borntraeger <borntraeger@de.ibm.com>:

> On 04/05/11 12:59, Jan Kiszka wrote:
>> s390 just need to return a meaningful value from
>> kvm_arch_process_async_events, e.g. env->halted, see other archs.
> 
> Yes indeed. This patch fixes smp for kvm on s390x.
> 
> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>

Now give it a proper patch description and I'll get it in through my tree :)

Alex

>

Patch

--- a/target-s390x/kvm.c
+++ b/target-s390x/kvm.c
@@ -172,7 +172,7 @@  void kvm_arch_post_run(CPUState *env, struct kvm_run *run)
 
 int kvm_arch_process_async_events(CPUState *env)
 {
-    return 0;
+    return env->halted;
 }
 
 void kvm_s390_interrupt_internal(CPUState *env, int type, uint32_t parm,