hw/vmmouse.c: Fix to disable vmmouse after reboot
PATCH 1/1 hw/vmmouse.c: Fix to disable vmmouse after reboot
Bugfix after reboot when vmmouse was enabled and another OS which uses e.g. PS/2 mouse.
--- hw/vmmouse.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
hw/vmmouse.c +2 -0
@@ -254,6 +254,8 @@ static void vmmouse_reset(DeviceState *d) s->status =0xffff ; s->queue_size =VMMOUSE_QUEUE_SIZE ; + +vmmouse_disable (s); }static int vmmouse_initfn (ISADevice *dev)
Signature · 1 line
1.7.6.5
Am 04.01.2012 17:54, schrieb Gerhard Wiesinger:
Quoted 3 lines
Bugfix after reboot when vmmouse was enabled and another OS which uses e.g. PS/2
mouse.
Could you please be a bit more verbose on what symptoms that fixes?
Thanks,
Andreas
Quoted 19 lines
Signed-off-by Gerhard Wiesinger <[email protected]>--- hw/vmmouse.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)hw/vmmouse.c +2
-0@@ -254,6 +254,8 @@ static void vmmouse_reset(DeviceState *d) s->status =0xffff ; s->queue_size =VMMOUSE_QUEUE_SIZE ; + +vmmouse_disable (s); }static int vmmouse_initfn (ISADevice *dev)
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Testscenario:
1.) Boot e.g. OS with VMMouse support (e.g. Windows)
2.) reboot
3.) Boot e.g. OS without VMMouse support (e.g. DOS) => PS/2 mouse doesn't work any more. Fixes that issue.
Reason is that VMMouse has priority and disables all other mouse entities and therefore must be disabled on reset.
Ciao,
Gerhard
Quoted 36 lines · Andreas Färber
Am 04.01.2012 17:54, schrieb Gerhard Wiesinger:
Quoted 3 lines
Bugfix after reboot when vmmouse was enabled and another OS which uses e.g. PS/2
mouse.Could you please be a bit more verbose on what symptoms that fixes?
Thanks,
AndreasQuoted 19 lines
Signed-off-by Gerhard Wiesinger <[email protected]>--- hw/vmmouse.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)hw/vmmouse.c +2
-0@@ -254,6 +254,8 @@ static void vmmouse_reset(DeviceState *d) s->status =0xffff ; s->queue_size =VMMOUSE_QUEUE_SIZE ; + +vmmouse_disable (s); }static int vmmouse_initfn (ISADevice *dev)Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Quoted 6 lines · Gerhard Wiesinger
Testscenario:
1.) Boot e.g. OS with VMMouse support (e.g. Windows)
2.) reboot
3.) Boot e.g. OS without VMMouse support (e.g. DOS) => PS/2 mouse doesn't work any more. Fixes that issue.Reason is that VMMouse has priority and disables all other mouse entities and therefore must be disabled on reset.
Any further comments before integrating the patch?
Ciao,
Gerhard
Am 08.01.2012 13:01, schrieb Gerhard Wiesinger:
Quoted 8 lines · Gerhard Wiesinger
Quoted 7 lines
Testscenario:
1.) Boot e.g. OS with VMMouse support (e.g. Windows) 2.) reboot
3.) Boot e.g. OS without VMMouse support (e.g. DOS) => PS/2 mouse doesn't work any more. Fixes that issue.
Quoted 4 lines
Quoted 2 lines
Reason is that VMMouse has priority and disables all other mouse entities and therefore must be disabled on reset.
Any further comments before integrating the patch?
I implicitly asked you for a more verbose commit message.
For example, based on the info you provided as a reply above:
--8<--hw/vmmouse.c: Disable vmmouse on reboot
When a guest activated the vmmouse, following a reboot the vmmouse stayed enabled and the PS/2 mouse was unusable. That way, when rebooting to guests without vmmouse support the mouse would not work.
Fix this by disabling the vmmouse in its reset handler. --8<--
I have it queued for testing tomorrow - I am hoping this will fix a 0.15.1 mouse issue after kdump as well.
As a bugfix, it would definitely be a candidate for stable-1.0.
Andreas
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Am 08.01.2012 17:31, schrieb Andreas Färber:
Quoted 21 lines
Am 08.01.2012 13:01, schrieb Gerhard Wiesinger:
Quoted 8 lines · Gerhard Wiesinger
Quoted 7 lines
Testscenario:
1.) Boot e.g. OS with VMMouse support (e.g. Windows) 2.) reboot
3.) Boot e.g. OS without VMMouse support (e.g. DOS) => PS/2 mouse doesn't work any more. Fixes that issue.Quoted 4 lines
Quoted 2 lines
Reason is that VMMouse has priority and disables all other mouse entities and therefore must be disabled on reset.
Any further comments before integrating the patch?
I implicitly asked you for a more verbose commit message.
For example, based on the info you provided as a reply above:
--8<--
hw/vmmouse.c: Disable vmmouse on reboot
Quoted 6 lines
When a guest activated the vmmouse, following a reboot the vmmouse stayed enabled and the PS/2 mouse was unusable. That way, when rebooting to guests without vmmouse support the mouse would not work.
Fix this by disabling the vmmouse in its reset handler. --8<--
I have been unable to reproduce this issue with our qemu-kvm 0.15.1. SLES 11 uses vmmouse, whereas SLES installation does not use vmmouse. After doing a kdump or reboot in SLES, the mouse worked just fine in either of them.
The patch doesn't break anything for me though.
Andreas
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
Quoted 26 lines · Andreas Färber
Am 08.01.2012 17:31, schrieb Andreas Färber:
Quoted 25 lines
Am 08.01.2012 13:01, schrieb Gerhard Wiesinger:
Quoted 8 lines · Gerhard Wiesinger
Quoted 7 lines
Testscenario:
1.) Boot e.g. OS with VMMouse support (e.g. Windows) 2.) reboot
3.) Boot e.g. OS without VMMouse support (e.g. DOS) => PS/2 mouse doesn't work any more. Fixes that issue.Quoted 4 lines
Quoted 2 lines
Reason is that VMMouse has priority and disables all other mouse entities and therefore must be disabled on reset.
Any further comments before integrating the patch?
I implicitly asked you for a more verbose commit message.
For example, based on the info you provided as a reply above:
--8<--
hw/vmmouse.c: Disable vmmouse on rebootWhen a guest activated the vmmouse, following a reboot the vmmouse stayed enabled and the PS/2 mouse was unusable. That way, when rebooting to guests without vmmouse support the mouse would not work.
Quoted 7 lines
Quoted 2 lines
Fix this by disabling the vmmouse in its reset handler. --8<--
I have been unable to reproduce this issue with our qemu-kvm 0.15.1. SLES 11 uses vmmouse, whereas SLES installation does not use vmmouse. After doing a kdump or reboot in SLES, the mouse worked just fine in either of them.
I can confirm the that this patch fixes a real issue. Setup: qemu.git, opensuse 11.4 guest, SDL graphic, system_reset while guest is using the vmmouse. Without the patch, the vmmouse become unusable after the reboot. Also, the mouse stays in absolute mode even before X starts again.
So please merge.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux
Quoted 6 lines · Jan Kiszka
I can confirm the that this patch fixes a real issue. Setup: qemu.git, opensuse 11.4 guest, SDL graphic,
system_resetwhile guest is using the vmmouse. Without the patch, the vmmouse become unusable after the reboot. Also, the mouse stays in absolute mode even before X starts again.So please merge.
My bug reports are always real issues :-)
I submitted patch again with more detailed commit information, please merge into master and 1.0 bugfix. No code change.
Thnx.
Ciao,
Gerhard