|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [win-pv-devel] [PATCH 1/2] Size XENBUS_CACHE Magazine array to maximum processor count
Sizing to active processor count means that the array will be too small if
a processor is onlined after cache creation.
Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx>
---
src/xenbus/cache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/xenbus/cache.c b/src/xenbus/cache.c
index 9727b14..5a14411 100644
--- a/src/xenbus/cache.c
+++ b/src/xenbus/cache.c
@@ -617,7 +617,7 @@ CacheCreate(
if (!NT_SUCCESS(status))
goto fail4;
- (*Cache)->MagazineCount =
KeQueryActiveProcessorCountEx(ALL_PROCESSOR_GROUPS);
+ (*Cache)->MagazineCount =
KeQueryMaximumProcessorCountEx(ALL_PROCESSOR_GROUPS);
(*Cache)->Magazine = __CacheAllocate(sizeof (XENBUS_CACHE_MAGAZINE) *
(*Cache)->MagazineCount);
status = STATUS_NO_MEMORY;
--
2.1.1
_______________________________________________
win-pv-devel mailing list
win-pv-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/win-pv-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |