summaryrefslogtreecommitdiff
path: root/hw/display/qxl.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2016-06-22 14:07:23 +0200
committerGerd Hoffmann <kraxel@redhat.com>2016-07-06 10:31:11 +0200
commit3cb5158f15604a9f50287f2f06777d5835ff4c15 (patch)
tree15669715cb9ada3c4beb693f460e35e16036a5aa /hw/display/qxl.h
parent726bdf653aca9b87e28c9a56dd94c4667ddfacbc (diff)
downloadqemu-3cb5158f15604a9f50287f2f06777d5835ff4c15.tar.gz
qxl: store memory region and offset instead of pointer for guest slots
Store MemoryRegion and offset instead of a pointer for each qxl memory slot, so we can easily figure in which memory region an qxl object stored. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 1466597244-5938-2-git-send-email-kraxel@redhat.com
Diffstat (limited to 'hw/display/qxl.h')
-rw-r--r--hw/display/qxl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/display/qxl.h b/hw/display/qxl.h
index 39ff00407d..fdb619d4a7 100644
--- a/hw/display/qxl.h
+++ b/hw/display/qxl.h
@@ -53,7 +53,8 @@ typedef struct PCIQXLDevice {
struct guest_slots {
QXLMemSlot slot;
- void *ptr;
+ MemoryRegion *mr;
+ uint64_t offset;
uint64_t size;
uint64_t delta;
uint32_t active;