The Evtchn processor array is created using KeQueryMaximumProcessorCountEx, which
can include processors that do not get initialized.
Skip cleanup and flushing uninitialized event channels
Signed-off-by: Owen Smith <owen.smith@cloud.com>
Use EvtchnIsProcessorEnabled() rather than SystemProcessorVcpuId() as the test.
Signed-off-by: Paul Durrant <pdurrant@amazon.com>
for (Cpu = 0; Cpu < Context->ProcessorCount; Cpu++) {
PXENBUS_EVTCHN_PROCESSOR Processor;
+ if (!EvtchnIsProcessorEnabled(Context, Cpu))
+ continue;
+
ASSERT(Context->Processor != NULL);
Processor = &Context->Processor[Cpu];