diff mbox

kvm-userspace: Fix twisted kvm_arch_get/put_registers

Message ID 49BE9C35.5010505@siemens.com (mailing list archive)
State Accepted
Headers show

Commit Message

Jan Kiszka March 16, 2009, 6:36 p.m. UTC
[ Get, save, synchronize, put... hell. Reminds me: what's the schedule
for finally dropping libkvm? ]

Fix this fallout from recent qemu-trunk merge, it broke guest debugging.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---

 qemu/qemu-kvm.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Avi Kivity March 17, 2009, 8:27 a.m. UTC | #1
Jan Kiszka wrote:
> [ Get, save, synchronize, put... hell. Reminds me: what's the schedule
> for finally dropping libkvm? ]
>
>   

Patches welcome.

I expect this will become much easier once qemu merges iothread and smp 
support.  Then we can feed qemu-kvm.c into kvm.c and then into upstream.

> Fix this fallout from recent qemu-trunk merge, it broke guest debugging.
>   

Applied, thanks.
diff mbox

Patch

diff --git a/qemu/qemu-kvm.h b/qemu/qemu-kvm.h
index 4a3ba53..c0549df 100644
--- a/qemu/qemu-kvm.h
+++ b/qemu/qemu-kvm.h
@@ -212,12 +212,12 @@  static inline int kvm_sync_vcpus(void) { return 0; }
 
 static inline void kvm_arch_get_registers(CPUState *env)
 {
-    kvm_load_registers(env);
+    kvm_save_registers(env);
 }
 
 static inline void kvm_arch_put_registers(CPUState *env)
 {
-    kvm_save_registers(env);
+    kvm_load_registers(env);
 }
 
 static inline void cpu_synchronize_state(CPUState *env, int modified)