summaryrefslogtreecommitdiffstats
path: root/hw/apic.h
diff options
context:
space:
mode:
authorJan Kiszka2011-10-17 18:00:06 +0200
committerJan Kiszka2012-01-19 12:14:40 +0100
commit02c091953cd8c24db46649ad2862b9648c50f865 (patch)
tree3ff157d089409a92ce597a224447da45ffafe8f5 /hw/apic.h
parentapic: Stop timer on reset (diff)
downloadqemu-02c091953cd8c24db46649ad2862b9648c50f865.tar.gz
qemu-02c091953cd8c24db46649ad2862b9648c50f865.tar.xz
qemu-02c091953cd8c24db46649ad2862b9648c50f865.zip
apic: Inject external NMI events via LINT1
On real hardware, NMI button events are injected via the LINT1 line of the APICs. E.g. kdump expect this wiring and gets upset if the per-APIC LINT1 mask is not respected, i.e. if NMIs are injected to VCPUs that should not receive them. Change the APIC emulation code to reflect this. Based on qemu-kvm patch by Lai Jiangshan. CC: Lai Jiangshan <laijs@cn.fujitsu.com> Reported-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Diffstat (limited to 'hw/apic.h')
-rw-r--r--hw/apic.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/apic.h b/hw/apic.h
index a5c910fe0a..a62d83ba9f 100644
--- a/hw/apic.h
+++ b/hw/apic.h
@@ -8,6 +8,7 @@ void apic_deliver_irq(uint8_t dest, uint8_t dest_mode, uint8_t delivery_mode,
uint8_t vector_num, uint8_t trigger_mode);
int apic_accept_pic_intr(DeviceState *s);
void apic_deliver_pic_intr(DeviceState *s, int level);
+void apic_deliver_nmi(DeviceState *d);
int apic_get_interrupt(DeviceState *s);
void apic_reset_irq_delivered(void);
int apic_get_irq_delivered(void);