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

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


  • To: Owen Smith <owen.smith@xxxxxxxxxx>, "win-pv-devel@xxxxxxxxxxxxxxxxxxxx" <win-pv-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Paul Durrant <Paul.Durrant@xxxxxxxxxx>
  • Date: Thu, 13 Jun 2019 09:05:58 +0000
  • Accept-language: en-GB, en-US
  • Authentication-results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=Paul.Durrant@xxxxxxxxxx; spf=Pass smtp.mailfrom=Paul.Durrant@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: Owen Smith <owen.smith@xxxxxxxxxx>
  • Delivery-date: Thu, 13 Jun 2019 09:06:20 +0000
  • Ironport-sdr: lYON71YCbeKdrgrqJTB+GP2ikw+d0/e703J7ehguJg4uMoTXTCAqJx5blkATOzK3ESVpVwKwfn C5j1FwlvFs4daJMcE+pBukr69vxKAjPOqq8OBwWST3202Eg1sMlIGleln1L45gsY9aq6WKdmX7 2JV+IY20K2fhPqFsRc+M+CEk4BlG2/RwJSUFxsOCBK8uTI+kY5Hn19mGiMfqE//qGkBHYFhr6Q yYLlx+fF8L9z8LxK2KrLpr9SG27Qd8Srnt45yCyTa8Y85JpLtXV8T0fjvM3vfDEGFMDomyg3u6 Nsc=
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>
  • Thread-index: AQHVITcLiFXCUMJ03UORWMhRKS6M6KaZS+bw
  • Thread-topic: [win-pv-devel] [PATCH] Use NonPagedPool for Active device properties

> -----Original Message-----
> From: win-pv-devel [mailto:win-pv-devel-bounces@xxxxxxxxxxxxxxxxxxxx] On 
> Behalf Of Owen Smith
> Sent: 12 June 2019 16:53
> To: win-pv-devel@xxxxxxxxxxxxxxxxxxxx
> Cc: Owen Smith <owen.smith@xxxxxxxxxx>
> Subject: [win-pv-devel] [PATCH] Use NonPagedPool for Active device properties
> 
> 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>

Acked-by: Paul Durrant <paul.durrant@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
_______________________________________________
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®.