Hide Forgot
Description of problem: ------------------------ Spice and vnc connection buffer keyboard and mouse event after guest stopped, after guest resumed, these event are delivered to guest, causing unpredictable result. Version-Release number of selected component (if applicable): --------------------------------------------------------------- qemu-kvm-0.12.1.2-2.223.el6.x86_64 How reproducible: ----------------- 100% Steps to Reproduce: -------------------- 1.boot guest with vnc or spice connection 2.in qemu monitor: (qemu) stop 3.switch vnc or spice client window to the top, type some thing or click mouse 4.in qemu monitor: (qemu) cont Actual results: ---------------- after step 4, keyboard and mouse event are delivered to guest. Expected results: ------------------ Do not buffer keyboard and mouse event. Additional info: ------------------ A simple example why the current behavior is not appropriate: 1.in guest, open a shell 2.stop guest 3.type "reboot" + "Enter" in guest connection window 4.cont guest 5.guest reboots Lots of people are used to type keyboard and click mouse randomly when they find system frozen to see what's going on, if these operation combine happens to have some meaning to system, after guest resumed, it will be implemented, this may hazard system operation and is hard to diagnose.
http://patchwork.ozlabs.org/patch/141264/
http://git.qemu.org/?p=qemu.git;a=commit;h=7bc9318bfb68b2d773449a55d4fa800d0fdb0918
Oops wrong commit, here is the real one: http://git.qemu.org/?p=qemu.git;a=commitdiff;h=99c7f87826337fa81f2f0f9baa9ca0a44faf90e9
Patch posted.
Reproduced on qemu-kvm-0.12.1.2-2.235.el6 and verified pass on qemu-kvm-0.12.1.2-2.241.el6.x86_64 with the same steps in Comment 0. Tested both vnc and spice, after stop guest, try input strings in the terminal, click the icons in desktop, etc. Can not reproduce. So this issue is fixed.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: No Documentation Needed
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0746.html