[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [win-pv-devel] [PATCH xenbus 1/2] make it compile for Windows 7
> -----Original Message----- > From: win-pv-devel [mailto:win-pv-devel-bounces@xxxxxxxxxxxxxxxxxxxx] On > Behalf Of Marek Marczykowski-Górecki > Sent: 08 July 2018 01:30 > To: win-pv-devel@xxxxxxxxxxxxxxxxxxxx > Cc: Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx> > Subject: [win-pv-devel] [PATCH xenbus 1/2] make it compile for Windows 7 > > MmAllocateContiguousNodeMemory is available in Windows 8+, use > MmAllocateContiguousMemory when building for older version. > > Signed-off-by: Marek Marczykowski-Górecki > <marmarek@xxxxxxxxxxxxxxxxxxxxxx> As discussed, I'm going to nack all the Win7 compat patches for master and instead backport the vs2017 build scripts to staging-8.2 (which is intended to support win7). I'll also bump the micro version to 8.2.2. Paul > --- > src/xenbus/fdo.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/src/xenbus/fdo.c b/src/xenbus/fdo.c > index 8ca8f52..7bd33a4 100644 > --- a/src/xenbus/fdo.c > +++ b/src/xenbus/fdo.c > @@ -5079,12 +5079,17 @@ __FdoAllocateBuffer( > High = SystemMaximumPhysicalAddress(); > Align.QuadPart = Size; > > +#if _WIN32_WINNT >= _WIN32_WINNT_WIN8 > Buffer = MmAllocateContiguousNodeMemory((SIZE_T)Size, > Low, > High, > Align, > PAGE_READWRITE, > MM_ANY_NODE_OK); > +#else > + Buffer = MmAllocateContiguousMemory((SIZE_T)Size, > + High); > +#endif > > status = STATUS_NO_MEMORY; > if (Buffer == NULL) > -- > 2.13.6 > > > _______________________________________________ > 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |