[vbox-dev] [PATCH] VBoxUsbMon: Correct device PnP hooking
sameeh at daynix.com
Wed Jul 12 08:39:13 UTC 2017
From: Yuri Benditovich <yuri.benditovich at daynix.com>
On Windows VBoxUsbMon hooks driver objects of top-level device objects
in stack of hub devices, assuming it is enough to receive PnP messages
of USB devices created by these hubs. This assumption is not always
correct: if there are upper filters installed in hub stack, but not
in device stack. the VBoxUsbMon does not receive PnP messages of devices
and USB redirection to VM does not work.
Example of such case: https://github.com/daynix/UsbDk/issues/40, although
the problem is generic.
The solution in presented patch is to hook the driver object related to PDO
of the device that is going to be redirected.
Yuri Benditovich (1):
VBoxUsbMon: Hook proper driver object
src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbFlt.cpp | 4 ++++
src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbMon.cpp | 10 ++++++++++
src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbMon.h | 2 ++
3 files changed, 16 insertions(+)
More information about the vbox-dev