Virtualize all processors:
| 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 | { |
no test coverage detected