aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/virtio_gpu.h
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2018-11-20 17:20:04 +0100
committerGerd Hoffmann <kraxel@redhat.com>2018-11-21 09:12:46 +0100
commit0081cdfe63f0b5e72b14d13f45a93ca7b0b8092f (patch)
tree6cff11e8bce594f84bf9ff9ff4bacf720e4abdee /include/uapi/linux/virtio_gpu.h
parentqxl: Remove unused qxl_bo_pin arguments (diff)
downloadlinux-dev-0081cdfe63f0b5e72b14d13f45a93ca7b0b8092f.tar.xz
linux-dev-0081cdfe63f0b5e72b14d13f45a93ca7b0b8092f.zip
qxl: Make sure qxl_cursor memory is pinned
QEMU keeps a vram reference to the last QXLCursorCmd it received. This QXLCursorCmd command points to a QXLCursor instance (stored in vram too). However, while the QXLCursorCmd memory is pinned, the QXLCursor memory is not. When booting a recent Fedora to its login screen while monitoring the QXLCursorCmd QEMU holds, it's possible to see the QXLCursor memory becoming invalid shortly after boot. Pinning that memory ensures that that QXLCursor memory is not going to be moved by the guest kernel. Moving the pin/unpin to qxl_release_list_add()/qxl_release_free_list() would be a more generic fix. However, doing this quickly exhausts QXL video memory, so more fixing would be needed before this is workable. Signed-off-by: Christophe Fergeau <cfergeau@redhat.com> Link: http://patchwork.freedesktop.org/patch/msgid/20181120162004.22807-3-cfergeau@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/uapi/linux/virtio_gpu.h')
0 files changed, 0 insertions, 0 deletions