Page MenuHomeFreeBSD

Add DEV_XENTIMER option
Needs RevisionPublic

Authored by kvinupriya_gmail.com on Tue, Dec 10, 11:30 PM.
Tags
None
Referenced Files
F106224576: D48024.diff
Fri, Dec 27, 11:49 AM
F106209160: D48024.id147801.diff
Fri, Dec 27, 5:20 AM
F106168481: D48024.id.diff
Thu, Dec 26, 12:36 PM
Unknown Object (File)
Thu, Dec 26, 9:50 AM
Unknown Object (File)
Wed, Dec 18, 7:10 PM
Unknown Object (File)
Tue, Dec 17, 11:17 AM
Unknown Object (File)
Tue, Dec 17, 3:26 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.Wed, Dec 11, 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.Wed, Dec 11, 7:57 AM