Page MenuHomeFreeBSD

vmx: Prefer consistent naming for loader tunables
ClosedPublic

Authored by zlei on Oct 17 2023, 9:25 AM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 5 2024, 10:33 PM
Unknown Object (File)
Dec 25 2023, 5:22 PM
Unknown Object (File)
Dec 20 2023, 8:36 AM
Unknown Object (File)
Dec 10 2023, 12:08 AM
Unknown Object (File)
Nov 22 2023, 12:17 PM
Unknown Object (File)
Nov 22 2023, 12:13 PM
Unknown Object (File)
Nov 12 2023, 12:57 AM
Unknown Object (File)
Nov 12 2023, 12:37 AM
Subscribers

Details

Summary

The following loader tunables does have corresponding sysctl MIBs but
with inconsistent naming. That may be historical reason. Let's prefer
consistent naming for them so that they will be easier to read and
maintained.

  1. hw.vmm.l1d_flush -> hw.vmm.vmx.l1d_flush
  2. hw.vmm.l1d_flush_sw -> hw.vmm.vmx.l1d_flush_sw
  3. hw.vmm.vmx.use_apic_pir -> hw.vmm.vmx.cap.posted_interrupts
  4. hw.vmm.vmx.use_apic_vid -> hw.vmm.vmx.cap.virtual_interrupt_delivery
  5. hw.vmm.vmx.use_tpr_shadowing -> hw.vmm.vmx.cap.tpr_shadowing

Old names are kept for compatibility.

Meanwhile, add sysctl flag CTLFLAG_TUN to them so that sysctl -T will
report them correctly.

MFC after: 1 week

Test Plan

On Intel x64 platform, load vmm kernel modules and verify the loader tunables.

Diff Detail

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

Event Timeline

zlei requested review of this revision.Oct 17 2023, 9:25 AM
This revision is now accepted and ready to land.Oct 17 2023, 1:58 PM