diff options
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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(); |