Make sure to sync registers in monitor/gdbstub (v2)
commit7fc01a42e2f0b4106b2eb622c933d5a3fcc0b9f4
authorAnthony Liguori <aliguori@us.ibm.com>
Tue, 3 Jul 2007 01:52:36 +0000 (2 20:52 -0500)
committerAvi Kivity <avi@qumranet.com>
Tue, 3 Jul 2007 04:31:29 +0000 (2 21:31 -0700)
treec758f39b3f3aaffdfe46dc739e23c79c3ded5537
parent8dfe1a985e7a6a031c32c16d6d3fb9931598a34c
Make sure to sync registers in monitor/gdbstub (v2)

This patch adds support to gdbstub and the monitor to sync CPU state before
and after the user views/changes it.  I also added kvm_allowed guards to
kvm_{load,save}_registers.  I chose to do it here so that callers didn't need
to use the guards.  We should probably provide nop implementations so that
#ifdef USE_KVM guards aren't required either.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
gdbstub.c
monitor.c
qemu-kvm.c