summaryrefslogtreecommitdiff
path: root/src/VBox/Additions/common/VBoxGuestLib/GenericRequest.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2014-03-26 19:21:20 +0000
committer <>2014-05-08 15:03:54 +0000
commitfb123f93f9f5ce42c8e5785d2f8e0edaf951740e (patch)
treec2103d76aec5f1f10892cd1d3a38e24f665ae5db /src/VBox/Additions/common/VBoxGuestLib/GenericRequest.cpp
parent58ed4748338f9466599adfc8a9171280ed99e23f (diff)
downloadVirtualBox-master.tar.gz
Imported from /home/lorry/working-area/delta_VirtualBox/VirtualBox-4.3.10.tar.bz2.HEADVirtualBox-4.3.10master
Diffstat (limited to 'src/VBox/Additions/common/VBoxGuestLib/GenericRequest.cpp')
-rw-r--r--src/VBox/Additions/common/VBoxGuestLib/GenericRequest.cpp20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/VBox/Additions/common/VBoxGuestLib/GenericRequest.cpp b/src/VBox/Additions/common/VBoxGuestLib/GenericRequest.cpp
index ea1fe187..cae7a8f3 100644
--- a/src/VBox/Additions/common/VBoxGuestLib/GenericRequest.cpp
+++ b/src/VBox/Additions/common/VBoxGuestLib/GenericRequest.cpp
@@ -1,10 +1,10 @@
-/* $Revision: 71271 $ */
+/* $Revision: 87431 $ */
/** @file
* VBoxGuestLibR0 - Generic VMMDev request management.
*/
/*
- * Copyright (C) 2006-2009 Oracle Corporation
+ * Copyright (C) 2006-2013 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
@@ -69,20 +69,24 @@ DECLVBGL(int) VbglGRVerify (const VMMDevRequestHeader *pReq, size_t cbReq)
return VINF_SUCCESS;
}
- /* This can be a variable size request. Check the request type and limit the size
+ /*
+ * This can be a variable size request. Check the request type and limit the size
* to VMMDEV_MAX_VMMDEVREQ_SIZE, which is max size supported by the host.
+ *
+ * Note: Keep this list sorted for easier human lookup!
*/
- if ( pReq->requestType == VMMDevReq_LogString
- || pReq->requestType == VMMDevReq_VideoSetVisibleRegion
- || pReq->requestType == VMMDevReq_SetPointerShape
+ if ( pReq->requestType == VMMDevReq_ChangeMemBalloon
#ifdef VBOX_WITH_64_BITS_GUESTS
|| pReq->requestType == VMMDevReq_HGCMCall32
|| pReq->requestType == VMMDevReq_HGCMCall64
#else
|| pReq->requestType == VMMDevReq_HGCMCall
#endif /* VBOX_WITH_64_BITS_GUESTS */
- || pReq->requestType == VMMDevReq_ChangeMemBalloon
- || pReq->requestType == VMMDevReq_RegisterSharedModule)
+ || pReq->requestType == VMMDevReq_RegisterSharedModule
+ || pReq->requestType == VMMDevReq_ReportGuestUserState
+ || pReq->requestType == VMMDevReq_LogString
+ || pReq->requestType == VMMDevReq_SetPointerShape
+ || pReq->requestType == VMMDevReq_VideoSetVisibleRegion)
{
if (cbReq > VMMDEV_MAX_VMMDEVREQ_SIZE)
{