From: Sandy Stutsman <sstut...@redhat.com>

Add MdlMappingNoExecute to MmGetSystemAddressForMDLSafe call in
ExecutePresentDisplayOnly.

Acked-by: Frediano Ziglio <fzig...@redhat.com>
---
 qxldod/QxlDod.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/qxldod/QxlDod.cpp b/qxldod/QxlDod.cpp
index dc83f26..67bb88a 100755
--- a/qxldod/QxlDod.cpp
+++ b/qxldod/QxlDod.cpp
@@ -2767,7 +2767,7 @@ VgaDevice::ExecutePresentDisplayOnly(
         // Note: double mapping the buffer this way causes lot of system
         // overhead for large size buffers.
         ctx->SrcAddr = reinterpret_cast<BYTE*>
-            (MmGetSystemAddressForMdlSafe(mdl, NormalPagePriority ));
+            (MmGetSystemAddressForMdlSafe(mdl, NormalPagePriority | 
MdlMappingNoExecute));
 
         if(!ctx->SrcAddr) {
             Status = STATUS_INSUFFICIENT_RESOURCES;
@@ -3666,7 +3666,7 @@ QxlDevice::ExecutePresentDisplayOnly(
         // Note: double mapping the buffer this way causes lot of system
         // overhead for large size buffers.
         ctx->SrcAddr = reinterpret_cast<BYTE*>
-            (MmGetSystemAddressForMdlSafe(mdl, NormalPagePriority ));
+            (MmGetSystemAddressForMdlSafe(mdl, NormalPagePriority | 
MdlMappingNoExecute));
 
         if(!ctx->SrcAddr) {
             Status = STATUS_INSUFFICIENT_RESOURCES;
-- 
2.7.0.windows.1

_______________________________________________
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to