From owner-freebsd-bugs@freebsd.org Thu Apr 6 02:18:41 2017 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 36A2CD3005E for ; Thu, 6 Apr 2017 02:18:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 25CC3A22 for ; Thu, 6 Apr 2017 02:18:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v362IeaY069906 for ; Thu, 6 Apr 2017 02:18:41 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 217885] Intel 860 CPU Supports VT-x and EPT/ Only Shows Partial Support FreeNAS Corral Date: Thu, 06 Apr 2017 02:18:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: online@nahlem.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2017 02:18:41 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217885 Nathan B. changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |online@nahlem.com --- Comment #14 from Nathan B. --- I'd like to toss my hat into the ring on this one. I'm running an Intel i7 processor and using FreeNAS Corral 10.0.2 (latest as of this writing). I am encountering the exact same problem, but based on everything I can dig= up, my CPU should not have this problem. Here is a cut and paste from my original post to the FreeNAS bug (https://bugs.freenas.org/issues/17689): ------------------------------------- I'm glad I stumbled upon this because I am having the exact same issue that= you are having. I was trying to fire up a plexpass docker container and got the same error you've posted except I'm using 10.0.2 and any updates as of this morning. As you showed in the Intel CPU specs link, your CPU has VT-x support as does mine. For unrestricted guest access (access to ring 0: https://en.wikipedia.org/wiki/X86_virtualization#Intel_virtualization_.28VT= -x.29) your CPU must support VT-x with Extended Page Tables (EPT), which the specs clearly show. Here is the output from my dmesg. Notice the next to last line, it shows V= T-x with EPT: CPU: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz (2672.78-MHz K8-class = CPU) Origin=3D"GenuineIntel" Id=3D0x106a4 Family=3D0x6 Model=3D0x1a Steppi= ng=3D4 =20 Features=3D0xbfebfbff =20 Features2=3D0x98e3bd AMD Features=3D0x28100800 AMD Features2=3D0x1 VT-x: PAT,HLT,MTF,PAUSE,EPT,VPID TSC: P-state invariant, performance statistics Although it doesn't show anything but VMX flags (VMX and ring 0 explainatio= n: https://software.intel.com/sites/default/files/m/4/1/9/7/c/25039-final_cpu_= 1027.pdf), cpuid gives the following output (if it's useful): [root@freenas] ~# cpuid=20 eax in eax ebx ecx edx 00000000 0000000b 756e6547 6c65746e 49656e69 00000001 000106a4 03100800 0098e3bd bfebfbff 00000002 55035a01 00f0b2e4 00000000 09ca212c 00000003 00000000 00000000 00000000 00000000 00000004 1c004121 01c0003f 0000003f 00000000 00000005 00000040 00000040 00000003 00001120 00000006 00000003 00000002 00000001 00000000 00000007 00000000 00000000 00000000 00000000 00000008 00000000 00000000 00000000 00000000 00000009 00000000 00000000 00000000 00000000 0000000a 07300403 00000040 00000000 00000603 0000000b 00000001 00000002 00000100 00000003 80000000 80000008 00000000 00000000 00000000 80000001 00000000 00000000 00000001 28100800 80000002 65746e49 2952286c 726f4320 4d542865 80000003 37692029 55504320 20202020 20202020 80000004 30323920 20402020 37362e32 007a4847 80000005 00000000 00000000 00000000 00000000 80000006 00000000 00000000 01006040 00000000 80000007 00000000 00000000 00000000 00000100 80000008 00003024 00000000 00000000 00000000 Vendor ID: "GenuineIntel"; CPUID level 11 Intel-specific functions: Version 000106a4: Type 0 - Original OEM Family 6 - Pentium Pro Model 26 -=20 Stepping 4 Reserved 0 Extended brand string: "Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz" CLFLUSH instruction cache line size: 8 Initial APIC ID: 3 Hyper threading siblings: 16 Feature flags set 1 (CPUID.01H:EDX): bfebfbff: FPU Floating Point Unit VME Virtual 8086 Mode Enhancements DE Debugging Extensions PSE Page Size Extensions TSC Time Stamp Counter MSR Model Specific Registers PAE Physical Address Extension MCE Machine Check Exception CX8 COMPXCHG8B Instruction APIC On-chip Advanced Programmable Interrupt Controller present and enabl= ed SEP Fast System Call MTRR Memory Type Range Registers PGE PTE Global Flag MCA Machine Check Architecture CMOV Conditional Move and Compare Instructions FGPAT Page Attribute Table PSE-36 36-bit Page Size Extension CLFSH CFLUSH instruction DS Debug store ACPI Thermal Monitor and Clock Ctrl MMX MMX instruction set FXSR Fast FP/MMX Streaming SIMD Extensions save/restore SSE Streaming SIMD Extensions instruction set SSE2 SSE2 extensions SS Self Snoop HT Hyper Threading TM Thermal monitor 31 Pending Break Enable Feature flags set 2 (CPUID.01H:ECX): 0098e3bd: SSE3 SSE3 extensions DTES64 64-bit debug store MONITOR MONITOR/MWAIT instructions DS-CPL CPL Qualified Debug Store VMX Virtual Machine Extensions EST Enhanced Intel SpeedStep Technology TM2 Thermal Monitor 2 SSSE3 Supplemental Streaming SIMD Extension 3 [root@freenas] ~# cpuid|less eax in eax ebx ecx edx 00000000 0000000b 756e6547 6c65746e 49656e69 00000001 000106a4 06100800 0098e3bd bfebfbff 00000002 55035a01 00f0b2e4 00000000 09ca212c 00000003 00000000 00000000 00000000 00000000 00000004 1c004121 01c0003f 0000003f 00000000 00000005 00000040 00000040 00000003 00001120 00000006 00000003 00000002 00000001 00000000 00000007 00000000 00000000 00000000 00000000 00000008 00000000 00000000 00000000 00000000 00000009 00000000 00000000 00000000 00000000 0000000a 07300403 00000040 00000000 00000603 0000000b 00000001 00000002 00000100 00000006 80000000 80000008 00000000 00000000 00000000 80000001 00000000 00000000 00000001 28100800 80000002 65746e49 2952286c 726f4320 4d542865 80000003 37692029 55504320 20202020 20202020 80000004 30323920 20402020 37362e32 007a4847 80000005 00000000 00000000 00000000 00000000 80000006 00000000 00000000 01006040 00000000 80000007 00000000 00000000 00000000 00000100 80000008 00003024 00000000 00000000 00000000 Vendor ID: "GenuineIntel"; CPUID level 11 Intel-specific functions: Version 000106a4: Type 0 - Original OEM Family 6 - Pentium Pro Model 26 -=20 Stepping 4 Reserved 0 Extended brand string: "Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz" CLFLUSH instruction cache line size: 8 Initial APIC ID: 6 Hyper threading siblings: 16 Feature flags set 1 (CPUID.01H:EDX): bfebfbff: FPU Floating Point Unit VME Virtual 8086 Mode Enhancements DE Debugging Extensions PSE Page Size Extensions TSC Time Stamp Counter MSR Model Specific Registers PAE Physical Address Extension MCE Machine Check Exception CX8 COMPXCHG8B Instruction APIC On-chip Advanced Programmable Interrupt Controller present and enabl= ed SEP Fast System Call MTRR Memory Type Range Registers PGE PTE Global Flag MCA Machine Check Architecture CMOV Conditional Move and Compare Instructions FGPAT Page Attribute Table PSE-36 36-bit Page Size Extension CLFSH CFLUSH instruction DS Debug store ACPI Thermal Monitor and Clock Ctrl MMX MMX instruction set FXSR Fast FP/MMX Streaming SIMD Extensions save/restore SSE Streaming SIMD Extensions instruction set SSE2 SSE2 extensions SS Self Snoop HT Hyper Threading TM Thermal monitor 31 Pending Break Enable Feature flags set 2 (CPUID.01H:ECX): 0098e3bd: SSE3 SSE3 extensions DTES64 64-bit debug store MONITOR MONITOR/MWAIT instructions DS-CPL CPL Qualified Debug Store VMX Virtual Machine Extensions EST Enhanced Intel SpeedStep Technology TM2 Thermal Monitor 2 SSSE3 Supplemental Streaming SIMD Extension 3 Intel-specific functions: Version 000106a4: Type 0 - Original OEM Family 6 - Pentium Pro Model 26 -=20 Stepping 4 Reserved 0 Extended brand string: "Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz" CLFLUSH instruction cache line size: 8 Initial APIC ID: 6 Hyper threading siblings: 16 Feature flags set 1 (CPUID.01H:EDX): bfebfbff: FPU Floating Point Unit VME Virtual 8086 Mode Enhancements DE Debugging Extensions PSE Page Size Extensions TSC Time Stamp Counter MSR Model Specific Registers PAE Physical Address Extension MCE Machine Check Exception CX8 COMPXCHG8B Instruction APIC On-chip Advanced Programmable Interrupt Controller present and enabl= ed SEP Fast System Call MTRR Memory Type Range Registers PGE PTE Global Flag MCA Machine Check Architecture CMOV Conditional Move and Compare Instructions FGPAT Page Attribute Table PSE-36 36-bit Page Size Extension CLFSH CFLUSH instruction DS Debug store ACPI Thermal Monitor and Clock Ctrl MMX MMX instruction set FXSR Fast FP/MMX Streaming SIMD Extensions save/restore SSE Streaming SIMD Extensions instruction set SSE2 SSE2 extensions SS Self Snoop HT Hyper Threading TM Thermal monitor 31 Pending Break Enable Feature flags set 2 (CPUID.01H:ECX): 0098e3bd: SSE3 SSE3 extensions DTES64 64-bit debug store MONITOR MONITOR/MWAIT instructions DS-CPL CPL Qualified Debug Store VMX Virtual Machine Extensions EST Enhanced Intel SpeedStep Technology TM2 Thermal Monitor 2 SSSE3 Supplemental Streaming SIMD Extension 3 CX16 CMPXCHG16B xTPR Send Task Priority messages PDCM Perfmon and debug capability SSE4.1 Streaming SIMD Extension 4.1 SSE4.2 Streaming SIMD Extension 4.2 POPCNT POPCNT instruction Extended feature flags set 1 (CPUID.80000001H:EDX): 28100800 SYSCALL SYSCALL/SYSRET instructions XD-bit Execution Disable bit RDTSCP RDTSCP and IA32_TSC_AUX are available EM64T Intel Extended Memory 64 Technology Extended feature flags set 2 (CPUID.80000001H:ECX): 00000001 LAHF LAHF/SAHF available in IA-32e mode Old-styled TLB and cache info: 5a: Data TLB: 2MB or 4MB pages, 4-way set associative, 32 entries 03: Data TLB: 4KB pages, 4-way set assoc, 64 entries 55: Instruction TLB: 2MB or 4MB pages, fully assoc., 7 entries e4: 3rd-level cache: 8MB, 16-way set associative, 64-byte line size b2: Instruction TLB: 4-KB Pages, 4-way set associative, 64 entries f0: 64-byte prefetching 2c: 1st-level data cache: 32-KB, 8-way set associative, 64-byte line size 21: 256-KB L2 (MLC), 8-way set associative, 64 byte line size ca: Shared 2nd-level TLB: 4-KB Pages, 4-way set associative, 512 entries 09: 1st-level instruction cache: 32KB, 4-way set assoc, 64 byte line size Processor serial: 0001-06A4-0000-0000-0000-0000 Deterministic Cache Parameters: index=3D0: eax=3D1c004121 ebx=3D01c0003f ecx=3D0000003f edx=3D00000000 > Data cache, level 1, self initializing > 64 sets, 8 ways, 1 partitions, line size 64 > full size 32768 bytes > shared between up to 2 threads > NB this package has up to 8 threads index=3D1: eax=3D1c004122 ebx=3D00c0003f ecx=3D0000007f edx=3D00000000 > Instruction cache, level 1, self initializing > 128 sets, 4 ways, 1 partitions, line size 64 > full size 32768 bytes > shared between up to 2 threads index=3D2: eax=3D1c004143 ebx=3D01c0003f ecx=3D000001ff edx=3D00000000 > Unified cache, level 2, self initializing > 512 sets, 8 ways, 1 partitions, line size 64 > full size 262144 bytes > shared between up to 2 threads index=3D3: eax=3D1c03c163 ebx=3D03c0003f ecx=3D00001fff edx=3D00000002 > Unified cache, level 3, self initializing > 8192 sets, 16 ways, 1 partitions, line size 64 > full size 8388608 bytes > shared between up to 16 threads ------------------------------------- The thing that has me confused is dmesg clearly shows VT-x with EPT, but hw.vmm.vmx.cap.unrestricted_guest returns 0: [root@freenas] ~# sysctl hw.vmm.vmx.cap.unrestricted_guest hw.vmm.vmx.cap.unrestricted_guest: 0 Please let me know if you need any other information. Thanks for looking into this for us. --=20 You are receiving this mail because: You are the assignee for the bug.=