From 0214d5ceda3f0da94de3813fc902150d497c6b26 Mon Sep 17 00:00:00 2001 From: Frediano Ziglio Date: Mon, 10 Apr 2017 16:18:53 +0100 Subject: [PATCH] Allocate commands on Bar0 This is required by Qemu for migration Signed-off-by: Frediano Ziglio Acked-by: Yuri Benditovich --- qxldod/QxlDod.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qxldod/QxlDod.cpp b/qxldod/QxlDod.cpp index 75a8a02..2573b25 100755 --- a/qxldod/QxlDod.cpp +++ b/qxldod/QxlDod.cpp @@ -4135,7 +4135,8 @@ QXLDrawable *QxlDevice::GetDrawable() PAGED_CODE(); QXLOutput *output; - output = (QXLOutput *)AllocMem(MSPACE_TYPE_VRAM, sizeof(QXLOutput) + sizeof(QXLDrawable), TRUE); + // commands must be allocated into Bar0 (DEVRAM) + output = (QXLOutput *)AllocMem(MSPACE_TYPE_DEVRAM, sizeof(QXLOutput) + sizeof(QXLDrawable), TRUE); if (!output) { return NULL; } @@ -4153,7 +4154,8 @@ QXLCursorCmd *QxlDevice::CursorCmd() QXLOutput *output; DbgPrint(TRACE_LEVEL_VERBOSE, ("---> %s\n", __FUNCTION__)); - output = (QXLOutput *)AllocMem(MSPACE_TYPE_VRAM, sizeof(QXLOutput) + sizeof(QXLCursorCmd), TRUE); + // commands must be allocated into Bar0 (DEVRAM) + output = (QXLOutput *)AllocMem(MSPACE_TYPE_DEVRAM, sizeof(QXLOutput) + sizeof(QXLCursorCmd), TRUE); if (!output) { return NULL; }