Page MenuHomeFreeBSD

Use the physical timer when able
ClosedPublic

Authored by andrew on Mar 15 2023, 2:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 22 2024, 12:49 AM
Unknown Object (File)
Dec 17 2023, 6:23 AM
Unknown Object (File)
Dec 15 2023, 8:07 AM
Unknown Object (File)
Sep 27 2023, 10:42 AM
Unknown Object (File)
Sep 18 2023, 3:59 PM
Unknown Object (File)
Aug 14 2023, 11:53 AM
Unknown Object (File)
Jul 13 2023, 6:03 AM
Unknown Object (File)
Jun 18 2023, 7:12 AM
Subscribers

Details

Summary

To allow bhyve manage the virtual timer while in a guest have FreeBSD
use the virtual timer only when bhyve will be unavailable due to not
starting at EL2 where the hypervisor switcher will run.

Sponsored by: Arm Ltd

Diff Detail

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

Event Timeline

Assuming we know the res is always non-null in these cases, I think we're good. I kinda think they should be, but that's just from a quick read.

sys/arm/arm/generic_timer.c
664

only question: are we guaranteed that these timers will be around in this case? Similar below...

This revision is now accepted and ready to land.Mar 15 2023, 2:55 PM
sys/arm/arm/generic_timer.c
664

We require the virtual and physical timer interrupts as they are marked non-optional in arm_tmr_irq_defs

This revision was automatically updated to reflect the committed changes.