summaryrefslogtreecommitdiff
path: root/include/clocksource
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2024-12-17 17:23:18 +0300
committerMarc Zyngier <maz@kernel.org>2025-01-02 22:19:10 +0300
commitd1e37a50e1d781201768c89314532f6ab87e5a42 (patch)
treeaef074a605fa5116e562dffef3bf794229f40ab5 /include/clocksource
parent479428cc3dc99bbe28954b62b053b22accbfd1fd (diff)
downloadlinux-d1e37a50e1d781201768c89314532f6ab87e5a42.tar.xz
KVM: arm64: nv: Sanitise CNTHCTL_EL2
Inject some sanity in CNTHCTL_EL2, ensuring that we don't handle more than we advertise to the guest. Acked-by: Oliver Upton <oliver.upton@linux.dev> Link: https://lore.kernel.org/r/20241217142321.763801-11-maz@kernel.org Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'include/clocksource')
-rw-r--r--include/clocksource/arm_arch_timer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clocksource/arm_arch_timer.h b/include/clocksource/arm_arch_timer.h
index c62811fb4130..ce6521ad04d1 100644
--- a/include/clocksource/arm_arch_timer.h
+++ b/include/clocksource/arm_arch_timer.h
@@ -26,6 +26,8 @@
#define CNTHCTL_EL1TVCT (1 << 14)
#define CNTHCTL_EL1NVPCT (1 << 15)
#define CNTHCTL_EL1NVVCT (1 << 16)
+#define CNTHCTL_CNTVMASK (1 << 18)
+#define CNTHCTL_CNTPMASK (1 << 19)
enum arch_timer_reg {
ARCH_TIMER_REG_CTRL,