drm/vmwgfx: add ioctl for messaging from/to guest userspace to/from host
authorRoland Scheidegger <sroland@vmware.com>
Thu, 21 Nov 2019 16:44:56 +0000 (17:44 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 15 Jan 2020 10:54:16 +0000 (11:54 +0100)
commitcb92a3235956442c5ff211291865e219dc4cf4a0
tree4bff7a1f95f87be485bb7d045781486ad332677e
parent40efb09a7f53125719e49864da008495e39aaa1e
drm/vmwgfx: add ioctl for messaging from/to guest userspace to/from host

Up to now, guest userspace does logging directly to host using essentially
the same rather complex port assembly stuff as the kernel.
We'd rather use the same mechanism than duplicate it (it may also change in
the future), hence add a new ioctl for relaying guest/host messaging
(logging is just one application of it).

Signed-off-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_msg.c
include/uapi/drm/vmwgfx_drm.h