s390x kvm and smp

Submitted by Christian Borntraeger on May 4, 2011, 4:13 p.m.

Details

Message ID 4DC17B1E.2080305@de.ibm.com
State New
Headers show

Commit Message

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>

Comments

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 hide | download patch | download mbox

--- 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,