Page MenuHomeFreeBSD

arm64/vmm: Use FEAT_ECV_POFF to support a timer
ClosedPublic

Authored by andrew on Aug 8 2025, 12:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jan 25, 9:30 AM
Unknown Object (File)
Sun, Jan 25, 1:26 AM
Unknown Object (File)
Wed, Jan 14, 4:50 PM
Unknown Object (File)
Dec 14 2025, 8:25 AM
Unknown Object (File)
Dec 13 2025, 3:12 PM
Unknown Object (File)
Dec 10 2025, 4:22 AM
Unknown Object (File)
Dec 9 2025, 12:26 PM
Unknown Object (File)
Dec 9 2025, 11:25 AM
Subscribers

Details

Summary

Support guest access to the physical timer when FEAT_ECV_POFF is
supported. In this case we can set an offset for the physical timer.
We can reuse the virtual timer support to also support the physical
timer, with a few more registers needing to be handled when switching
to a guest.

As it is not clear how this will affect performance when the guest
doesn't use it hide enabling it behind a sysctl.

It is expected this will be useful when Nested Virtualisation is
supported as guests are expected to use the physical timer registers.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable