Page MenuHomeFreeBSD

Add DEV_XENTIMER option
Needs RevisionPublic

Authored by kvinupriya_gmail.com on Dec 10 2024, 11:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 1, 2:53 AM
Unknown Object (File)
Sun, Oct 26, 1:30 AM
Unknown Object (File)
Sat, Oct 25, 2:15 AM
Unknown Object (File)
Tue, Oct 21, 9:15 AM
Unknown Object (File)
Sun, Oct 19, 2:35 AM
Unknown Object (File)
Fri, Oct 17, 8:34 PM
Unknown Object (File)
Tue, Oct 14, 2:04 PM
Unknown Object (File)
Oct 11 2025, 2:56 AM

Details

Reviewers
royger
Summary

Check for DEV_XENTIMER in pv.c as xen_timer.c code that implements
the xen_clock_init is under "options xentimer" in the files file.

Sponsored by: Juniper Networks, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 61078
Build 57962: arc lint + arc unit

Event Timeline

Looks reasonable to me. Though the option is primarily to allow removing the timer on ARM/RISC-V (where it doesn't presently work). I'm unsure whether it is possible to avoid on x86.

royger requested changes to this revision.Dec 11 2024, 7:57 AM
royger added inline comments.
sys/x86/xen/pv.c
111

Won't this lead to a call into NULL when booted as Xen PVH guest but without DEV_XENTIMER enabled? See clock_init().

You need an else branch here to define it to the native function (native_clock_source_init()), or otherwise patch the callers to only call early_clock_source_init if != NULL.

This revision now requires changes to proceed.Dec 11 2024, 7:57 AM