2018-01-15 17:00:23 +03:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2017-06-06 14:22:50 +03:00
|
|
|
From: Wolfgang Bumiller <w.bumiller@proxmox.com>
|
2020-04-07 17:53:19 +03:00
|
|
|
Date: Mon, 6 Apr 2020 12:16:49 +0200
|
|
|
|
Subject: [PATCH] PVE: [Config] Revert "target-i386: disable LINT0 after reset"
|
2017-06-06 14:22:50 +03:00
|
|
|
|
|
|
|
This reverts commit b8eb5512fd8a115f164edbbe897cdf8884920ccb.
|
2019-06-06 13:58:15 +03:00
|
|
|
|
|
|
|
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
2017-06-06 14:22:50 +03:00
|
|
|
---
|
|
|
|
hw/intc/apic_common.c | 9 +++++++++
|
|
|
|
1 file changed, 9 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/hw/intc/apic_common.c b/hw/intc/apic_common.c
|
2021-10-11 14:55:34 +03:00
|
|
|
index 2a20982066..7968ad5a93 100644
|
2017-06-06 14:22:50 +03:00
|
|
|
--- a/hw/intc/apic_common.c
|
|
|
|
+++ b/hw/intc/apic_common.c
|
2021-10-11 14:55:34 +03:00
|
|
|
@@ -278,6 +278,15 @@ static void apic_reset_common(DeviceState *dev)
|
2017-06-06 14:22:50 +03:00
|
|
|
info->vapic_base_update(s);
|
|
|
|
|
|
|
|
apic_init_reset(dev);
|
|
|
|
+
|
|
|
|
+ if (bsp) {
|
|
|
|
+ /*
|
|
|
|
+ * LINT0 delivery mode on CPU #0 is set to ExtInt at initialization
|
|
|
|
+ * time typically by BIOS, so PIC interrupt can be delivered to the
|
|
|
|
+ * processor when local APIC is enabled.
|
|
|
|
+ */
|
|
|
|
+ s->lvt[APIC_LVT_LINT0] = 0x700;
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
|
2020-03-10 17:12:50 +03:00
|
|
|
static const VMStateDescription vmstate_apic_common;
|