]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add definitions for AMD Spectre/Meltdown CPUID information
authorcem <cem@FreeBSD.org>
Thu, 17 Jan 2019 19:44:47 +0000 (19:44 +0000)
committercem <cem@FreeBSD.org>
Thu, 17 Jan 2019 19:44:47 +0000 (19:44 +0000)
commit2425e5de5775eeaf6acb17c38944251ecfd0e2e4
treeac0eecba14b715d848e70f2a90ae801230fb844a
parent191a9c704e6fb8132ab597fc77e3a381af09f575
Add definitions for AMD Spectre/Meltdown CPUID information

No functional change, aside from printing recognized bits in CPU
identification.

The bits are documented in 111006-B "Indirect Branch Control Extension"[1] and
124441 "Speculative Store Bypass Disable."[2]

Notably missing (left as future work):
  * Integration with hw.spec_store_bypass_disable and hw_ssb_active flag,
    which are currently Intel-specific
  * Integration with hw_ibrs_active global flag, which are currently
    Intel-specific
  * SSB_NO integration in hw_ssb_recalculate()
  * Bhyve integration (PR 235010)

[1]:
https://developer.amd.com/wp-content/resources/111006-B_AMD64TechnologyIndirectBranchControlExtenstion_WP_7-18Update_FNL.pdf

[2]:
https://developer.amd.com/wp-content/resources/124441_AMD64_SpeculativeStoreBypassDisable_Whitepaper_final.pdf

PR: 235010 (related, but does not fix)
MFC after: a week
sys/x86/include/specialreg.h
sys/x86/x86/identcpu.c