* (Patch) Save Registers for QEMU Monitor Commands
@ 2007-01-03 19:21 David Beal
0 siblings, 0 replies; only message in thread
From: David Beal @ 2007-01-03 19:21 UTC (permalink / raw)
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
[-- 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-01-03 19:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-03 19:21 (Patch) Save Registers for QEMU Monitor Commands David Beal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox