aboutsummaryrefslogtreecommitdiff
path: root/target/i386/whpx/whpx-internal.h
diff options
context:
space:
mode:
authorSunil Muthuswamy <sunilmut@microsoft.com>2019-11-07 19:48:32 +0000
committerPaolo Bonzini <pbonzini@redhat.com>2022-05-07 07:46:58 +0200
commitb6b3da999844b710d8d8b97a93c8420e6d46cd44 (patch)
treef34e71ad69e2ea95187c1b39294f78384e9730b1 /target/i386/whpx/whpx-internal.h
parent13220a46e27ef95159651acd5e408b6aac9dbf3e (diff)
WHPX: support for xcr0
Support for xcr0 to be able to enable xsave/xrstor. This by itself is not sufficient to enable xsave/xrstor. WHPX XSAVE API's also needs to be hooked up. Signed-off-by: Sunil Muthuswamy <sunilmut@microsoft.com> Message-Id: <MW2PR2101MB1116F07C07A26FD7A7ED8DCFC0780@MW2PR2101MB1116.namprd21.prod.outlook.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386/whpx/whpx-internal.h')
-rw-r--r--target/i386/whpx/whpx-internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/target/i386/whpx/whpx-internal.h b/target/i386/whpx/whpx-internal.h
index 2416ec7922..dbb7e7ba82 100644
--- a/target/i386/whpx/whpx-internal.h
+++ b/target/i386/whpx/whpx-internal.h
@@ -48,6 +48,9 @@ void whpx_apic_get(DeviceState *s);
#define WHV_E_UNKNOWN_CAPABILITY 0x80370300L
+/* This should eventually come from the Windows SDK */
+#define WHV_E_UNKNOWN_PROPERTY 0x80370302
+
#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)) \