aboutsummaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/monitor.c b/monitor.c
index 1bef19ea9..63908c9bc 100644
--- a/monitor.c
+++ b/monitor.c
@@ -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 @@ static void monitor_handle_command(const term_cmd_t *cmds, const char *cmdline)
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();