From: mlarkin Date: Sat, 16 Jul 2016 06:20:24 +0000 (+0000) Subject: Fix an incorrect shift value when calculating the mask for the VMCS MSR X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=baa10a2e02d979c434fd54ee9d1606621ef4c5ec;p=openbsd Fix an incorrect shift value when calculating the mask for the VMCS MSR list storage size. Noticed when attempting to get vmm(4) to nest under Hyper-V. --- diff --git a/sys/arch/amd64/include/specialreg.h b/sys/arch/amd64/include/specialreg.h index c9a6e065be7..7669b55d222 100644 --- a/sys/arch/amd64/include/specialreg.h +++ b/sys/arch/amd64/include/specialreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: specialreg.h,v 1.44 2016/06/22 07:22:00 mlarkin Exp $ */ +/* $OpenBSD: specialreg.h,v 1.45 2016/07/16 06:20:24 mlarkin Exp $ */ /* $NetBSD: specialreg.h,v 1.1 2003/04/26 18:39:48 fvdl Exp $ */ /* $NetBSD: x86/specialreg.h,v 1.2 2003/04/25 21:54:30 fvdl Exp $ */ @@ -1043,7 +1043,7 @@ #define IA32_VMX_EPT_FAULT_WAS_WRITABLE (1ULL << 4) #define IA32_VMX_EPT_FAULT_WAS_EXECABLE (1ULL << 5) -#define IA32_VMX_MSR_LIST_SIZE_MASK (3ULL << 25) +#define IA32_VMX_MSR_LIST_SIZE_MASK (7ULL << 25) /* * SVM