[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 9/9] hw/i386: fix vmmouse registration
From: |
Michael S. Tsirkin |
Subject: |
[PULL 9/9] hw/i386: fix vmmouse registration |
Date: |
Mon, 1 Nov 2021 19:44:50 -0400 |
From: Pavel Dovgalyuk <pavel.dovgalyuk@ispras.ru>
According to the logic of vmmouse_update_handler function,
vmmouse should be registered as an event handler when
it's status is zero.
vmmouse_read_id resets the status but does not register
the handler.
This patch adds vmmouse registration and activation when
status is reset.
Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
Message-Id:
<163524204515.1914131.16465061981774791228.stgit@pasha-ThinkPad-X280>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
hw/i386/vmmouse.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/i386/vmmouse.c b/hw/i386/vmmouse.c
index df4798f502..3d66368286 100644
--- a/hw/i386/vmmouse.c
+++ b/hw/i386/vmmouse.c
@@ -158,6 +158,7 @@ static void vmmouse_read_id(VMMouseState *s)
s->queue[s->nb_queue++] = VMMOUSE_VERSION;
s->status = 0;
+ vmmouse_update_handler(s, s->absolute);
}
static void vmmouse_request_relative(VMMouseState *s)
--
MST
- [PULL 0/9] pc,pci,virtio: features, fixes, Michael S. Tsirkin, 2021/11/01
- [PULL 1/9] qtest: fix 'expression is always false' build failure in qtest_has_accel(), Michael S. Tsirkin, 2021/11/01
- [PULL 2/9] vhost-vdpa: Set discarding of RAM broken when initializing the backend, Michael S. Tsirkin, 2021/11/01
- [PULL 3/9] hw/acpi: Add VIOT table, Michael S. Tsirkin, 2021/11/01
- [PULL 4/9] hw/i386/pc: Remove x86_iommu_get_type(), Michael S. Tsirkin, 2021/11/01
- [PULL 6/9] hw/i386/pc: Allow instantiating a virtio-iommu device, Michael S. Tsirkin, 2021/11/01
- [PULL 5/9] hw/i386/pc: Move IOMMU singleton into PCMachineState, Michael S. Tsirkin, 2021/11/01
- [PULL 7/9] pci: Define pci_bus_dev_fn/pci_bus_fn/pci_bus_ret_fn, Michael S. Tsirkin, 2021/11/01
- [PULL 8/9] pci: Export pci_for_each_device_under_bus*(), Michael S. Tsirkin, 2021/11/01
- [PULL 9/9] hw/i386: fix vmmouse registration,
Michael S. Tsirkin <=
- Re: [PULL 0/9] pc,pci,virtio: features, fixes, Richard Henderson, 2021/11/02