1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-19 15:33:56 +00:00

Handle CPUID leaf 0x7 now that FreeBSD is using it.

Return 0's for now.

Reviewed by:	neel
Obtained from:	NetApp
This commit is contained in:
Peter Grehan 2012-11-20 06:01:03 +00:00
parent 1f8854c702
commit a0cad47092
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/bhyve/; revision=243325
2 changed files with 2 additions and 0 deletions

View File

@ -162,6 +162,7 @@ x86_emulate_cpuid(struct vm *vm, int vcpu_id,
break;
case CPUID_0000_0006:
case CPUID_0000_0007:
/*
* Handle the access, but report 0 for
* all options

View File

@ -35,6 +35,7 @@
#define CPUID_0000_0003 (0x3)
#define CPUID_0000_0004 (0x4)
#define CPUID_0000_0006 (0x6)
#define CPUID_0000_0007 (0x7)
#define CPUID_0000_000A (0xA)
#define CPUID_0000_000B (0xB)
#define CPUID_8000_0000 (0x80000000)