All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: Avi Kivity <avi@redhat.com>
Cc: kvm-devel <kvm@vger.kernel.org>
Subject: [PATCH] kvm-userspace: Fix twisted kvm_arch_get/put_registers
Date: Mon, 16 Mar 2009 19:36:37 +0100	[thread overview]
Message-ID: <49BE9C35.5010505@siemens.com> (raw)

[ 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(-)

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)

             reply	other threads:[~2009-03-16 18:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-16 18:36 Jan Kiszka [this message]
2009-03-17  8:27 ` [PATCH] kvm-userspace: Fix twisted kvm_arch_get/put_registers Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49BE9C35.5010505@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.