[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL v2 6/8] s390x/kvm: synchronize the cpu state after SI
From: |
Cornelia Huck |
Subject: |
[Qemu-devel] [PULL v2 6/8] s390x/kvm: synchronize the cpu state after SIGP (INITIAL) CPU RESET |
Date: |
Fri, 10 Oct 2014 15:09:14 +0200 |
From: David Hildenbrand <address@hidden>
We need to synchronize registers after a reset has been performed. The
current code does that in qemu_system_reset(), load_normal_reset() and
modified_clear_reset() for all vcpus. After SIGP (INITIAL) CPU RESET,
this needs to be done for the targeted vcpu as well, so let's call
cpu_synchronize_post_reset() in the respective handlers.
Signed-off-by: David Hildenbrand <address@hidden>
Signed-off-by: Jens Freimann <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
CC: Andreas Faerber <address@hidden>
Tested-by: Christian Borntraeger <address@hidden>
Signed-off-by: Cornelia Huck <address@hidden>
---
target-s390x/kvm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/target-s390x/kvm.c b/target-s390x/kvm.c
index e4c4c8d..5b10a25 100644
--- a/target-s390x/kvm.c
+++ b/target-s390x/kvm.c
@@ -952,6 +952,7 @@ static void sigp_initial_cpu_reset(void *arg)
cpu_synchronize_state(cpu);
scc->initial_cpu_reset(cpu);
+ cpu_synchronize_post_reset(cpu);
}
static void sigp_cpu_reset(void *arg)
@@ -961,6 +962,7 @@ static void sigp_cpu_reset(void *arg)
cpu_synchronize_state(cpu);
scc->cpu_reset(cpu);
+ cpu_synchronize_post_reset(cpu);
}
#define SIGP_ORDER_MASK 0x000000ff
--
1.7.9.5
- [Qemu-devel] [PULL v2 0/8] s390x patches for 2.2, Cornelia Huck, 2014/10/10
- [Qemu-devel] [PULL v2 4/8] s390x/kvm: propagate s390 cpu state to kvm, Cornelia Huck, 2014/10/10
- [Qemu-devel] [PULL v2 2/8] s390x/kvm: introduce proper states for s390 cpus, Cornelia Huck, 2014/10/10
- [Qemu-devel] [PULL v2 1/8] linux-headers: update to 3.17-rc7, Cornelia Huck, 2014/10/10
- [Qemu-devel] [PULL v2 6/8] s390x/kvm: synchronize the cpu state after SIGP (INITIAL) CPU RESET,
Cornelia Huck <=
- [Qemu-devel] [PULL v2 3/8] s390x/kvm: proper use of the cpu states OPERATING and STOPPED, Cornelia Huck, 2014/10/10
- [Qemu-devel] [PULL v2 5/8] s390x/kvm: reuse kvm_s390_reset_vcpu() to get rid of ifdefs, Cornelia Huck, 2014/10/10
- [Qemu-devel] [PULL v2 7/8] s390x/migration: migrate CPU state, Cornelia Huck, 2014/10/10
- [Qemu-devel] [PULL v2 8/8] s390x/virtio-ccw: fix vhost-scsi intialization, Cornelia Huck, 2014/10/10
- Re: [Qemu-devel] [PULL v2 0/8] s390x patches for 2.2, Peter Maydell, 2014/10/10