Bug 235004 - vmx.c: Fix the name of the tunables
Summary: vmx.c: Fix the name of the tunables
Status: Closed Not A Bug
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2019-01-16 17:01 UTC by Jose Luis Duran
Modified: 2019-01-20 13:17 UTC (History)
0 users

See Also:


Attachments
Fix the name of the tunables (2.14 KB, patch)
2019-01-16 17:01 UTC, Jose Luis Duran
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jose Luis Duran freebsd_committer freebsd_triage 2019-01-16 17:01:39 UTC
Created attachment 201192 [details]
Fix the name of the tunables

Shouldn't the tunables be?

hw.vmm.l1d_flush    -> hw.vmm.vmx.l1d_flush
hw.vmm.l1d_flush_sw -> hw.vmm.vmx.l1d_flush_sw

While here, clean up whitespace.
Comment 1 Jose Luis Duran freebsd_committer freebsd_triage 2019-01-16 17:04:24 UTC
Reference: base r337785
Comment 2 commit-hook freebsd_committer freebsd_triage 2019-01-17 05:16:20 UTC
A commit references this bug:

Author: kib
Date: Thu Jan 17 05:15:25 UTC 2019
New revision: 343108
URL: https://svnweb.freebsd.org/changeset/base/343108

Log:
  Trim whitespace at EoL, use tabs instead of spaces for indent.

  PR:  235004
  Submitted by:	Jose Luis Duran <jlduran@gmail.com>
  MFC after:	3 days

Changes:
  head/sys/amd64/vmm/intel/vmx.c
Comment 3 Konstantin Belousov freebsd_committer freebsd_triage 2019-01-17 05:20:35 UTC
(In reply to Jose Luis Duran from comment #0)
When I answered the question on github, I mean that indeed it is more reasonable to put the tunables into hw.vmm.vmx leaf.  But since they are already in hw.vmm, I think it would be unwise to rename them.  The reason is that the rename breaks the ABI, worse, the breakage is silent.  So anybody relying on the feature to protect against L1 terminal fault leaks, would suddently and silently appear unprotected.

Meantime I committed the whitespace fixes, thank you.
Comment 4 Jose Luis Duran freebsd_committer freebsd_triage 2019-01-17 17:10:13 UTC
(In reply to Konstantin Belousov from comment #3)

Thank you. I see, I thought that setting `hw.vmm.vmx.l1d_flush` in loader.conf would enable/disable L1TF. Sorry for the misunderstanding.
Comment 5 commit-hook freebsd_committer freebsd_triage 2019-01-20 12:14:46 UTC
A commit references this bug:

Author: kib
Date: Sun Jan 20 12:14:33 UTC 2019
New revision: 343211
URL: https://svnweb.freebsd.org/changeset/base/343211

Log:
  MFC r343108:
  Trim whitespace at EoL, use tabs instead of spaces for indent.

  PR:	235004

Changes:
_U  stable/12/
  stable/12/sys/amd64/vmm/intel/vmx.c
Comment 6 commit-hook freebsd_committer freebsd_triage 2019-01-20 13:17:36 UTC
A commit references this bug:

Author: kib
Date: Sun Jan 20 13:16:36 UTC 2019
New revision: 343212
URL: https://svnweb.freebsd.org/changeset/base/343212

Log:
  MFC r343108:
  Trim whitespace at EoL, use tabs instead of spaces for indent.

  PR:	235004

Changes:
_U  stable/11/
  stable/11/sys/amd64/vmm/intel/vmx.c