win-pvdrivers

changeset 801:0be989e514c0

zero pages before returning to xen when ballooning down
author James Harper <james.harper@bendigoit.com.au>
date Thu Jun 24 12:51:46 2010 +1000 (2010-06-24)
parents 1d06ba3917d2
children 05bab5b47a93
files xenpci/xenpci_fdo.c
line diff
     1.1 --- a/xenpci/xenpci_fdo.c	Thu Jun 24 12:51:23 2010 +1000
     1.2 +++ b/xenpci/xenpci_fdo.c	Thu Jun 24 12:51:46 2010 +1000
     1.3 @@ -308,7 +308,8 @@ XenPci_BalloonThreadProc(PVOID StartCont
     1.4          alloc_high.QuadPart = 0xFFFFFFFFFFFFFFFFULL;
     1.5          alloc_skip.QuadPart = 0;
     1.6          #if (NTDDI_VERSION >= NTDDI_WS03SP1)
     1.7 -        mdl = MmAllocatePagesForMdlEx(alloc_low, alloc_high, alloc_skip, BALLOON_UNITS, MmCached, MM_DONT_ZERO_ALLOCATION);
     1.8 +        /* our contract says that we must zero pages before returning to xen, so we can't use MM_DONT_ZERO_ALLOCATION */
     1.9 +        mdl = MmAllocatePagesForMdlEx(alloc_low, alloc_high, alloc_skip, BALLOON_UNITS, MmCached, 0);
    1.10          #else
    1.11          mdl = MmAllocatePagesForMdl(alloc_low, alloc_high, alloc_skip, BALLOON_UNITS);
    1.12          #endif