mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 07:47:50 +00:00
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>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user