public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: David Beal <david-UpSRNmNWsutWk0Htik3J/w@public.gmane.org>
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: (Patch) Save Registers for QEMU Monitor Commands
Date: Wed, 03 Jan 2007 11:21:03 -0800	[thread overview]
Message-ID: <1167852063.17482.6.camel@anthracite.dev.neuraliq.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 276 bytes --]

Hello,

This patch adds a kvm_save_registers call before each command run in
qemu monitor.  This affects commands such as "info registers," "info
tlb," and "info mem."

This is to synchronize the cpu state so that monitor commands are more
accurate.

Best Regards,
David Beal

[-- Attachment #2: kvm_save_regs.diff --]
[-- Type: text/x-patch, Size: 621 bytes --]

Index: trunk/qemu/monitor.c
===================================================================
--- trunk/qemu/monitor.c	(revision 4252)
+++ trunk/qemu/monitor.c	(working copy)
@@ -25,6 +25,9 @@
 #include "disas.h"
 #include <dirent.h>
 #include "migration.h"
+#if USE_KVM
+#include "qemu-kvm.h"
+#endif
 //#define DEBUG
 //#define DEBUG_COMPLETION
 
@@ -2231,6 +2234,15 @@
         goto fail;
     }
 
+#ifdef USE_KVM
+    if(1)
+    {
+        CPUState *env=mon_get_cpu();
+        if (kvm_allowed)
+            kvm_save_registers(env);
+    }
+#endif    
+
     switch(nb_args) {
     case 0:
         cmd->handler();

[-- Attachment #3: Type: text/plain, Size: 347 bytes --]

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

[-- Attachment #4: Type: text/plain, Size: 186 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel

                 reply	other threads:[~2007-01-03 19:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1167852063.17482.6.camel@anthracite.dev.neuraliq.com \
    --to=david-upsrnmnwsutwk0htik3j/w@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox