mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-08 05:34:59 +00:00
Add a monitor command to raise NMI
(Jan Kiszka) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4271 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
e6e514c529
commit
dc1c0b749f
17
monitor.c
17
monitor.c
@ -1283,6 +1283,19 @@ static void do_wav_capture (const char *path,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(TARGET_I386)
|
||||||
|
static void do_inject_nmi(int cpu_index)
|
||||||
|
{
|
||||||
|
CPUState *env;
|
||||||
|
|
||||||
|
for (env = first_cpu; env != NULL; env = env->next_cpu)
|
||||||
|
if (env->cpu_index == cpu_index) {
|
||||||
|
cpu_interrupt(env, CPU_INTERRUPT_NMI);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static term_cmd_t term_cmds[] = {
|
static term_cmd_t term_cmds[] = {
|
||||||
{ "help|?", "s?", do_help,
|
{ "help|?", "s?", do_help,
|
||||||
"[cmd]", "show the help" },
|
"[cmd]", "show the help" },
|
||||||
@ -1356,6 +1369,10 @@ static term_cmd_t term_cmds[] = {
|
|||||||
"addr size file", "save to disk virtual memory dump starting at 'addr' of size 'size'", },
|
"addr size file", "save to disk virtual memory dump starting at 'addr' of size 'size'", },
|
||||||
{ "pmemsave", "lis", do_physical_memory_save,
|
{ "pmemsave", "lis", do_physical_memory_save,
|
||||||
"addr size file", "save to disk physical memory dump starting at 'addr' of size 'size'", },
|
"addr size file", "save to disk physical memory dump starting at 'addr' of size 'size'", },
|
||||||
|
#if defined(TARGET_I386)
|
||||||
|
{ "nmi", "i", do_inject_nmi,
|
||||||
|
"cpu", "inject an NMI on the given CPU", },
|
||||||
|
#endif
|
||||||
{ NULL, NULL, },
|
{ NULL, NULL, },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user