qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Guest stop notification
@ 2011-11-29 21:36 Eric B Munson
  2011-11-29 22:10 ` Anthony Liguori
  2011-12-01 14:37 ` Jan Kiszka
  0 siblings, 2 replies; 12+ messages in thread
From: Eric B Munson @ 2011-11-29 21:36 UTC (permalink / raw)
  To: qemu-devel
  Cc: ryanh, aliguori, kvm, mtosatti, linux-kernel, Eric B Munson, avi

Often when a guest is stopped from the qemu console, it will report spurious
soft lockup warnings on resume.  There are kernel patches being discussed that
will give the host the ability to tell the guest that it is being stopped and
should ignore the soft lockup warning that generates.

Signed-off-by: Eric B Munson <emunson@mgebm.net>
Cc: ryanh@linux.vnet.ibm.com
Cc: aliguori@us.ibm.com
Cc: mtosatti@redhat.com
Cc: avi@redhat.com
Cc: kvm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
 target-i386/kvm.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index 5bfc21f..defd364 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -336,12 +336,18 @@ static int kvm_inject_mce_oldstyle(CPUState *env)
     return 0;
 }
 
+static void kvm_put_guest_paused(CPUState *penv)
+{
+    kvm_vcpu_ioctl(penv, KVM_GUEST_PAUSED, 0);
+}
+
 static void cpu_update_state(void *opaque, int running, RunState state)
 {
     CPUState *env = opaque;
 
     if (running) {
         env->tsc_valid = false;
+	kvm_put_guest_paused(env);
     }
 }
 
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-12-01 21:33 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-29 21:36 [Qemu-devel] [PATCH] Guest stop notification Eric B Munson
2011-11-29 22:10 ` Anthony Liguori
2011-12-01 14:37 ` Jan Kiszka
2011-12-01 17:19   ` Eric B Munson
2011-12-01 17:31     ` Arend van Spriel
2011-12-01 17:35       ` Jan Kiszka
2011-12-01 17:35     ` Jan Kiszka
2011-12-01 21:22     ` Marcelo Tosatti
2011-12-01 17:22   ` Eric B Munson
2011-12-01 17:36     ` Jan Kiszka
2011-12-01 21:25       ` Marcelo Tosatti
2011-12-01 21:32         ` Eric B Munson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).