diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2017-04-10 16:18:53 +0100 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2017-04-12 09:19:01 +0100 |
commit | 0214d5ceda3f0da94de3813fc902150d497c6b26 (patch) | |
tree | d249ada433be6d65e9ef506367952daa52c63c7e | |
parent | 94770833a45939458f8eeb0511d64aa6fa642faf (diff) |
Allocate commands on Bar0
This is required by Qemu for migration
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Yuri Benditovich <yuri.benditovich@daynix.com>
-rwxr-xr-x | qxldod/QxlDod.cpp | 6 |
1 files 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;
}
|