s390x: the stragglers
PATCH 1/1 s390x/gdb: synchronize cpu state after modifying acrs
In reply to Cornelia HuckFrom: David Hildenbrand <[email protected]>
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.
--- target-s390x/gdbstub.c | 1 + 1 file changed, 1 insertion(+)
target-s390x/gdbstub.c +1 -0
@@ -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 ;
Signature · 1 line
2.4.5
PATCH 1/1 s390x: the stragglers
I've added two more patches to my s390-next branch at
git://github.com/cohuck/qemu s390-next
- Christian's fix for the ipl device id (<[email protected]>)
- a gdb fix from David
Will send a pull request later this week.
David Hildenbrand (1):
s390x/gdb: synchronize cpu state after modifying acrs
target-s390x/gdbstub.c | 1 + 1 file changed, 1 insertion(+)
Signature · 1 line
2.4.5