From f9a535e089abcbc7ac99db83c8c6e4644e395b12 Mon Sep 17 00:00:00 2001 From: Xu Wang Date: Thu, 5 Feb 2015 18:28:35 +0800 Subject: 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 Reviewed-by: David Hildenbrand CC: Alexey Kardashevskiy Signed-off-by: Christian Borntraeger --- include/hw/nmi.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/hw/nmi.h') diff --git a/include/hw/nmi.h b/include/hw/nmi.h index b541772e1d..f4cec6257d 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 */ -- cgit 1.4.1