Re: [Qemu-devel] [PATCH] qmp: report TRAY_STATE_CHANGED events

2011-11-04 Thread Luiz Capitulino
On Fri, 04 Nov 2011 11:53:53 +0100 Paolo Bonzini wrote: > On 11/01/2011 06:03 AM, ShaoHe Feng wrote: > > after the guest startups, then I right click mouse in the UI of the > > guest, and select the Eject from the menu. > > there comes an event in the qmp-monitor. > > {"timestamp": {"seconds": 1

Re: [Qemu-devel] [PATCH] qmp: report TRAY_STATE_CHANGED events

2011-11-04 Thread Paolo Bonzini
On 11/01/2011 06:03 AM, ShaoHe Feng wrote: after the guest startups, then I right click mouse in the UI of the guest, and select the Eject from the menu. there comes an event in the qmp-monitor. {"timestamp": {"seconds": 1320118137, "microseconds": 420150}, "event": "TRAY_STATE_CHANGED", "data":

Re: [Qemu-devel] [PATCH] qmp: report TRAY_STATE_CHANGED events

2011-10-31 Thread ShaoHe Feng
test-by: ShaoHe Feng It seems this patch can not work well. there is my test process. I startup a guest by the follow option: -drive file=/home/fsh/image/OCDC-natty-Test-Drive-20110823_010339.iso,if=ide,index=1,media=cdrom after the guest startups, then I right click mouse in the UI of the

Re: [Qemu-devel] [PATCH] qmp: report TRAY_STATE_CHANGED events

2011-10-25 Thread Luiz Capitulino
On Tue, 25 Oct 2011 18:26:58 +0200 Paolo Bonzini wrote: > Signed-off-by: Paolo Bonzini > --- > QMP/qmp-events.txt | 20 > block.c|9 + > monitor.c |3 +++ > monitor.h |1 + > 4 files changed, 33 insertions(+), 0 deletions(

[Qemu-devel] [PATCH] qmp: report TRAY_STATE_CHANGED events

2011-10-25 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- QMP/qmp-events.txt | 20 block.c|9 + monitor.c |3 +++ monitor.h |1 + 4 files changed, 33 insertions(+), 0 deletions(-) diff --git a/QMP/qmp-events.txt b/QMP/qmp-events.txt index 0ce5d4e..