HomeFreeBSD

vmx: Prefer consistent naming for loader tunables

Description

vmx: Prefer consistent naming for loader tunables

The following loader tunables do have corresponding sysctl MIBs but
with different names. That may be historical reason. Let's prefer
consistent naming for them so that it will be easier to read and
maintain.

  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.

Reviewed by: corvink, jhb, kib, bhyve
MFC after: 5 days
Differential Revision: https://reviews.freebsd.org/D42251

(cherry picked from commit f3ff0918ffcdbcb4c39175f3f9be70999edb14e8)
(cherry picked from commit 9e48b627aed346bf5e950134a581218d3097eb7c)
(cherry picked from commit ba924ff8c46ce44fc9b877cc48bdae3bc966c13a)

Details

Provenance
zleiAuthored on Oct 19 2023, 5:18 PM
Reviewer
bhyve
Differential Revision
D42251: vmx: Prefer consistent naming for loader tunables
Parents
rGc1c0873c9d3f: freebsd-update: create deep BEs by default
Branches
Unknown
Tags
Unknown