summaryrefslogtreecommitdiff
path: root/shared/vmmouse_client.c
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2015-01-15 10:59:46 +0100
committerThomas Hellstrom <thellstrom@vmware.com>2015-04-08 07:12:23 -0700
commitc8ec00f537a640db049a1afb44a31c2199859085 (patch)
tree405e01784208811000a6b3cf53b39ce7a336e93a /shared/vmmouse_client.c
parentd5c1493b5fe0871f4f2823125f0d49f8e1edcda7 (diff)
vmmouse: Add support for the access restrict command
The access restrict command, if implemented, restricts vmmouse port access to the indicated level. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Michael Banack <banackm@vmware.com>
Diffstat (limited to 'shared/vmmouse_client.c')
-rw-r--r--shared/vmmouse_client.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/shared/vmmouse_client.c b/shared/vmmouse_client.c
index b8e19d6..c5d529e 100644
--- a/shared/vmmouse_client.c
+++ b/shared/vmmouse_client.c
@@ -192,6 +192,13 @@ VMMouseClient_Enable(void) {
}
/*
+ * Restrict access to the VMMouse backdoor handler.
+ */
+ vmpc.in.vEbx = VMMOUSE_RESTRICT_IOPL;
+ vmpc.in.command = VMMOUSE_PROTO_CMD_ABSPOINTER_RESTRICT;
+ VMMouseProto_SendCmd(&vmpc);
+
+ /*
* To quote Jeremy, "Go Go Go!"
*/