aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2025-08-22 01:12:35 +0000
committerWarner Losh <imp@FreeBSD.org>2025-09-05 18:42:21 +0000
commit89ff06870840b99df70afd56058df7ee2b300474 (patch)
tree7d733706a0238413915b6ca8056a9a91677f4899
parent8647a0b37e7518b051e78422f90586125a1eb733 (diff)
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 <aly@aaronly.me> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1820
-rw-r--r--sys/x86/x86/identcpu.c4
1 files 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 */