diff options
author | Sunil Muthuswamy <sunilmut@microsoft.com> | 2020-07-30 22:11:26 +0000 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-09-30 19:09:19 +0200 |
commit | 5c8e1e832822f2e5bc630864a77eea40ee520a4f (patch) | |
tree | 431b0e8f4ee6b0e9535e9dbc01c949d2fa78b29c /target/i386/whp-dispatch.h | |
parent | 8fe11232c8ad0fecbfab0ea804bfdef0bbec0da7 (diff) |
WHPX: vmware cpuid leaf for tsc and apic frequency
Newer versions of WHPX provide the capability to query the tsc
and apic frequency. Expose these through the vmware cpuid leaf.
This patch doesnt support setting the tsc frequency; that will
come as a separate fix.
Signed-off-by: Sunil Muthuswamy <sunilmut@microsoft.com>
Message-Id: <SN4PR2101MB08808DFDDC3F442BBEAADFF4C0710@SN4PR2101MB0880.namprd21.prod.outlook.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386/whp-dispatch.h')
-rw-r--r-- | target/i386/whp-dispatch.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target/i386/whp-dispatch.h b/target/i386/whp-dispatch.h index e4695c349f..b18aba20ed 100644 --- a/target/i386/whp-dispatch.h +++ b/target/i386/whp-dispatch.h @@ -2,10 +2,11 @@ #define WHP_DISPATCH_H #include <windows.h> - #include <WinHvPlatform.h> #include <WinHvEmulation.h> +#define WHV_E_UNKNOWN_CAPABILITY 0x80370300L + #define LIST_WINHVPLATFORM_FUNCTIONS(X) \ X(HRESULT, WHvGetCapability, (WHV_CAPABILITY_CODE CapabilityCode, VOID* CapabilityBuffer, UINT32 CapabilityBufferSizeInBytes, UINT32* WrittenSizeInBytes)) \ X(HRESULT, WHvCreatePartition, (WHV_PARTITION_HANDLE* Partition)) \ |