]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhyve: Implement MSR_MISC_FEATURES_ENABLES
authorWarner Losh <imp@FreeBSD.org>
Thu, 27 Oct 2022 17:32:18 +0000 (11:32 -0600)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 26 Jan 2023 19:43:20 +0000 (11:43 -0800)
commit1f1b3763610a2e9f58ab50e811f279d8db164e3d
treeff13b724faadb02a7eb3a2addc96928661f328a6
parenta7fd3f511fc50bd0db32f11b53fb23ffc82cf73a
bhyve: Implement MSR_MISC_FEATURES_ENABLES

Linux reads MISC_FEATURES_ENABLES to manage the CPUID faulting feature
(undocumented in the Intel SDM, but documented in 323850-004 (Intel
Virtualization Technology FlexMigration Application Note). Since bhyve
doesn't emulate this feature, we always return 0. Neither does bhyve
support the MONITOR/MWAIT fault bit also in this MSR (which is
documented in the sdm), so always return 0.

Sponsored by: Netflix
Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D36602

(cherry picked from commit 1d21f64149224000d74e0c850686e85aefd25ef9)
sys/x86/include/specialreg.h
usr.sbin/bhyve/xmsr.c