Server 2022 can report Active = 32, Maximum = 64
Signed-off-by: Owen Smith <owen.smith@cloud.com>
LONG References;
HANDLE ParametersKey;
ULONG RegisterVcpuInfo;
+ ULONG ActiveProcessors;
NTSTATUS status;
References = InterlockedIncrement(&Context->References);
if (References != 1)
goto fail1;
+ ActiveProcessors = KeQueryActiveProcessorCountEx(ALL_PROCESSOR_GROUPS);
Context->ProcessorCount = KeQueryMaximumProcessorCountEx(ALL_PROCESSOR_GROUPS);
Context->Processor = __SystemAllocate(sizeof (SYSTEM_PROCESSOR) * Context->ProcessorCount);
+ Info("CPUs %u / %u\n", ActiveProcessors, Context->ProcessorCount);
+
status = STATUS_NO_MEMORY;
if (Context->Processor == NULL)
goto fail2;