summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorXu Wang <gesaint@linux.vnet.ibm.com>2015-02-05 18:28:35 +0800
committerChristian Borntraeger <borntraeger@de.ibm.com>2015-06-11 17:45:50 +0200
commitf9a535e089abcbc7ac99db83c8c6e4644e395b12 (patch)
treec1f4d6ede264a3fffa4dbff4d13c98364b08de2f /include
parentd67f5fe63caa0f707fa91c760508c340e050b6f0 (diff)
downloadhqemu-f9a535e089abcbc7ac99db83c8c6e4644e395b12.zip
hqemu-f9a535e089abcbc7ac99db83c8c6e4644e395b12.tar.gz
nmi: Implement inject_nmi() for non-monitor context use
Let's introduce a general "inject_nmi()" function that doesn't rely on the cpu index of the monitor, but uses cpu index 0 as default (except for x86). This function can then later be used from a non-monitor context. Signed-off-by: Xu Wang <gesaint@linux.vnet.ibm.com> Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com> CC: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/nmi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/nmi.h b/include/hw/nmi.h
index b541772..f4cec62 100644
--- a/include/hw/nmi.h
+++ b/include/hw/nmi.h
@@ -45,5 +45,6 @@ typedef struct NMIClass {
} NMIClass;
void nmi_monitor_handle(int cpu_index, Error **errp);
+void inject_nmi(void);
#endif /* NMI_H */
OpenPOWER on IntegriCloud