qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH for-2.4] s390x: the stragglers
@ 2015-06-30  7:55 Cornelia Huck
  2015-06-30  7:55 ` [Qemu-devel] [PATCH for-2.4] s390x/gdb: synchronize cpu state after modifying acrs Cornelia Huck
  0 siblings, 1 reply; 2+ messages in thread
From: Cornelia Huck @ 2015-06-30  7:55 UTC (permalink / raw)
  To: qemu-devel; +Cc: Cornelia Huck, borntraeger, jfrei, agraf

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
  (<1434642868-18685-1-git-send-email-borntraeger@de.ibm.com>)
- 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(+)

-- 
2.4.5

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Qemu-devel] [PATCH for-2.4] s390x/gdb: synchronize cpu state after modifying acrs
  2015-06-30  7:55 [Qemu-devel] [PATCH for-2.4] s390x: the stragglers Cornelia Huck
@ 2015-06-30  7:55 ` Cornelia Huck
  0 siblings, 0 replies; 2+ messages in thread
From: Cornelia Huck @ 2015-06-30  7:55 UTC (permalink / raw)
  To: qemu-devel; +Cc: Cornelia Huck, borntraeger, jfrei, agraf, David Hildenbrand

From: David Hildenbrand <dahi@linux.vnet.ibm.com>

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 <borntraeger@de.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
---
 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-06-30  7:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-30  7:55 [Qemu-devel] [PATCH for-2.4] s390x: the stragglers Cornelia Huck
2015-06-30  7:55 ` [Qemu-devel] [PATCH for-2.4] s390x/gdb: synchronize cpu state after modifying acrs Cornelia Huck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).