|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [win-pv-devel] [PATCH] Update util.h
XENIFACE does not use much of the functionality in util.h, including the
__AllocatePages() function modified by this change, however
it is good to keep the header in-sync with the other drivers.
Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx>
---
src/xeniface/util.h | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/xeniface/util.h b/src/xeniface/util.h
index b258f9e..0a55ac9 100644
--- a/src/xeniface/util.h
+++ b/src/xeniface/util.h
@@ -219,7 +219,11 @@ __AllocatePages(
if (MdlMappedSystemVa == NULL)
goto fail3;
- ASSERT3P(MdlMappedSystemVa, ==, Mdl->MappedSystemVa);
+ Mdl->StartVa = PAGE_ALIGN(MdlMappedSystemVa);
+
+ ASSERT3U(Mdl->ByteOffset, ==, 0);
+ ASSERT3P(Mdl->StartVa, ==, MdlMappedSystemVa);
+ ASSERT3P(Mdl->MappedSystemVa, ==, MdlMappedSystemVa);
RtlZeroMemory(MdlMappedSystemVa, Mdl->ByteCount);
--
2.5.3
_______________________________________________
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 |