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

Function VirtualizeAllProcessors

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

Virtualize all processors:

Source from the content-addressed store, hash-verified

566
567 // Virtualize all processors:
568 static bool VirtualizeAllProcessors()
569 {
570 using namespace Supplementation;
571
572 // Virtualizing each processor:
573 bool Status = Callable::CallInSystemContext([](void* Arg) -> bool
574 {
575 return Callable::ForEachCpu([](void* Arg, auto ProcessorNumber) -> bool
576 {
577 UNREFERENCED_PARAMETER(Arg);
578 UNREFERENCED_PARAMETER(ProcessorNumber);
579 return VirtualizeProcessor();
580 }, Arg);
581 }, NULL);
582
583 if (!Status)
584 DevirtualizeAllProcessors();
585
586 return Status;
587 }
588
589 static bool IsSvmSupported()
590 {

Callers 1

VirtualizeFunction · 0.85

Calls 10

CallInSystemContextFunction · 0.85
ForEachCpuFunction · 0.85
VirtualizeProcessorFunction · 0.85
InitMtrrFunction · 0.85
AllocPhysFunction · 0.85
FreePhysFunction · 0.85
FreePoolMemoryFunction · 0.85
InitHandlersTableFunction · 0.85

Tested by

no test coverage detected