From 3888d48547a6915bb2a91bf80b45c6f362e05b9e Mon Sep 17 00:00:00 2001 From: Paul Durrant Date: Fri, 11 Nov 2016 15:23:04 +0000 Subject: [PATCH] Make sure we don't specify an interrupt processor group... ...on OS prior to Windows 7. Signed-off-by: Paul Durrant --- src/xenbus/fdo.c | 4 +++- vs2012/xenbus/xenbus.vcxproj | 2 +- vs2013/xenbus/xenbus.vcxproj | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/xenbus/fdo.c b/src/xenbus/fdo.c index 2e1ef6b..ef31de1 100644 --- a/src/xenbus/fdo.c +++ b/src/xenbus/fdo.c @@ -1897,7 +1897,9 @@ FdoFilterResourceRequirements( status = KeGetProcessorNumberFromIndex(Index, &ProcNumber); ASSERT(NT_SUCCESS(status)); - Interrupt.u.Interrupt.Group = ProcNumber.Group; + if (RtlIsNtDdiVersionAvailable(NTDDI_WIN7)) + Interrupt.u.Interrupt.Group = ProcNumber.Group; + Interrupt.u.Interrupt.TargetedProcessors = (KAFFINITY)1 << ProcNumber.Number; List->Descriptors[List->Count++] = Interrupt; } diff --git a/vs2012/xenbus/xenbus.vcxproj b/vs2012/xenbus/xenbus.vcxproj index f5692eb..2cffb9f 100644 --- a/vs2012/xenbus/xenbus.vcxproj +++ b/vs2012/xenbus/xenbus.vcxproj @@ -34,7 +34,7 @@ false - $(ProjectDir)..\$(ConfigurationName)\$(Platform)\xen.lib;$(DDK_LIB_PATH)/libcntpr.lib;$(DDK_LIB_PATH)/procgrp.lib;%(AdditionalDependencies) + $(ProjectDir)..\$(ConfigurationName)\$(Platform)\xen.lib;$(DDK_LIB_PATH)/libcntpr.lib;$(DDK_LIB_PATH)/procgrp.lib;$(DDK_LIB_PATH)/rtlver.lib;%(AdditionalDependencies) false diff --git a/vs2013/xenbus/xenbus.vcxproj b/vs2013/xenbus/xenbus.vcxproj index d53ce0e..396245f 100644 --- a/vs2013/xenbus/xenbus.vcxproj +++ b/vs2013/xenbus/xenbus.vcxproj @@ -37,7 +37,7 @@ false - $(ProjectDir)..\$(ConfigurationName)\$(Platform)\xen.lib;$(DDK_LIB_PATH)/libcntpr.lib;$(DDK_LIB_PATH)/procgrp.lib;%(AdditionalDependencies) + $(ProjectDir)..\$(ConfigurationName)\$(Platform)\xen.lib;$(DDK_LIB_PATH)/libcntpr.lib;$(DDK_LIB_PATH)/procgrp.lib;$(DDK_LIB_PATH)/rtlver.lib;%(AdditionalDependencies) false -- 2.39.5