]> git.proxmox.com Git - pve-qemu-kvm.git/blame - debian/patches/extra/0001-Revert-target-i386-disable-LINT0-after-reset.patch
update to 2.7
[pve-qemu-kvm.git] / debian / patches / extra / 0001-Revert-target-i386-disable-LINT0-after-reset.patch
CommitLineData
68a30562 1From 603c472d61c354c30bc898b0e9ff1914302cbca9 Mon Sep 17 00:00:00 2001
82ad8941
WB
2From: Wolfgang Bumiller <w.bumiller@proxmox.com>
3Date: Mon, 4 Jul 2016 15:02:26 +0200
68a30562 4Subject: [PATCH 1/3] Revert "target-i386: disable LINT0 after reset"
82ad8941
WB
5
6This reverts commit b8eb5512fd8a115f164edbbe897cdf8884920ccb.
7---
82ad8941
WB
8 hw/intc/apic_common.c | 9 +++++++++
9 1 file changed, 9 insertions(+)
10
11diff --git a/hw/intc/apic_common.c b/hw/intc/apic_common.c
68a30562 12index 14ac43c..1ed0511 100644
82ad8941
WB
13--- a/hw/intc/apic_common.c
14+++ b/hw/intc/apic_common.c
68a30562 15@@ -246,6 +246,15 @@ static void apic_reset_common(DeviceState *dev)
82ad8941
WB
16 info->vapic_base_update(s);
17
18 apic_init_reset(dev);
19+
20+ if (bsp) {
21+ /*
22+ * LINT0 delivery mode on CPU #0 is set to ExtInt at initialization
23+ * time typically by BIOS, so PIC interrupt can be delivered to the
24+ * processor when local APIC is enabled.
25+ */
26+ s->lvt[APIC_LVT_LINT0] = 0x700;
27+ }
28 }
29
30 /* This function is only used for old state version 1 and 2 */
31--
322.1.4
33