[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL for-2.4 10/11] s390x/gdb: synchronize cpu state after
From: |
Cornelia Huck |
Subject: |
[Qemu-devel] [PULL for-2.4 10/11] s390x/gdb: synchronize cpu state after modifying acrs |
Date: |
Thu, 2 Jul 2015 09:42:24 +0200 |
From: David Hildenbrand <address@hidden>
Whenever we touch the access control registers, we have to make sure that
the values will make it into kvm. Otherwise the change will simply be lost.
When synchronizing qemu and kvm, a normal KVM_PUT_RUNTIME_STATE does not take
care of these registers. Let's simply trigger a KVM_PUT_FULL_STATE sync,
so the values will directly be written to kvm. The performance overhead can
be ignored and this is much cleaner than manually writing these registers to kvm
via our two supported ways.
Reviewed-by: Christian Borntraeger <address@hidden>
Signed-off-by: David Hildenbrand <address@hidden>
Signed-off-by: Cornelia Huck <address@hidden>
---
target-s390x/gdbstub.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/target-s390x/gdbstub.c b/target-s390x/gdbstub.c
index ddc14a6..31f2049 100644
--- a/target-s390x/gdbstub.c
+++ b/target-s390x/gdbstub.c
@@ -92,6 +92,7 @@ static int cpu_write_ac_reg(CPUS390XState *env, uint8_t
*mem_buf, int n)
switch (n) {
case S390_A0_REGNUM ... S390_A15_REGNUM:
env->aregs[n] = ldl_p(mem_buf);
+ cpu_synchronize_post_init(ENV_GET_CPU(env));
return 4;
default:
return 0;
--
2.4.5
- [Qemu-devel] [PULL for-2.4 00/11] s390x patches for 2.4, Cornelia Huck, 2015/07/02
- [Qemu-devel] [PULL for-2.4 02/11] css: mss/mcss-e vs. migration, Cornelia Huck, 2015/07/02
- [Qemu-devel] [PULL for-2.4 03/11] s390-ccw.img: Consume service interrupts, Cornelia Huck, 2015/07/02
- [Qemu-devel] [PULL for-2.4 05/11] s390x/css: Add a callback for when subchannel gets disabled, Cornelia Huck, 2015/07/02
- [Qemu-devel] [PULL for-2.4 07/11] s390x/virtio-ccw: support virtio-1 set_vq format, Cornelia Huck, 2015/07/02
- [Qemu-devel] [PULL for-2.4 06/11] s390x/virtio-ccw: add virtio set-revision call, Cornelia Huck, 2015/07/02
- [Qemu-devel] [PULL for-2.4 04/11] s390-ccw.img: update, Cornelia Huck, 2015/07/02
- [Qemu-devel] [PULL for-2.4 01/11] virtio-ccw: complete handling of guest-initiated resets, Cornelia Huck, 2015/07/02
- [Qemu-devel] [PULL for-2.4 08/11] virtio-ccw: migrate ->revision, Cornelia Huck, 2015/07/02
- [Qemu-devel] [PULL for-2.4 10/11] s390x/gdb: synchronize cpu state after modifying acrs,
Cornelia Huck <=
- [Qemu-devel] [PULL for-2.4 11/11] s390x/migration: Introduce 2.4 machine, Cornelia Huck, 2015/07/02
- [Qemu-devel] [PULL for-2.4 09/11] s390x/ipl: Fix boot if no bootindex was specified, Cornelia Huck, 2015/07/02
- Re: [Qemu-devel] [PULL for-2.4 00/11] s390x patches for 2.4, Peter Maydell, 2015/07/02