From: Paul Durrant Date: Fri, 11 Nov 2016 15:23:04 +0000 (+0000) Subject: Make sure we don't specify an interrupt processor group... X-Git-Tag: 8.2.0-rc1~3 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=3888d48547a6915bb2a91bf80b45c6f362e05b9e;p=pvdrivers%2Fwin%2Fxenbus.git Make sure we don't specify an interrupt processor group... ...on OS prior to Windows 7. Signed-off-by: Paul Durrant --- 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