summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDave Voutila <dv@cvs.openbsd.org>2023-01-19 15:52:52 +0000
committerDave Voutila <dv@cvs.openbsd.org>2023-01-19 15:52:52 +0000
commit76900f54a8f9d05b500ca1323cf95d5f81b69379 (patch)
treeaabf512bdbb9dff77121127075b0c0483de408a9 /sys
parent3d6be05f2cce4b82bb7e0d7678ad6387b366c30a (diff)
Restrict vmm(4) exposed cpuid extended feature flags.
We don't emulate or support most of the EAX=7,ECX=0 feature bits, so restrict the mask further to just UMIP. ok deraadt@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/amd64/include/vmmvar.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/amd64/include/vmmvar.h b/sys/arch/amd64/include/vmmvar.h
index 7897c777fc5..4a248ecad61 100644
--- a/sys/arch/amd64/include/vmmvar.h
+++ b/sys/arch/amd64/include/vmmvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmmvar.h,v 1.86 2023/01/10 01:09:14 dv Exp $ */
+/* $OpenBSD: vmmvar.h,v 1.87 2023/01/19 15:52:51 dv Exp $ */
/*
* Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org>
*
@@ -662,7 +662,6 @@ struct vm_mprotect_ept_params {
* MPX (SEFF0EBX_MPX)
* PCOMMIT (SEFF0EBX_PCOMMIT)
* PT (SEFF0EBX_PT)
- * AVX512VBMI (SEFF0ECX_AVX512VBMI)
*/
#define VMM_SEFF0EBX_MASK ~(SEFF0EBX_TSC_ADJUST | SEFF0EBX_SGX | \
SEFF0EBX_HLE | SEFF0EBX_INVPCID | \
@@ -674,7 +673,7 @@ struct vm_mprotect_ept_params {
SEFF0EBX_AVX512BW | SEFF0EBX_AVX512VL)
/* ECX mask contains the bits to include */
-#define VMM_SEFF0ECX_MASK (SEFF0ECX_PREFETCHWT1 | SEFF0ECX_UMIP | SEFF0ECX_PKU)
+#define VMM_SEFF0ECX_MASK (SEFF0ECX_UMIP)
/* EDX mask contains the bits to include */
#define VMM_SEFF0EDX_MASK (SEFF0EDX_MD_CLEAR)