MCPcopy Create free account
hub / github.com/HoShiMin/Kernel-Bridge / XsetbvHandler

Function XsetbvHandler

Kernel-Bridge/API/Hypervisor.cpp:2184–2192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2182 _IRQL_requires_same_
2183 _IRQL_requires_min_(DISPATCH_LEVEL)
2184 static VMM_STATUS XsetbvHandler(__inout PRIVATE_VM_DATA* Private, __inout GUEST_CONTEXT* Context, unsigned long long Rip, __inout bool& RepeatInstruction)
2185 {
2186 UNREFERENCED_PARAMETER(Private);
2187 UNREFERENCED_PARAMETER(Rip);
2188 UNREFERENCED_PARAMETER(RepeatInstruction);
2189
2190 _xsetbv(static_cast<unsigned int>(Context->Rcx), (Context->Rdx << 32u) | Context->Rax);
2191 return VMM_STATUS::VMM_CONTINUE;
2192 }
2193
2194 _IRQL_requires_same_
2195 _IRQL_requires_min_(DISPATCH_LEVEL)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected