kvm: qemu: make sure to sync registers in monitor/gdbstub (v2)
commit45751c76491278837d17b6705b9878b631f31118
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)
tree641dcc604f14b6c184e8cba647305752b8c9cb27
parent7939b8a7bc295f552d1c46fd12a0c6d5b69ee368
kvm: qemu: 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>
qemu/gdbstub.c
qemu/monitor.c
qemu/qemu-kvm.c