hw/i386: fix vmmouse registration
commitd99e8b5fcb138b19f751c027ed5599224f9b5036
authorPavel Dovgalyuk <pavel.dovgalyuk@ispras.ru>
Tue, 26 Oct 2021 09:54:05 +0000 (26 12:54 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 1 Nov 2021 23:36:11 +0000 (1 19:36 -0400)
tree15b17dd2fc74e8eb61e03e020aabecf40c41c9a3
parent2914fc61d5d72c6010d2b1fe8b4048b561e44ef3
hw/i386: fix vmmouse registration

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