qxl: factor out qxl_get_check_slot_offset
commit726bdf653aca9b87e28c9a56dd94c4667ddfacbc
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 22 Jun 2016 12:07:22 +0000 (22 14:07 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 6 Jul 2016 08:31:11 +0000 (6 10:31 +0200)
tree829b54be1efd572f9e5df89ed1dc4f7b70d7b1ab
parent2f5ae772c62499873a0da8fffa03594753eb8fa8
qxl: factor out qxl_get_check_slot_offset

New helper function which translates a qxl physical address into
memory slot and offset.  Also applies sanity checks.  Factored out
from qxl_phys2virt.  No functional change.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 1466597244-5938-1-git-send-email-kraxel@redhat.com
hw/display/qxl.c