Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

virt: vbox: Add a few new vmmdev request types to the userspace whitelist

Upstream VirtualBox has defined and is using a few new request types for
vmmdev requests passed through /dev/vboxguest to the hypervisor.

Add the defines for these to vbox_vmmdev_types.h and add add them to the
whitelists of vmmdev requests which userspace is allowed to make.

BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1789545
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20200709120858.63928-7-hdegoede@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Hans de Goede and committed by
Greg Kroah-Hartman
316b0035 631beddc

+5
+2
drivers/virt/vboxguest/vboxguest_core.c
··· 1299 1299 case VMMDEVREQ_VIDEO_ACCEL_ENABLE: 1300 1300 case VMMDEVREQ_VIDEO_ACCEL_FLUSH: 1301 1301 case VMMDEVREQ_VIDEO_SET_VISIBLE_REGION: 1302 + case VMMDEVREQ_VIDEO_UPDATE_MONITOR_POSITIONS: 1302 1303 case VMMDEVREQ_GET_DISPLAY_CHANGE_REQEX: 1304 + case VMMDEVREQ_GET_DISPLAY_CHANGE_REQ_MULTI: 1303 1305 case VMMDEVREQ_GET_SEAMLESS_CHANGE_REQ: 1304 1306 case VMMDEVREQ_GET_VRDPCHANGE_REQ: 1305 1307 case VMMDEVREQ_LOG_STRING:
+3
include/uapi/linux/vbox_vmmdev_types.h
··· 63 63 VMMDEVREQ_SET_GUEST_CAPABILITIES = 56, 64 64 VMMDEVREQ_VIDEMODE_SUPPORTED2 = 57, /* since version 3.2.0 */ 65 65 VMMDEVREQ_GET_DISPLAY_CHANGE_REQEX = 80, /* since version 4.2.4 */ 66 + VMMDEVREQ_GET_DISPLAY_CHANGE_REQ_MULTI = 81, 66 67 VMMDEVREQ_HGCM_CONNECT = 60, 67 68 VMMDEVREQ_HGCM_DISCONNECT = 61, 68 69 VMMDEVREQ_HGCM_CALL32 = 62, ··· 93 92 VMMDEVREQ_WRITE_COREDUMP = 218, 94 93 VMMDEVREQ_GUEST_HEARTBEAT = 219, 95 94 VMMDEVREQ_HEARTBEAT_CONFIGURE = 220, 95 + VMMDEVREQ_NT_BUG_CHECK = 221, 96 + VMMDEVREQ_VIDEO_UPDATE_MONITOR_POSITIONS = 222, 96 97 /* Ensure the enum is a 32 bit data-type */ 97 98 VMMDEVREQ_SIZEHACK = 0x7fffffff 98 99 };