summaryrefslogtreecommitdiffstats
path: root/ArmVirtPkg/ArmVirtXen.dsc
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2018-04-23 16:55:18 +0200
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2018-04-26 08:31:40 +0200
commitef42ef7e6dd70112ce2af1757e765b7bcde7a70a (patch)
treed4bd80d80bd7b6bc234666b9d5c8296d32b5414d /ArmVirtPkg/ArmVirtXen.dsc
parent5853e2e45092ee49a88971ef0c5f97ac808ed47d (diff)
downloadedk2-ef42ef7e6dd70112ce2af1757e765b7bcde7a70a.tar.gz
edk2-ef42ef7e6dd70112ce2af1757e765b7bcde7a70a.tar.bz2
edk2-ef42ef7e6dd70112ce2af1757e765b7bcde7a70a.zip
ArmVirtPkg: reinstate timer unmask quirk for Xen
Commit 411a373ed642 ("ArmPkg/TimerDxe: remove workaround for KVM timer handling") removed the virtual timer handling quirk that cleared the mask bit in the control register when enabling the timer, under the assumption that only ancient KVM host implementations required it. However, Julien reports that Xen also masks the timer interrupt in the guest view of the timer control register, and therefore needs the same quirk. So let's reinstate it, but using a Xen specific implementation of the timer support library, so that other virt platforms remain unchanged. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Tested-by: Julien Grall <julien.grall@arm.com> Acked-by: Julien Grall <julien.grall@arm.com>
Diffstat (limited to 'ArmVirtPkg/ArmVirtXen.dsc')
-rw-r--r--ArmVirtPkg/ArmVirtXen.dsc1
1 files changed, 1 insertions, 0 deletions
diff --git a/ArmVirtPkg/ArmVirtXen.dsc b/ArmVirtPkg/ArmVirtXen.dsc
index 175b56d10c..8878912e6b 100644
--- a/ArmVirtPkg/ArmVirtXen.dsc
+++ b/ArmVirtPkg/ArmVirtXen.dsc
@@ -36,6 +36,7 @@
RealTimeClockLib|ArmVirtPkg/Library/XenRealTimeClockLib/XenRealTimeClockLib.inf
XenHypercallLib|OvmfPkg/Library/XenHypercallLib/XenHypercallLib.inf
+ ArmGenericTimerCounterLib|ArmVirtPkg/Library/XenArmGenericTimerVirtCounterLib/XenArmGenericTimerVirtCounterLib.inf
ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf