]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commit
Only call EvtchnFlush on valid Cpus
authorOwen Smith <owen.smith@cloud.com>
Tue, 20 Jun 2023 14:33:19 +0000 (15:33 +0100)
committerPaul Durrant <pdurrant@amazon.com>
Tue, 4 Jul 2023 17:23:26 +0000 (18:23 +0100)
commita497caadad91824da9773da255c25d0e9b984984
tree34eef1f1e2d5f7e0bfc1c60a15bb9315970e9460
parent4fdf17f75284ae17a5459421bfae6bacc802d0a3
Only call EvtchnFlush on valid Cpus

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>
src/xenbus/evtchn.c