[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[win-pv-devel] [PATCH] Use NonPagedPool for Active device properties


  • To: <win-pv-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Owen Smith <owen.smith@xxxxxxxxxx>
  • Date: Wed, 12 Jun 2019 16:53:05 +0100
  • Authentication-results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=owen.smith@xxxxxxxxxx; spf=Pass smtp.mailfrom=owen.smith@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: Owen Smith <owen.smith@xxxxxxxxxx>
  • Delivery-date: Wed, 12 Jun 2019 15:53:41 +0000
  • Ironport-sdr: KRaNeVeRGCDInXj2+uOJ870w3UER1dB11mSlEAq/AGTpI6HFLBMwiLAOLQ+/L48FeW1f/1BPFy Rys7prs6p6HIRY8FUBTVxc5TJCPD7Q5yiwNmpfN97eBVe0jHDXYs0j3gXkpuODODqhfJWG/VRZ 0WQ+HxTBLPZNeNe/quKyMagEzc6RfEDrwuJ7mPx1aBOAe8oqOkz/tOjIyiymTmbC8dr8fjTiLr cy7rbANk8YhcMCE4kDUnr56+f1Sot+vT3qLUupf3Cm1dXbvBKih7j4nMgLC7exhRhu7mqS8lAw pz0=
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>

ActiveDeviceId and ActiveInstanceId can be used at DISPATCH_LEVEL, and
therefore cannot use PagedPool. When these values are returned via IRPs,
the value is copied into a PagedPool buffer for the IRP to use.

Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx>
---
 src/xenfilt/driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xenfilt/driver.c b/src/xenfilt/driver.c
index ca53ad6..1b9ca98 100644
--- a/src/xenfilt/driver.c
+++ b/src/xenfilt/driver.c
@@ -257,7 +257,7 @@ __DriverGetActive(
         goto fail1;
 
     Length = Ansi[0].Length + sizeof (CHAR);
-    *Value = __AllocatePoolWithTag(PagedPool, Length, 'TLIF');
+    *Value = __AllocatePoolWithTag(NonPagedPool, Length, 'TLIF');
 
     status = STATUS_NO_MEMORY;
     if (*Value == NULL)
-- 
2.16.2.windows.1


_______________________________________________
win-pv-devel mailing list
win-pv-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/win-pv-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.