vbox: mouse queue quirk

This commit is contained in:
Alexander Boettcher 2014-06-27 16:26:54 +02:00 committed by Norman Feske
parent edc03489b3
commit 6f75bb750a
2 changed files with 34 additions and 1 deletions

View File

@ -1 +1 @@
8c27e2319a0ff50a02d4555148eccc829f77b4fc
a1463e45f4bcb23ee32da9cce87bc1a85289e165

View File

@ -0,0 +1,33 @@
This patch avoids an assertion in the VboxBFE frontend when the PS/2 model does
not manage to read out the mouse events quick enough. The PS/2 model is still
alive but reads out the buffer with some delay.
+++ src/app/virtualbox/src/VBox/Devices/Input/DrvMouseQueue.cpp
@@ -101,6 +101,7 @@
/**
* @interface_method_impl{PDMIMOUSEPORT,pfnPutEvent}
*/
+#include <base/printf.h>
static DECLCALLBACK(int) drvMouseQueuePutEvent(PPDMIMOUSEPORT pInterface, int32_t iDeltaX, int32_t iDeltaY, int32_t iDeltaZ, int32_t iDeltaW, uint32_t fButtonStates)
{
PDRVMOUSEQUEUE pDrv = IMOUSEPORT_2_DRVMOUSEQUEUE(pInterface);
@@ -121,7 +122,8 @@
PDMQueueInsert(pDrv->pQueue, &pItem->Core);
return VINF_SUCCESS;
}
- return VERR_PDM_NO_QUEUE_ITEMS;
+ PERR("%s - drop event", __func__);
+ return VINF_SUCCESS;
}
/**
@@ -147,7 +149,8 @@
PDMQueueInsert(pDrv->pQueue, &pItem->Core);
return VINF_SUCCESS;
}
- return VERR_PDM_NO_QUEUE_ITEMS;
+ PERR("%s - drop event", __func__);
+ return VINF_SUCCESS;
}