hw/i386: fix vmmouse registration
commit6aedeb650e6978ee8165f05b79fbfab6ed486eff
authorPavel Dovgalyuk <pavel.dovgalyuk@ispras.ru>
Tue, 26 Oct 2021 09:54:05 +0000 (26 12:54 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Nov 2021 14:57:27 +0000 (2 15:57 +0100)
tree9fee9aacca28a4ceb2454383fc813ebbd51aaa02
parent22afb46e7c6ed61bd41c199072cb4769d6ab14b2
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: Paolo Bonzini <pbonzini@redhat.com>
hw/i386/vmmouse.c