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

Function GetVmentryControlsMask

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

Source from the content-addressed store, hash-verified

1668 }
1669
1670 CONTROLS_MASK GetVmentryControlsMask(IA32_VMX_BASIC VmxBasic)
1671 {
1672 CONTROLS_MASK Mask = {};
1673 if (VmxBasic.Bitmap.AnyVmxControlsThatDefaultToOneMayBeZeroed) {
1674 Mask.Value = __readmsr(static_cast<unsigned long>(INTEL_MSR::IA32_VMX_TRUE_ENTRY_CTLS));
1675 } else {
1676 Mask.Value = __readmsr(static_cast<unsigned long>(INTEL_MSR::IA32_VMX_ENTRY_CTLS));
1677 }
1678
1679 return Mask;
1680 }
1681
1682 CONTROLS_MASK GetSecondaryControlsMask()
1683 {

Callers 1

VirtualizeProcessorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected