]> git.proxmox.com Git - pve-qemu.git/blame - debian/patches/pve/0021-PVE-Config-Revert-target-i386-disable-LINT0-after-re.patch
update submodule and patches to 7.1.0
[pve-qemu.git] / debian / patches / pve / 0021-PVE-Config-Revert-target-i386-disable-LINT0-after-re.patch
CommitLineData
3dcc8d3b 1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
90a6d957 2From: Wolfgang Bumiller <w.bumiller@proxmox.com>
83faa3fe
TL
3Date: Mon, 6 Apr 2020 12:16:49 +0200
4Subject: [PATCH] PVE: [Config] Revert "target-i386: disable LINT0 after reset"
90a6d957
WB
5
6This reverts commit b8eb5512fd8a115f164edbbe897cdf8884920ccb.
b855dce7
TL
7
8Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
90a6d957
WB
9---
10 hw/intc/apic_common.c | 9 +++++++++
11 1 file changed, 9 insertions(+)
12
13diff --git a/hw/intc/apic_common.c b/hw/intc/apic_common.c
f376b2b9 14index 2a20982066..7968ad5a93 100644
90a6d957
WB
15--- a/hw/intc/apic_common.c
16+++ b/hw/intc/apic_common.c
f376b2b9 17@@ -278,6 +278,15 @@ static void apic_reset_common(DeviceState *dev)
90a6d957
WB
18 info->vapic_base_update(s);
19
20 apic_init_reset(dev);
21+
22+ if (bsp) {
23+ /*
24+ * LINT0 delivery mode on CPU #0 is set to ExtInt at initialization
25+ * time typically by BIOS, so PIC interrupt can be delivered to the
26+ * processor when local APIC is enabled.
27+ */
28+ s->lvt[APIC_LVT_LINT0] = 0x700;
29+ }
30 }
31
6402d961 32 static const VMStateDescription vmstate_apic_common;