52 lines
1.7 KiB
C
52 lines
1.7 KiB
C
/*
|
|
*
|
|
* Copyright (c) 2009, Microsoft Corporation.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms and conditions of the GNU General Public License,
|
|
* version 2, as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
* more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along with
|
|
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
|
* Place - Suite 330, Boston, MA 02111-1307 USA.
|
|
*
|
|
* Authors:
|
|
* Haiyang Zhang <haiyangz@microsoft.com>
|
|
* Hank Janssen <hjanssen@microsoft.com>
|
|
*
|
|
*/
|
|
|
|
|
|
#pragma once
|
|
|
|
/* Virtual Processor Indices */
|
|
|
|
typedef u32 HV_VP_INDEX, *PHV_VP_INDEX;
|
|
|
|
|
|
/* The below CPUID leaves are present if VersionAndFeatures.HypervisorPresent */
|
|
/* is set by CPUID(HvCpuIdFunctionVersionAndFeatures). */
|
|
/* ========================================================================== */
|
|
|
|
|
|
typedef enum _HV_CPUID_FUNCTION
|
|
{
|
|
HvCpuIdFunctionVersionAndFeatures = 0x00000001,
|
|
HvCpuIdFunctionHvVendorAndMaxFunction = 0x40000000,
|
|
HvCpuIdFunctionHvInterface = 0x40000001,
|
|
|
|
|
|
/* The remaining functions depend on the value of HvCpuIdFunctionInterface */
|
|
|
|
HvCpuIdFunctionMsHvVersion = 0x40000002,
|
|
HvCpuIdFunctionMsHvFeatures = 0x40000003,
|
|
HvCpuIdFunctionMsHvEnlightenmentInformation = 0x40000004,
|
|
HvCpuIdFunctionMsHvImplementationLimits = 0x40000005
|
|
|
|
} HV_CPUID_FUNCTION, *PHV_CPUID_FUNCTION;
|