Debian Codegraph @

.cargo/vendor/windows-sys/src/Windows/Win32/System/Hypervisor/mod.rs

raw
1 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn ApplyGuestMemoryFix(vmsavedstatedumphandle : *mut ::core::ffi::c_void, vpid : u32, virtualaddress : u64, fixbuffer : *const ::core::ffi::c_void, fixbuffersize : u32) -> ::windows_sys::core::HRESULT);
2 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn ApplyPendingSavedStateFileReplayLog(vmrsfile : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT);
3 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn CallStackUnwind(vmsavedstatedumphandle : *mut ::core::ffi::c_void, vpid : u32, imageinfo : *const MODULE_INFO, imageinfocount : u32, framecount : u32, callstack : *mut ::windows_sys::core::PWSTR) -> ::windows_sys::core::HRESULT);
4 #[cfg(feature = "Win32_Foundation")]
5 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn FindSavedStateSymbolFieldInType(vmsavedstatedumphandle : *mut ::core::ffi::c_void, vpid : u32, typename : ::windows_sys::core::PCSTR, fieldname : ::windows_sys::core::PCWSTR, offset : *mut u32, found : *mut super::super::Foundation:: BOOL) -> ::windows_sys::core::HRESULT);
6 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn ForceActiveVirtualTrustLevel(vmsavedstatedumphandle : *mut ::core::ffi::c_void, vpid : u32, virtualtrustlevel : u8) -> ::windows_sys::core::HRESULT);
7 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn ForceArchitecture(vmsavedstatedumphandle : *mut ::core::ffi::c_void, vpid : u32, architecture : VIRTUAL_PROCESSOR_ARCH) -> ::windows_sys::core::HRESULT);
8 #[cfg(feature = "Win32_Foundation")]
9 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ForceNestedHostMode(vmsavedstatedumphandle : *mut ::core::ffi::c_void, vpid : u32, hostmode : super::super::Foundation:: BOOL, oldmode : *mut super::super::Foundation:: BOOL) -> ::windows_sys::core::HRESULT);
10 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn ForcePagingMode(vmsavedstatedumphandle : *mut ::core::ffi::c_void, vpid : u32, pagingmode : PAGING_MODE) -> ::windows_sys::core::HRESULT);
11 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn GetActiveVirtualTrustLevel(vmsavedstatedumphandle : *mut ::core::ffi::c_void, vpid : u32, virtualtrustlevel : *mut u8) -> ::windows_sys::core::HRESULT);
12 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn GetArchitecture(vmsavedstatedumphandle : *mut ::core::ffi::c_void, vpid : u32, architecture : *mut VIRTUAL_PROCESSOR_ARCH) -> ::windows_sys::core::HRESULT);
13 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn GetEnabledVirtualTrustLevels(vmsavedstatedumphandle : *mut ::core::ffi::c_void, vpid : u32, virtualtrustlevels : *mut u32) -> ::windows_sys::core::HRESULT);
14 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn GetGuestEnabledVirtualTrustLevels(vmsavedstatedumphandle : *mut ::core::ffi::c_void, virtualtrustlevels : *mut u32) -> ::windows_sys::core::HRESULT);
15 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn GetGuestOsInfo(vmsavedstatedumphandle : *mut ::core::ffi::c_void, virtualtrustlevel : u8, guestosinfo : *mut GUEST_OS_INFO) -> ::windows_sys::core::HRESULT);
16 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn GetGuestPhysicalMemoryChunks(vmsavedstatedumphandle : *mut ::core::ffi::c_void, memorychunkpagesize : *mut u64, memorychunks : *mut GPA_MEMORY_CHUNK, memorychunkcount : *mut u64) -> ::windows_sys::core::HRESULT);
17 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn GetGuestRawSavedMemorySize(vmsavedstatedumphandle : *mut ::core::ffi::c_void, guestrawsavedmemorysize : *mut u64) -> ::windows_sys::core::HRESULT);
18 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn GetMemoryBlockCacheLimit(vmsavedstatedumphandle : *mut ::core::ffi::c_void, memoryblockcachelimit : *mut u64) -> ::windows_sys::core::HRESULT);
19 #[cfg(feature = "Win32_Foundation")]
20 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetNestedVirtualizationMode(vmsavedstatedumphandle : *mut ::core::ffi::c_void, vpid : u32, enabled : *mut super::super::Foundation:: BOOL) -> ::windows_sys::core::HRESULT);
21 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn GetPagingMode(vmsavedstatedumphandle : *mut ::core::ffi::c_void, vpid : u32, pagingmode : *mut PAGING_MODE) -> ::windows_sys::core::HRESULT);
22 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn GetRegisterValue(vmsavedstatedumphandle : *mut ::core::ffi::c_void, vpid : u32, registerid : u32, registervalue : *mut VIRTUAL_PROCESSOR_REGISTER) -> ::windows_sys::core::HRESULT);
23 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn GetSavedStateSymbolFieldInfo(vmsavedstatedumphandle : *mut ::core::ffi::c_void, vpid : u32, typename : ::windows_sys::core::PCSTR, typefieldinfomap : *mut ::windows_sys::core::PWSTR) -> ::windows_sys::core::HRESULT);
24 #[cfg(feature = "Win32_Foundation")]
25 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetSavedStateSymbolProviderHandle(vmsavedstatedumphandle : *mut ::core::ffi::c_void) -> super::super::Foundation:: HANDLE);
26 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn GetSavedStateSymbolTypeSize(vmsavedstatedumphandle : *mut ::core::ffi::c_void, vpid : u32, typename : ::windows_sys::core::PCSTR, size : *mut u32) -> ::windows_sys::core::HRESULT);
27 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn GetVpCount(vmsavedstatedumphandle : *mut ::core::ffi::c_void, vpcount : *mut u32) -> ::windows_sys::core::HRESULT);
28 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn GuestPhysicalAddressToRawSavedMemoryOffset(vmsavedstatedumphandle : *mut ::core::ffi::c_void, physicaladdress : u64, rawsavedmemoryoffset : *mut u64) -> ::windows_sys::core::HRESULT);
29 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn GuestVirtualAddressToPhysicalAddress(vmsavedstatedumphandle : *mut ::core::ffi::c_void, vpid : u32, virtualaddress : u64, physicaladdress : *mut u64, unmappedregionsize : *mut u64) -> ::windows_sys::core::HRESULT);
30 ::windows_targets::link!("vmdevicehost.dll" "system" fn HdvCreateDeviceInstance(devicehosthandle : *const ::core::ffi::c_void, devicetype : HDV_DEVICE_TYPE, deviceclassid : *const ::windows_sys::core::GUID, deviceinstanceid : *const ::windows_sys::core::GUID, deviceinterface : *const ::core::ffi::c_void, devicecontext : *const ::core::ffi::c_void, devicehandle : *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT);
31 #[cfg(feature = "Win32_Foundation")]
32 ::windows_targets::link!("vmdevicehost.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn HdvCreateGuestMemoryAperture(requestor : *const ::core::ffi::c_void, guestphysicaladdress : u64, bytecount : u32, writeprotected : super::super::Foundation:: BOOL, mappedaddress : *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT);
33 #[cfg(feature = "Win32_Foundation")]
34 ::windows_targets::link!("vmdevicehost.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn HdvCreateSectionBackedMmioRange(requestor : *const ::core::ffi::c_void, barindex : HDV_PCI_BAR_SELECTOR, offsetinpages : u64, lengthinpages : u64, mappingflags : HDV_MMIO_MAPPING_FLAGS, sectionhandle : super::super::Foundation:: HANDLE, sectionoffsetinpages : u64) -> ::windows_sys::core::HRESULT);
35 ::windows_targets::link!("vmdevicehost.dll" "system" fn HdvDeliverGuestInterrupt(requestor : *const ::core::ffi::c_void, msiaddress : u64, msidata : u32) -> ::windows_sys::core::HRESULT);
36 ::windows_targets::link!("vmdevicehost.dll" "system" fn HdvDestroyGuestMemoryAperture(requestor : *const ::core::ffi::c_void, mappedaddress : *const ::core::ffi::c_void) -> ::windows_sys::core::HRESULT);
37 ::windows_targets::link!("vmdevicehost.dll" "system" fn HdvDestroySectionBackedMmioRange(requestor : *const ::core::ffi::c_void, barindex : HDV_PCI_BAR_SELECTOR, offsetinpages : u64) -> ::windows_sys::core::HRESULT);
38 #[cfg(feature = "Win32_System_HostComputeSystem")]
39 ::windows_targets::link!("vmdevicehost.dll" "system" #[doc = "Required features: `\"Win32_System_HostComputeSystem\"`"] fn HdvInitializeDeviceHost(computesystem : super::HostComputeSystem:: HCS_SYSTEM, devicehosthandle : *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT);
40 #[cfg(feature = "Win32_System_HostComputeSystem")]
41 ::windows_targets::link!("vmdevicehost.dll" "system" #[doc = "Required features: `\"Win32_System_HostComputeSystem\"`"] fn HdvInitializeDeviceHostEx(computesystem : super::HostComputeSystem:: HCS_SYSTEM, flags : HDV_DEVICE_HOST_FLAGS, devicehosthandle : *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT);
42 ::windows_targets::link!("vmdevicehost.dll" "system" fn HdvReadGuestMemory(requestor : *const ::core::ffi::c_void, guestphysicaladdress : u64, bytecount : u32, buffer : *mut u8) -> ::windows_sys::core::HRESULT);
43 #[cfg(feature = "Win32_Foundation")]
44 ::windows_targets::link!("vmdevicehost.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn HdvRegisterDoorbell(requestor : *const ::core::ffi::c_void, barindex : HDV_PCI_BAR_SELECTOR, baroffset : u64, triggervalue : u64, flags : u64, doorbellevent : super::super::Foundation:: HANDLE) -> ::windows_sys::core::HRESULT);
45 ::windows_targets::link!("vmdevicehost.dll" "system" fn HdvTeardownDeviceHost(devicehosthandle : *const ::core::ffi::c_void) -> ::windows_sys::core::HRESULT);
46 ::windows_targets::link!("vmdevicehost.dll" "system" fn HdvUnregisterDoorbell(requestor : *const ::core::ffi::c_void, barindex : HDV_PCI_BAR_SELECTOR, baroffset : u64, triggervalue : u64, flags : u64) -> ::windows_sys::core::HRESULT);
47 ::windows_targets::link!("vmdevicehost.dll" "system" fn HdvWriteGuestMemory(requestor : *const ::core::ffi::c_void, guestphysicaladdress : u64, bytecount : u32, buffer : *const u8) -> ::windows_sys::core::HRESULT);
48 #[cfg(feature = "Win32_Foundation")]
49 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn InKernelSpace(vmsavedstatedumphandle : *mut ::core::ffi::c_void, vpid : u32, inkernelspace : *mut super::super::Foundation:: BOOL) -> ::windows_sys::core::HRESULT);
50 #[cfg(feature = "Win32_Foundation")]
51 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn IsActiveVirtualTrustLevelEnabled(vmsavedstatedumphandle : *mut ::core::ffi::c_void, vpid : u32, activevirtualtrustlevelenabled : *mut super::super::Foundation:: BOOL) -> ::windows_sys::core::HRESULT);
52 #[cfg(feature = "Win32_Foundation")]
53 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn IsNestedVirtualizationEnabled(vmsavedstatedumphandle : *mut ::core::ffi::c_void, enabled : *mut super::super::Foundation:: BOOL) -> ::windows_sys::core::HRESULT);
54 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn LoadSavedStateFile(vmrsfile : ::windows_sys::core::PCWSTR, vmsavedstatedumphandle : *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT);
55 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn LoadSavedStateFiles(binfile : ::windows_sys::core::PCWSTR, vsvfile : ::windows_sys::core::PCWSTR, vmsavedstatedumphandle : *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT);
56 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn LoadSavedStateModuleSymbols(vmsavedstatedumphandle : *mut ::core::ffi::c_void, imagename : ::windows_sys::core::PCSTR, modulename : ::windows_sys::core::PCSTR, baseaddress : u64, sizeofbase : u32) -> ::windows_sys::core::HRESULT);
57 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn LoadSavedStateModuleSymbolsEx(vmsavedstatedumphandle : *mut ::core::ffi::c_void, imagename : ::windows_sys::core::PCSTR, imagetimestamp : u32, modulename : ::windows_sys::core::PCSTR, baseaddress : u64, sizeofbase : u32) -> ::windows_sys::core::HRESULT);
58 #[cfg(feature = "Win32_Foundation")]
59 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn LoadSavedStateSymbolProvider(vmsavedstatedumphandle : *mut ::core::ffi::c_void, usersymbols : ::windows_sys::core::PCWSTR, force : super::super::Foundation:: BOOL) -> ::windows_sys::core::HRESULT);
60 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn LocateSavedStateFiles(vmname : ::windows_sys::core::PCWSTR, snapshotname : ::windows_sys::core::PCWSTR, binpath : *mut ::windows_sys::core::PWSTR, vsvpath : *mut ::windows_sys::core::PWSTR, vmrspath : *mut ::windows_sys::core::PWSTR) -> ::windows_sys::core::HRESULT);
61 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn ReadGuestPhysicalAddress(vmsavedstatedumphandle : *mut ::core::ffi::c_void, physicaladdress : u64, buffer : *mut ::core::ffi::c_void, buffersize : u32, bytesread : *mut u32) -> ::windows_sys::core::HRESULT);
62 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn ReadGuestRawSavedMemory(vmsavedstatedumphandle : *mut ::core::ffi::c_void, rawsavedmemoryoffset : u64, buffer : *mut ::core::ffi::c_void, buffersize : u32, bytesread : *mut u32) -> ::windows_sys::core::HRESULT);
63 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn ReadSavedStateGlobalVariable(vmsavedstatedumphandle : *mut ::core::ffi::c_void, vpid : u32, globalname : ::windows_sys::core::PCSTR, buffer : *mut ::core::ffi::c_void, buffersize : u32) -> ::windows_sys::core::HRESULT);
64 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn ReleaseSavedStateFiles(vmsavedstatedumphandle : *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT);
65 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn ReleaseSavedStateSymbolProvider(vmsavedstatedumphandle : *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT);
66 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn ResolveSavedStateGlobalVariableAddress(vmsavedstatedumphandle : *mut ::core::ffi::c_void, vpid : u32, globalname : ::windows_sys::core::PCSTR, virtualaddress : *mut u64, size : *mut u32) -> ::windows_sys::core::HRESULT);
67 #[cfg(feature = "Win32_Foundation")]
68 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn ScanMemoryForDosImages(vmsavedstatedumphandle : *mut ::core::ffi::c_void, vpid : u32, startaddress : u64, endaddress : u64, callbackcontext : *mut ::core::ffi::c_void, foundimagecallback : FOUND_IMAGE_CALLBACK, standaloneaddress : *const u64, standaloneaddresscount : u32) -> ::windows_sys::core::HRESULT);
69 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn SetMemoryBlockCacheLimit(vmsavedstatedumphandle : *mut ::core::ffi::c_void, memoryblockcachelimit : u64) -> ::windows_sys::core::HRESULT);
70 ::windows_targets::link!("vmsavedstatedumpprovider.dll" "system" fn SetSavedStateSymbolProviderDebugInfoCallback(vmsavedstatedumphandle : *mut ::core::ffi::c_void, callback : GUEST_SYMBOLS_PROVIDER_DEBUG_INFO_CALLBACK) -> ::windows_sys::core::HRESULT);
71 #[cfg(feature = "Win32_Foundation")]
72 ::windows_targets::link!("winhvplatform.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WHvAcceptPartitionMigration(migrationhandle : super::super::Foundation:: HANDLE, partition : *mut WHV_PARTITION_HANDLE) -> ::windows_sys::core::HRESULT);
73 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvAdviseGpaRange(partition : WHV_PARTITION_HANDLE, gparanges : *const WHV_MEMORY_RANGE_ENTRY, gparangescount : u32, advice : WHV_ADVISE_GPA_RANGE_CODE, advicebuffer : *const ::core::ffi::c_void, advicebuffersizeinbytes : u32) -> ::windows_sys::core::HRESULT);
74 #[cfg(feature = "Win32_Foundation")]
75 ::windows_targets::link!("winhvplatform.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WHvAllocateVpciResource(providerid : *const ::windows_sys::core::GUID, flags : WHV_ALLOCATE_VPCI_RESOURCE_FLAGS, resourcedescriptor : *const ::core::ffi::c_void, resourcedescriptorsizeinbytes : u32, vpciresource : *mut super::super::Foundation:: HANDLE) -> ::windows_sys::core::HRESULT);
76 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvCancelPartitionMigration(partition : WHV_PARTITION_HANDLE) -> ::windows_sys::core::HRESULT);
77 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvCancelRunVirtualProcessor(partition : WHV_PARTITION_HANDLE, vpindex : u32, flags : u32) -> ::windows_sys::core::HRESULT);
78 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvCompletePartitionMigration(partition : WHV_PARTITION_HANDLE) -> ::windows_sys::core::HRESULT);
79 #[cfg(feature = "Win32_Foundation")]
80 ::windows_targets::link!("winhvplatform.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WHvCreateNotificationPort(partition : WHV_PARTITION_HANDLE, parameters : *const WHV_NOTIFICATION_PORT_PARAMETERS, eventhandle : super::super::Foundation:: HANDLE, porthandle : *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT);
81 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvCreatePartition(partition : *mut WHV_PARTITION_HANDLE) -> ::windows_sys::core::HRESULT);
82 #[cfg(feature = "Win32_Foundation")]
83 ::windows_targets::link!("winhvplatform.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WHvCreateTrigger(partition : WHV_PARTITION_HANDLE, parameters : *const WHV_TRIGGER_PARAMETERS, triggerhandle : *mut *mut ::core::ffi::c_void, eventhandle : *mut super::super::Foundation:: HANDLE) -> ::windows_sys::core::HRESULT);
84 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvCreateVirtualProcessor(partition : WHV_PARTITION_HANDLE, vpindex : u32, flags : u32) -> ::windows_sys::core::HRESULT);
85 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvCreateVirtualProcessor2(partition : WHV_PARTITION_HANDLE, vpindex : u32, properties : *const WHV_VIRTUAL_PROCESSOR_PROPERTY, propertycount : u32) -> ::windows_sys::core::HRESULT);
86 #[cfg(feature = "Win32_Foundation")]
87 ::windows_targets::link!("winhvplatform.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WHvCreateVpciDevice(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64, vpciresource : super::super::Foundation:: HANDLE, flags : WHV_CREATE_VPCI_DEVICE_FLAGS, notificationeventhandle : super::super::Foundation:: HANDLE) -> ::windows_sys::core::HRESULT);
88 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvDeleteNotificationPort(partition : WHV_PARTITION_HANDLE, porthandle : *const ::core::ffi::c_void) -> ::windows_sys::core::HRESULT);
89 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvDeletePartition(partition : WHV_PARTITION_HANDLE) -> ::windows_sys::core::HRESULT);
90 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvDeleteTrigger(partition : WHV_PARTITION_HANDLE, triggerhandle : *const ::core::ffi::c_void) -> ::windows_sys::core::HRESULT);
91 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvDeleteVirtualProcessor(partition : WHV_PARTITION_HANDLE, vpindex : u32) -> ::windows_sys::core::HRESULT);
92 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvDeleteVpciDevice(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64) -> ::windows_sys::core::HRESULT);
93 ::windows_targets::link!("winhvemulation.dll" "system" fn WHvEmulatorCreateEmulator(callbacks : *const WHV_EMULATOR_CALLBACKS, emulator : *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT);
94 ::windows_targets::link!("winhvemulation.dll" "system" fn WHvEmulatorDestroyEmulator(emulator : *const ::core::ffi::c_void) -> ::windows_sys::core::HRESULT);
95 ::windows_targets::link!("winhvemulation.dll" "system" fn WHvEmulatorTryIoEmulation(emulator : *const ::core::ffi::c_void, context : *const ::core::ffi::c_void, vpcontext : *const WHV_VP_EXIT_CONTEXT, ioinstructioncontext : *const WHV_X64_IO_PORT_ACCESS_CONTEXT, emulatorreturnstatus : *mut WHV_EMULATOR_STATUS) -> ::windows_sys::core::HRESULT);
96 ::windows_targets::link!("winhvemulation.dll" "system" fn WHvEmulatorTryMmioEmulation(emulator : *const ::core::ffi::c_void, context : *const ::core::ffi::c_void, vpcontext : *const WHV_VP_EXIT_CONTEXT, mmioinstructioncontext : *const WHV_MEMORY_ACCESS_CONTEXT, emulatorreturnstatus : *mut WHV_EMULATOR_STATUS) -> ::windows_sys::core::HRESULT);
97 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvGetCapability(capabilitycode : WHV_CAPABILITY_CODE, capabilitybuffer : *mut ::core::ffi::c_void, capabilitybuffersizeinbytes : u32, writtensizeinbytes : *mut u32) -> ::windows_sys::core::HRESULT);
98 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvGetInterruptTargetVpSet(partition : WHV_PARTITION_HANDLE, destination : u64, destinationmode : WHV_INTERRUPT_DESTINATION_MODE, targetvps : *mut u32, vpcount : u32, targetvpcount : *mut u32) -> ::windows_sys::core::HRESULT);
99 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvGetPartitionCounters(partition : WHV_PARTITION_HANDLE, counterset : WHV_PARTITION_COUNTER_SET, buffer : *mut ::core::ffi::c_void, buffersizeinbytes : u32, byteswritten : *mut u32) -> ::windows_sys::core::HRESULT);
100 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvGetPartitionProperty(partition : WHV_PARTITION_HANDLE, propertycode : WHV_PARTITION_PROPERTY_CODE, propertybuffer : *mut ::core::ffi::c_void, propertybuffersizeinbytes : u32, writtensizeinbytes : *mut u32) -> ::windows_sys::core::HRESULT);
101 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvGetVirtualProcessorCounters(partition : WHV_PARTITION_HANDLE, vpindex : u32, counterset : WHV_PROCESSOR_COUNTER_SET, buffer : *mut ::core::ffi::c_void, buffersizeinbytes : u32, byteswritten : *mut u32) -> ::windows_sys::core::HRESULT);
102 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvGetVirtualProcessorCpuidOutput(partition : WHV_PARTITION_HANDLE, vpindex : u32, eax : u32, ecx : u32, cpuidoutput : *mut WHV_CPUID_OUTPUT) -> ::windows_sys::core::HRESULT);
103 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvGetVirtualProcessorInterruptControllerState(partition : WHV_PARTITION_HANDLE, vpindex : u32, state : *mut ::core::ffi::c_void, statesize : u32, writtensize : *mut u32) -> ::windows_sys::core::HRESULT);
104 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvGetVirtualProcessorInterruptControllerState2(partition : WHV_PARTITION_HANDLE, vpindex : u32, state : *mut ::core::ffi::c_void, statesize : u32, writtensize : *mut u32) -> ::windows_sys::core::HRESULT);
105 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvGetVirtualProcessorRegisters(partition : WHV_PARTITION_HANDLE, vpindex : u32, registernames : *const WHV_REGISTER_NAME, registercount : u32, registervalues : *mut WHV_REGISTER_VALUE) -> ::windows_sys::core::HRESULT);
106 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvGetVirtualProcessorState(partition : WHV_PARTITION_HANDLE, vpindex : u32, statetype : WHV_VIRTUAL_PROCESSOR_STATE_TYPE, buffer : *mut ::core::ffi::c_void, buffersizeinbytes : u32, byteswritten : *mut u32) -> ::windows_sys::core::HRESULT);
107 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvGetVirtualProcessorXsaveState(partition : WHV_PARTITION_HANDLE, vpindex : u32, buffer : *mut ::core::ffi::c_void, buffersizeinbytes : u32, byteswritten : *mut u32) -> ::windows_sys::core::HRESULT);
108 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvGetVpciDeviceInterruptTarget(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64, index : u32, multimessagenumber : u32, target : *mut WHV_VPCI_INTERRUPT_TARGET, targetsizeinbytes : u32, byteswritten : *mut u32) -> ::windows_sys::core::HRESULT);
109 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvGetVpciDeviceNotification(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64, notification : *mut WHV_VPCI_DEVICE_NOTIFICATION, notificationsizeinbytes : u32) -> ::windows_sys::core::HRESULT);
110 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvGetVpciDeviceProperty(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64, propertycode : WHV_VPCI_DEVICE_PROPERTY_CODE, propertybuffer : *mut ::core::ffi::c_void, propertybuffersizeinbytes : u32, writtensizeinbytes : *mut u32) -> ::windows_sys::core::HRESULT);
111 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvMapGpaRange(partition : WHV_PARTITION_HANDLE, sourceaddress : *const ::core::ffi::c_void, guestaddress : u64, sizeinbytes : u64, flags : WHV_MAP_GPA_RANGE_FLAGS) -> ::windows_sys::core::HRESULT);
112 #[cfg(feature = "Win32_Foundation")]
113 ::windows_targets::link!("winhvplatform.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WHvMapGpaRange2(partition : WHV_PARTITION_HANDLE, process : super::super::Foundation:: HANDLE, sourceaddress : *const ::core::ffi::c_void, guestaddress : u64, sizeinbytes : u64, flags : WHV_MAP_GPA_RANGE_FLAGS) -> ::windows_sys::core::HRESULT);
114 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvMapVpciDeviceInterrupt(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64, index : u32, messagecount : u32, target : *const WHV_VPCI_INTERRUPT_TARGET, msiaddress : *mut u64, msidata : *mut u32) -> ::windows_sys::core::HRESULT);
115 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvMapVpciDeviceMmioRanges(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64, mappingcount : *mut u32, mappings : *mut *mut WHV_VPCI_MMIO_MAPPING) -> ::windows_sys::core::HRESULT);
116 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvPostVirtualProcessorSynicMessage(partition : WHV_PARTITION_HANDLE, vpindex : u32, sintindex : u32, message : *const ::core::ffi::c_void, messagesizeinbytes : u32) -> ::windows_sys::core::HRESULT);
117 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvQueryGpaRangeDirtyBitmap(partition : WHV_PARTITION_HANDLE, guestaddress : u64, rangesizeinbytes : u64, bitmap : *mut u64, bitmapsizeinbytes : u32) -> ::windows_sys::core::HRESULT);
118 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvReadGpaRange(partition : WHV_PARTITION_HANDLE, vpindex : u32, guestaddress : u64, controls : WHV_ACCESS_GPA_CONTROLS, data : *mut ::core::ffi::c_void, datasizeinbytes : u32) -> ::windows_sys::core::HRESULT);
119 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvReadVpciDeviceRegister(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64, register : *const WHV_VPCI_DEVICE_REGISTER, data : *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT);
120 #[cfg(feature = "Win32_Foundation")]
121 ::windows_targets::link!("winhvplatform.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WHvRegisterPartitionDoorbellEvent(partition : WHV_PARTITION_HANDLE, matchdata : *const WHV_DOORBELL_MATCH_DATA, eventhandle : super::super::Foundation:: HANDLE) -> ::windows_sys::core::HRESULT);
122 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvRequestInterrupt(partition : WHV_PARTITION_HANDLE, interrupt : *const WHV_INTERRUPT_CONTROL, interruptcontrolsize : u32) -> ::windows_sys::core::HRESULT);
123 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvRequestVpciDeviceInterrupt(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64, msiaddress : u64, msidata : u32) -> ::windows_sys::core::HRESULT);
124 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvResetPartition(partition : WHV_PARTITION_HANDLE) -> ::windows_sys::core::HRESULT);
125 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvResumePartitionTime(partition : WHV_PARTITION_HANDLE) -> ::windows_sys::core::HRESULT);
126 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvRetargetVpciDeviceInterrupt(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64, msiaddress : u64, msidata : u32, target : *const WHV_VPCI_INTERRUPT_TARGET) -> ::windows_sys::core::HRESULT);
127 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvRunVirtualProcessor(partition : WHV_PARTITION_HANDLE, vpindex : u32, exitcontext : *mut ::core::ffi::c_void, exitcontextsizeinbytes : u32) -> ::windows_sys::core::HRESULT);
128 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvSetNotificationPortProperty(partition : WHV_PARTITION_HANDLE, porthandle : *const ::core::ffi::c_void, propertycode : WHV_NOTIFICATION_PORT_PROPERTY_CODE, propertyvalue : u64) -> ::windows_sys::core::HRESULT);
129 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvSetPartitionProperty(partition : WHV_PARTITION_HANDLE, propertycode : WHV_PARTITION_PROPERTY_CODE, propertybuffer : *const ::core::ffi::c_void, propertybuffersizeinbytes : u32) -> ::windows_sys::core::HRESULT);
130 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvSetVirtualProcessorInterruptControllerState(partition : WHV_PARTITION_HANDLE, vpindex : u32, state : *const ::core::ffi::c_void, statesize : u32) -> ::windows_sys::core::HRESULT);
131 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvSetVirtualProcessorInterruptControllerState2(partition : WHV_PARTITION_HANDLE, vpindex : u32, state : *const ::core::ffi::c_void, statesize : u32) -> ::windows_sys::core::HRESULT);
132 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvSetVirtualProcessorRegisters(partition : WHV_PARTITION_HANDLE, vpindex : u32, registernames : *const WHV_REGISTER_NAME, registercount : u32, registervalues : *const WHV_REGISTER_VALUE) -> ::windows_sys::core::HRESULT);
133 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvSetVirtualProcessorState(partition : WHV_PARTITION_HANDLE, vpindex : u32, statetype : WHV_VIRTUAL_PROCESSOR_STATE_TYPE, buffer : *const ::core::ffi::c_void, buffersizeinbytes : u32) -> ::windows_sys::core::HRESULT);
134 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvSetVirtualProcessorXsaveState(partition : WHV_PARTITION_HANDLE, vpindex : u32, buffer : *const ::core::ffi::c_void, buffersizeinbytes : u32) -> ::windows_sys::core::HRESULT);
135 #[cfg(feature = "Win32_System_Power")]
136 ::windows_targets::link!("winhvplatform.dll" "system" #[doc = "Required features: `\"Win32_System_Power\"`"] fn WHvSetVpciDevicePowerState(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64, powerstate : super::Power:: DEVICE_POWER_STATE) -> ::windows_sys::core::HRESULT);
137 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvSetupPartition(partition : WHV_PARTITION_HANDLE) -> ::windows_sys::core::HRESULT);
138 #[cfg(feature = "Win32_Foundation")]
139 ::windows_targets::link!("winhvplatform.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WHvSignalVirtualProcessorSynicEvent(partition : WHV_PARTITION_HANDLE, synicevent : WHV_SYNIC_EVENT_PARAMETERS, newlysignaled : *mut super::super::Foundation:: BOOL) -> ::windows_sys::core::HRESULT);
140 #[cfg(feature = "Win32_Foundation")]
141 ::windows_targets::link!("winhvplatform.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WHvStartPartitionMigration(partition : WHV_PARTITION_HANDLE, migrationhandle : *mut super::super::Foundation:: HANDLE) -> ::windows_sys::core::HRESULT);
142 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvSuspendPartitionTime(partition : WHV_PARTITION_HANDLE) -> ::windows_sys::core::HRESULT);
143 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvTranslateGva(partition : WHV_PARTITION_HANDLE, vpindex : u32, gva : u64, translateflags : WHV_TRANSLATE_GVA_FLAGS, translationresult : *mut WHV_TRANSLATE_GVA_RESULT, gpa : *mut u64) -> ::windows_sys::core::HRESULT);
144 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvUnmapGpaRange(partition : WHV_PARTITION_HANDLE, guestaddress : u64, sizeinbytes : u64) -> ::windows_sys::core::HRESULT);
145 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvUnmapVpciDeviceInterrupt(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64, index : u32) -> ::windows_sys::core::HRESULT);
146 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvUnmapVpciDeviceMmioRanges(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64) -> ::windows_sys::core::HRESULT);
147 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvUnregisterPartitionDoorbellEvent(partition : WHV_PARTITION_HANDLE, matchdata : *const WHV_DOORBELL_MATCH_DATA) -> ::windows_sys::core::HRESULT);
148 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvUpdateTriggerParameters(partition : WHV_PARTITION_HANDLE, parameters : *const WHV_TRIGGER_PARAMETERS, triggerhandle : *const ::core::ffi::c_void) -> ::windows_sys::core::HRESULT);
149 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvWriteGpaRange(partition : WHV_PARTITION_HANDLE, vpindex : u32, guestaddress : u64, controls : WHV_ACCESS_GPA_CONTROLS, data : *const ::core::ffi::c_void, datasizeinbytes : u32) -> ::windows_sys::core::HRESULT);
150 ::windows_targets::link!("winhvplatform.dll" "system" fn WHvWriteVpciDeviceRegister(partition : WHV_PARTITION_HANDLE, logicaldeviceid : u64, register : *const WHV_VPCI_DEVICE_REGISTER, data : *const ::core::ffi::c_void) -> ::windows_sys::core::HRESULT);
151 pub const ARM64_RegisterActlrEl1: REGISTER_ID = 145i32;
152 pub const ARM64_RegisterAmairEl1: REGISTER_ID = 148i32;
153 pub const ARM64_RegisterCntkctlEl1: REGISTER_ID = 155i32;
154 pub const ARM64_RegisterCntvCtlEl0: REGISTER_ID = 157i32;
155 pub const ARM64_RegisterCntvCvalEl0: REGISTER_ID = 156i32;
156 pub const ARM64_RegisterContextIdrEl1: REGISTER_ID = 152i32;
157 pub const ARM64_RegisterCpacrEl1: REGISTER_ID = 153i32;
158 pub const ARM64_RegisterCpsr: REGISTER_ID = 101i32;
159 pub const ARM64_RegisterCsselrEl1: REGISTER_ID = 154i32;
160 pub const ARM64_RegisterElrEl1: REGISTER_ID = 140i32;
161 pub const ARM64_RegisterEsrEl1: REGISTER_ID = 136i32;
162 pub const ARM64_RegisterFarEl1: REGISTER_ID = 138i32;
163 pub const ARM64_RegisterFpControl: REGISTER_ID = 135i32;
164 pub const ARM64_RegisterFpStatus: REGISTER_ID = 134i32;
165 pub const ARM64_RegisterMairEl1: REGISTER_ID = 147i32;
166 pub const ARM64_RegisterMax: REGISTER_ID = 158i32;
167 pub const ARM64_RegisterParEl1: REGISTER_ID = 139i32;
168 pub const ARM64_RegisterPc: REGISTER_ID = 98i32;
169 pub const ARM64_RegisterQ0: REGISTER_ID = 102i32;
170 pub const ARM64_RegisterQ1: REGISTER_ID = 103i32;
171 pub const ARM64_RegisterQ10: REGISTER_ID = 112i32;
172 pub const ARM64_RegisterQ11: REGISTER_ID = 113i32;
173 pub const ARM64_RegisterQ12: REGISTER_ID = 114i32;
174 pub const ARM64_RegisterQ13: REGISTER_ID = 115i32;
175 pub const ARM64_RegisterQ14: REGISTER_ID = 116i32;
176 pub const ARM64_RegisterQ15: REGISTER_ID = 117i32;
177 pub const ARM64_RegisterQ16: REGISTER_ID = 118i32;
178 pub const ARM64_RegisterQ17: REGISTER_ID = 119i32;
179 pub const ARM64_RegisterQ18: REGISTER_ID = 120i32;
180 pub const ARM64_RegisterQ19: REGISTER_ID = 121i32;
181 pub const ARM64_RegisterQ2: REGISTER_ID = 104i32;
182 pub const ARM64_RegisterQ20: REGISTER_ID = 122i32;
183 pub const ARM64_RegisterQ21: REGISTER_ID = 123i32;
184 pub const ARM64_RegisterQ22: REGISTER_ID = 124i32;
185 pub const ARM64_RegisterQ23: REGISTER_ID = 125i32;
186 pub const ARM64_RegisterQ24: REGISTER_ID = 126i32;
187 pub const ARM64_RegisterQ25: REGISTER_ID = 127i32;
188 pub const ARM64_RegisterQ26: REGISTER_ID = 128i32;
189 pub const ARM64_RegisterQ27: REGISTER_ID = 129i32;
190 pub const ARM64_RegisterQ28: REGISTER_ID = 130i32;
191 pub const ARM64_RegisterQ29: REGISTER_ID = 131i32;
192 pub const ARM64_RegisterQ3: REGISTER_ID = 105i32;
193 pub const ARM64_RegisterQ30: REGISTER_ID = 132i32;
194 pub const ARM64_RegisterQ31: REGISTER_ID = 133i32;
195 pub const ARM64_RegisterQ4: REGISTER_ID = 106i32;
196 pub const ARM64_RegisterQ5: REGISTER_ID = 107i32;
197 pub const ARM64_RegisterQ6: REGISTER_ID = 108i32;
198 pub const ARM64_RegisterQ7: REGISTER_ID = 109i32;
199 pub const ARM64_RegisterQ8: REGISTER_ID = 110i32;
200 pub const ARM64_RegisterQ9: REGISTER_ID = 111i32;
201 pub const ARM64_RegisterSctlrEl1: REGISTER_ID = 144i32;
202 pub const ARM64_RegisterSpEl0: REGISTER_ID = 99i32;
203 pub const ARM64_RegisterSpEl1: REGISTER_ID = 100i32;
204 pub const ARM64_RegisterSpsrEl1: REGISTER_ID = 137i32;
205 pub const ARM64_RegisterTcrEl1: REGISTER_ID = 146i32;
206 pub const ARM64_RegisterTpidrEl0: REGISTER_ID = 149i32;
207 pub const ARM64_RegisterTpidrEl1: REGISTER_ID = 151i32;
208 pub const ARM64_RegisterTpidrroEl0: REGISTER_ID = 150i32;
209 pub const ARM64_RegisterTtbr0El1: REGISTER_ID = 141i32;
210 pub const ARM64_RegisterTtbr1El1: REGISTER_ID = 142i32;
211 pub const ARM64_RegisterVbarEl1: REGISTER_ID = 143i32;
212 pub const ARM64_RegisterX0: REGISTER_ID = 67i32;
213 pub const ARM64_RegisterX1: REGISTER_ID = 68i32;
214 pub const ARM64_RegisterX10: REGISTER_ID = 77i32;
215 pub const ARM64_RegisterX11: REGISTER_ID = 78i32;
216 pub const ARM64_RegisterX12: REGISTER_ID = 79i32;
217 pub const ARM64_RegisterX13: REGISTER_ID = 80i32;
218 pub const ARM64_RegisterX14: REGISTER_ID = 81i32;
219 pub const ARM64_RegisterX15: REGISTER_ID = 82i32;
220 pub const ARM64_RegisterX16: REGISTER_ID = 83i32;
221 pub const ARM64_RegisterX17: REGISTER_ID = 84i32;
222 pub const ARM64_RegisterX18: REGISTER_ID = 85i32;
223 pub const ARM64_RegisterX19: REGISTER_ID = 86i32;
224 pub const ARM64_RegisterX2: REGISTER_ID = 69i32;
225 pub const ARM64_RegisterX20: REGISTER_ID = 87i32;
226 pub const ARM64_RegisterX21: REGISTER_ID = 88i32;
227 pub const ARM64_RegisterX22: REGISTER_ID = 89i32;
228 pub const ARM64_RegisterX23: REGISTER_ID = 90i32;
229 pub const ARM64_RegisterX24: REGISTER_ID = 91i32;
230 pub const ARM64_RegisterX25: REGISTER_ID = 92i32;
231 pub const ARM64_RegisterX26: REGISTER_ID = 93i32;
232 pub const ARM64_RegisterX27: REGISTER_ID = 94i32;
233 pub const ARM64_RegisterX28: REGISTER_ID = 95i32;
234 pub const ARM64_RegisterX3: REGISTER_ID = 70i32;
235 pub const ARM64_RegisterX4: REGISTER_ID = 71i32;
236 pub const ARM64_RegisterX5: REGISTER_ID = 72i32;
237 pub const ARM64_RegisterX6: REGISTER_ID = 73i32;
238 pub const ARM64_RegisterX7: REGISTER_ID = 74i32;
239 pub const ARM64_RegisterX8: REGISTER_ID = 75i32;
240 pub const ARM64_RegisterX9: REGISTER_ID = 76i32;
241 pub const ARM64_RegisterXFp: REGISTER_ID = 96i32;
242 pub const ARM64_RegisterXLr: REGISTER_ID = 97i32;
243 pub const Arch_Armv8: VIRTUAL_PROCESSOR_ARCH = 3i32;
244 pub const Arch_Unknown: VIRTUAL_PROCESSOR_ARCH = 0i32;
245 pub const Arch_x64: VIRTUAL_PROCESSOR_ARCH = 2i32;
246 pub const Arch_x86: VIRTUAL_PROCESSOR_ARCH = 1i32;
247 pub const GUID_DEVINTERFACE_VM_GENCOUNTER: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x3ff2c92b_6598_4e60_8e1c_0ccf4927e319);
248 pub const GuestOsMicrosoftMSDOS: GUEST_OS_MICROSOFT_IDS = 1i32;
249 pub const GuestOsMicrosoftUndefined: GUEST_OS_MICROSOFT_IDS = 0i32;
250 pub const GuestOsMicrosoftWindows3x: GUEST_OS_MICROSOFT_IDS = 2i32;
251 pub const GuestOsMicrosoftWindows9x: GUEST_OS_MICROSOFT_IDS = 3i32;
252 pub const GuestOsMicrosoftWindowsCE: GUEST_OS_MICROSOFT_IDS = 5i32;
253 pub const GuestOsMicrosoftWindowsNT: GUEST_OS_MICROSOFT_IDS = 4i32;
254 pub const GuestOsOpenSourceFreeBSD: GUEST_OS_OPENSOURCE_IDS = 2i32;
255 pub const GuestOsOpenSourceIllumos: GUEST_OS_OPENSOURCE_IDS = 4i32;
256 pub const GuestOsOpenSourceLinux: GUEST_OS_OPENSOURCE_IDS = 1i32;
257 pub const GuestOsOpenSourceUndefined: GUEST_OS_OPENSOURCE_IDS = 0i32;
258 pub const GuestOsOpenSourceXen: GUEST_OS_OPENSOURCE_IDS = 3i32;
259 pub const GuestOsVendorHPE: GUEST_OS_VENDOR = 2i32;
260 pub const GuestOsVendorLANCOM: GUEST_OS_VENDOR = 512i32;
261 pub const GuestOsVendorMicrosoft: GUEST_OS_VENDOR = 1i32;
262 pub const GuestOsVendorUndefined: GUEST_OS_VENDOR = 0i32;
263 pub const HDV_DOORBELL_FLAG_TRIGGER_ANY_VALUE: HDV_DOORBELL_FLAGS = -2147483648i32;
264 pub const HDV_DOORBELL_FLAG_TRIGGER_SIZE_ANY: HDV_DOORBELL_FLAGS = 0i32;
265 pub const HDV_DOORBELL_FLAG_TRIGGER_SIZE_BYTE: HDV_DOORBELL_FLAGS = 1i32;
266 pub const HDV_DOORBELL_FLAG_TRIGGER_SIZE_DWORD: HDV_DOORBELL_FLAGS = 3i32;
267 pub const HDV_DOORBELL_FLAG_TRIGGER_SIZE_QWORD: HDV_DOORBELL_FLAGS = 4i32;
268 pub const HDV_DOORBELL_FLAG_TRIGGER_SIZE_WORD: HDV_DOORBELL_FLAGS = 2i32;
269 pub const HDV_PCI_BAR0: HDV_PCI_BAR_SELECTOR = 0i32;
270 pub const HDV_PCI_BAR1: HDV_PCI_BAR_SELECTOR = 1i32;
271 pub const HDV_PCI_BAR2: HDV_PCI_BAR_SELECTOR = 2i32;
272 pub const HDV_PCI_BAR3: HDV_PCI_BAR_SELECTOR = 3i32;
273 pub const HDV_PCI_BAR4: HDV_PCI_BAR_SELECTOR = 4i32;
274 pub const HDV_PCI_BAR5: HDV_PCI_BAR_SELECTOR = 5i32;
275 pub const HDV_PCI_BAR_COUNT: u32 = 6u32;
276 pub const HVSOCKET_ADDRESS_FLAG_PASSTHRU: u32 = 1u32;
277 pub const HVSOCKET_CONNECTED_SUSPEND: u32 = 4u32;
278 pub const HVSOCKET_CONNECT_TIMEOUT: u32 = 1u32;
279 pub const HVSOCKET_CONNECT_TIMEOUT_MAX: u32 = 300000u32;
280 pub const HVSOCKET_HIGH_VTL: u32 = 8u32;
281 pub const HV_GUID_BROADCAST: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xffffffff_ffff_ffff_ffff_ffffffffffff);
282 pub const HV_GUID_CHILDREN: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x90db8b89_0d35_4f79_8ce9_49ea0ac8b7cd);
283 pub const HV_GUID_LOOPBACK: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xe0e16197_dd56_4a10_9195_5ee7a155a838);
284 pub const HV_GUID_PARENT: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0xa42e7cda_d03f_480c_9cc2_a4de20abb878);
285 pub const HV_GUID_SILOHOST: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x36bd0c5c_7276_4223_88ba_7d03b654c568);
286 pub const HV_GUID_VSOCK_TEMPLATE: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x00000000_facb_11e6_bd58_64006a7986d3);
287 pub const HV_GUID_ZERO: ::windows_sys::core::GUID = ::windows_sys::core::GUID::from_u128(0x00000000_0000_0000_0000_000000000000);
288 pub const HV_PROTOCOL_RAW: u32 = 1u32;
289 pub const HdvDeviceHostFlagInitializeComSecurity: HDV_DEVICE_HOST_FLAGS = 1i32;
290 pub const HdvDeviceHostFlagNone: HDV_DEVICE_HOST_FLAGS = 0i32;
291 pub const HdvDeviceTypePCI: HDV_DEVICE_TYPE = 1i32;
292 pub const HdvDeviceTypeUndefined: HDV_DEVICE_TYPE = 0i32;
293 pub const HdvMmioMappingFlagExecutable: HDV_MMIO_MAPPING_FLAGS = 2i32;
294 pub const HdvMmioMappingFlagNone: HDV_MMIO_MAPPING_FLAGS = 0i32;
295 pub const HdvMmioMappingFlagWriteable: HDV_MMIO_MAPPING_FLAGS = 1i32;
296 pub const HdvPciDeviceInterfaceVersion1: HDV_PCI_INTERFACE_VERSION = 1i32;
297 pub const HdvPciDeviceInterfaceVersionInvalid: HDV_PCI_INTERFACE_VERSION = 0i32;
298 pub const IOCTL_VMGENCOUNTER_READ: u32 = 3325956u32;
299 pub const Paging_32Bit: PAGING_MODE = 2i32;
300 pub const Paging_Armv8: PAGING_MODE = 5i32;
301 pub const Paging_Invalid: PAGING_MODE = 0i32;
302 pub const Paging_Long: PAGING_MODE = 4i32;
303 pub const Paging_NonPaged: PAGING_MODE = 1i32;
304 pub const Paging_Pae: PAGING_MODE = 3i32;
305 pub const ProcessorVendor_Amd: VIRTUAL_PROCESSOR_VENDOR = 1i32;
306 pub const ProcessorVendor_Arm: VIRTUAL_PROCESSOR_VENDOR = 4i32;
307 pub const ProcessorVendor_Hygon: VIRTUAL_PROCESSOR_VENDOR = 3i32;
308 pub const ProcessorVendor_Intel: VIRTUAL_PROCESSOR_VENDOR = 2i32;
309 pub const ProcessorVendor_Unknown: VIRTUAL_PROCESSOR_VENDOR = 0i32;
310 pub const VM_GENCOUNTER_SYMBOLIC_LINK_NAME: ::windows_sys::core::PCWSTR = ::windows_sys::core::w!("\\VmGenerationCounter");
311 pub const WHV_ANY_VP: u32 = 4294967295u32;
312 pub const WHV_HYPERCALL_CONTEXT_MAX_XMM_REGISTERS: u32 = 6u32;
313 pub const WHV_MAX_DEVICE_ID_SIZE_IN_CHARS: u32 = 200u32;
314 pub const WHV_PROCESSOR_FEATURES_BANKS_COUNT: u32 = 2u32;
315 pub const WHV_READ_WRITE_GPA_RANGE_MAX_SIZE: u32 = 16u32;
316 pub const WHV_SYNIC_MESSAGE_SIZE: u32 = 256u32;
317 pub const WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS_COUNT: u32 = 1u32;
318 pub const WHV_VPCI_TYPE0_BAR_COUNT: u32 = 6u32;
319 pub const WHvAdviseGpaRangeCodePin: WHV_ADVISE_GPA_RANGE_CODE = 1i32;
320 pub const WHvAdviseGpaRangeCodePopulate: WHV_ADVISE_GPA_RANGE_CODE = 0i32;
321 pub const WHvAdviseGpaRangeCodeUnpin: WHV_ADVISE_GPA_RANGE_CODE = 2i32;
322 pub const WHvAllocateVpciResourceFlagAllowDirectP2P: WHV_ALLOCATE_VPCI_RESOURCE_FLAGS = 1i32;
323 pub const WHvAllocateVpciResourceFlagNone: WHV_ALLOCATE_VPCI_RESOURCE_FLAGS = 0i32;
324 pub const WHvCacheTypeUncached: WHV_CACHE_TYPE = 0i32;
325 pub const WHvCacheTypeWriteBack: WHV_CACHE_TYPE = 6i32;
326 pub const WHvCacheTypeWriteCombining: WHV_CACHE_TYPE = 1i32;
327 pub const WHvCacheTypeWriteThrough: WHV_CACHE_TYPE = 4i32;
328 pub const WHvCapabilityCodeExceptionExitBitmap: WHV_CAPABILITY_CODE = 3i32;
329 pub const WHvCapabilityCodeExtendedVmExits: WHV_CAPABILITY_CODE = 2i32;
330 pub const WHvCapabilityCodeFeatures: WHV_CAPABILITY_CODE = 1i32;
331 pub const WHvCapabilityCodeGpaRangePopulateFlags: WHV_CAPABILITY_CODE = 5i32;
332 pub const WHvCapabilityCodeHypervisorPresent: WHV_CAPABILITY_CODE = 0i32;
333 pub const WHvCapabilityCodeInterruptClockFrequency: WHV_CAPABILITY_CODE = 4101i32;
334 pub const WHvCapabilityCodeProcessorClFlushSize: WHV_CAPABILITY_CODE = 4098i32;
335 pub const WHvCapabilityCodeProcessorClockFrequency: WHV_CAPABILITY_CODE = 4100i32;
336 pub const WHvCapabilityCodeProcessorFeatures: WHV_CAPABILITY_CODE = 4097i32;
337 pub const WHvCapabilityCodeProcessorFeaturesBanks: WHV_CAPABILITY_CODE = 4102i32;
338 pub const WHvCapabilityCodeProcessorFrequencyCap: WHV_CAPABILITY_CODE = 4103i32;
339 pub const WHvCapabilityCodeProcessorPerfmonFeatures: WHV_CAPABILITY_CODE = 4105i32;
340 pub const WHvCapabilityCodeProcessorVendor: WHV_CAPABILITY_CODE = 4096i32;
341 pub const WHvCapabilityCodeProcessorXsaveFeatures: WHV_CAPABILITY_CODE = 4099i32;
342 pub const WHvCapabilityCodeSchedulerFeatures: WHV_CAPABILITY_CODE = 6i32;
343 pub const WHvCapabilityCodeSyntheticProcessorFeaturesBanks: WHV_CAPABILITY_CODE = 4104i32;
344 pub const WHvCapabilityCodeX64MsrExitBitmap: WHV_CAPABILITY_CODE = 4i32;
345 pub const WHvCreateVpciDeviceFlagNone: WHV_CREATE_VPCI_DEVICE_FLAGS = 0i32;
346 pub const WHvCreateVpciDeviceFlagPhysicallyBacked: WHV_CREATE_VPCI_DEVICE_FLAGS = 1i32;
347 pub const WHvCreateVpciDeviceFlagUseLogicalInterrupts: WHV_CREATE_VPCI_DEVICE_FLAGS = 2i32;
348 pub const WHvMapGpaRangeFlagExecute: WHV_MAP_GPA_RANGE_FLAGS = 4i32;
349 pub const WHvMapGpaRangeFlagNone: WHV_MAP_GPA_RANGE_FLAGS = 0i32;
350 pub const WHvMapGpaRangeFlagRead: WHV_MAP_GPA_RANGE_FLAGS = 1i32;
351 pub const WHvMapGpaRangeFlagTrackDirtyPages: WHV_MAP_GPA_RANGE_FLAGS = 8i32;
352 pub const WHvMapGpaRangeFlagWrite: WHV_MAP_GPA_RANGE_FLAGS = 2i32;
353 pub const WHvMemoryAccessExecute: WHV_MEMORY_ACCESS_TYPE = 2i32;
354 pub const WHvMemoryAccessRead: WHV_MEMORY_ACCESS_TYPE = 0i32;
355 pub const WHvMemoryAccessWrite: WHV_MEMORY_ACCESS_TYPE = 1i32;
356 pub const WHvMsrActionArchitectureDefault: WHV_MSR_ACTION = 0i32;
357 pub const WHvMsrActionExit: WHV_MSR_ACTION = 2i32;
358 pub const WHvMsrActionIgnoreWriteReadZero: WHV_MSR_ACTION = 1i32;
359 pub const WHvNotificationPortPropertyPreferredTargetDuration: WHV_NOTIFICATION_PORT_PROPERTY_CODE = 5i32;
360 pub const WHvNotificationPortPropertyPreferredTargetVp: WHV_NOTIFICATION_PORT_PROPERTY_CODE = 1i32;
361 pub const WHvNotificationPortTypeDoorbell: WHV_NOTIFICATION_PORT_TYPE = 4i32;
362 pub const WHvNotificationPortTypeEvent: WHV_NOTIFICATION_PORT_TYPE = 2i32;
363 pub const WHvPartitionCounterSetMemory: WHV_PARTITION_COUNTER_SET = 0i32;
364 pub const WHvPartitionPropertyCodeAllowDeviceAssignment: WHV_PARTITION_PROPERTY_CODE = 12i32;
365 pub const WHvPartitionPropertyCodeApicRemoteReadSupport: WHV_PARTITION_PROPERTY_CODE = 4105i32;
366 pub const WHvPartitionPropertyCodeCpuCap: WHV_PARTITION_PROPERTY_CODE = 8i32;
367 pub const WHvPartitionPropertyCodeCpuGroupId: WHV_PARTITION_PROPERTY_CODE = 10i32;
368 pub const WHvPartitionPropertyCodeCpuReserve: WHV_PARTITION_PROPERTY_CODE = 7i32;
369 pub const WHvPartitionPropertyCodeCpuWeight: WHV_PARTITION_PROPERTY_CODE = 9i32;
370 pub const WHvPartitionPropertyCodeCpuidExitList: WHV_PARTITION_PROPERTY_CODE = 4099i32;
371 pub const WHvPartitionPropertyCodeCpuidResultList: WHV_PARTITION_PROPERTY_CODE = 4100i32;
372 pub const WHvPartitionPropertyCodeCpuidResultList2: WHV_PARTITION_PROPERTY_CODE = 4109i32;
373 pub const WHvPartitionPropertyCodeDisableSmt: WHV_PARTITION_PROPERTY_CODE = 13i32;
374 pub const WHvPartitionPropertyCodeExceptionExitBitmap: WHV_PARTITION_PROPERTY_CODE = 2i32;
375 pub const WHvPartitionPropertyCodeExtendedVmExits: WHV_PARTITION_PROPERTY_CODE = 1i32;
376 pub const WHvPartitionPropertyCodeInterruptClockFrequency: WHV_PARTITION_PROPERTY_CODE = 4104i32;
377 pub const WHvPartitionPropertyCodeLocalApicEmulationMode: WHV_PARTITION_PROPERTY_CODE = 4101i32;
378 pub const WHvPartitionPropertyCodeMsrActionList: WHV_PARTITION_PROPERTY_CODE = 4111i32;
379 pub const WHvPartitionPropertyCodeNestedVirtualization: WHV_PARTITION_PROPERTY_CODE = 4i32;
380 pub const WHvPartitionPropertyCodePrimaryNumaNode: WHV_PARTITION_PROPERTY_CODE = 6i32;
381 pub const WHvPartitionPropertyCodeProcessorClFlushSize: WHV_PARTITION_PROPERTY_CODE = 4098i32;
382 pub const WHvPartitionPropertyCodeProcessorClockFrequency: WHV_PARTITION_PROPERTY_CODE = 4103i32;
383 pub const WHvPartitionPropertyCodeProcessorCount: WHV_PARTITION_PROPERTY_CODE = 8191i32;
384 pub const WHvPartitionPropertyCodeProcessorFeatures: WHV_PARTITION_PROPERTY_CODE = 4097i32;
385 pub const WHvPartitionPropertyCodeProcessorFeaturesBanks: WHV_PARTITION_PROPERTY_CODE = 4106i32;
386 pub const WHvPartitionPropertyCodeProcessorFrequencyCap: WHV_PARTITION_PROPERTY_CODE = 11i32;
387 pub const WHvPartitionPropertyCodeProcessorPerfmonFeatures: WHV_PARTITION_PROPERTY_CODE = 4110i32;
388 pub const WHvPartitionPropertyCodeProcessorXsaveFeatures: WHV_PARTITION_PROPERTY_CODE = 4102i32;
389 pub const WHvPartitionPropertyCodeReferenceTime: WHV_PARTITION_PROPERTY_CODE = 4107i32;
390 pub const WHvPartitionPropertyCodeSeparateSecurityDomain: WHV_PARTITION_PROPERTY_CODE = 3i32;
391 pub const WHvPartitionPropertyCodeSyntheticProcessorFeaturesBanks: WHV_PARTITION_PROPERTY_CODE = 4108i32;
392 pub const WHvPartitionPropertyCodeUnimplementedMsrAction: WHV_PARTITION_PROPERTY_CODE = 4112i32;
393 pub const WHvPartitionPropertyCodeX64MsrExitBitmap: WHV_PARTITION_PROPERTY_CODE = 5i32;
394 pub const WHvProcessorCounterSetApic: WHV_PROCESSOR_COUNTER_SET = 3i32;
395 pub const WHvProcessorCounterSetEvents: WHV_PROCESSOR_COUNTER_SET = 2i32;
396 pub const WHvProcessorCounterSetIntercepts: WHV_PROCESSOR_COUNTER_SET = 1i32;
397 pub const WHvProcessorCounterSetRuntime: WHV_PROCESSOR_COUNTER_SET = 0i32;
398 pub const WHvProcessorCounterSetSyntheticFeatures: WHV_PROCESSOR_COUNTER_SET = 4i32;
399 pub const WHvProcessorVendorAmd: WHV_PROCESSOR_VENDOR = 0i32;
400 pub const WHvProcessorVendorHygon: WHV_PROCESSOR_VENDOR = 2i32;
401 pub const WHvProcessorVendorIntel: WHV_PROCESSOR_VENDOR = 1i32;
402 pub const WHvRegisterEom: WHV_REGISTER_NAME = 16404i32;
403 pub const WHvRegisterGuestOsId: WHV_REGISTER_NAME = 20482i32;
404 pub const WHvRegisterInternalActivityState: WHV_REGISTER_NAME = -2147483643i32;
405 pub const WHvRegisterInterruptState: WHV_REGISTER_NAME = -2147483647i32;
406 pub const WHvRegisterPendingEvent: WHV_REGISTER_NAME = -2147483646i32;
407 pub const WHvRegisterPendingInterruption: WHV_REGISTER_NAME = -2147483648i32;
408 pub const WHvRegisterReferenceTsc: WHV_REGISTER_NAME = 20503i32;
409 pub const WHvRegisterReferenceTscSequence: WHV_REGISTER_NAME = 20506i32;
410 pub const WHvRegisterScontrol: WHV_REGISTER_NAME = 16400i32;
411 pub const WHvRegisterSiefp: WHV_REGISTER_NAME = 16402i32;
412 pub const WHvRegisterSimp: WHV_REGISTER_NAME = 16403i32;
413 pub const WHvRegisterSint0: WHV_REGISTER_NAME = 16384i32;
414 pub const WHvRegisterSint1: WHV_REGISTER_NAME = 16385i32;
415 pub const WHvRegisterSint10: WHV_REGISTER_NAME = 16394i32;
416 pub const WHvRegisterSint11: WHV_REGISTER_NAME = 16395i32;
417 pub const WHvRegisterSint12: WHV_REGISTER_NAME = 16396i32;
418 pub const WHvRegisterSint13: WHV_REGISTER_NAME = 16397i32;
419 pub const WHvRegisterSint14: WHV_REGISTER_NAME = 16398i32;
420 pub const WHvRegisterSint15: WHV_REGISTER_NAME = 16399i32;
421 pub const WHvRegisterSint2: WHV_REGISTER_NAME = 16386i32;
422 pub const WHvRegisterSint3: WHV_REGISTER_NAME = 16387i32;
423 pub const WHvRegisterSint4: WHV_REGISTER_NAME = 16388i32;
424 pub const WHvRegisterSint5: WHV_REGISTER_NAME = 16389i32;
425 pub const WHvRegisterSint6: WHV_REGISTER_NAME = 16390i32;
426 pub const WHvRegisterSint7: WHV_REGISTER_NAME = 16391i32;
427 pub const WHvRegisterSint8: WHV_REGISTER_NAME = 16392i32;
428 pub const WHvRegisterSint9: WHV_REGISTER_NAME = 16393i32;
429 pub const WHvRegisterSversion: WHV_REGISTER_NAME = 16401i32;
430 pub const WHvRegisterVpAssistPage: WHV_REGISTER_NAME = 20499i32;
431 pub const WHvRegisterVpRuntime: WHV_REGISTER_NAME = 20480i32;
432 pub const WHvRunVpCancelReasonUser: WHV_RUN_VP_CANCEL_REASON = 0i32;
433 pub const WHvRunVpExitReasonCanceled: WHV_RUN_VP_EXIT_REASON = 8193i32;
434 pub const WHvRunVpExitReasonException: WHV_RUN_VP_EXIT_REASON = 4098i32;
435 pub const WHvRunVpExitReasonHypercall: WHV_RUN_VP_EXIT_REASON = 4101i32;
436 pub const WHvRunVpExitReasonInvalidVpRegisterValue: WHV_RUN_VP_EXIT_REASON = 5i32;
437 pub const WHvRunVpExitReasonMemoryAccess: WHV_RUN_VP_EXIT_REASON = 1i32;
438 pub const WHvRunVpExitReasonNone: WHV_RUN_VP_EXIT_REASON = 0i32;
439 pub const WHvRunVpExitReasonSynicSintDeliverable: WHV_RUN_VP_EXIT_REASON = 10i32;
440 pub const WHvRunVpExitReasonUnrecoverableException: WHV_RUN_VP_EXIT_REASON = 4i32;
441 pub const WHvRunVpExitReasonUnsupportedFeature: WHV_RUN_VP_EXIT_REASON = 6i32;
442 pub const WHvRunVpExitReasonX64ApicEoi: WHV_RUN_VP_EXIT_REASON = 9i32;
443 pub const WHvRunVpExitReasonX64ApicInitSipiTrap: WHV_RUN_VP_EXIT_REASON = 4102i32;
444 pub const WHvRunVpExitReasonX64ApicSmiTrap: WHV_RUN_VP_EXIT_REASON = 4100i32;
445 pub const WHvRunVpExitReasonX64ApicWriteTrap: WHV_RUN_VP_EXIT_REASON = 4103i32;
446 pub const WHvRunVpExitReasonX64Cpuid: WHV_RUN_VP_EXIT_REASON = 4097i32;
447 pub const WHvRunVpExitReasonX64Halt: WHV_RUN_VP_EXIT_REASON = 8i32;
448 pub const WHvRunVpExitReasonX64InterruptWindow: WHV_RUN_VP_EXIT_REASON = 7i32;
449 pub const WHvRunVpExitReasonX64IoPortAccess: WHV_RUN_VP_EXIT_REASON = 2i32;
450 pub const WHvRunVpExitReasonX64MsrAccess: WHV_RUN_VP_EXIT_REASON = 4096i32;
451 pub const WHvRunVpExitReasonX64Rdtsc: WHV_RUN_VP_EXIT_REASON = 4099i32;
452 pub const WHvTranslateGvaFlagEnforceSmap: WHV_TRANSLATE_GVA_FLAGS = 256i32;
453 pub const WHvTranslateGvaFlagNone: WHV_TRANSLATE_GVA_FLAGS = 0i32;
454 pub const WHvTranslateGvaFlagOverrideSmap: WHV_TRANSLATE_GVA_FLAGS = 512i32;
455 pub const WHvTranslateGvaFlagPrivilegeExempt: WHV_TRANSLATE_GVA_FLAGS = 8i32;
456 pub const WHvTranslateGvaFlagSetPageTableBits: WHV_TRANSLATE_GVA_FLAGS = 16i32;
457 pub const WHvTranslateGvaFlagValidateExecute: WHV_TRANSLATE_GVA_FLAGS = 4i32;
458 pub const WHvTranslateGvaFlagValidateRead: WHV_TRANSLATE_GVA_FLAGS = 1i32;
459 pub const WHvTranslateGvaFlagValidateWrite: WHV_TRANSLATE_GVA_FLAGS = 2i32;
460 pub const WHvTranslateGvaResultGpaIllegalOverlayAccess: WHV_TRANSLATE_GVA_RESULT_CODE = 7i32;
461 pub const WHvTranslateGvaResultGpaNoReadAccess: WHV_TRANSLATE_GVA_RESULT_CODE = 5i32;
462 pub const WHvTranslateGvaResultGpaNoWriteAccess: WHV_TRANSLATE_GVA_RESULT_CODE = 6i32;
463 pub const WHvTranslateGvaResultGpaUnmapped: WHV_TRANSLATE_GVA_RESULT_CODE = 4i32;
464 pub const WHvTranslateGvaResultIntercept: WHV_TRANSLATE_GVA_RESULT_CODE = 8i32;
465 pub const WHvTranslateGvaResultInvalidPageTableFlags: WHV_TRANSLATE_GVA_RESULT_CODE = 3i32;
466 pub const WHvTranslateGvaResultPageNotPresent: WHV_TRANSLATE_GVA_RESULT_CODE = 1i32;
467 pub const WHvTranslateGvaResultPrivilegeViolation: WHV_TRANSLATE_GVA_RESULT_CODE = 2i32;
468 pub const WHvTranslateGvaResultSuccess: WHV_TRANSLATE_GVA_RESULT_CODE = 0i32;
469 pub const WHvTriggerTypeDeviceInterrupt: WHV_TRIGGER_TYPE = 2i32;
470 pub const WHvTriggerTypeInterrupt: WHV_TRIGGER_TYPE = 0i32;
471 pub const WHvTriggerTypeSynicEvent: WHV_TRIGGER_TYPE = 1i32;
472 pub const WHvUnsupportedFeatureIntercept: WHV_X64_UNSUPPORTED_FEATURE_CODE = 1i32;
473 pub const WHvUnsupportedFeatureTaskSwitchTss: WHV_X64_UNSUPPORTED_FEATURE_CODE = 2i32;
474 pub const WHvVirtualProcessorPropertyCodeNumaNode: WHV_VIRTUAL_PROCESSOR_PROPERTY_CODE = 0i32;
475 pub const WHvVirtualProcessorStateTypeInterruptControllerState2: WHV_VIRTUAL_PROCESSOR_STATE_TYPE = 4096i32;
476 pub const WHvVirtualProcessorStateTypeSynicEventFlagPage: WHV_VIRTUAL_PROCESSOR_STATE_TYPE = 1i32;
477 pub const WHvVirtualProcessorStateTypeSynicMessagePage: WHV_VIRTUAL_PROCESSOR_STATE_TYPE = 0i32;
478 pub const WHvVirtualProcessorStateTypeSynicTimerState: WHV_VIRTUAL_PROCESSOR_STATE_TYPE = 2i32;
479 pub const WHvVirtualProcessorStateTypeXsaveState: WHV_VIRTUAL_PROCESSOR_STATE_TYPE = 4097i32;
480 pub const WHvVpciBar0: WHV_VPCI_DEVICE_REGISTER_SPACE = 0i32;
481 pub const WHvVpciBar1: WHV_VPCI_DEVICE_REGISTER_SPACE = 1i32;
482 pub const WHvVpciBar2: WHV_VPCI_DEVICE_REGISTER_SPACE = 2i32;
483 pub const WHvVpciBar3: WHV_VPCI_DEVICE_REGISTER_SPACE = 3i32;
484 pub const WHvVpciBar4: WHV_VPCI_DEVICE_REGISTER_SPACE = 4i32;
485 pub const WHvVpciBar5: WHV_VPCI_DEVICE_REGISTER_SPACE = 5i32;
486 pub const WHvVpciConfigSpace: WHV_VPCI_DEVICE_REGISTER_SPACE = -1i32;
487 pub const WHvVpciDeviceNotificationMmioRemapping: WHV_VPCI_DEVICE_NOTIFICATION_TYPE = 1i32;
488 pub const WHvVpciDeviceNotificationSurpriseRemoval: WHV_VPCI_DEVICE_NOTIFICATION_TYPE = 2i32;
489 pub const WHvVpciDeviceNotificationUndefined: WHV_VPCI_DEVICE_NOTIFICATION_TYPE = 0i32;
490 pub const WHvVpciDevicePropertyCodeHardwareIDs: WHV_VPCI_DEVICE_PROPERTY_CODE = 1i32;
491 pub const WHvVpciDevicePropertyCodeProbedBARs: WHV_VPCI_DEVICE_PROPERTY_CODE = 2i32;
492 pub const WHvVpciDevicePropertyCodeUndefined: WHV_VPCI_DEVICE_PROPERTY_CODE = 0i32;
493 pub const WHvVpciInterruptTargetFlagMulticast: WHV_VPCI_INTERRUPT_TARGET_FLAGS = 1i32;
494 pub const WHvVpciInterruptTargetFlagNone: WHV_VPCI_INTERRUPT_TARGET_FLAGS = 0i32;
495 pub const WHvVpciMmioRangeFlagReadAccess: WHV_VPCI_MMIO_RANGE_FLAGS = 1i32;
496 pub const WHvVpciMmioRangeFlagWriteAccess: WHV_VPCI_MMIO_RANGE_FLAGS = 2i32;
497 pub const WHvX64ApicWriteTypeDfr: WHV_X64_APIC_WRITE_TYPE = 224i32;
498 pub const WHvX64ApicWriteTypeLdr: WHV_X64_APIC_WRITE_TYPE = 208i32;
499 pub const WHvX64ApicWriteTypeLint0: WHV_X64_APIC_WRITE_TYPE = 848i32;
500 pub const WHvX64ApicWriteTypeLint1: WHV_X64_APIC_WRITE_TYPE = 864i32;
501 pub const WHvX64ApicWriteTypeSvr: WHV_X64_APIC_WRITE_TYPE = 240i32;
502 pub const WHvX64CpuidResult2FlagSubleafSpecific: WHV_X64_CPUID_RESULT2_FLAGS = 1i32;
503 pub const WHvX64CpuidResult2FlagVpSpecific: WHV_X64_CPUID_RESULT2_FLAGS = 2i32;
504 pub const WHvX64ExceptionTypeAlignmentCheckFault: WHV_EXCEPTION_TYPE = 17i32;
505 pub const WHvX64ExceptionTypeBoundRangeFault: WHV_EXCEPTION_TYPE = 5i32;
506 pub const WHvX64ExceptionTypeBreakpointTrap: WHV_EXCEPTION_TYPE = 3i32;
507 pub const WHvX64ExceptionTypeDebugTrapOrFault: WHV_EXCEPTION_TYPE = 1i32;
508 pub const WHvX64ExceptionTypeDeviceNotAvailableFault: WHV_EXCEPTION_TYPE = 7i32;
509 pub const WHvX64ExceptionTypeDivideErrorFault: WHV_EXCEPTION_TYPE = 0i32;
510 pub const WHvX64ExceptionTypeDoubleFaultAbort: WHV_EXCEPTION_TYPE = 8i32;
511 pub const WHvX64ExceptionTypeFloatingPointErrorFault: WHV_EXCEPTION_TYPE = 16i32;
512 pub const WHvX64ExceptionTypeGeneralProtectionFault: WHV_EXCEPTION_TYPE = 13i32;
513 pub const WHvX64ExceptionTypeInvalidOpcodeFault: WHV_EXCEPTION_TYPE = 6i32;
514 pub const WHvX64ExceptionTypeInvalidTaskStateSegmentFault: WHV_EXCEPTION_TYPE = 10i32;
515 pub const WHvX64ExceptionTypeMachineCheckAbort: WHV_EXCEPTION_TYPE = 18i32;
516 pub const WHvX64ExceptionTypeOverflowTrap: WHV_EXCEPTION_TYPE = 4i32;
517 pub const WHvX64ExceptionTypePageFault: WHV_EXCEPTION_TYPE = 14i32;
518 pub const WHvX64ExceptionTypeSegmentNotPresentFault: WHV_EXCEPTION_TYPE = 11i32;
519 pub const WHvX64ExceptionTypeSimdFloatingPointFault: WHV_EXCEPTION_TYPE = 19i32;
520 pub const WHvX64ExceptionTypeStackFault: WHV_EXCEPTION_TYPE = 12i32;
521 pub const WHvX64InterruptDestinationModeLogical: WHV_INTERRUPT_DESTINATION_MODE = 1i32;
522 pub const WHvX64InterruptDestinationModePhysical: WHV_INTERRUPT_DESTINATION_MODE = 0i32;
523 pub const WHvX64InterruptTriggerModeEdge: WHV_INTERRUPT_TRIGGER_MODE = 0i32;
524 pub const WHvX64InterruptTriggerModeLevel: WHV_INTERRUPT_TRIGGER_MODE = 1i32;
525 pub const WHvX64InterruptTypeFixed: WHV_INTERRUPT_TYPE = 0i32;
526 pub const WHvX64InterruptTypeInit: WHV_INTERRUPT_TYPE = 5i32;
527 pub const WHvX64InterruptTypeLocalInt1: WHV_INTERRUPT_TYPE = 9i32;
528 pub const WHvX64InterruptTypeLowestPriority: WHV_INTERRUPT_TYPE = 1i32;
529 pub const WHvX64InterruptTypeNmi: WHV_INTERRUPT_TYPE = 4i32;
530 pub const WHvX64InterruptTypeSipi: WHV_INTERRUPT_TYPE = 6i32;
531 pub const WHvX64LocalApicEmulationModeNone: WHV_X64_LOCAL_APIC_EMULATION_MODE = 0i32;
532 pub const WHvX64LocalApicEmulationModeX2Apic: WHV_X64_LOCAL_APIC_EMULATION_MODE = 2i32;
533 pub const WHvX64LocalApicEmulationModeXApic: WHV_X64_LOCAL_APIC_EMULATION_MODE = 1i32;
534 pub const WHvX64PendingEventException: WHV_X64_PENDING_EVENT_TYPE = 0i32;
535 pub const WHvX64PendingEventExtInt: WHV_X64_PENDING_EVENT_TYPE = 5i32;
536 pub const WHvX64PendingException: WHV_X64_PENDING_INTERRUPTION_TYPE = 3i32;
537 pub const WHvX64PendingInterrupt: WHV_X64_PENDING_INTERRUPTION_TYPE = 0i32;
538 pub const WHvX64PendingNmi: WHV_X64_PENDING_INTERRUPTION_TYPE = 2i32;
539 pub const WHvX64RegisterACount: WHV_REGISTER_NAME = 8319i32;
540 pub const WHvX64RegisterApicBase: WHV_REGISTER_NAME = 8195i32;
541 pub const WHvX64RegisterApicCurrentCount: WHV_REGISTER_NAME = 12345i32;
542 pub const WHvX64RegisterApicDivide: WHV_REGISTER_NAME = 12350i32;
543 pub const WHvX64RegisterApicEoi: WHV_REGISTER_NAME = 12299i32;
544 pub const WHvX64RegisterApicEse: WHV_REGISTER_NAME = 12328i32;
545 pub const WHvX64RegisterApicIcr: WHV_REGISTER_NAME = 12336i32;
546 pub const WHvX64RegisterApicId: WHV_REGISTER_NAME = 12290i32;
547 pub const WHvX64RegisterApicInitCount: WHV_REGISTER_NAME = 12344i32;
548 pub const WHvX64RegisterApicIrr0: WHV_REGISTER_NAME = 12320i32;
549 pub const WHvX64RegisterApicIrr1: WHV_REGISTER_NAME = 12321i32;
550 pub const WHvX64RegisterApicIrr2: WHV_REGISTER_NAME = 12322i32;
551 pub const WHvX64RegisterApicIrr3: WHV_REGISTER_NAME = 12323i32;
552 pub const WHvX64RegisterApicIrr4: WHV_REGISTER_NAME = 12324i32;
553 pub const WHvX64RegisterApicIrr5: WHV_REGISTER_NAME = 12325i32;
554 pub const WHvX64RegisterApicIrr6: WHV_REGISTER_NAME = 12326i32;
555 pub const WHvX64RegisterApicIrr7: WHV_REGISTER_NAME = 12327i32;
556 pub const WHvX64RegisterApicIsr0: WHV_REGISTER_NAME = 12304i32;
557 pub const WHvX64RegisterApicIsr1: WHV_REGISTER_NAME = 12305i32;
558 pub const WHvX64RegisterApicIsr2: WHV_REGISTER_NAME = 12306i32;
559 pub const WHvX64RegisterApicIsr3: WHV_REGISTER_NAME = 12307i32;
560 pub const WHvX64RegisterApicIsr4: WHV_REGISTER_NAME = 12308i32;
561 pub const WHvX64RegisterApicIsr5: WHV_REGISTER_NAME = 12309i32;
562 pub const WHvX64RegisterApicIsr6: WHV_REGISTER_NAME = 12310i32;
563 pub const WHvX64RegisterApicIsr7: WHV_REGISTER_NAME = 12311i32;
564 pub const WHvX64RegisterApicLdr: WHV_REGISTER_NAME = 12301i32;
565 pub const WHvX64RegisterApicLvtError: WHV_REGISTER_NAME = 12343i32;
566 pub const WHvX64RegisterApicLvtLint0: WHV_REGISTER_NAME = 12341i32;
567 pub const WHvX64RegisterApicLvtLint1: WHV_REGISTER_NAME = 12342i32;
568 pub const WHvX64RegisterApicLvtPerfmon: WHV_REGISTER_NAME = 12340i32;
569 pub const WHvX64RegisterApicLvtThermal: WHV_REGISTER_NAME = 12339i32;
570 pub const WHvX64RegisterApicLvtTimer: WHV_REGISTER_NAME = 12338i32;
571 pub const WHvX64RegisterApicPpr: WHV_REGISTER_NAME = 12298i32;
572 pub const WHvX64RegisterApicSelfIpi: WHV_REGISTER_NAME = 12351i32;
573 pub const WHvX64RegisterApicSpurious: WHV_REGISTER_NAME = 12303i32;
574 pub const WHvX64RegisterApicTmr0: WHV_REGISTER_NAME = 12312i32;
575 pub const WHvX64RegisterApicTmr1: WHV_REGISTER_NAME = 12313i32;
576 pub const WHvX64RegisterApicTmr2: WHV_REGISTER_NAME = 12314i32;
577 pub const WHvX64RegisterApicTmr3: WHV_REGISTER_NAME = 12315i32;
578 pub const WHvX64RegisterApicTmr4: WHV_REGISTER_NAME = 12316i32;
579 pub const WHvX64RegisterApicTmr5: WHV_REGISTER_NAME = 12317i32;
580 pub const WHvX64RegisterApicTmr6: WHV_REGISTER_NAME = 12318i32;
581 pub const WHvX64RegisterApicTmr7: WHV_REGISTER_NAME = 12319i32;
582 pub const WHvX64RegisterApicTpr: WHV_REGISTER_NAME = 12296i32;
583 pub const WHvX64RegisterApicVersion: WHV_REGISTER_NAME = 12291i32;
584 pub const WHvX64RegisterBndcfgs: WHV_REGISTER_NAME = 8316i32;
585 pub const WHvX64RegisterCr0: WHV_REGISTER_NAME = 28i32;
586 pub const WHvX64RegisterCr2: WHV_REGISTER_NAME = 29i32;
587 pub const WHvX64RegisterCr3: WHV_REGISTER_NAME = 30i32;
588 pub const WHvX64RegisterCr4: WHV_REGISTER_NAME = 31i32;
589 pub const WHvX64RegisterCr8: WHV_REGISTER_NAME = 32i32;
590 pub const WHvX64RegisterCs: WHV_REGISTER_NAME = 19i32;
591 pub const WHvX64RegisterCstar: WHV_REGISTER_NAME = 8202i32;
592 pub const WHvX64RegisterDeliverabilityNotifications: WHV_REGISTER_NAME = -2147483644i32;
593 pub const WHvX64RegisterDr0: WHV_REGISTER_NAME = 33i32;
594 pub const WHvX64RegisterDr1: WHV_REGISTER_NAME = 34i32;
595 pub const WHvX64RegisterDr2: WHV_REGISTER_NAME = 35i32;
596 pub const WHvX64RegisterDr3: WHV_REGISTER_NAME = 36i32;
597 pub const WHvX64RegisterDr6: WHV_REGISTER_NAME = 37i32;
598 pub const WHvX64RegisterDr7: WHV_REGISTER_NAME = 38i32;
599 pub const WHvX64RegisterDs: WHV_REGISTER_NAME = 21i32;
600 pub const WHvX64RegisterEfer: WHV_REGISTER_NAME = 8193i32;
601 pub const WHvX64RegisterEs: WHV_REGISTER_NAME = 18i32;
602 pub const WHvX64RegisterFpControlStatus: WHV_REGISTER_NAME = 4120i32;
603 pub const WHvX64RegisterFpMmx0: WHV_REGISTER_NAME = 4112i32;
604 pub const WHvX64RegisterFpMmx1: WHV_REGISTER_NAME = 4113i32;
605 pub const WHvX64RegisterFpMmx2: WHV_REGISTER_NAME = 4114i32;
606 pub const WHvX64RegisterFpMmx3: WHV_REGISTER_NAME = 4115i32;
607 pub const WHvX64RegisterFpMmx4: WHV_REGISTER_NAME = 4116i32;
608 pub const WHvX64RegisterFpMmx5: WHV_REGISTER_NAME = 4117i32;
609 pub const WHvX64RegisterFpMmx6: WHV_REGISTER_NAME = 4118i32;
610 pub const WHvX64RegisterFpMmx7: WHV_REGISTER_NAME = 4119i32;
611 pub const WHvX64RegisterFs: WHV_REGISTER_NAME = 22i32;
612 pub const WHvX64RegisterGdtr: WHV_REGISTER_NAME = 27i32;
613 pub const WHvX64RegisterGs: WHV_REGISTER_NAME = 23i32;
614 pub const WHvX64RegisterHypercall: WHV_REGISTER_NAME = 20481i32;
615 pub const WHvX64RegisterIdtr: WHV_REGISTER_NAME = 26i32;
616 pub const WHvX64RegisterInitialApicId: WHV_REGISTER_NAME = 8204i32;
617 pub const WHvX64RegisterInterruptSspTableAddr: WHV_REGISTER_NAME = 8339i32;
618 pub const WHvX64RegisterKernelGsBase: WHV_REGISTER_NAME = 8194i32;
619 pub const WHvX64RegisterLdtr: WHV_REGISTER_NAME = 24i32;
620 pub const WHvX64RegisterLstar: WHV_REGISTER_NAME = 8201i32;
621 pub const WHvX64RegisterMCount: WHV_REGISTER_NAME = 8318i32;
622 pub const WHvX64RegisterMsrMtrrCap: WHV_REGISTER_NAME = 8205i32;
623 pub const WHvX64RegisterMsrMtrrDefType: WHV_REGISTER_NAME = 8206i32;
624 pub const WHvX64RegisterMsrMtrrFix16k80000: WHV_REGISTER_NAME = 8305i32;
625 pub const WHvX64RegisterMsrMtrrFix16kA0000: WHV_REGISTER_NAME = 8306i32;
626 pub const WHvX64RegisterMsrMtrrFix4kC0000: WHV_REGISTER_NAME = 8307i32;
627 pub const WHvX64RegisterMsrMtrrFix4kC8000: WHV_REGISTER_NAME = 8308i32;
628 pub const WHvX64RegisterMsrMtrrFix4kD0000: WHV_REGISTER_NAME = 8309i32;
629 pub const WHvX64RegisterMsrMtrrFix4kD8000: WHV_REGISTER_NAME = 8310i32;
630 pub const WHvX64RegisterMsrMtrrFix4kE0000: WHV_REGISTER_NAME = 8311i32;
631 pub const WHvX64RegisterMsrMtrrFix4kE8000: WHV_REGISTER_NAME = 8312i32;
632 pub const WHvX64RegisterMsrMtrrFix4kF0000: WHV_REGISTER_NAME = 8313i32;
633 pub const WHvX64RegisterMsrMtrrFix4kF8000: WHV_REGISTER_NAME = 8314i32;
634 pub const WHvX64RegisterMsrMtrrFix64k00000: WHV_REGISTER_NAME = 8304i32;
635 pub const WHvX64RegisterMsrMtrrPhysBase0: WHV_REGISTER_NAME = 8208i32;
636 pub const WHvX64RegisterMsrMtrrPhysBase1: WHV_REGISTER_NAME = 8209i32;
637 pub const WHvX64RegisterMsrMtrrPhysBase2: WHV_REGISTER_NAME = 8210i32;
638 pub const WHvX64RegisterMsrMtrrPhysBase3: WHV_REGISTER_NAME = 8211i32;
639 pub const WHvX64RegisterMsrMtrrPhysBase4: WHV_REGISTER_NAME = 8212i32;
640 pub const WHvX64RegisterMsrMtrrPhysBase5: WHV_REGISTER_NAME = 8213i32;
641 pub const WHvX64RegisterMsrMtrrPhysBase6: WHV_REGISTER_NAME = 8214i32;
642 pub const WHvX64RegisterMsrMtrrPhysBase7: WHV_REGISTER_NAME = 8215i32;
643 pub const WHvX64RegisterMsrMtrrPhysBase8: WHV_REGISTER_NAME = 8216i32;
644 pub const WHvX64RegisterMsrMtrrPhysBase9: WHV_REGISTER_NAME = 8217i32;
645 pub const WHvX64RegisterMsrMtrrPhysBaseA: WHV_REGISTER_NAME = 8218i32;
646 pub const WHvX64RegisterMsrMtrrPhysBaseB: WHV_REGISTER_NAME = 8219i32;
647 pub const WHvX64RegisterMsrMtrrPhysBaseC: WHV_REGISTER_NAME = 8220i32;
648 pub const WHvX64RegisterMsrMtrrPhysBaseD: WHV_REGISTER_NAME = 8221i32;
649 pub const WHvX64RegisterMsrMtrrPhysBaseE: WHV_REGISTER_NAME = 8222i32;
650 pub const WHvX64RegisterMsrMtrrPhysBaseF: WHV_REGISTER_NAME = 8223i32;
651 pub const WHvX64RegisterMsrMtrrPhysMask0: WHV_REGISTER_NAME = 8256i32;
652 pub const WHvX64RegisterMsrMtrrPhysMask1: WHV_REGISTER_NAME = 8257i32;
653 pub const WHvX64RegisterMsrMtrrPhysMask2: WHV_REGISTER_NAME = 8258i32;
654 pub const WHvX64RegisterMsrMtrrPhysMask3: WHV_REGISTER_NAME = 8259i32;
655 pub const WHvX64RegisterMsrMtrrPhysMask4: WHV_REGISTER_NAME = 8260i32;
656 pub const WHvX64RegisterMsrMtrrPhysMask5: WHV_REGISTER_NAME = 8261i32;
657 pub const WHvX64RegisterMsrMtrrPhysMask6: WHV_REGISTER_NAME = 8262i32;
658 pub const WHvX64RegisterMsrMtrrPhysMask7: WHV_REGISTER_NAME = 8263i32;
659 pub const WHvX64RegisterMsrMtrrPhysMask8: WHV_REGISTER_NAME = 8264i32;
660 pub const WHvX64RegisterMsrMtrrPhysMask9: WHV_REGISTER_NAME = 8265i32;
661 pub const WHvX64RegisterMsrMtrrPhysMaskA: WHV_REGISTER_NAME = 8266i32;
662 pub const WHvX64RegisterMsrMtrrPhysMaskB: WHV_REGISTER_NAME = 8267i32;
663 pub const WHvX64RegisterMsrMtrrPhysMaskC: WHV_REGISTER_NAME = 8268i32;
664 pub const WHvX64RegisterMsrMtrrPhysMaskD: WHV_REGISTER_NAME = 8269i32;
665 pub const WHvX64RegisterMsrMtrrPhysMaskE: WHV_REGISTER_NAME = 8270i32;
666 pub const WHvX64RegisterMsrMtrrPhysMaskF: WHV_REGISTER_NAME = 8271i32;
667 pub const WHvX64RegisterPat: WHV_REGISTER_NAME = 8196i32;
668 pub const WHvX64RegisterPendingDebugException: WHV_REGISTER_NAME = -2147483642i32;
669 pub const WHvX64RegisterPl0Ssp: WHV_REGISTER_NAME = 8335i32;
670 pub const WHvX64RegisterPl1Ssp: WHV_REGISTER_NAME = 8336i32;
671 pub const WHvX64RegisterPl2Ssp: WHV_REGISTER_NAME = 8337i32;
672 pub const WHvX64RegisterPl3Ssp: WHV_REGISTER_NAME = 8338i32;
673 pub const WHvX64RegisterPredCmd: WHV_REGISTER_NAME = 8325i32;
674 pub const WHvX64RegisterR10: WHV_REGISTER_NAME = 10i32;
675 pub const WHvX64RegisterR11: WHV_REGISTER_NAME = 11i32;
676 pub const WHvX64RegisterR12: WHV_REGISTER_NAME = 12i32;
677 pub const WHvX64RegisterR13: WHV_REGISTER_NAME = 13i32;
678 pub const WHvX64RegisterR14: WHV_REGISTER_NAME = 14i32;
679 pub const WHvX64RegisterR15: WHV_REGISTER_NAME = 15i32;
680 pub const WHvX64RegisterR8: WHV_REGISTER_NAME = 8i32;
681 pub const WHvX64RegisterR9: WHV_REGISTER_NAME = 9i32;
682 pub const WHvX64RegisterRax: WHV_REGISTER_NAME = 0i32;
683 pub const WHvX64RegisterRbp: WHV_REGISTER_NAME = 5i32;
684 pub const WHvX64RegisterRbx: WHV_REGISTER_NAME = 3i32;
685 pub const WHvX64RegisterRcx: WHV_REGISTER_NAME = 1i32;
686 pub const WHvX64RegisterRdi: WHV_REGISTER_NAME = 7i32;
687 pub const WHvX64RegisterRdx: WHV_REGISTER_NAME = 2i32;
688 pub const WHvX64RegisterRflags: WHV_REGISTER_NAME = 17i32;
689 pub const WHvX64RegisterRip: WHV_REGISTER_NAME = 16i32;
690 pub const WHvX64RegisterRsi: WHV_REGISTER_NAME = 6i32;
691 pub const WHvX64RegisterRsp: WHV_REGISTER_NAME = 4i32;
692 pub const WHvX64RegisterSCet: WHV_REGISTER_NAME = 8333i32;
693 pub const WHvX64RegisterSfmask: WHV_REGISTER_NAME = 8203i32;
694 pub const WHvX64RegisterSpecCtrl: WHV_REGISTER_NAME = 8324i32;
695 pub const WHvX64RegisterSs: WHV_REGISTER_NAME = 20i32;
696 pub const WHvX64RegisterSsp: WHV_REGISTER_NAME = 8334i32;
697 pub const WHvX64RegisterStar: WHV_REGISTER_NAME = 8200i32;
698 pub const WHvX64RegisterSysenterCs: WHV_REGISTER_NAME = 8197i32;
699 pub const WHvX64RegisterSysenterEip: WHV_REGISTER_NAME = 8198i32;
700 pub const WHvX64RegisterSysenterEsp: WHV_REGISTER_NAME = 8199i32;
701 pub const WHvX64RegisterTr: WHV_REGISTER_NAME = 25i32;
702 pub const WHvX64RegisterTsc: WHV_REGISTER_NAME = 8192i32;
703 pub const WHvX64RegisterTscAdjust: WHV_REGISTER_NAME = 8342i32;
704 pub const WHvX64RegisterTscAux: WHV_REGISTER_NAME = 8315i32;
705 pub const WHvX64RegisterTscDeadline: WHV_REGISTER_NAME = 8341i32;
706 pub const WHvX64RegisterTscVirtualOffset: WHV_REGISTER_NAME = 8327i32;
707 pub const WHvX64RegisterTsxCtrl: WHV_REGISTER_NAME = 8328i32;
708 pub const WHvX64RegisterUCet: WHV_REGISTER_NAME = 8332i32;
709 pub const WHvX64RegisterUmwaitControl: WHV_REGISTER_NAME = 8344i32;
710 pub const WHvX64RegisterVirtualCr0: WHV_REGISTER_NAME = 40i32;
711 pub const WHvX64RegisterVirtualCr3: WHV_REGISTER_NAME = 41i32;
712 pub const WHvX64RegisterVirtualCr4: WHV_REGISTER_NAME = 42i32;
713 pub const WHvX64RegisterVirtualCr8: WHV_REGISTER_NAME = 43i32;
714 pub const WHvX64RegisterXCr0: WHV_REGISTER_NAME = 39i32;
715 pub const WHvX64RegisterXfd: WHV_REGISTER_NAME = 8345i32;
716 pub const WHvX64RegisterXfdErr: WHV_REGISTER_NAME = 8346i32;
717 pub const WHvX64RegisterXmm0: WHV_REGISTER_NAME = 4096i32;
718 pub const WHvX64RegisterXmm1: WHV_REGISTER_NAME = 4097i32;
719 pub const WHvX64RegisterXmm10: WHV_REGISTER_NAME = 4106i32;
720 pub const WHvX64RegisterXmm11: WHV_REGISTER_NAME = 4107i32;
721 pub const WHvX64RegisterXmm12: WHV_REGISTER_NAME = 4108i32;
722 pub const WHvX64RegisterXmm13: WHV_REGISTER_NAME = 4109i32;
723 pub const WHvX64RegisterXmm14: WHV_REGISTER_NAME = 4110i32;
724 pub const WHvX64RegisterXmm15: WHV_REGISTER_NAME = 4111i32;
725 pub const WHvX64RegisterXmm2: WHV_REGISTER_NAME = 4098i32;
726 pub const WHvX64RegisterXmm3: WHV_REGISTER_NAME = 4099i32;
727 pub const WHvX64RegisterXmm4: WHV_REGISTER_NAME = 4100i32;
728 pub const WHvX64RegisterXmm5: WHV_REGISTER_NAME = 4101i32;
729 pub const WHvX64RegisterXmm6: WHV_REGISTER_NAME = 4102i32;
730 pub const WHvX64RegisterXmm7: WHV_REGISTER_NAME = 4103i32;
731 pub const WHvX64RegisterXmm8: WHV_REGISTER_NAME = 4104i32;
732 pub const WHvX64RegisterXmm9: WHV_REGISTER_NAME = 4105i32;
733 pub const WHvX64RegisterXmmControlStatus: WHV_REGISTER_NAME = 4121i32;
734 pub const WHvX64RegisterXss: WHV_REGISTER_NAME = 8331i32;
735 pub const X64_RegisterCr0: REGISTER_ID = 44i32;
736 pub const X64_RegisterCr2: REGISTER_ID = 45i32;
737 pub const X64_RegisterCr3: REGISTER_ID = 46i32;
738 pub const X64_RegisterCr4: REGISTER_ID = 47i32;
739 pub const X64_RegisterCr8: REGISTER_ID = 48i32;
740 pub const X64_RegisterCs: REGISTER_ID = 57i32;
741 pub const X64_RegisterDr0: REGISTER_ID = 50i32;
742 pub const X64_RegisterDr1: REGISTER_ID = 51i32;
743 pub const X64_RegisterDr2: REGISTER_ID = 52i32;
744 pub const X64_RegisterDr3: REGISTER_ID = 53i32;
745 pub const X64_RegisterDr6: REGISTER_ID = 54i32;
746 pub const X64_RegisterDr7: REGISTER_ID = 55i32;
747 pub const X64_RegisterDs: REGISTER_ID = 59i32;
748 pub const X64_RegisterEfer: REGISTER_ID = 49i32;
749 pub const X64_RegisterEs: REGISTER_ID = 56i32;
750 pub const X64_RegisterFpControlStatus: REGISTER_ID = 42i32;
751 pub const X64_RegisterFpMmx0: REGISTER_ID = 34i32;
752 pub const X64_RegisterFpMmx1: REGISTER_ID = 35i32;
753 pub const X64_RegisterFpMmx2: REGISTER_ID = 36i32;
754 pub const X64_RegisterFpMmx3: REGISTER_ID = 37i32;
755 pub const X64_RegisterFpMmx4: REGISTER_ID = 38i32;
756 pub const X64_RegisterFpMmx5: REGISTER_ID = 39i32;
757 pub const X64_RegisterFpMmx6: REGISTER_ID = 40i32;
758 pub const X64_RegisterFpMmx7: REGISTER_ID = 41i32;
759 pub const X64_RegisterFs: REGISTER_ID = 60i32;
760 pub const X64_RegisterGdtr: REGISTER_ID = 65i32;
761 pub const X64_RegisterGs: REGISTER_ID = 61i32;
762 pub const X64_RegisterIdtr: REGISTER_ID = 64i32;
763 pub const X64_RegisterLdtr: REGISTER_ID = 62i32;
764 pub const X64_RegisterMax: REGISTER_ID = 66i32;
765 pub const X64_RegisterR10: REGISTER_ID = 10i32;
766 pub const X64_RegisterR11: REGISTER_ID = 11i32;
767 pub const X64_RegisterR12: REGISTER_ID = 12i32;
768 pub const X64_RegisterR13: REGISTER_ID = 13i32;
769 pub const X64_RegisterR14: REGISTER_ID = 14i32;
770 pub const X64_RegisterR15: REGISTER_ID = 15i32;
771 pub const X64_RegisterR8: REGISTER_ID = 8i32;
772 pub const X64_RegisterR9: REGISTER_ID = 9i32;
773 pub const X64_RegisterRFlags: REGISTER_ID = 17i32;
774 pub const X64_RegisterRax: REGISTER_ID = 0i32;
775 pub const X64_RegisterRbp: REGISTER_ID = 5i32;
776 pub const X64_RegisterRbx: REGISTER_ID = 3i32;
777 pub const X64_RegisterRcx: REGISTER_ID = 1i32;
778 pub const X64_RegisterRdi: REGISTER_ID = 7i32;
779 pub const X64_RegisterRdx: REGISTER_ID = 2i32;
780 pub const X64_RegisterRip: REGISTER_ID = 16i32;
781 pub const X64_RegisterRsi: REGISTER_ID = 6i32;
782 pub const X64_RegisterRsp: REGISTER_ID = 4i32;
783 pub const X64_RegisterSs: REGISTER_ID = 58i32;
784 pub const X64_RegisterTr: REGISTER_ID = 63i32;
785 pub const X64_RegisterXmm0: REGISTER_ID = 18i32;
786 pub const X64_RegisterXmm1: REGISTER_ID = 19i32;
787 pub const X64_RegisterXmm10: REGISTER_ID = 28i32;
788 pub const X64_RegisterXmm11: REGISTER_ID = 29i32;
789 pub const X64_RegisterXmm12: REGISTER_ID = 30i32;
790 pub const X64_RegisterXmm13: REGISTER_ID = 31i32;
791 pub const X64_RegisterXmm14: REGISTER_ID = 32i32;
792 pub const X64_RegisterXmm15: REGISTER_ID = 33i32;
793 pub const X64_RegisterXmm2: REGISTER_ID = 20i32;
794 pub const X64_RegisterXmm3: REGISTER_ID = 21i32;
795 pub const X64_RegisterXmm4: REGISTER_ID = 22i32;
796 pub const X64_RegisterXmm5: REGISTER_ID = 23i32;
797 pub const X64_RegisterXmm6: REGISTER_ID = 24i32;
798 pub const X64_RegisterXmm7: REGISTER_ID = 25i32;
799 pub const X64_RegisterXmm8: REGISTER_ID = 26i32;
800 pub const X64_RegisterXmm9: REGISTER_ID = 27i32;
801 pub const X64_RegisterXmmControlStatus: REGISTER_ID = 43i32;
802 pub type GUEST_OS_MICROSOFT_IDS = i32;
803 pub type GUEST_OS_OPENSOURCE_IDS = i32;
804 pub type GUEST_OS_VENDOR = i32;
805 pub type HDV_DEVICE_HOST_FLAGS = i32;
806 pub type HDV_DEVICE_TYPE = i32;
807 pub type HDV_DOORBELL_FLAGS = i32;
808 pub type HDV_MMIO_MAPPING_FLAGS = i32;
809 pub type HDV_PCI_BAR_SELECTOR = i32;
810 pub type HDV_PCI_INTERFACE_VERSION = i32;
811 pub type PAGING_MODE = i32;
812 pub type REGISTER_ID = i32;
813 pub type VIRTUAL_PROCESSOR_ARCH = i32;
814 pub type VIRTUAL_PROCESSOR_VENDOR = i32;
815 pub type WHV_ADVISE_GPA_RANGE_CODE = i32;
816 pub type WHV_ALLOCATE_VPCI_RESOURCE_FLAGS = i32;
817 pub type WHV_CACHE_TYPE = i32;
818 pub type WHV_CAPABILITY_CODE = i32;
819 pub type WHV_CREATE_VPCI_DEVICE_FLAGS = i32;
820 pub type WHV_EXCEPTION_TYPE = i32;
821 pub type WHV_INTERRUPT_DESTINATION_MODE = i32;
822 pub type WHV_INTERRUPT_TRIGGER_MODE = i32;
823 pub type WHV_INTERRUPT_TYPE = i32;
824 pub type WHV_MAP_GPA_RANGE_FLAGS = i32;
825 pub type WHV_MEMORY_ACCESS_TYPE = i32;
826 pub type WHV_MSR_ACTION = i32;
827 pub type WHV_NOTIFICATION_PORT_PROPERTY_CODE = i32;
828 pub type WHV_NOTIFICATION_PORT_TYPE = i32;
829 pub type WHV_PARTITION_COUNTER_SET = i32;
830 pub type WHV_PARTITION_PROPERTY_CODE = i32;
831 pub type WHV_PROCESSOR_COUNTER_SET = i32;
832 pub type WHV_PROCESSOR_VENDOR = i32;
833 pub type WHV_REGISTER_NAME = i32;
834 pub type WHV_RUN_VP_CANCEL_REASON = i32;
835 pub type WHV_RUN_VP_EXIT_REASON = i32;
836 pub type WHV_TRANSLATE_GVA_FLAGS = i32;
837 pub type WHV_TRANSLATE_GVA_RESULT_CODE = i32;
838 pub type WHV_TRIGGER_TYPE = i32;
839 pub type WHV_VIRTUAL_PROCESSOR_PROPERTY_CODE = i32;
840 pub type WHV_VIRTUAL_PROCESSOR_STATE_TYPE = i32;
841 pub type WHV_VPCI_DEVICE_NOTIFICATION_TYPE = i32;
842 pub type WHV_VPCI_DEVICE_PROPERTY_CODE = i32;
843 pub type WHV_VPCI_DEVICE_REGISTER_SPACE = i32;
844 pub type WHV_VPCI_INTERRUPT_TARGET_FLAGS = i32;
845 pub type WHV_VPCI_MMIO_RANGE_FLAGS = i32;
846 pub type WHV_X64_APIC_WRITE_TYPE = i32;
847 pub type WHV_X64_CPUID_RESULT2_FLAGS = i32;
848 pub type WHV_X64_LOCAL_APIC_EMULATION_MODE = i32;
849 pub type WHV_X64_PENDING_EVENT_TYPE = i32;
850 pub type WHV_X64_PENDING_INTERRUPTION_TYPE = i32;
851 pub type WHV_X64_UNSUPPORTED_FEATURE_CODE = i32;
852 #[repr(C)]
853 pub struct DOS_IMAGE_INFO {
854 pub PdbName: ::windows_sys::core::PCSTR,
855 pub ImageBaseAddress: u64,
856 pub ImageSize: u32,
857 pub Timestamp: u32,
858 }
859 impl ::core::marker::Copy for DOS_IMAGE_INFO {}
860 impl ::core::clone::Clone for DOS_IMAGE_INFO {
861 fn clone(&self) -> Self {
862 *self
863 }
864 }
865 #[repr(C)]
866 pub struct GPA_MEMORY_CHUNK {
867 pub GuestPhysicalStartPageIndex: u64,
868 pub PageCount: u64,
869 }
870 impl ::core::marker::Copy for GPA_MEMORY_CHUNK {}
871 impl ::core::clone::Clone for GPA_MEMORY_CHUNK {
872 fn clone(&self) -> Self {
873 *self
874 }
875 }
876 #[repr(C)]
877 pub union GUEST_OS_INFO {
878 pub AsUINT64: u64,
879 pub ClosedSource: GUEST_OS_INFO_0,
880 pub OpenSource: GUEST_OS_INFO_1,
881 }
882 impl ::core::marker::Copy for GUEST_OS_INFO {}
883 impl ::core::clone::Clone for GUEST_OS_INFO {
884 fn clone(&self) -> Self {
885 *self
886 }
887 }
888 #[repr(C)]
889 pub struct GUEST_OS_INFO_0 {
890 pub _bitfield: u64,
891 }
892 impl ::core::marker::Copy for GUEST_OS_INFO_0 {}
893 impl ::core::clone::Clone for GUEST_OS_INFO_0 {
894 fn clone(&self) -> Self {
895 *self
896 }
897 }
898 #[repr(C)]
899 pub struct GUEST_OS_INFO_1 {
900 pub _bitfield: u64,
901 }
902 impl ::core::marker::Copy for GUEST_OS_INFO_1 {}
903 impl ::core::clone::Clone for GUEST_OS_INFO_1 {
904 fn clone(&self) -> Self {
905 *self
906 }
907 }
908 #[repr(C)]
909 pub struct HDV_PCI_DEVICE_INTERFACE {
910 pub Version: HDV_PCI_INTERFACE_VERSION,
911 pub Initialize: HDV_PCI_DEVICE_INITIALIZE,
912 pub Teardown: HDV_PCI_DEVICE_TEARDOWN,
913 pub SetConfiguration: HDV_PCI_DEVICE_SET_CONFIGURATION,
914 pub GetDetails: HDV_PCI_DEVICE_GET_DETAILS,
915 pub Start: HDV_PCI_DEVICE_START,
916 pub Stop: HDV_PCI_DEVICE_STOP,
917 pub ReadConfigSpace: HDV_PCI_READ_CONFIG_SPACE,
918 pub WriteConfigSpace: HDV_PCI_WRITE_CONFIG_SPACE,
919 pub ReadInterceptedMemory: HDV_PCI_READ_INTERCEPTED_MEMORY,
920 pub WriteInterceptedMemory: HDV_PCI_WRITE_INTERCEPTED_MEMORY,
921 }
922 impl ::core::marker::Copy for HDV_PCI_DEVICE_INTERFACE {}
923 impl ::core::clone::Clone for HDV_PCI_DEVICE_INTERFACE {
924 fn clone(&self) -> Self {
925 *self
926 }
927 }
928 #[repr(C)]
929 pub struct HDV_PCI_PNP_ID {
930 pub VendorID: u16,
931 pub DeviceID: u16,
932 pub RevisionID: u8,
933 pub ProgIf: u8,
934 pub SubClass: u8,
935 pub BaseClass: u8,
936 pub SubVendorID: u16,
937 pub SubSystemID: u16,
938 }
939 impl ::core::marker::Copy for HDV_PCI_PNP_ID {}
940 impl ::core::clone::Clone for HDV_PCI_PNP_ID {
941 fn clone(&self) -> Self {
942 *self
943 }
944 }
945 #[repr(C)]
946 pub struct HVSOCKET_ADDRESS_INFO {
947 pub SystemId: ::windows_sys::core::GUID,
948 pub VirtualMachineId: ::windows_sys::core::GUID,
949 pub SiloId: ::windows_sys::core::GUID,
950 pub Flags: u32,
951 }
952 impl ::core::marker::Copy for HVSOCKET_ADDRESS_INFO {}
953 impl ::core::clone::Clone for HVSOCKET_ADDRESS_INFO {
954 fn clone(&self) -> Self {
955 *self
956 }
957 }
958 #[repr(C)]
959 pub struct MODULE_INFO {
960 pub ProcessImageName: ::windows_sys::core::PCSTR,
961 pub Image: DOS_IMAGE_INFO,
962 }
963 impl ::core::marker::Copy for MODULE_INFO {}
964 impl ::core::clone::Clone for MODULE_INFO {
965 fn clone(&self) -> Self {
966 *self
967 }
968 }
969 #[repr(C)]
970 #[doc = "Required features: `\"Win32_Networking_WinSock\"`"]
971 #[cfg(feature = "Win32_Networking_WinSock")]
972 pub struct SOCKADDR_HV {
973 pub Family: super::super::Networking::WinSock::ADDRESS_FAMILY,
974 pub Reserved: u16,
975 pub VmId: ::windows_sys::core::GUID,
976 pub ServiceId: ::windows_sys::core::GUID,
977 }
978 #[cfg(feature = "Win32_Networking_WinSock")]
979 impl ::core::marker::Copy for SOCKADDR_HV {}
980 #[cfg(feature = "Win32_Networking_WinSock")]
981 impl ::core::clone::Clone for SOCKADDR_HV {
982 fn clone(&self) -> Self {
983 *self
984 }
985 }
986 #[repr(C)]
987 pub union VIRTUAL_PROCESSOR_REGISTER {
988 pub Reg64: u64,
989 pub Reg32: u32,
990 pub Reg16: u16,
991 pub Reg8: u8,
992 pub Reg128: VIRTUAL_PROCESSOR_REGISTER_0,
993 pub X64: VIRTUAL_PROCESSOR_REGISTER_1,
994 }
995 impl ::core::marker::Copy for VIRTUAL_PROCESSOR_REGISTER {}
996 impl ::core::clone::Clone for VIRTUAL_PROCESSOR_REGISTER {
997 fn clone(&self) -> Self {
998 *self
999 }
1000 }
1001 #[repr(C)]
1002 pub struct VIRTUAL_PROCESSOR_REGISTER_0 {
1003 pub Low64: u64,
1004 pub High64: u64,
1005 }
1006 impl ::core::marker::Copy for VIRTUAL_PROCESSOR_REGISTER_0 {}
1007 impl ::core::clone::Clone for VIRTUAL_PROCESSOR_REGISTER_0 {
1008 fn clone(&self) -> Self {
1009 *self
1010 }
1011 }
1012 #[repr(C)]
1013 pub union VIRTUAL_PROCESSOR_REGISTER_1 {
1014 pub Segment: VIRTUAL_PROCESSOR_REGISTER_1_1,
1015 pub Table: VIRTUAL_PROCESSOR_REGISTER_1_2,
1016 pub FpControlStatus: VIRTUAL_PROCESSOR_REGISTER_1_0,
1017 pub XmmControlStatus: VIRTUAL_PROCESSOR_REGISTER_1_3,
1018 }
1019 impl ::core::marker::Copy for VIRTUAL_PROCESSOR_REGISTER_1 {}
1020 impl ::core::clone::Clone for VIRTUAL_PROCESSOR_REGISTER_1 {
1021 fn clone(&self) -> Self {
1022 *self
1023 }
1024 }
1025 #[repr(C)]
1026 pub struct VIRTUAL_PROCESSOR_REGISTER_1_0 {
1027 pub FpControl: u16,
1028 pub FpStatus: u16,
1029 pub FpTag: u8,
1030 pub Reserved: u8,
1031 pub LastFpOp: u16,
1032 pub Anonymous: VIRTUAL_PROCESSOR_REGISTER_1_0_0,
1033 }
1034 impl ::core::marker::Copy for VIRTUAL_PROCESSOR_REGISTER_1_0 {}
1035 impl ::core::clone::Clone for VIRTUAL_PROCESSOR_REGISTER_1_0 {
1036 fn clone(&self) -> Self {
1037 *self
1038 }
1039 }
1040 #[repr(C)]
1041 pub union VIRTUAL_PROCESSOR_REGISTER_1_0_0 {
1042 pub LastFpRip: u64,
1043 pub Anonymous: VIRTUAL_PROCESSOR_REGISTER_1_0_0_0,
1044 }
1045 impl ::core::marker::Copy for VIRTUAL_PROCESSOR_REGISTER_1_0_0 {}
1046 impl ::core::clone::Clone for VIRTUAL_PROCESSOR_REGISTER_1_0_0 {
1047 fn clone(&self) -> Self {
1048 *self
1049 }
1050 }
1051 #[repr(C)]
1052 pub struct VIRTUAL_PROCESSOR_REGISTER_1_0_0_0 {
1053 pub LastFpEip: u32,
1054 pub LastFpCs: u16,
1055 }
1056 impl ::core::marker::Copy for VIRTUAL_PROCESSOR_REGISTER_1_0_0_0 {}
1057 impl ::core::clone::Clone for VIRTUAL_PROCESSOR_REGISTER_1_0_0_0 {
1058 fn clone(&self) -> Self {
1059 *self
1060 }
1061 }
1062 #[repr(C)]
1063 pub struct VIRTUAL_PROCESSOR_REGISTER_1_1 {
1064 pub Base: u64,
1065 pub Limit: u32,
1066 pub Selector: u16,
1067 pub Anonymous: VIRTUAL_PROCESSOR_REGISTER_1_1_0,
1068 }
1069 impl ::core::marker::Copy for VIRTUAL_PROCESSOR_REGISTER_1_1 {}
1070 impl ::core::clone::Clone for VIRTUAL_PROCESSOR_REGISTER_1_1 {
1071 fn clone(&self) -> Self {
1072 *self
1073 }
1074 }
1075 #[repr(C)]
1076 pub union VIRTUAL_PROCESSOR_REGISTER_1_1_0 {
1077 pub Attributes: u16,
1078 pub Anonymous: VIRTUAL_PROCESSOR_REGISTER_1_1_0_0,
1079 }
1080 impl ::core::marker::Copy for VIRTUAL_PROCESSOR_REGISTER_1_1_0 {}
1081 impl ::core::clone::Clone for VIRTUAL_PROCESSOR_REGISTER_1_1_0 {
1082 fn clone(&self) -> Self {
1083 *self
1084 }
1085 }
1086 #[repr(C)]
1087 pub struct VIRTUAL_PROCESSOR_REGISTER_1_1_0_0 {
1088 pub _bitfield: u16,
1089 }
1090 impl ::core::marker::Copy for VIRTUAL_PROCESSOR_REGISTER_1_1_0_0 {}
1091 impl ::core::clone::Clone for VIRTUAL_PROCESSOR_REGISTER_1_1_0_0 {
1092 fn clone(&self) -> Self {
1093 *self
1094 }
1095 }
1096 #[repr(C)]
1097 pub struct VIRTUAL_PROCESSOR_REGISTER_1_2 {
1098 pub Limit: u16,
1099 pub Base: u64,
1100 }
1101 impl ::core::marker::Copy for VIRTUAL_PROCESSOR_REGISTER_1_2 {}
1102 impl ::core::clone::Clone for VIRTUAL_PROCESSOR_REGISTER_1_2 {
1103 fn clone(&self) -> Self {
1104 *self
1105 }
1106 }
1107 #[repr(C)]
1108 pub struct VIRTUAL_PROCESSOR_REGISTER_1_3 {
1109 pub Anonymous: VIRTUAL_PROCESSOR_REGISTER_1_3_0,
1110 pub XmmStatusControl: u32,
1111 pub XmmStatusControlMask: u32,
1112 }
1113 impl ::core::marker::Copy for VIRTUAL_PROCESSOR_REGISTER_1_3 {}
1114 impl ::core::clone::Clone for VIRTUAL_PROCESSOR_REGISTER_1_3 {
1115 fn clone(&self) -> Self {
1116 *self
1117 }
1118 }
1119 #[repr(C)]
1120 pub union VIRTUAL_PROCESSOR_REGISTER_1_3_0 {
1121 pub LastFpRdp: u64,
1122 pub Anonymous: VIRTUAL_PROCESSOR_REGISTER_1_3_0_0,
1123 }
1124 impl ::core::marker::Copy for VIRTUAL_PROCESSOR_REGISTER_1_3_0 {}
1125 impl ::core::clone::Clone for VIRTUAL_PROCESSOR_REGISTER_1_3_0 {
1126 fn clone(&self) -> Self {
1127 *self
1128 }
1129 }
1130 #[repr(C)]
1131 pub struct VIRTUAL_PROCESSOR_REGISTER_1_3_0_0 {
1132 pub LastFpDp: u32,
1133 pub LastFpDs: u16,
1134 }
1135 impl ::core::marker::Copy for VIRTUAL_PROCESSOR_REGISTER_1_3_0_0 {}
1136 impl ::core::clone::Clone for VIRTUAL_PROCESSOR_REGISTER_1_3_0_0 {
1137 fn clone(&self) -> Self {
1138 *self
1139 }
1140 }
1141 #[repr(C)]
1142 pub struct VM_GENCOUNTER {
1143 pub GenerationCount: u64,
1144 pub GenerationCountHigh: u64,
1145 }
1146 impl ::core::marker::Copy for VM_GENCOUNTER {}
1147 impl ::core::clone::Clone for VM_GENCOUNTER {
1148 fn clone(&self) -> Self {
1149 *self
1150 }
1151 }
1152 #[repr(C)]
1153 pub union WHV_ACCESS_GPA_CONTROLS {
1154 pub AsUINT64: u64,
1155 pub Anonymous: WHV_ACCESS_GPA_CONTROLS_0,
1156 }
1157 impl ::core::marker::Copy for WHV_ACCESS_GPA_CONTROLS {}
1158 impl ::core::clone::Clone for WHV_ACCESS_GPA_CONTROLS {
1159 fn clone(&self) -> Self {
1160 *self
1161 }
1162 }
1163 #[repr(C)]
1164 pub struct WHV_ACCESS_GPA_CONTROLS_0 {
1165 pub CacheType: WHV_CACHE_TYPE,
1166 pub Reserved: u32,
1167 }
1168 impl ::core::marker::Copy for WHV_ACCESS_GPA_CONTROLS_0 {}
1169 impl ::core::clone::Clone for WHV_ACCESS_GPA_CONTROLS_0 {
1170 fn clone(&self) -> Self {
1171 *self
1172 }
1173 }
1174 #[repr(C)]
1175 pub union WHV_ADVISE_GPA_RANGE {
1176 pub Populate: WHV_ADVISE_GPA_RANGE_POPULATE,
1177 }
1178 impl ::core::marker::Copy for WHV_ADVISE_GPA_RANGE {}
1179 impl ::core::clone::Clone for WHV_ADVISE_GPA_RANGE {
1180 fn clone(&self) -> Self {
1181 *self
1182 }
1183 }
1184 #[repr(C)]
1185 pub struct WHV_ADVISE_GPA_RANGE_POPULATE {
1186 pub Flags: WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS,
1187 pub AccessType: WHV_MEMORY_ACCESS_TYPE,
1188 }
1189 impl ::core::marker::Copy for WHV_ADVISE_GPA_RANGE_POPULATE {}
1190 impl ::core::clone::Clone for WHV_ADVISE_GPA_RANGE_POPULATE {
1191 fn clone(&self) -> Self {
1192 *self
1193 }
1194 }
1195 #[repr(C)]
1196 pub union WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS {
1197 pub AsUINT32: u32,
1198 pub Anonymous: WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS_0,
1199 }
1200 impl ::core::marker::Copy for WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS {}
1201 impl ::core::clone::Clone for WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS {
1202 fn clone(&self) -> Self {
1203 *self
1204 }
1205 }
1206 #[repr(C)]
1207 pub struct WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS_0 {
1208 pub _bitfield: u32,
1209 }
1210 impl ::core::marker::Copy for WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS_0 {}
1211 impl ::core::clone::Clone for WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS_0 {
1212 fn clone(&self) -> Self {
1213 *self
1214 }
1215 }
1216 #[repr(C)]
1217 #[doc = "Required features: `\"Win32_Foundation\"`"]
1218 #[cfg(feature = "Win32_Foundation")]
1219 pub union WHV_CAPABILITY {
1220 pub HypervisorPresent: super::super::Foundation::BOOL,
1221 pub Features: WHV_CAPABILITY_FEATURES,
1222 pub ExtendedVmExits: WHV_EXTENDED_VM_EXITS,
1223 pub ProcessorVendor: WHV_PROCESSOR_VENDOR,
1224 pub ProcessorFeatures: WHV_PROCESSOR_FEATURES,
1225 pub SyntheticProcessorFeaturesBanks: WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS,
1226 pub ProcessorXsaveFeatures: WHV_PROCESSOR_XSAVE_FEATURES,
1227 pub ProcessorClFlushSize: u8,
1228 pub ExceptionExitBitmap: u64,
1229 pub X64MsrExitBitmap: WHV_X64_MSR_EXIT_BITMAP,
1230 pub ProcessorClockFrequency: u64,
1231 pub InterruptClockFrequency: u64,
1232 pub ProcessorFeaturesBanks: WHV_PROCESSOR_FEATURES_BANKS,
1233 pub GpaRangePopulateFlags: WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS,
1234 pub ProcessorFrequencyCap: WHV_CAPABILITY_PROCESSOR_FREQUENCY_CAP,
1235 pub ProcessorPerfmonFeatures: WHV_PROCESSOR_PERFMON_FEATURES,
1236 pub SchedulerFeatures: WHV_SCHEDULER_FEATURES,
1237 }
1238 #[cfg(feature = "Win32_Foundation")]
1239 impl ::core::marker::Copy for WHV_CAPABILITY {}
1240 #[cfg(feature = "Win32_Foundation")]
1241 impl ::core::clone::Clone for WHV_CAPABILITY {
1242 fn clone(&self) -> Self {
1243 *self
1244 }
1245 }
1246 #[repr(C)]
1247 pub union WHV_CAPABILITY_FEATURES {
1248 pub Anonymous: WHV_CAPABILITY_FEATURES_0,
1249 pub AsUINT64: u64,
1250 }
1251 impl ::core::marker::Copy for WHV_CAPABILITY_FEATURES {}
1252 impl ::core::clone::Clone for WHV_CAPABILITY_FEATURES {
1253 fn clone(&self) -> Self {
1254 *self
1255 }
1256 }
1257 #[repr(C)]
1258 pub struct WHV_CAPABILITY_FEATURES_0 {
1259 pub _bitfield: u64,
1260 }
1261 impl ::core::marker::Copy for WHV_CAPABILITY_FEATURES_0 {}
1262 impl ::core::clone::Clone for WHV_CAPABILITY_FEATURES_0 {
1263 fn clone(&self) -> Self {
1264 *self
1265 }
1266 }
1267 #[repr(C)]
1268 pub struct WHV_CAPABILITY_PROCESSOR_FREQUENCY_CAP {
1269 pub _bitfield: u32,
1270 pub HighestFrequencyMhz: u32,
1271 pub NominalFrequencyMhz: u32,
1272 pub LowestFrequencyMhz: u32,
1273 pub FrequencyStepMhz: u32,
1274 }
1275 impl ::core::marker::Copy for WHV_CAPABILITY_PROCESSOR_FREQUENCY_CAP {}
1276 impl ::core::clone::Clone for WHV_CAPABILITY_PROCESSOR_FREQUENCY_CAP {
1277 fn clone(&self) -> Self {
1278 *self
1279 }
1280 }
1281 #[repr(C)]
1282 pub struct WHV_CPUID_OUTPUT {
1283 pub Eax: u32,
1284 pub Ebx: u32,
1285 pub Ecx: u32,
1286 pub Edx: u32,
1287 }
1288 impl ::core::marker::Copy for WHV_CPUID_OUTPUT {}
1289 impl ::core::clone::Clone for WHV_CPUID_OUTPUT {
1290 fn clone(&self) -> Self {
1291 *self
1292 }
1293 }
1294 #[repr(C)]
1295 pub struct WHV_DOORBELL_MATCH_DATA {
1296 pub GuestAddress: u64,
1297 pub Value: u64,
1298 pub Length: u32,
1299 pub _bitfield: u32,
1300 }
1301 impl ::core::marker::Copy for WHV_DOORBELL_MATCH_DATA {}
1302 impl ::core::clone::Clone for WHV_DOORBELL_MATCH_DATA {
1303 fn clone(&self) -> Self {
1304 *self
1305 }
1306 }
1307 #[repr(C)]
1308 pub struct WHV_EMULATOR_CALLBACKS {
1309 pub Size: u32,
1310 pub Reserved: u32,
1311 pub WHvEmulatorIoPortCallback: WHV_EMULATOR_IO_PORT_CALLBACK,
1312 pub WHvEmulatorMemoryCallback: WHV_EMULATOR_MEMORY_CALLBACK,
1313 pub WHvEmulatorGetVirtualProcessorRegisters: WHV_EMULATOR_GET_VIRTUAL_PROCESSOR_REGISTERS_CALLBACK,
1314 pub WHvEmulatorSetVirtualProcessorRegisters: WHV_EMULATOR_SET_VIRTUAL_PROCESSOR_REGISTERS_CALLBACK,
1315 pub WHvEmulatorTranslateGvaPage: WHV_EMULATOR_TRANSLATE_GVA_PAGE_CALLBACK,
1316 }
1317 impl ::core::marker::Copy for WHV_EMULATOR_CALLBACKS {}
1318 impl ::core::clone::Clone for WHV_EMULATOR_CALLBACKS {
1319 fn clone(&self) -> Self {
1320 *self
1321 }
1322 }
1323 #[repr(C)]
1324 pub struct WHV_EMULATOR_IO_ACCESS_INFO {
1325 pub Direction: u8,
1326 pub Port: u16,
1327 pub AccessSize: u16,
1328 pub Data: u32,
1329 }
1330 impl ::core::marker::Copy for WHV_EMULATOR_IO_ACCESS_INFO {}
1331 impl ::core::clone::Clone for WHV_EMULATOR_IO_ACCESS_INFO {
1332 fn clone(&self) -> Self {
1333 *self
1334 }
1335 }
1336 #[repr(C)]
1337 pub struct WHV_EMULATOR_MEMORY_ACCESS_INFO {
1338 pub GpaAddress: u64,
1339 pub Direction: u8,
1340 pub AccessSize: u8,
1341 pub Data: [u8; 8],
1342 }
1343 impl ::core::marker::Copy for WHV_EMULATOR_MEMORY_ACCESS_INFO {}
1344 impl ::core::clone::Clone for WHV_EMULATOR_MEMORY_ACCESS_INFO {
1345 fn clone(&self) -> Self {
1346 *self
1347 }
1348 }
1349 #[repr(C)]
1350 pub union WHV_EMULATOR_STATUS {
1351 pub Anonymous: WHV_EMULATOR_STATUS_0,
1352 pub AsUINT32: u32,
1353 }
1354 impl ::core::marker::Copy for WHV_EMULATOR_STATUS {}
1355 impl ::core::clone::Clone for WHV_EMULATOR_STATUS {
1356 fn clone(&self) -> Self {
1357 *self
1358 }
1359 }
1360 #[repr(C)]
1361 pub struct WHV_EMULATOR_STATUS_0 {
1362 pub _bitfield: u32,
1363 }
1364 impl ::core::marker::Copy for WHV_EMULATOR_STATUS_0 {}
1365 impl ::core::clone::Clone for WHV_EMULATOR_STATUS_0 {
1366 fn clone(&self) -> Self {
1367 *self
1368 }
1369 }
1370 #[repr(C)]
1371 pub union WHV_EXTENDED_VM_EXITS {
1372 pub Anonymous: WHV_EXTENDED_VM_EXITS_0,
1373 pub AsUINT64: u64,
1374 }
1375 impl ::core::marker::Copy for WHV_EXTENDED_VM_EXITS {}
1376 impl ::core::clone::Clone for WHV_EXTENDED_VM_EXITS {
1377 fn clone(&self) -> Self {
1378 *self
1379 }
1380 }
1381 #[repr(C)]
1382 pub struct WHV_EXTENDED_VM_EXITS_0 {
1383 pub _bitfield: u64,
1384 }
1385 impl ::core::marker::Copy for WHV_EXTENDED_VM_EXITS_0 {}
1386 impl ::core::clone::Clone for WHV_EXTENDED_VM_EXITS_0 {
1387 fn clone(&self) -> Self {
1388 *self
1389 }
1390 }
1391 #[repr(C)]
1392 pub struct WHV_HYPERCALL_CONTEXT {
1393 pub Rax: u64,
1394 pub Rbx: u64,
1395 pub Rcx: u64,
1396 pub Rdx: u64,
1397 pub R8: u64,
1398 pub Rsi: u64,
1399 pub Rdi: u64,
1400 pub Reserved0: u64,
1401 pub XmmRegisters: [WHV_UINT128; 6],
1402 pub Reserved1: [u64; 2],
1403 }
1404 impl ::core::marker::Copy for WHV_HYPERCALL_CONTEXT {}
1405 impl ::core::clone::Clone for WHV_HYPERCALL_CONTEXT {
1406 fn clone(&self) -> Self {
1407 *self
1408 }
1409 }
1410 #[repr(C)]
1411 pub union WHV_INTERNAL_ACTIVITY_REGISTER {
1412 pub Anonymous: WHV_INTERNAL_ACTIVITY_REGISTER_0,
1413 pub AsUINT64: u64,
1414 }
1415 impl ::core::marker::Copy for WHV_INTERNAL_ACTIVITY_REGISTER {}
1416 impl ::core::clone::Clone for WHV_INTERNAL_ACTIVITY_REGISTER {
1417 fn clone(&self) -> Self {
1418 *self
1419 }
1420 }
1421 #[repr(C)]
1422 pub struct WHV_INTERNAL_ACTIVITY_REGISTER_0 {
1423 pub _bitfield: u64,
1424 }
1425 impl ::core::marker::Copy for WHV_INTERNAL_ACTIVITY_REGISTER_0 {}
1426 impl ::core::clone::Clone for WHV_INTERNAL_ACTIVITY_REGISTER_0 {
1427 fn clone(&self) -> Self {
1428 *self
1429 }
1430 }
1431 #[repr(C)]
1432 pub struct WHV_INTERRUPT_CONTROL {
1433 pub _bitfield: u64,
1434 pub Destination: u32,
1435 pub Vector: u32,
1436 }
1437 impl ::core::marker::Copy for WHV_INTERRUPT_CONTROL {}
1438 impl ::core::clone::Clone for WHV_INTERRUPT_CONTROL {
1439 fn clone(&self) -> Self {
1440 *self
1441 }
1442 }
1443 #[repr(C)]
1444 pub struct WHV_MEMORY_ACCESS_CONTEXT {
1445 pub InstructionByteCount: u8,
1446 pub Reserved: [u8; 3],
1447 pub InstructionBytes: [u8; 16],
1448 pub AccessInfo: WHV_MEMORY_ACCESS_INFO,
1449 pub Gpa: u64,
1450 pub Gva: u64,
1451 }
1452 impl ::core::marker::Copy for WHV_MEMORY_ACCESS_CONTEXT {}
1453 impl ::core::clone::Clone for WHV_MEMORY_ACCESS_CONTEXT {
1454 fn clone(&self) -> Self {
1455 *self
1456 }
1457 }
1458 #[repr(C)]
1459 pub union WHV_MEMORY_ACCESS_INFO {
1460 pub Anonymous: WHV_MEMORY_ACCESS_INFO_0,
1461 pub AsUINT32: u32,
1462 }
1463 impl ::core::marker::Copy for WHV_MEMORY_ACCESS_INFO {}
1464 impl ::core::clone::Clone for WHV_MEMORY_ACCESS_INFO {
1465 fn clone(&self) -> Self {
1466 *self
1467 }
1468 }
1469 #[repr(C)]
1470 pub struct WHV_MEMORY_ACCESS_INFO_0 {
1471 pub _bitfield: u32,
1472 }
1473 impl ::core::marker::Copy for WHV_MEMORY_ACCESS_INFO_0 {}
1474 impl ::core::clone::Clone for WHV_MEMORY_ACCESS_INFO_0 {
1475 fn clone(&self) -> Self {
1476 *self
1477 }
1478 }
1479 #[repr(C)]
1480 pub struct WHV_MEMORY_RANGE_ENTRY {
1481 pub GuestAddress: u64,
1482 pub SizeInBytes: u64,
1483 }
1484 impl ::core::marker::Copy for WHV_MEMORY_RANGE_ENTRY {}
1485 impl ::core::clone::Clone for WHV_MEMORY_RANGE_ENTRY {
1486 fn clone(&self) -> Self {
1487 *self
1488 }
1489 }
1490 #[repr(C)]
1491 pub struct WHV_MSR_ACTION_ENTRY {
1492 pub Index: u32,
1493 pub ReadAction: u8,
1494 pub WriteAction: u8,
1495 pub Reserved: u16,
1496 }
1497 impl ::core::marker::Copy for WHV_MSR_ACTION_ENTRY {}
1498 impl ::core::clone::Clone for WHV_MSR_ACTION_ENTRY {
1499 fn clone(&self) -> Self {
1500 *self
1501 }
1502 }
1503 #[repr(C)]
1504 pub struct WHV_NOTIFICATION_PORT_PARAMETERS {
1505 pub NotificationPortType: WHV_NOTIFICATION_PORT_TYPE,
1506 pub Reserved: u32,
1507 pub Anonymous: WHV_NOTIFICATION_PORT_PARAMETERS_0,
1508 }
1509 impl ::core::marker::Copy for WHV_NOTIFICATION_PORT_PARAMETERS {}
1510 impl ::core::clone::Clone for WHV_NOTIFICATION_PORT_PARAMETERS {
1511 fn clone(&self) -> Self {
1512 *self
1513 }
1514 }
1515 #[repr(C)]
1516 pub union WHV_NOTIFICATION_PORT_PARAMETERS_0 {
1517 pub Doorbell: WHV_DOORBELL_MATCH_DATA,
1518 pub Event: WHV_NOTIFICATION_PORT_PARAMETERS_0_0,
1519 }
1520 impl ::core::marker::Copy for WHV_NOTIFICATION_PORT_PARAMETERS_0 {}
1521 impl ::core::clone::Clone for WHV_NOTIFICATION_PORT_PARAMETERS_0 {
1522 fn clone(&self) -> Self {
1523 *self
1524 }
1525 }
1526 #[repr(C)]
1527 pub struct WHV_NOTIFICATION_PORT_PARAMETERS_0_0 {
1528 pub ConnectionId: u32,
1529 }
1530 impl ::core::marker::Copy for WHV_NOTIFICATION_PORT_PARAMETERS_0_0 {}
1531 impl ::core::clone::Clone for WHV_NOTIFICATION_PORT_PARAMETERS_0_0 {
1532 fn clone(&self) -> Self {
1533 *self
1534 }
1535 }
1536 pub type WHV_PARTITION_HANDLE = isize;
1537 #[repr(C)]
1538 pub struct WHV_PARTITION_MEMORY_COUNTERS {
1539 pub Mapped4KPageCount: u64,
1540 pub Mapped2MPageCount: u64,
1541 pub Mapped1GPageCount: u64,
1542 }
1543 impl ::core::marker::Copy for WHV_PARTITION_MEMORY_COUNTERS {}
1544 impl ::core::clone::Clone for WHV_PARTITION_MEMORY_COUNTERS {
1545 fn clone(&self) -> Self {
1546 *self
1547 }
1548 }
1549 #[repr(C)]
1550 #[doc = "Required features: `\"Win32_Foundation\"`"]
1551 #[cfg(feature = "Win32_Foundation")]
1552 pub union WHV_PARTITION_PROPERTY {
1553 pub ExtendedVmExits: WHV_EXTENDED_VM_EXITS,
1554 pub ProcessorFeatures: WHV_PROCESSOR_FEATURES,
1555 pub SyntheticProcessorFeaturesBanks: WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS,
1556 pub ProcessorXsaveFeatures: WHV_PROCESSOR_XSAVE_FEATURES,
1557 pub ProcessorClFlushSize: u8,
1558 pub ProcessorCount: u32,
1559 pub CpuidExitList: [u32; 1],
1560 pub CpuidResultList: [WHV_X64_CPUID_RESULT; 1],
1561 pub CpuidResultList2: [WHV_X64_CPUID_RESULT2; 1],
1562 pub MsrActionList: [WHV_MSR_ACTION_ENTRY; 1],
1563 pub UnimplementedMsrAction: WHV_MSR_ACTION,
1564 pub ExceptionExitBitmap: u64,
1565 pub LocalApicEmulationMode: WHV_X64_LOCAL_APIC_EMULATION_MODE,
1566 pub SeparateSecurityDomain: super::super::Foundation::BOOL,
1567 pub NestedVirtualization: super::super::Foundation::BOOL,
1568 pub X64MsrExitBitmap: WHV_X64_MSR_EXIT_BITMAP,
1569 pub ProcessorClockFrequency: u64,
1570 pub InterruptClockFrequency: u64,
1571 pub ApicRemoteRead: super::super::Foundation::BOOL,
1572 pub ProcessorFeaturesBanks: WHV_PROCESSOR_FEATURES_BANKS,
1573 pub ReferenceTime: u64,
1574 pub PrimaryNumaNode: u16,
1575 pub CpuReserve: u32,
1576 pub CpuCap: u32,
1577 pub CpuWeight: u32,
1578 pub CpuGroupId: u64,
1579 pub ProcessorFrequencyCap: u32,
1580 pub AllowDeviceAssignment: super::super::Foundation::BOOL,
1581 pub ProcessorPerfmonFeatures: WHV_PROCESSOR_PERFMON_FEATURES,
1582 pub DisableSmt: super::super::Foundation::BOOL,
1583 }
1584 #[cfg(feature = "Win32_Foundation")]
1585 impl ::core::marker::Copy for WHV_PARTITION_PROPERTY {}
1586 #[cfg(feature = "Win32_Foundation")]
1587 impl ::core::clone::Clone for WHV_PARTITION_PROPERTY {
1588 fn clone(&self) -> Self {
1589 *self
1590 }
1591 }
1592 #[repr(C)]
1593 pub struct WHV_PROCESSOR_APIC_COUNTERS {
1594 pub MmioAccessCount: u64,
1595 pub EoiAccessCount: u64,
1596 pub TprAccessCount: u64,
1597 pub SentIpiCount: u64,
1598 pub SelfIpiCount: u64,
1599 }
1600 impl ::core::marker::Copy for WHV_PROCESSOR_APIC_COUNTERS {}
1601 impl ::core::clone::Clone for WHV_PROCESSOR_APIC_COUNTERS {
1602 fn clone(&self) -> Self {
1603 *self
1604 }
1605 }
1606 #[repr(C)]
1607 pub struct WHV_PROCESSOR_EVENT_COUNTERS {
1608 pub PageFaultCount: u64,
1609 pub ExceptionCount: u64,
1610 pub InterruptCount: u64,
1611 }
1612 impl ::core::marker::Copy for WHV_PROCESSOR_EVENT_COUNTERS {}
1613 impl ::core::clone::Clone for WHV_PROCESSOR_EVENT_COUNTERS {
1614 fn clone(&self) -> Self {
1615 *self
1616 }
1617 }
1618 #[repr(C)]
1619 pub union WHV_PROCESSOR_FEATURES {
1620 pub Anonymous: WHV_PROCESSOR_FEATURES_0,
1621 pub AsUINT64: u64,
1622 }
1623 impl ::core::marker::Copy for WHV_PROCESSOR_FEATURES {}
1624 impl ::core::clone::Clone for WHV_PROCESSOR_FEATURES {
1625 fn clone(&self) -> Self {
1626 *self
1627 }
1628 }
1629 #[repr(C)]
1630 pub struct WHV_PROCESSOR_FEATURES_0 {
1631 pub _bitfield: u64,
1632 }
1633 impl ::core::marker::Copy for WHV_PROCESSOR_FEATURES_0 {}
1634 impl ::core::clone::Clone for WHV_PROCESSOR_FEATURES_0 {
1635 fn clone(&self) -> Self {
1636 *self
1637 }
1638 }
1639 #[repr(C)]
1640 pub union WHV_PROCESSOR_FEATURES1 {
1641 pub Anonymous: WHV_PROCESSOR_FEATURES1_0,
1642 pub AsUINT64: u64,
1643 }
1644 impl ::core::marker::Copy for WHV_PROCESSOR_FEATURES1 {}
1645 impl ::core::clone::Clone for WHV_PROCESSOR_FEATURES1 {
1646 fn clone(&self) -> Self {
1647 *self
1648 }
1649 }
1650 #[repr(C)]
1651 pub struct WHV_PROCESSOR_FEATURES1_0 {
1652 pub _bitfield: u64,
1653 }
1654 impl ::core::marker::Copy for WHV_PROCESSOR_FEATURES1_0 {}
1655 impl ::core::clone::Clone for WHV_PROCESSOR_FEATURES1_0 {
1656 fn clone(&self) -> Self {
1657 *self
1658 }
1659 }
1660 #[repr(C)]
1661 pub struct WHV_PROCESSOR_FEATURES_BANKS {
1662 pub BanksCount: u32,
1663 pub Reserved0: u32,
1664 pub Anonymous: WHV_PROCESSOR_FEATURES_BANKS_0,
1665 }
1666 impl ::core::marker::Copy for WHV_PROCESSOR_FEATURES_BANKS {}
1667 impl ::core::clone::Clone for WHV_PROCESSOR_FEATURES_BANKS {
1668 fn clone(&self) -> Self {
1669 *self
1670 }
1671 }
1672 #[repr(C)]
1673 pub union WHV_PROCESSOR_FEATURES_BANKS_0 {
1674 pub Anonymous: WHV_PROCESSOR_FEATURES_BANKS_0_0,
1675 pub AsUINT64: [u64; 2],
1676 }
1677 impl ::core::marker::Copy for WHV_PROCESSOR_FEATURES_BANKS_0 {}
1678 impl ::core::clone::Clone for WHV_PROCESSOR_FEATURES_BANKS_0 {
1679 fn clone(&self) -> Self {
1680 *self
1681 }
1682 }
1683 #[repr(C)]
1684 pub struct WHV_PROCESSOR_FEATURES_BANKS_0_0 {
1685 pub Bank0: WHV_PROCESSOR_FEATURES,
1686 pub Bank1: WHV_PROCESSOR_FEATURES1,
1687 }
1688 impl ::core::marker::Copy for WHV_PROCESSOR_FEATURES_BANKS_0_0 {}
1689 impl ::core::clone::Clone for WHV_PROCESSOR_FEATURES_BANKS_0_0 {
1690 fn clone(&self) -> Self {
1691 *self
1692 }
1693 }
1694 #[repr(C)]
1695 pub struct WHV_PROCESSOR_INTERCEPT_COUNTER {
1696 pub Count: u64,
1697 pub Time100ns: u64,
1698 }
1699 impl ::core::marker::Copy for WHV_PROCESSOR_INTERCEPT_COUNTER {}
1700 impl ::core::clone::Clone for WHV_PROCESSOR_INTERCEPT_COUNTER {
1701 fn clone(&self) -> Self {
1702 *self
1703 }
1704 }
1705 #[repr(C)]
1706 pub struct WHV_PROCESSOR_INTERCEPT_COUNTERS {
1707 pub PageInvalidations: WHV_PROCESSOR_INTERCEPT_COUNTER,
1708 pub ControlRegisterAccesses: WHV_PROCESSOR_INTERCEPT_COUNTER,
1709 pub IoInstructions: WHV_PROCESSOR_INTERCEPT_COUNTER,
1710 pub HaltInstructions: WHV_PROCESSOR_INTERCEPT_COUNTER,
1711 pub CpuidInstructions: WHV_PROCESSOR_INTERCEPT_COUNTER,
1712 pub MsrAccesses: WHV_PROCESSOR_INTERCEPT_COUNTER,
1713 pub OtherIntercepts: WHV_PROCESSOR_INTERCEPT_COUNTER,
1714 pub PendingInterrupts: WHV_PROCESSOR_INTERCEPT_COUNTER,
1715 pub EmulatedInstructions: WHV_PROCESSOR_INTERCEPT_COUNTER,
1716 pub DebugRegisterAccesses: WHV_PROCESSOR_INTERCEPT_COUNTER,
1717 pub PageFaultIntercepts: WHV_PROCESSOR_INTERCEPT_COUNTER,
1718 pub NestedPageFaultIntercepts: WHV_PROCESSOR_INTERCEPT_COUNTER,
1719 pub Hypercalls: WHV_PROCESSOR_INTERCEPT_COUNTER,
1720 pub RdpmcInstructions: WHV_PROCESSOR_INTERCEPT_COUNTER,
1721 }
1722 impl ::core::marker::Copy for WHV_PROCESSOR_INTERCEPT_COUNTERS {}
1723 impl ::core::clone::Clone for WHV_PROCESSOR_INTERCEPT_COUNTERS {
1724 fn clone(&self) -> Self {
1725 *self
1726 }
1727 }
1728 #[repr(C)]
1729 pub union WHV_PROCESSOR_PERFMON_FEATURES {
1730 pub Anonymous: WHV_PROCESSOR_PERFMON_FEATURES_0,
1731 pub AsUINT64: u64,
1732 }
1733 impl ::core::marker::Copy for WHV_PROCESSOR_PERFMON_FEATURES {}
1734 impl ::core::clone::Clone for WHV_PROCESSOR_PERFMON_FEATURES {
1735 fn clone(&self) -> Self {
1736 *self
1737 }
1738 }
1739 #[repr(C)]
1740 pub struct WHV_PROCESSOR_PERFMON_FEATURES_0 {
1741 pub _bitfield: u64,
1742 }
1743 impl ::core::marker::Copy for WHV_PROCESSOR_PERFMON_FEATURES_0 {}
1744 impl ::core::clone::Clone for WHV_PROCESSOR_PERFMON_FEATURES_0 {
1745 fn clone(&self) -> Self {
1746 *self
1747 }
1748 }
1749 #[repr(C)]
1750 pub struct WHV_PROCESSOR_RUNTIME_COUNTERS {
1751 pub TotalRuntime100ns: u64,
1752 pub HypervisorRuntime100ns: u64,
1753 }
1754 impl ::core::marker::Copy for WHV_PROCESSOR_RUNTIME_COUNTERS {}
1755 impl ::core::clone::Clone for WHV_PROCESSOR_RUNTIME_COUNTERS {
1756 fn clone(&self) -> Self {
1757 *self
1758 }
1759 }
1760 #[repr(C)]
1761 pub struct WHV_PROCESSOR_SYNTHETIC_FEATURES_COUNTERS {
1762 pub SyntheticInterruptsCount: u64,
1763 pub LongSpinWaitHypercallsCount: u64,
1764 pub OtherHypercallsCount: u64,
1765 pub SyntheticInterruptHypercallsCount: u64,
1766 pub VirtualInterruptHypercallsCount: u64,
1767 pub VirtualMmuHypercallsCount: u64,
1768 }
1769 impl ::core::marker::Copy for WHV_PROCESSOR_SYNTHETIC_FEATURES_COUNTERS {}
1770 impl ::core::clone::Clone for WHV_PROCESSOR_SYNTHETIC_FEATURES_COUNTERS {
1771 fn clone(&self) -> Self {
1772 *self
1773 }
1774 }
1775 #[repr(C)]
1776 pub union WHV_PROCESSOR_XSAVE_FEATURES {
1777 pub Anonymous: WHV_PROCESSOR_XSAVE_FEATURES_0,
1778 pub AsUINT64: u64,
1779 }
1780 impl ::core::marker::Copy for WHV_PROCESSOR_XSAVE_FEATURES {}
1781 impl ::core::clone::Clone for WHV_PROCESSOR_XSAVE_FEATURES {
1782 fn clone(&self) -> Self {
1783 *self
1784 }
1785 }
1786 #[repr(C)]
1787 pub struct WHV_PROCESSOR_XSAVE_FEATURES_0 {
1788 pub _bitfield: u64,
1789 }
1790 impl ::core::marker::Copy for WHV_PROCESSOR_XSAVE_FEATURES_0 {}
1791 impl ::core::clone::Clone for WHV_PROCESSOR_XSAVE_FEATURES_0 {
1792 fn clone(&self) -> Self {
1793 *self
1794 }
1795 }
1796 #[repr(C)]
1797 pub union WHV_REGISTER_VALUE {
1798 pub Reg128: WHV_UINT128,
1799 pub Reg64: u64,
1800 pub Reg32: u32,
1801 pub Reg16: u16,
1802 pub Reg8: u8,
1803 pub Fp: WHV_X64_FP_REGISTER,
1804 pub FpControlStatus: WHV_X64_FP_CONTROL_STATUS_REGISTER,
1805 pub XmmControlStatus: WHV_X64_XMM_CONTROL_STATUS_REGISTER,
1806 pub Segment: WHV_X64_SEGMENT_REGISTER,
1807 pub Table: WHV_X64_TABLE_REGISTER,
1808 pub InterruptState: WHV_X64_INTERRUPT_STATE_REGISTER,
1809 pub PendingInterruption: WHV_X64_PENDING_INTERRUPTION_REGISTER,
1810 pub DeliverabilityNotifications: WHV_X64_DELIVERABILITY_NOTIFICATIONS_REGISTER,
1811 pub ExceptionEvent: WHV_X64_PENDING_EXCEPTION_EVENT,
1812 pub ExtIntEvent: WHV_X64_PENDING_EXT_INT_EVENT,
1813 pub InternalActivity: WHV_INTERNAL_ACTIVITY_REGISTER,
1814 pub PendingDebugException: WHV_X64_PENDING_DEBUG_EXCEPTION,
1815 }
1816 impl ::core::marker::Copy for WHV_REGISTER_VALUE {}
1817 impl ::core::clone::Clone for WHV_REGISTER_VALUE {
1818 fn clone(&self) -> Self {
1819 *self
1820 }
1821 }
1822 #[repr(C)]
1823 pub struct WHV_RUN_VP_CANCELED_CONTEXT {
1824 pub CancelReason: WHV_RUN_VP_CANCEL_REASON,
1825 }
1826 impl ::core::marker::Copy for WHV_RUN_VP_CANCELED_CONTEXT {}
1827 impl ::core::clone::Clone for WHV_RUN_VP_CANCELED_CONTEXT {
1828 fn clone(&self) -> Self {
1829 *self
1830 }
1831 }
1832 #[repr(C)]
1833 pub struct WHV_RUN_VP_EXIT_CONTEXT {
1834 pub ExitReason: WHV_RUN_VP_EXIT_REASON,
1835 pub Reserved: u32,
1836 pub VpContext: WHV_VP_EXIT_CONTEXT,
1837 pub Anonymous: WHV_RUN_VP_EXIT_CONTEXT_0,
1838 }
1839 impl ::core::marker::Copy for WHV_RUN_VP_EXIT_CONTEXT {}
1840 impl ::core::clone::Clone for WHV_RUN_VP_EXIT_CONTEXT {
1841 fn clone(&self) -> Self {
1842 *self
1843 }
1844 }
1845 #[repr(C)]
1846 pub union WHV_RUN_VP_EXIT_CONTEXT_0 {
1847 pub MemoryAccess: WHV_MEMORY_ACCESS_CONTEXT,
1848 pub IoPortAccess: WHV_X64_IO_PORT_ACCESS_CONTEXT,
1849 pub MsrAccess: WHV_X64_MSR_ACCESS_CONTEXT,
1850 pub CpuidAccess: WHV_X64_CPUID_ACCESS_CONTEXT,
1851 pub VpException: WHV_VP_EXCEPTION_CONTEXT,
1852 pub InterruptWindow: WHV_X64_INTERRUPTION_DELIVERABLE_CONTEXT,
1853 pub UnsupportedFeature: WHV_X64_UNSUPPORTED_FEATURE_CONTEXT,
1854 pub CancelReason: WHV_RUN_VP_CANCELED_CONTEXT,
1855 pub ApicEoi: WHV_X64_APIC_EOI_CONTEXT,
1856 pub ReadTsc: WHV_X64_RDTSC_CONTEXT,
1857 pub ApicSmi: WHV_X64_APIC_SMI_CONTEXT,
1858 pub Hypercall: WHV_HYPERCALL_CONTEXT,
1859 pub ApicInitSipi: WHV_X64_APIC_INIT_SIPI_CONTEXT,
1860 pub ApicWrite: WHV_X64_APIC_WRITE_CONTEXT,
1861 pub SynicSintDeliverable: WHV_SYNIC_SINT_DELIVERABLE_CONTEXT,
1862 }
1863 impl ::core::marker::Copy for WHV_RUN_VP_EXIT_CONTEXT_0 {}
1864 impl ::core::clone::Clone for WHV_RUN_VP_EXIT_CONTEXT_0 {
1865 fn clone(&self) -> Self {
1866 *self
1867 }
1868 }
1869 #[repr(C)]
1870 pub union WHV_SCHEDULER_FEATURES {
1871 pub Anonymous: WHV_SCHEDULER_FEATURES_0,
1872 pub AsUINT64: u64,
1873 }
1874 impl ::core::marker::Copy for WHV_SCHEDULER_FEATURES {}
1875 impl ::core::clone::Clone for WHV_SCHEDULER_FEATURES {
1876 fn clone(&self) -> Self {
1877 *self
1878 }
1879 }
1880 #[repr(C)]
1881 pub struct WHV_SCHEDULER_FEATURES_0 {
1882 pub _bitfield: u64,
1883 }
1884 impl ::core::marker::Copy for WHV_SCHEDULER_FEATURES_0 {}
1885 impl ::core::clone::Clone for WHV_SCHEDULER_FEATURES_0 {
1886 fn clone(&self) -> Self {
1887 *self
1888 }
1889 }
1890 #[repr(C)]
1891 #[doc = "Required features: `\"Win32_Foundation\"`"]
1892 #[cfg(feature = "Win32_Foundation")]
1893 pub struct WHV_SRIOV_RESOURCE_DESCRIPTOR {
1894 pub PnpInstanceId: [u16; 200],
1895 pub VirtualFunctionId: super::super::Foundation::LUID,
1896 pub VirtualFunctionIndex: u16,
1897 pub Reserved: u16,
1898 }
1899 #[cfg(feature = "Win32_Foundation")]
1900 impl ::core::marker::Copy for WHV_SRIOV_RESOURCE_DESCRIPTOR {}
1901 #[cfg(feature = "Win32_Foundation")]
1902 impl ::core::clone::Clone for WHV_SRIOV_RESOURCE_DESCRIPTOR {
1903 fn clone(&self) -> Self {
1904 *self
1905 }
1906 }
1907 #[repr(C)]
1908 pub struct WHV_SYNIC_EVENT_PARAMETERS {
1909 pub VpIndex: u32,
1910 pub TargetSint: u8,
1911 pub Reserved: u8,
1912 pub FlagNumber: u16,
1913 }
1914 impl ::core::marker::Copy for WHV_SYNIC_EVENT_PARAMETERS {}
1915 impl ::core::clone::Clone for WHV_SYNIC_EVENT_PARAMETERS {
1916 fn clone(&self) -> Self {
1917 *self
1918 }
1919 }
1920 #[repr(C)]
1921 pub struct WHV_SYNIC_SINT_DELIVERABLE_CONTEXT {
1922 pub DeliverableSints: u16,
1923 pub Reserved1: u16,
1924 pub Reserved2: u32,
1925 }
1926 impl ::core::marker::Copy for WHV_SYNIC_SINT_DELIVERABLE_CONTEXT {}
1927 impl ::core::clone::Clone for WHV_SYNIC_SINT_DELIVERABLE_CONTEXT {
1928 fn clone(&self) -> Self {
1929 *self
1930 }
1931 }
1932 #[repr(C)]
1933 pub union WHV_SYNTHETIC_PROCESSOR_FEATURES {
1934 pub Anonymous: WHV_SYNTHETIC_PROCESSOR_FEATURES_0,
1935 pub AsUINT64: u64,
1936 }
1937 impl ::core::marker::Copy for WHV_SYNTHETIC_PROCESSOR_FEATURES {}
1938 impl ::core::clone::Clone for WHV_SYNTHETIC_PROCESSOR_FEATURES {
1939 fn clone(&self) -> Self {
1940 *self
1941 }
1942 }
1943 #[repr(C)]
1944 pub struct WHV_SYNTHETIC_PROCESSOR_FEATURES_0 {
1945 pub _bitfield: u64,
1946 }
1947 impl ::core::marker::Copy for WHV_SYNTHETIC_PROCESSOR_FEATURES_0 {}
1948 impl ::core::clone::Clone for WHV_SYNTHETIC_PROCESSOR_FEATURES_0 {
1949 fn clone(&self) -> Self {
1950 *self
1951 }
1952 }
1953 #[repr(C)]
1954 pub struct WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS {
1955 pub BanksCount: u32,
1956 pub Reserved0: u32,
1957 pub Anonymous: WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS_0,
1958 }
1959 impl ::core::marker::Copy for WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS {}
1960 impl ::core::clone::Clone for WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS {
1961 fn clone(&self) -> Self {
1962 *self
1963 }
1964 }
1965 #[repr(C)]
1966 pub union WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS_0 {
1967 pub Anonymous: WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS_0_0,
1968 pub AsUINT64: [u64; 1],
1969 }
1970 impl ::core::marker::Copy for WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS_0 {}
1971 impl ::core::clone::Clone for WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS_0 {
1972 fn clone(&self) -> Self {
1973 *self
1974 }
1975 }
1976 #[repr(C)]
1977 pub struct WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS_0_0 {
1978 pub Bank0: WHV_SYNTHETIC_PROCESSOR_FEATURES,
1979 }
1980 impl ::core::marker::Copy for WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS_0_0 {}
1981 impl ::core::clone::Clone for WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS_0_0 {
1982 fn clone(&self) -> Self {
1983 *self
1984 }
1985 }
1986 #[repr(C)]
1987 pub struct WHV_TRANSLATE_GVA_RESULT {
1988 pub ResultCode: WHV_TRANSLATE_GVA_RESULT_CODE,
1989 pub Reserved: u32,
1990 }
1991 impl ::core::marker::Copy for WHV_TRANSLATE_GVA_RESULT {}
1992 impl ::core::clone::Clone for WHV_TRANSLATE_GVA_RESULT {
1993 fn clone(&self) -> Self {
1994 *self
1995 }
1996 }
1997 #[repr(C)]
1998 pub struct WHV_TRIGGER_PARAMETERS {
1999 pub TriggerType: WHV_TRIGGER_TYPE,
2000 pub Reserved: u32,
2001 pub Anonymous: WHV_TRIGGER_PARAMETERS_0,
2002 }
2003 impl ::core::marker::Copy for WHV_TRIGGER_PARAMETERS {}
2004 impl ::core::clone::Clone for WHV_TRIGGER_PARAMETERS {
2005 fn clone(&self) -> Self {
2006 *self
2007 }
2008 }
2009 #[repr(C)]
2010 pub union WHV_TRIGGER_PARAMETERS_0 {
2011 pub Interrupt: WHV_INTERRUPT_CONTROL,
2012 pub SynicEvent: WHV_SYNIC_EVENT_PARAMETERS,
2013 pub DeviceInterrupt: WHV_TRIGGER_PARAMETERS_0_0,
2014 }
2015 impl ::core::marker::Copy for WHV_TRIGGER_PARAMETERS_0 {}
2016 impl ::core::clone::Clone for WHV_TRIGGER_PARAMETERS_0 {
2017 fn clone(&self) -> Self {
2018 *self
2019 }
2020 }
2021 #[repr(C)]
2022 pub struct WHV_TRIGGER_PARAMETERS_0_0 {
2023 pub LogicalDeviceId: u64,
2024 pub MsiAddress: u64,
2025 pub MsiData: u32,
2026 pub Reserved: u32,
2027 }
2028 impl ::core::marker::Copy for WHV_TRIGGER_PARAMETERS_0_0 {}
2029 impl ::core::clone::Clone for WHV_TRIGGER_PARAMETERS_0_0 {
2030 fn clone(&self) -> Self {
2031 *self
2032 }
2033 }
2034 #[repr(C)]
2035 pub union WHV_UINT128 {
2036 pub Anonymous: WHV_UINT128_0,
2037 pub Dword: [u32; 4],
2038 }
2039 impl ::core::marker::Copy for WHV_UINT128 {}
2040 impl ::core::clone::Clone for WHV_UINT128 {
2041 fn clone(&self) -> Self {
2042 *self
2043 }
2044 }
2045 #[repr(C)]
2046 pub struct WHV_UINT128_0 {
2047 pub Low64: u64,
2048 pub High64: u64,
2049 }
2050 impl ::core::marker::Copy for WHV_UINT128_0 {}
2051 impl ::core::clone::Clone for WHV_UINT128_0 {
2052 fn clone(&self) -> Self {
2053 *self
2054 }
2055 }
2056 #[repr(C)]
2057 pub struct WHV_VIRTUAL_PROCESSOR_PROPERTY {
2058 pub PropertyCode: WHV_VIRTUAL_PROCESSOR_PROPERTY_CODE,
2059 pub Reserved: u32,
2060 pub Anonymous: WHV_VIRTUAL_PROCESSOR_PROPERTY_0,
2061 }
2062 impl ::core::marker::Copy for WHV_VIRTUAL_PROCESSOR_PROPERTY {}
2063 impl ::core::clone::Clone for WHV_VIRTUAL_PROCESSOR_PROPERTY {
2064 fn clone(&self) -> Self {
2065 *self
2066 }
2067 }
2068 #[repr(C)]
2069 pub union WHV_VIRTUAL_PROCESSOR_PROPERTY_0 {
2070 pub NumaNode: u16,
2071 pub Padding: u64,
2072 }
2073 impl ::core::marker::Copy for WHV_VIRTUAL_PROCESSOR_PROPERTY_0 {}
2074 impl ::core::clone::Clone for WHV_VIRTUAL_PROCESSOR_PROPERTY_0 {
2075 fn clone(&self) -> Self {
2076 *self
2077 }
2078 }
2079 #[repr(C)]
2080 pub struct WHV_VPCI_DEVICE_NOTIFICATION {
2081 pub NotificationType: WHV_VPCI_DEVICE_NOTIFICATION_TYPE,
2082 pub Reserved1: u32,
2083 pub Anonymous: WHV_VPCI_DEVICE_NOTIFICATION_0,
2084 }
2085 impl ::core::marker::Copy for WHV_VPCI_DEVICE_NOTIFICATION {}
2086 impl ::core::clone::Clone for WHV_VPCI_DEVICE_NOTIFICATION {
2087 fn clone(&self) -> Self {
2088 *self
2089 }
2090 }
2091 #[repr(C)]
2092 pub union WHV_VPCI_DEVICE_NOTIFICATION_0 {
2093 pub Reserved2: u64,
2094 }
2095 impl ::core::marker::Copy for WHV_VPCI_DEVICE_NOTIFICATION_0 {}
2096 impl ::core::clone::Clone for WHV_VPCI_DEVICE_NOTIFICATION_0 {
2097 fn clone(&self) -> Self {
2098 *self
2099 }
2100 }
2101 #[repr(C)]
2102 pub struct WHV_VPCI_DEVICE_REGISTER {
2103 pub Location: WHV_VPCI_DEVICE_REGISTER_SPACE,
2104 pub SizeInBytes: u32,
2105 pub OffsetInBytes: u64,
2106 }
2107 impl ::core::marker::Copy for WHV_VPCI_DEVICE_REGISTER {}
2108 impl ::core::clone::Clone for WHV_VPCI_DEVICE_REGISTER {
2109 fn clone(&self) -> Self {
2110 *self
2111 }
2112 }
2113 #[repr(C)]
2114 pub struct WHV_VPCI_HARDWARE_IDS {
2115 pub VendorID: u16,
2116 pub DeviceID: u16,
2117 pub RevisionID: u8,
2118 pub ProgIf: u8,
2119 pub SubClass: u8,
2120 pub BaseClass: u8,
2121 pub SubVendorID: u16,
2122 pub SubSystemID: u16,
2123 }
2124 impl ::core::marker::Copy for WHV_VPCI_HARDWARE_IDS {}
2125 impl ::core::clone::Clone for WHV_VPCI_HARDWARE_IDS {
2126 fn clone(&self) -> Self {
2127 *self
2128 }
2129 }
2130 #[repr(C)]
2131 pub struct WHV_VPCI_INTERRUPT_TARGET {
2132 pub Vector: u32,
2133 pub Flags: WHV_VPCI_INTERRUPT_TARGET_FLAGS,
2134 pub ProcessorCount: u32,
2135 pub Processors: [u32; 1],
2136 }
2137 impl ::core::marker::Copy for WHV_VPCI_INTERRUPT_TARGET {}
2138 impl ::core::clone::Clone for WHV_VPCI_INTERRUPT_TARGET {
2139 fn clone(&self) -> Self {
2140 *self
2141 }
2142 }
2143 #[repr(C)]
2144 pub struct WHV_VPCI_MMIO_MAPPING {
2145 pub Location: WHV_VPCI_DEVICE_REGISTER_SPACE,
2146 pub Flags: WHV_VPCI_MMIO_RANGE_FLAGS,
2147 pub SizeInBytes: u64,
2148 pub OffsetInBytes: u64,
2149 pub VirtualAddress: *mut ::core::ffi::c_void,
2150 }
2151 impl ::core::marker::Copy for WHV_VPCI_MMIO_MAPPING {}
2152 impl ::core::clone::Clone for WHV_VPCI_MMIO_MAPPING {
2153 fn clone(&self) -> Self {
2154 *self
2155 }
2156 }
2157 #[repr(C)]
2158 pub struct WHV_VPCI_PROBED_BARS {
2159 pub Value: [u32; 6],
2160 }
2161 impl ::core::marker::Copy for WHV_VPCI_PROBED_BARS {}
2162 impl ::core::clone::Clone for WHV_VPCI_PROBED_BARS {
2163 fn clone(&self) -> Self {
2164 *self
2165 }
2166 }
2167 #[repr(C)]
2168 pub struct WHV_VP_EXCEPTION_CONTEXT {
2169 pub InstructionByteCount: u8,
2170 pub Reserved: [u8; 3],
2171 pub InstructionBytes: [u8; 16],
2172 pub ExceptionInfo: WHV_VP_EXCEPTION_INFO,
2173 pub ExceptionType: u8,
2174 pub Reserved2: [u8; 3],
2175 pub ErrorCode: u32,
2176 pub ExceptionParameter: u64,
2177 }
2178 impl ::core::marker::Copy for WHV_VP_EXCEPTION_CONTEXT {}
2179 impl ::core::clone::Clone for WHV_VP_EXCEPTION_CONTEXT {
2180 fn clone(&self) -> Self {
2181 *self
2182 }
2183 }
2184 #[repr(C)]
2185 pub union WHV_VP_EXCEPTION_INFO {
2186 pub Anonymous: WHV_VP_EXCEPTION_INFO_0,
2187 pub AsUINT32: u32,
2188 }
2189 impl ::core::marker::Copy for WHV_VP_EXCEPTION_INFO {}
2190 impl ::core::clone::Clone for WHV_VP_EXCEPTION_INFO {
2191 fn clone(&self) -> Self {
2192 *self
2193 }
2194 }
2195 #[repr(C)]
2196 pub struct WHV_VP_EXCEPTION_INFO_0 {
2197 pub _bitfield: u32,
2198 }
2199 impl ::core::marker::Copy for WHV_VP_EXCEPTION_INFO_0 {}
2200 impl ::core::clone::Clone for WHV_VP_EXCEPTION_INFO_0 {
2201 fn clone(&self) -> Self {
2202 *self
2203 }
2204 }
2205 #[repr(C)]
2206 pub struct WHV_VP_EXIT_CONTEXT {
2207 pub ExecutionState: WHV_X64_VP_EXECUTION_STATE,
2208 pub _bitfield: u8,
2209 pub Reserved: u8,
2210 pub Reserved2: u32,
2211 pub Cs: WHV_X64_SEGMENT_REGISTER,
2212 pub Rip: u64,
2213 pub Rflags: u64,
2214 }
2215 impl ::core::marker::Copy for WHV_VP_EXIT_CONTEXT {}
2216 impl ::core::clone::Clone for WHV_VP_EXIT_CONTEXT {
2217 fn clone(&self) -> Self {
2218 *self
2219 }
2220 }
2221 #[repr(C)]
2222 pub struct WHV_X64_APIC_EOI_CONTEXT {
2223 pub InterruptVector: u32,
2224 }
2225 impl ::core::marker::Copy for WHV_X64_APIC_EOI_CONTEXT {}
2226 impl ::core::clone::Clone for WHV_X64_APIC_EOI_CONTEXT {
2227 fn clone(&self) -> Self {
2228 *self
2229 }
2230 }
2231 #[repr(C)]
2232 pub struct WHV_X64_APIC_INIT_SIPI_CONTEXT {
2233 pub ApicIcr: u64,
2234 }
2235 impl ::core::marker::Copy for WHV_X64_APIC_INIT_SIPI_CONTEXT {}
2236 impl ::core::clone::Clone for WHV_X64_APIC_INIT_SIPI_CONTEXT {
2237 fn clone(&self) -> Self {
2238 *self
2239 }
2240 }
2241 #[repr(C)]
2242 pub struct WHV_X64_APIC_SMI_CONTEXT {
2243 pub ApicIcr: u64,
2244 }
2245 impl ::core::marker::Copy for WHV_X64_APIC_SMI_CONTEXT {}
2246 impl ::core::clone::Clone for WHV_X64_APIC_SMI_CONTEXT {
2247 fn clone(&self) -> Self {
2248 *self
2249 }
2250 }
2251 #[repr(C)]
2252 pub struct WHV_X64_APIC_WRITE_CONTEXT {
2253 pub Type: WHV_X64_APIC_WRITE_TYPE,
2254 pub Reserved: u32,
2255 pub WriteValue: u64,
2256 }
2257 impl ::core::marker::Copy for WHV_X64_APIC_WRITE_CONTEXT {}
2258 impl ::core::clone::Clone for WHV_X64_APIC_WRITE_CONTEXT {
2259 fn clone(&self) -> Self {
2260 *self
2261 }
2262 }
2263 #[repr(C)]
2264 pub struct WHV_X64_CPUID_ACCESS_CONTEXT {
2265 pub Rax: u64,
2266 pub Rcx: u64,
2267 pub Rdx: u64,
2268 pub Rbx: u64,
2269 pub DefaultResultRax: u64,
2270 pub DefaultResultRcx: u64,
2271 pub DefaultResultRdx: u64,
2272 pub DefaultResultRbx: u64,
2273 }
2274 impl ::core::marker::Copy for WHV_X64_CPUID_ACCESS_CONTEXT {}
2275 impl ::core::clone::Clone for WHV_X64_CPUID_ACCESS_CONTEXT {
2276 fn clone(&self) -> Self {
2277 *self
2278 }
2279 }
2280 #[repr(C)]
2281 pub struct WHV_X64_CPUID_RESULT {
2282 pub Function: u32,
2283 pub Reserved: [u32; 3],
2284 pub Eax: u32,
2285 pub Ebx: u32,
2286 pub Ecx: u32,
2287 pub Edx: u32,
2288 }
2289 impl ::core::marker::Copy for WHV_X64_CPUID_RESULT {}
2290 impl ::core::clone::Clone for WHV_X64_CPUID_RESULT {
2291 fn clone(&self) -> Self {
2292 *self
2293 }
2294 }
2295 #[repr(C)]
2296 pub struct WHV_X64_CPUID_RESULT2 {
2297 pub Function: u32,
2298 pub Index: u32,
2299 pub VpIndex: u32,
2300 pub Flags: WHV_X64_CPUID_RESULT2_FLAGS,
2301 pub Output: WHV_CPUID_OUTPUT,
2302 pub Mask: WHV_CPUID_OUTPUT,
2303 }
2304 impl ::core::marker::Copy for WHV_X64_CPUID_RESULT2 {}
2305 impl ::core::clone::Clone for WHV_X64_CPUID_RESULT2 {
2306 fn clone(&self) -> Self {
2307 *self
2308 }
2309 }
2310 #[repr(C)]
2311 pub union WHV_X64_DELIVERABILITY_NOTIFICATIONS_REGISTER {
2312 pub Anonymous: WHV_X64_DELIVERABILITY_NOTIFICATIONS_REGISTER_0,
2313 pub AsUINT64: u64,
2314 }
2315 impl ::core::marker::Copy for WHV_X64_DELIVERABILITY_NOTIFICATIONS_REGISTER {}
2316 impl ::core::clone::Clone for WHV_X64_DELIVERABILITY_NOTIFICATIONS_REGISTER {
2317 fn clone(&self) -> Self {
2318 *self
2319 }
2320 }
2321 #[repr(C)]
2322 pub struct WHV_X64_DELIVERABILITY_NOTIFICATIONS_REGISTER_0 {
2323 pub _bitfield: u64,
2324 }
2325 impl ::core::marker::Copy for WHV_X64_DELIVERABILITY_NOTIFICATIONS_REGISTER_0 {}
2326 impl ::core::clone::Clone for WHV_X64_DELIVERABILITY_NOTIFICATIONS_REGISTER_0 {
2327 fn clone(&self) -> Self {
2328 *self
2329 }
2330 }
2331 #[repr(C)]
2332 pub union WHV_X64_FP_CONTROL_STATUS_REGISTER {
2333 pub Anonymous: WHV_X64_FP_CONTROL_STATUS_REGISTER_0,
2334 pub AsUINT128: WHV_UINT128,
2335 }
2336 impl ::core::marker::Copy for WHV_X64_FP_CONTROL_STATUS_REGISTER {}
2337 impl ::core::clone::Clone for WHV_X64_FP_CONTROL_STATUS_REGISTER {
2338 fn clone(&self) -> Self {
2339 *self
2340 }
2341 }
2342 #[repr(C)]
2343 pub struct WHV_X64_FP_CONTROL_STATUS_REGISTER_0 {
2344 pub FpControl: u16,
2345 pub FpStatus: u16,
2346 pub FpTag: u8,
2347 pub Reserved: u8,
2348 pub LastFpOp: u16,
2349 pub Anonymous: WHV_X64_FP_CONTROL_STATUS_REGISTER_0_0,
2350 }
2351 impl ::core::marker::Copy for WHV_X64_FP_CONTROL_STATUS_REGISTER_0 {}
2352 impl ::core::clone::Clone for WHV_X64_FP_CONTROL_STATUS_REGISTER_0 {
2353 fn clone(&self) -> Self {
2354 *self
2355 }
2356 }
2357 #[repr(C)]
2358 pub union WHV_X64_FP_CONTROL_STATUS_REGISTER_0_0 {
2359 pub LastFpRip: u64,
2360 pub Anonymous: WHV_X64_FP_CONTROL_STATUS_REGISTER_0_0_0,
2361 }
2362 impl ::core::marker::Copy for WHV_X64_FP_CONTROL_STATUS_REGISTER_0_0 {}
2363 impl ::core::clone::Clone for WHV_X64_FP_CONTROL_STATUS_REGISTER_0_0 {
2364 fn clone(&self) -> Self {
2365 *self
2366 }
2367 }
2368 #[repr(C)]
2369 pub struct WHV_X64_FP_CONTROL_STATUS_REGISTER_0_0_0 {
2370 pub LastFpEip: u32,
2371 pub LastFpCs: u16,
2372 pub Reserved2: u16,
2373 }
2374 impl ::core::marker::Copy for WHV_X64_FP_CONTROL_STATUS_REGISTER_0_0_0 {}
2375 impl ::core::clone::Clone for WHV_X64_FP_CONTROL_STATUS_REGISTER_0_0_0 {
2376 fn clone(&self) -> Self {
2377 *self
2378 }
2379 }
2380 #[repr(C)]
2381 pub union WHV_X64_FP_REGISTER {
2382 pub Anonymous: WHV_X64_FP_REGISTER_0,
2383 pub AsUINT128: WHV_UINT128,
2384 }
2385 impl ::core::marker::Copy for WHV_X64_FP_REGISTER {}
2386 impl ::core::clone::Clone for WHV_X64_FP_REGISTER {
2387 fn clone(&self) -> Self {
2388 *self
2389 }
2390 }
2391 #[repr(C)]
2392 pub struct WHV_X64_FP_REGISTER_0 {
2393 pub Mantissa: u64,
2394 pub _bitfield: u64,
2395 }
2396 impl ::core::marker::Copy for WHV_X64_FP_REGISTER_0 {}
2397 impl ::core::clone::Clone for WHV_X64_FP_REGISTER_0 {
2398 fn clone(&self) -> Self {
2399 *self
2400 }
2401 }
2402 #[repr(C)]
2403 pub struct WHV_X64_INTERRUPTION_DELIVERABLE_CONTEXT {
2404 pub DeliverableType: WHV_X64_PENDING_INTERRUPTION_TYPE,
2405 }
2406 impl ::core::marker::Copy for WHV_X64_INTERRUPTION_DELIVERABLE_CONTEXT {}
2407 impl ::core::clone::Clone for WHV_X64_INTERRUPTION_DELIVERABLE_CONTEXT {
2408 fn clone(&self) -> Self {
2409 *self
2410 }
2411 }
2412 #[repr(C)]
2413 pub union WHV_X64_INTERRUPT_STATE_REGISTER {
2414 pub Anonymous: WHV_X64_INTERRUPT_STATE_REGISTER_0,
2415 pub AsUINT64: u64,
2416 }
2417 impl ::core::marker::Copy for WHV_X64_INTERRUPT_STATE_REGISTER {}
2418 impl ::core::clone::Clone for WHV_X64_INTERRUPT_STATE_REGISTER {
2419 fn clone(&self) -> Self {
2420 *self
2421 }
2422 }
2423 #[repr(C)]
2424 pub struct WHV_X64_INTERRUPT_STATE_REGISTER_0 {
2425 pub _bitfield: u64,
2426 }
2427 impl ::core::marker::Copy for WHV_X64_INTERRUPT_STATE_REGISTER_0 {}
2428 impl ::core::clone::Clone for WHV_X64_INTERRUPT_STATE_REGISTER_0 {
2429 fn clone(&self) -> Self {
2430 *self
2431 }
2432 }
2433 #[repr(C)]
2434 pub struct WHV_X64_IO_PORT_ACCESS_CONTEXT {
2435 pub InstructionByteCount: u8,
2436 pub Reserved: [u8; 3],
2437 pub InstructionBytes: [u8; 16],
2438 pub AccessInfo: WHV_X64_IO_PORT_ACCESS_INFO,
2439 pub PortNumber: u16,
2440 pub Reserved2: [u16; 3],
2441 pub Rax: u64,
2442 pub Rcx: u64,
2443 pub Rsi: u64,
2444 pub Rdi: u64,
2445 pub Ds: WHV_X64_SEGMENT_REGISTER,
2446 pub Es: WHV_X64_SEGMENT_REGISTER,
2447 }
2448 impl ::core::marker::Copy for WHV_X64_IO_PORT_ACCESS_CONTEXT {}
2449 impl ::core::clone::Clone for WHV_X64_IO_PORT_ACCESS_CONTEXT {
2450 fn clone(&self) -> Self {
2451 *self
2452 }
2453 }
2454 #[repr(C)]
2455 pub union WHV_X64_IO_PORT_ACCESS_INFO {
2456 pub Anonymous: WHV_X64_IO_PORT_ACCESS_INFO_0,
2457 pub AsUINT32: u32,
2458 }
2459 impl ::core::marker::Copy for WHV_X64_IO_PORT_ACCESS_INFO {}
2460 impl ::core::clone::Clone for WHV_X64_IO_PORT_ACCESS_INFO {
2461 fn clone(&self) -> Self {
2462 *self
2463 }
2464 }
2465 #[repr(C)]
2466 pub struct WHV_X64_IO_PORT_ACCESS_INFO_0 {
2467 pub _bitfield: u32,
2468 }
2469 impl ::core::marker::Copy for WHV_X64_IO_PORT_ACCESS_INFO_0 {}
2470 impl ::core::clone::Clone for WHV_X64_IO_PORT_ACCESS_INFO_0 {
2471 fn clone(&self) -> Self {
2472 *self
2473 }
2474 }
2475 #[repr(C)]
2476 pub struct WHV_X64_MSR_ACCESS_CONTEXT {
2477 pub AccessInfo: WHV_X64_MSR_ACCESS_INFO,
2478 pub MsrNumber: u32,
2479 pub Rax: u64,
2480 pub Rdx: u64,
2481 }
2482 impl ::core::marker::Copy for WHV_X64_MSR_ACCESS_CONTEXT {}
2483 impl ::core::clone::Clone for WHV_X64_MSR_ACCESS_CONTEXT {
2484 fn clone(&self) -> Self {
2485 *self
2486 }
2487 }
2488 #[repr(C)]
2489 pub union WHV_X64_MSR_ACCESS_INFO {
2490 pub Anonymous: WHV_X64_MSR_ACCESS_INFO_0,
2491 pub AsUINT32: u32,
2492 }
2493 impl ::core::marker::Copy for WHV_X64_MSR_ACCESS_INFO {}
2494 impl ::core::clone::Clone for WHV_X64_MSR_ACCESS_INFO {
2495 fn clone(&self) -> Self {
2496 *self
2497 }
2498 }
2499 #[repr(C)]
2500 pub struct WHV_X64_MSR_ACCESS_INFO_0 {
2501 pub _bitfield: u32,
2502 }
2503 impl ::core::marker::Copy for WHV_X64_MSR_ACCESS_INFO_0 {}
2504 impl ::core::clone::Clone for WHV_X64_MSR_ACCESS_INFO_0 {
2505 fn clone(&self) -> Self {
2506 *self
2507 }
2508 }
2509 #[repr(C)]
2510 pub union WHV_X64_MSR_EXIT_BITMAP {
2511 pub AsUINT64: u64,
2512 pub Anonymous: WHV_X64_MSR_EXIT_BITMAP_0,
2513 }
2514 impl ::core::marker::Copy for WHV_X64_MSR_EXIT_BITMAP {}
2515 impl ::core::clone::Clone for WHV_X64_MSR_EXIT_BITMAP {
2516 fn clone(&self) -> Self {
2517 *self
2518 }
2519 }
2520 #[repr(C)]
2521 pub struct WHV_X64_MSR_EXIT_BITMAP_0 {
2522 pub _bitfield: u64,
2523 }
2524 impl ::core::marker::Copy for WHV_X64_MSR_EXIT_BITMAP_0 {}
2525 impl ::core::clone::Clone for WHV_X64_MSR_EXIT_BITMAP_0 {
2526 fn clone(&self) -> Self {
2527 *self
2528 }
2529 }
2530 #[repr(C)]
2531 pub union WHV_X64_PENDING_DEBUG_EXCEPTION {
2532 pub AsUINT64: u64,
2533 pub Anonymous: WHV_X64_PENDING_DEBUG_EXCEPTION_0,
2534 }
2535 impl ::core::marker::Copy for WHV_X64_PENDING_DEBUG_EXCEPTION {}
2536 impl ::core::clone::Clone for WHV_X64_PENDING_DEBUG_EXCEPTION {
2537 fn clone(&self) -> Self {
2538 *self
2539 }
2540 }
2541 #[repr(C)]
2542 pub struct WHV_X64_PENDING_DEBUG_EXCEPTION_0 {
2543 pub _bitfield: u64,
2544 }
2545 impl ::core::marker::Copy for WHV_X64_PENDING_DEBUG_EXCEPTION_0 {}
2546 impl ::core::clone::Clone for WHV_X64_PENDING_DEBUG_EXCEPTION_0 {
2547 fn clone(&self) -> Self {
2548 *self
2549 }
2550 }
2551 #[repr(C)]
2552 pub union WHV_X64_PENDING_EXCEPTION_EVENT {
2553 pub Anonymous: WHV_X64_PENDING_EXCEPTION_EVENT_0,
2554 pub AsUINT128: WHV_UINT128,
2555 }
2556 impl ::core::marker::Copy for WHV_X64_PENDING_EXCEPTION_EVENT {}
2557 impl ::core::clone::Clone for WHV_X64_PENDING_EXCEPTION_EVENT {
2558 fn clone(&self) -> Self {
2559 *self
2560 }
2561 }
2562 #[repr(C)]
2563 pub struct WHV_X64_PENDING_EXCEPTION_EVENT_0 {
2564 pub _bitfield: u32,
2565 pub ErrorCode: u32,
2566 pub ExceptionParameter: u64,
2567 }
2568 impl ::core::marker::Copy for WHV_X64_PENDING_EXCEPTION_EVENT_0 {}
2569 impl ::core::clone::Clone for WHV_X64_PENDING_EXCEPTION_EVENT_0 {
2570 fn clone(&self) -> Self {
2571 *self
2572 }
2573 }
2574 #[repr(C)]
2575 pub union WHV_X64_PENDING_EXT_INT_EVENT {
2576 pub Anonymous: WHV_X64_PENDING_EXT_INT_EVENT_0,
2577 pub AsUINT128: WHV_UINT128,
2578 }
2579 impl ::core::marker::Copy for WHV_X64_PENDING_EXT_INT_EVENT {}
2580 impl ::core::clone::Clone for WHV_X64_PENDING_EXT_INT_EVENT {
2581 fn clone(&self) -> Self {
2582 *self
2583 }
2584 }
2585 #[repr(C)]
2586 pub struct WHV_X64_PENDING_EXT_INT_EVENT_0 {
2587 pub _bitfield: u64,
2588 pub Reserved2: u64,
2589 }
2590 impl ::core::marker::Copy for WHV_X64_PENDING_EXT_INT_EVENT_0 {}
2591 impl ::core::clone::Clone for WHV_X64_PENDING_EXT_INT_EVENT_0 {
2592 fn clone(&self) -> Self {
2593 *self
2594 }
2595 }
2596 #[repr(C)]
2597 pub union WHV_X64_PENDING_INTERRUPTION_REGISTER {
2598 pub Anonymous: WHV_X64_PENDING_INTERRUPTION_REGISTER_0,
2599 pub AsUINT64: u64,
2600 }
2601 impl ::core::marker::Copy for WHV_X64_PENDING_INTERRUPTION_REGISTER {}
2602 impl ::core::clone::Clone for WHV_X64_PENDING_INTERRUPTION_REGISTER {
2603 fn clone(&self) -> Self {
2604 *self
2605 }
2606 }
2607 #[repr(C)]
2608 pub struct WHV_X64_PENDING_INTERRUPTION_REGISTER_0 {
2609 pub _bitfield: u32,
2610 pub ErrorCode: u32,
2611 }
2612 impl ::core::marker::Copy for WHV_X64_PENDING_INTERRUPTION_REGISTER_0 {}
2613 impl ::core::clone::Clone for WHV_X64_PENDING_INTERRUPTION_REGISTER_0 {
2614 fn clone(&self) -> Self {
2615 *self
2616 }
2617 }
2618 #[repr(C)]
2619 pub struct WHV_X64_RDTSC_CONTEXT {
2620 pub TscAux: u64,
2621 pub VirtualOffset: u64,
2622 pub Tsc: u64,
2623 pub ReferenceTime: u64,
2624 pub RdtscInfo: WHV_X64_RDTSC_INFO,
2625 }
2626 impl ::core::marker::Copy for WHV_X64_RDTSC_CONTEXT {}
2627 impl ::core::clone::Clone for WHV_X64_RDTSC_CONTEXT {
2628 fn clone(&self) -> Self {
2629 *self
2630 }
2631 }
2632 #[repr(C)]
2633 pub union WHV_X64_RDTSC_INFO {
2634 pub Anonymous: WHV_X64_RDTSC_INFO_0,
2635 pub AsUINT64: u64,
2636 }
2637 impl ::core::marker::Copy for WHV_X64_RDTSC_INFO {}
2638 impl ::core::clone::Clone for WHV_X64_RDTSC_INFO {
2639 fn clone(&self) -> Self {
2640 *self
2641 }
2642 }
2643 #[repr(C)]
2644 pub struct WHV_X64_RDTSC_INFO_0 {
2645 pub _bitfield: u64,
2646 }
2647 impl ::core::marker::Copy for WHV_X64_RDTSC_INFO_0 {}
2648 impl ::core::clone::Clone for WHV_X64_RDTSC_INFO_0 {
2649 fn clone(&self) -> Self {
2650 *self
2651 }
2652 }
2653 #[repr(C)]
2654 pub struct WHV_X64_SEGMENT_REGISTER {
2655 pub Base: u64,
2656 pub Limit: u32,
2657 pub Selector: u16,
2658 pub Anonymous: WHV_X64_SEGMENT_REGISTER_0,
2659 }
2660 impl ::core::marker::Copy for WHV_X64_SEGMENT_REGISTER {}
2661 impl ::core::clone::Clone for WHV_X64_SEGMENT_REGISTER {
2662 fn clone(&self) -> Self {
2663 *self
2664 }
2665 }
2666 #[repr(C)]
2667 pub union WHV_X64_SEGMENT_REGISTER_0 {
2668 pub Anonymous: WHV_X64_SEGMENT_REGISTER_0_0,
2669 pub Attributes: u16,
2670 }
2671 impl ::core::marker::Copy for WHV_X64_SEGMENT_REGISTER_0 {}
2672 impl ::core::clone::Clone for WHV_X64_SEGMENT_REGISTER_0 {
2673 fn clone(&self) -> Self {
2674 *self
2675 }
2676 }
2677 #[repr(C)]
2678 pub struct WHV_X64_SEGMENT_REGISTER_0_0 {
2679 pub _bitfield: u16,
2680 }
2681 impl ::core::marker::Copy for WHV_X64_SEGMENT_REGISTER_0_0 {}
2682 impl ::core::clone::Clone for WHV_X64_SEGMENT_REGISTER_0_0 {
2683 fn clone(&self) -> Self {
2684 *self
2685 }
2686 }
2687 #[repr(C)]
2688 pub struct WHV_X64_TABLE_REGISTER {
2689 pub Pad: [u16; 3],
2690 pub Limit: u16,
2691 pub Base: u64,
2692 }
2693 impl ::core::marker::Copy for WHV_X64_TABLE_REGISTER {}
2694 impl ::core::clone::Clone for WHV_X64_TABLE_REGISTER {
2695 fn clone(&self) -> Self {
2696 *self
2697 }
2698 }
2699 #[repr(C)]
2700 pub struct WHV_X64_UNSUPPORTED_FEATURE_CONTEXT {
2701 pub FeatureCode: WHV_X64_UNSUPPORTED_FEATURE_CODE,
2702 pub Reserved: u32,
2703 pub FeatureParameter: u64,
2704 }
2705 impl ::core::marker::Copy for WHV_X64_UNSUPPORTED_FEATURE_CONTEXT {}
2706 impl ::core::clone::Clone for WHV_X64_UNSUPPORTED_FEATURE_CONTEXT {
2707 fn clone(&self) -> Self {
2708 *self
2709 }
2710 }
2711 #[repr(C)]
2712 pub union WHV_X64_VP_EXECUTION_STATE {
2713 pub Anonymous: WHV_X64_VP_EXECUTION_STATE_0,
2714 pub AsUINT16: u16,
2715 }
2716 impl ::core::marker::Copy for WHV_X64_VP_EXECUTION_STATE {}
2717 impl ::core::clone::Clone for WHV_X64_VP_EXECUTION_STATE {
2718 fn clone(&self) -> Self {
2719 *self
2720 }
2721 }
2722 #[repr(C)]
2723 pub struct WHV_X64_VP_EXECUTION_STATE_0 {
2724 pub _bitfield: u16,
2725 }
2726 impl ::core::marker::Copy for WHV_X64_VP_EXECUTION_STATE_0 {}
2727 impl ::core::clone::Clone for WHV_X64_VP_EXECUTION_STATE_0 {
2728 fn clone(&self) -> Self {
2729 *self
2730 }
2731 }
2732 #[repr(C)]
2733 pub union WHV_X64_XMM_CONTROL_STATUS_REGISTER {
2734 pub Anonymous: WHV_X64_XMM_CONTROL_STATUS_REGISTER_0,
2735 pub AsUINT128: WHV_UINT128,
2736 }
2737 impl ::core::marker::Copy for WHV_X64_XMM_CONTROL_STATUS_REGISTER {}
2738 impl ::core::clone::Clone for WHV_X64_XMM_CONTROL_STATUS_REGISTER {
2739 fn clone(&self) -> Self {
2740 *self
2741 }
2742 }
2743 #[repr(C)]
2744 pub struct WHV_X64_XMM_CONTROL_STATUS_REGISTER_0 {
2745 pub Anonymous: WHV_X64_XMM_CONTROL_STATUS_REGISTER_0_0,
2746 pub XmmStatusControl: u32,
2747 pub XmmStatusControlMask: u32,
2748 }
2749 impl ::core::marker::Copy for WHV_X64_XMM_CONTROL_STATUS_REGISTER_0 {}
2750 impl ::core::clone::Clone for WHV_X64_XMM_CONTROL_STATUS_REGISTER_0 {
2751 fn clone(&self) -> Self {
2752 *self
2753 }
2754 }
2755 #[repr(C)]
2756 pub union WHV_X64_XMM_CONTROL_STATUS_REGISTER_0_0 {
2757 pub LastFpRdp: u64,
2758 pub Anonymous: WHV_X64_XMM_CONTROL_STATUS_REGISTER_0_0_0,
2759 }
2760 impl ::core::marker::Copy for WHV_X64_XMM_CONTROL_STATUS_REGISTER_0_0 {}
2761 impl ::core::clone::Clone for WHV_X64_XMM_CONTROL_STATUS_REGISTER_0_0 {
2762 fn clone(&self) -> Self {
2763 *self
2764 }
2765 }
2766 #[repr(C)]
2767 pub struct WHV_X64_XMM_CONTROL_STATUS_REGISTER_0_0_0 {
2768 pub LastFpDp: u32,
2769 pub LastFpDs: u16,
2770 pub Reserved: u16,
2771 }
2772 impl ::core::marker::Copy for WHV_X64_XMM_CONTROL_STATUS_REGISTER_0_0_0 {}
2773 impl ::core::clone::Clone for WHV_X64_XMM_CONTROL_STATUS_REGISTER_0_0_0 {
2774 fn clone(&self) -> Self {
2775 *self
2776 }
2777 }
2778 #[doc = "Required features: `\"Win32_Foundation\"`"]
2779 #[cfg(feature = "Win32_Foundation")]
2780 pub type FOUND_IMAGE_CALLBACK = ::core::option::Option<unsafe extern "system" fn(context: *const ::core::ffi::c_void, imageinfo: *const DOS_IMAGE_INFO) -> super::super::Foundation::BOOL>;
2781 pub type GUEST_SYMBOLS_PROVIDER_DEBUG_INFO_CALLBACK = ::core::option::Option<unsafe extern "system" fn(infomessage: ::windows_sys::core::PCSTR) -> ()>;
2782 pub type HDV_PCI_DEVICE_GET_DETAILS = ::core::option::Option<unsafe extern "system" fn(devicecontext: *const ::core::ffi::c_void, pnpid: *mut HDV_PCI_PNP_ID, probedbarscount: u32, probedbars: *mut u32) -> ::windows_sys::core::HRESULT>;
2783 pub type HDV_PCI_DEVICE_INITIALIZE = ::core::option::Option<unsafe extern "system" fn(devicecontext: *const ::core::ffi::c_void) -> ::windows_sys::core::HRESULT>;
2784 pub type HDV_PCI_DEVICE_SET_CONFIGURATION = ::core::option::Option<unsafe extern "system" fn(devicecontext: *const ::core::ffi::c_void, configurationvaluecount: u32, configurationvalues: *const ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT>;
2785 pub type HDV_PCI_DEVICE_START = ::core::option::Option<unsafe extern "system" fn(devicecontext: *const ::core::ffi::c_void) -> ::windows_sys::core::HRESULT>;
2786 pub type HDV_PCI_DEVICE_STOP = ::core::option::Option<unsafe extern "system" fn(devicecontext: *const ::core::ffi::c_void) -> ()>;
2787 pub type HDV_PCI_DEVICE_TEARDOWN = ::core::option::Option<unsafe extern "system" fn(devicecontext: *const ::core::ffi::c_void) -> ()>;
2788 pub type HDV_PCI_READ_CONFIG_SPACE = ::core::option::Option<unsafe extern "system" fn(devicecontext: *const ::core::ffi::c_void, offset: u32, value: *mut u32) -> ::windows_sys::core::HRESULT>;
2789 pub type HDV_PCI_READ_INTERCEPTED_MEMORY = ::core::option::Option<unsafe extern "system" fn(devicecontext: *const ::core::ffi::c_void, barindex: HDV_PCI_BAR_SELECTOR, offset: u64, length: u64, value: *mut u8) -> ::windows_sys::core::HRESULT>;
2790 pub type HDV_PCI_WRITE_CONFIG_SPACE = ::core::option::Option<unsafe extern "system" fn(devicecontext: *const ::core::ffi::c_void, offset: u32, value: u32) -> ::windows_sys::core::HRESULT>;
2791 pub type HDV_PCI_WRITE_INTERCEPTED_MEMORY = ::core::option::Option<unsafe extern "system" fn(devicecontext: *const ::core::ffi::c_void, barindex: HDV_PCI_BAR_SELECTOR, offset: u64, length: u64, value: *const u8) -> ::windows_sys::core::HRESULT>;
2792 pub type WHV_EMULATOR_GET_VIRTUAL_PROCESSOR_REGISTERS_CALLBACK = ::core::option::Option<unsafe extern "system" fn(context: *const ::core::ffi::c_void, registernames: *const WHV_REGISTER_NAME, registercount: u32, registervalues: *mut WHV_REGISTER_VALUE) -> ::windows_sys::core::HRESULT>;
2793 pub type WHV_EMULATOR_IO_PORT_CALLBACK = ::core::option::Option<unsafe extern "system" fn(context: *const ::core::ffi::c_void, ioaccess: *mut WHV_EMULATOR_IO_ACCESS_INFO) -> ::windows_sys::core::HRESULT>;
2794 pub type WHV_EMULATOR_MEMORY_CALLBACK = ::core::option::Option<unsafe extern "system" fn(context: *const ::core::ffi::c_void, memoryaccess: *mut WHV_EMULATOR_MEMORY_ACCESS_INFO) -> ::windows_sys::core::HRESULT>;
2795 pub type WHV_EMULATOR_SET_VIRTUAL_PROCESSOR_REGISTERS_CALLBACK = ::core::option::Option<unsafe extern "system" fn(context: *const ::core::ffi::c_void, registernames: *const WHV_REGISTER_NAME, registercount: u32, registervalues: *const WHV_REGISTER_VALUE) -> ::windows_sys::core::HRESULT>;
2796 pub type WHV_EMULATOR_TRANSLATE_GVA_PAGE_CALLBACK = ::core::option::Option<unsafe extern "system" fn(context: *const ::core::ffi::c_void, gva: u64, translateflags: WHV_TRANSLATE_GVA_FLAGS, translationresult: *mut WHV_TRANSLATE_GVA_RESULT_CODE, gpa: *mut u64) -> ::windows_sys::core::HRESULT>;