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 #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();