diff options
author | Hans de Goede <hdegoede@redhat.com> | 2020-07-09 15:08:55 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-10 14:45:32 +0300 |
commit | 631beddc5466731b048263a4a9d3d67150e72f8d (patch) | |
tree | a91b756adede97fbe0def25e4bb35e52bcfcda4c /drivers/virt/vboxguest/vboxguest_core.h | |
parent | 412f84cff0c9aa95fd204961f21121f38d77cc13 (diff) | |
download | linux-631beddc5466731b048263a4a9d3d67150e72f8d.tar.xz |
virt: vbox: Add support for the new VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES ioctl
Add support for the new VBG_IOCTL_ACQUIRE_GUEST_CAPABILITIES ioctl, this
is necessary for automatic resizing of the guest resolution to match the
VM-window size to work with the new VMSVGA virtual GPU which is now the
new default in VirtualBox.
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-6-hdegoede@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/virt/vboxguest/vboxguest_core.h')
-rw-r--r-- | drivers/virt/vboxguest/vboxguest_core.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/virt/vboxguest/vboxguest_core.h b/drivers/virt/vboxguest/vboxguest_core.h index dc745a033164..ab4bf64e2cec 100644 --- a/drivers/virt/vboxguest/vboxguest_core.h +++ b/drivers/virt/vboxguest/vboxguest_core.h @@ -118,6 +118,15 @@ struct vbg_dev { u32 event_filter_host; /** + * Guest capabilities which have been switched to acquire_mode. + */ + u32 acquire_mode_guest_caps; + /** + * Guest capabilities acquired by vbg_acquire_session_capabilities(). + * Only one session can acquire a capability at a time. + */ + u32 acquired_guest_caps; + /** * Usage counters for guest capabilities requested through * vbg_set_session_capabilities(). Indexed by capability bit * number, one count per session using a capability. @@ -165,6 +174,11 @@ struct vbg_session { */ u32 event_filter; /** + * Guest capabilities acquired by vbg_acquire_session_capabilities(). + * Only one session can acquire a capability at a time. + */ + u32 acquired_guest_caps; + /** * Guest capabilities set through vbg_set_session_capabilities(). * A capability claimed by any guest session will be reported to the * host. Protected by vbg_gdev.session_mutex. |