The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=89ff06870840b99df70afd56058df7ee2b300474
commit 89ff06870840b99df70afd56058df7ee2b300474 Author: Aaron LI <a...@aaronly.me> AuthorDate: 2025-08-22 01:12:35 +0000 Commit: Warner Losh <i...@freebsd.org> CommitDate: 2025-09-05 18:42:21 +0000 x86: Fix bug in print_vmx_info() The function used the wrong variable (mask) to print the Exit and Entry controls. Fix it. Signed-off-by: Aaron LI <a...@aaronly.me> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1820 --- sys/x86/x86/identcpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/x86/x86/identcpu.c b/sys/x86/x86/identcpu.c index 4d64eaf78b29..7661c82f4394 100644 --- a/sys/x86/x86/identcpu.c +++ b/sys/x86/x86/identcpu.c @@ -2613,7 +2613,7 @@ print_vmx_info(void) "\020EPT#VE" /* EPT-violation #VE */ "\021XSAVES" /* Enable XSAVES/XRSTORS */ ); - printf("\n Exit Controls=0x%b", mask, + printf("\n Exit Controls=0x%b", exit, "\020" "\003DR" /* Save debug controls */ /* Ignore Host address-space size */ @@ -2625,7 +2625,7 @@ print_vmx_info(void) "\026EFER-LD" /* Load MSR_EFER */ "\027PTMR-SV" /* Save VMX-preemption timer value */ ); - printf("\n Entry Controls=0x%b", mask, + printf("\n Entry Controls=0x%b", entry, "\020" "\003DR" /* Save debug controls */ /* Ignore IA-32e mode guest */