Until this commit the mainline kernel version (this version) of the vboxguest module contained a bug where it defined VBGL_IOCTL_VMMDEV_REQUEST_BIG and VBGL_IOCTL_LOG using _IOC(_IOC_READ | _IOC_WRITE, 'V', ...) instead of _IO(V, ...) as the out of tree VirtualBox upstream version does. Since the VirtualBox userspace bits are always built against VirtualBox upstream's headers, this means that so far the mainline kernel version of the vboxguest module has been failing these 2 ioctls with -ENOTTY. I guess that VBGL_IOCTL_VMMDEV_REQUEST_BIG is never used causing us to not hit that one and sofar the vboxguest driver has failed to actually log any log messages passed it through VBGL_IOCTL_LOG. This commit changes the VBGL_IOCTL_VMMDEV_REQUEST_BIG and VBGL_IOCTL_LOG defines to match the out of tree VirtualBox upstream vboxguest version, while keeping compatibility with the old wrong request defines so as to not break the kernel ABI in case someone has been using the old request defines.
Showing the changes to include/uapi (1 of 4 files). Show all
Unified · Split
| @@ -103,7 +103,7 @@ VMMDEV_ASSERT_SIZE(vbg_ioctl_driver_version_info, 24 + 20); · 102 unmodified lines | ||
| 103 | 103 | |
| 104 | 104 | |
| 105 | 105 | /* IOCTL to perform a VMM Device request larger then 1KB. */ |
| 106 | −#define VBG_IOCTL_VMMDEV_REQUEST_BIG _IOC(_IOC_READ | _IOC_WRITE, 'V', 3, 0) | |
| 106 | +#define VBG_IOCTL_VMMDEV_REQUEST_BIG _IO('V', 3) | |
| 107 | 107 | |
| 108 | 108 | |
| 109 | 109 | /** VBG_IOCTL_HGCM_CONNECT data structure. */ |
| @@ -198,7 +198,7 @@ struct vbg_ioctl_log { · 88 unmodified lines | ||
| 198 | 198 | } u; |
| 199 | 199 | }; |
| 200 | 200 | |
| 201 | −#define VBG_IOCTL_LOG(s) _IOC(_IOC_READ | _IOC_WRITE, 'V', 9, s) | |
| 201 | +#define VBG_IOCTL_LOG(s) _IO('V', 9) | |
| 202 | 202 | |
| 203 | 203 | |
| 204 | 204 | /** VBG_IOCTL_WAIT_FOR_EVENTS data structure. */ |