mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 04:37:40 +00:00
![]() The Qemu I8042 controller does not send one IRQ per event, it sends over four since it will not stop trying to emulate the PS/2 mouse. If the VMWare backdoor is active, a fake I8042 mouse event will be sent that we can then use to check if there are VMWare mouse events present. However, we were only processing one mouse event at a time, even though multiple events could have been queued up. Luckily this does not often lead to issues, since after the first IRQ we would still get three additional interrupts that would then empty the queue. This change makes sure we always empty the event queue immediately, instead of waiting on the next interrupt to happen. Functionally this changes nothing - it could merely improve latency by not waiting for new interrupts to come in. Coincidently, this brings our implementation closer to how Linux deals with the VMMouse. |
||
---|---|---|
.. | ||
HIDDevice.h | ||
HIDManagement.cpp | ||
HIDManagement.h | ||
I8042Controller.cpp | ||
I8042Controller.h | ||
KeyboardDevice.cpp | ||
KeyboardDevice.h | ||
MouseDevice.cpp | ||
MouseDevice.h | ||
PS2KeyboardDevice.cpp | ||
PS2KeyboardDevice.h | ||
PS2MouseDevice.cpp | ||
PS2MouseDevice.h | ||
VMWareMouseDevice.cpp | ||
VMWareMouseDevice.h |