diff options
| author | Marc Zyngier <[email protected]> | 2023-03-30 17:47:44 +0000 |
|---|---|---|
| committer | Marc Zyngier <[email protected]> | 2023-03-30 18:01:09 +0000 |
| commit | 2b4825a8694018901e641ccc2eafd0fff58d1415 (patch) | |
| tree | a0746e93d0a29d57a8f841bd8ec8776da42a6abc /include/kvm/arm_arch_timer.h | |
| parent | arm64: Add HAS_ECV_CNTPOFF capability (diff) | |
| download | kernel-2b4825a8694018901e641ccc2eafd0fff58d1415.tar.gz kernel-2b4825a8694018901e641ccc2eafd0fff58d1415.zip | |
KVM: arm64: timers: Use CNTPOFF_EL2 to offset the physical timer
With ECV and CNTPOFF_EL2, it is very easy to offer an offset for
the physical timer. So let's do just that.
Nothing can set the offset yet, so this should have no effect
whatsoever (famous last words...).
Reviewed-by: Colton Lewis <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'include/kvm/arm_arch_timer.h')
| -rw-r--r-- | include/kvm/arm_arch_timer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/kvm/arm_arch_timer.h b/include/kvm/arm_arch_timer.h index 70d47c4adc6a..2dd0fd2406fb 100644 --- a/include/kvm/arm_arch_timer.h +++ b/include/kvm/arm_arch_timer.h @@ -34,6 +34,8 @@ struct arch_timer_offset { struct arch_timer_vm_data { /* Offset applied to the virtual timer/counter */ u64 voffset; + /* Offset applied to the physical timer/counter */ + u64 poffset; }; struct arch_timer_context { |
