summaryrefslogtreecommitdiff
path: root/drivers/virt/vboxguest/vboxguest_core.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2018-04-18 16:24:48 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-04-23 14:41:55 +0300
commitf6f9885b0531163f72c7bf898a0ab1ba4c7d5de6 (patch)
treedd2cc4cab83c58a8943ffa8357a3fbe3e969c7aa /drivers/virt/vboxguest/vboxguest_core.h
parent02cfde67df1f440c7c3c7038cc97992afb81804f (diff)
downloadlinux-f6f9885b0531163f72c7bf898a0ab1ba4c7d5de6.tar.xz
virt: vbox: Add vbg_req_free() helper function
This is a preparation patch for fixing issues on x86_64 virtual-machines with more then 4G of RAM, atm we pass __GFP_DMA32 to kmalloc, but kmalloc does not honor that, so we need to switch to get_pages, which means we will not be able to use kfree to free memory allocated with vbg_alloc_req. While at it also remove a comment on a vbg_alloc_req call which talks about Windows (inherited from the vbox upstream cross-platform code). Cc: stable@vger.kernel.org Signed-off-by: Hans de Goede <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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/virt/vboxguest/vboxguest_core.h b/drivers/virt/vboxguest/vboxguest_core.h
index 39ed85cf9244..7ad9ec45bfa9 100644
--- a/drivers/virt/vboxguest/vboxguest_core.h
+++ b/drivers/virt/vboxguest/vboxguest_core.h
@@ -173,6 +173,7 @@ void vbg_linux_mouse_event(struct vbg_dev *gdev);
/* Private (non exported) functions form vboxguest_utils.c */
void *vbg_req_alloc(size_t len, enum vmmdev_request_type req_type);
+void vbg_req_free(void *req, size_t len);
int vbg_req_perform(struct vbg_dev *gdev, void *req);
int vbg_hgcm_call32(
struct vbg_dev *gdev, u32 client_id, u32 function, u32 timeout_ms,