kvm: Simplify cpu_synchronize_state()
commit4c0960c0c483fffc5f8e1dab169d946ac295bf44
authorAvi Kivity <avi@redhat.com>
Mon, 17 Aug 2009 20:19:53 +0000 (17 23:19 +0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 28 Aug 2009 01:35:30 +0000 (27 20:35 -0500)
tree1dd3a77d60b3aa96132741326bdb3a8e66fa95c8
parent09aaa1602f9381c0e0fb539390b1793e51bdfc7b
kvm: Simplify cpu_synchronize_state()

cpu_synchronize_state() is a little unreadable since the 'modified'
argument isn't self-explanatory.  Simplify it by making it always
synchronize the kernel state into qemu, and automatically flush the
registers back to the kernel if they've been synchronized on this
exit.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
exec.c
gdbstub.c
hw/apic.c
kvm-all.c
kvm.h
monitor.c
target-i386/machine.c
target-ppc/machine.c