mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
d67f5fe63c
commit
f9a535e089
2 changed files with 21 additions and 0 deletions
|
@ -45,5 +45,6 @@ typedef struct NMIClass {
|
|||
} NMIClass;
|
||||
|
||||
void nmi_monitor_handle(int cpu_index, Error **errp);
|
||||
void inject_nmi(void);
|
||||
|
||||
#endif /* NMI_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue