|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH 1/3] Fix EvtchnTwoLevelIsProcessorEnabled()
From: Paul Durrant <pdurrant@xxxxxxxxxx>
It should take account of whether the vCPU is enabled, as
EvtchnFifoIsProcessorEnabled() already does.
Signed-off-by: Paul Durrant <pdurrant@xxxxxxxxxx>
---
src/xenbus/evtchn_2l.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/xenbus/evtchn_2l.c b/src/xenbus/evtchn_2l.c
index f63ef3e33ea2..6585f73579b6 100644
--- a/src/xenbus/evtchn_2l.c
+++ b/src/xenbus/evtchn_2l.c
@@ -72,10 +72,15 @@ EvtchnTwoLevelIsProcessorEnabled(
IN ULONG Index
)
{
+ unsigned int vcpu_id;
+ NTSTATUS status;
+
UNREFERENCED_PARAMETER(_Context);
UNREFERENCED_PARAMETER(Index);
- return TRUE;
+ status = SystemProcessorVcpuId(Index, &vcpu_id);
+
+ return NT_SUCCESS(status) ? TRUE : FALSE;
}
static BOOLEAN
--
2.25.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |