[Qemu-devel] [PATCH 2/5] spice-qemu-char: Generate chardev open/close events

2011-11-19 Thread Hans de Goede
Define a state callback and make that generate chardev open/close events when called by the spice-server. Notes: 1) For all but the newest spice-server versions (which have a fix for this) the code ignores these events for a spicevmc with a subtype of vdagent, this subtype specific knowledge is

[Qemu-devel] [PATCHES for 1.0] various spice usb-redir integration patches

2011-11-19 Thread Hans de Goede
Hi All, Sorry for sending these in so late, I send most of them in before a long time ago, but then they got stuck on waiting for the big chardev rewrite. Since it seems clear now that the big chardev rewrite won't happen before 1.0, I would like to get these into 1.0 as is. Thanks Regards,

[Qemu-devel] [PATCH 3/5] usb-redir: Call qemu_chr_fe_open/close

2011-11-19 Thread Hans de Goede
To let the chardev now we're ready start receiving data. This is necessary with the spicevmc chardev to get it registered with the spice-server. Signed-off-by: Hans de Goede hdego...@redhat.com --- usb-redir.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/usb-redir.c

[Qemu-devel] [PATCH 4/5] usb-redir: Device disconnect + re-connect robustness fixes

2011-11-19 Thread Hans de Goede
These fixes mainly target the other side sending some (error status) packets after a disconnect packet. In some cases these would get queued up and then reported to the controller when a new device gets connected. * Fully reset device state on disconnect * Don't allow a connect message when

[Qemu-devel] [PATCH 1/5] qemu-char: rename qemu_chr_event to qemu_chr_be_event and make it public

2011-11-19 Thread Hans de Goede
Rename qemu_chr_event to qemu_chr_be_event, since it is only to be called by backends and make it public so that it can be used by chardev code which lives outside of qemu-char.c Signed-off-by: Hans de Goede hdego...@redhat.com --- qemu-char.c | 26 +- qemu-char.h |

[Qemu-devel] [PATCH 5/5] usb-redir: Don't try to write to the chardev after a close event

2011-11-19 Thread Hans de Goede
Since we handle close async in a bh, do_write and thus write can get called after receiving a close event. This patch adds a check to the usb-redir write callback to not call qemu_chr_fe_write on a closed backend. Signed-off-by: Hans de Goede hdego...@redhat.com --- usb-redir.c |4 1

Re: [Qemu-devel] [PULL 0/3] ppc patch queue 2011-11-11 for 1.0

2011-11-19 Thread Blue Swirl
On Fri, Nov 11, 2011 at 16:37, Alexander Graf ag...@suse.de wrote: Hi Blue, This is my current patch queue for ppc on QEMU 1.0. Please pull. Thanks, pulled. Alex The following changes since commit 0e3b800e71cb7759d099eabbd8ad4c4fe848e381:  Peter Maydell (1):        hw/lan9118.c: Add

Re: [Qemu-devel] [PULL 00/12] s390 patch queue 2011-11-14 1.0

2011-11-19 Thread Blue Swirl
On Mon, Nov 14, 2011 at 17:06, Alexander Graf ag...@suse.de wrote: Hi Blue, This is my current patch queue for s390 on 1.0. This time without hotplug support. Please pull. Thanks, pulled. Alex The following changes since commit a3efecb847dd89886f7cd3f71661b2d79ec68072:  Juha Riihimäki

Re: [Qemu-devel] [PATCH 3/3] tcg-sparc: Fix set-but-not used warnings.

2011-11-19 Thread Blue Swirl
Thanks, applied. On Wed, Nov 9, 2011 at 18:03, Richard Henderson r...@twiddle.net wrote: In both cases, val is computed, but then not used in the subsequent line, which then re-computes the quantity in a different type (int32_t vs unsigned long). Keep the computation type that's been working

Re: [Qemu-devel] [PATCH v2] gdbstub: Fix memory leak

2011-11-19 Thread Blue Swirl
Thanks, applied. On Fri, Nov 11, 2011 at 21:09, Stefan Weil s...@weilnetz.de wrote: Am 18.10.2011 22:25, schrieb Stefan Weil: cppcheck report:   gdbstub.c:1781: error: Memory leak: s Rearranging of the code avoids the leak. v2: Replace the g_malloc0() by g_new0() (suggested by Stuart

Re: [Qemu-devel] [PATCH] [SPARC] Improve ta 0 shutdown

2011-11-19 Thread Blue Swirl
On Mon, Nov 14, 2011 at 09:37, Fabien Chouteau chout...@adacore.com wrote: On 13/11/2011 10:43, Blue Swirl wrote: On Thu, Nov 3, 2011 at 15:17, Fabien Chouteau chout...@adacore.com wrote: This patch replace the previous implementation with this simplified and more complete version (no shutdown

Re: [Qemu-devel] [PATCH] loader: Fix read_targphys() to behave when read() fails

2011-11-19 Thread Blue Swirl
Thanks, applied. On Wed, Nov 16, 2011 at 18:41, Markus Armbruster arm...@redhat.com wrote: Happily passes (size_t)-1 to rom_add_blob_fixed(), which promptly dies attempting to malloc that much.  Spotted by Coverity. Bonus fix for ROMs larger than INT_MAX bytes: return ssize_t instead of int.

Re: [Qemu-devel] [PATCH] target-i386: Fix regression with maxsd SSE2 instruction v2

2011-11-19 Thread Peter Maydell
On 8 November 2011 14:20, Jason Wessel jason.wes...@windriver.com wrote: The maxsd instruction needs to take into account the sign of the numbers 64 bit numbers.  This is a regression that was introduced in 347ac8e356 (target-i386: switch to softfloat). The case that fails is: maxsd  

[Qemu-devel] [PATCH] darwin-user: Fix format string in debug message

2011-11-19 Thread Stefan Weil
This was spotted by cppcheck. Signed-off-by: Stefan Weil s...@weilnetz.de --- darwin-user/signal.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/darwin-user/signal.c b/darwin-user/signal.c index c530227..317ef92 100644 --- a/darwin-user/signal.c +++

[Qemu-devel] husb: out of buffers for iso stream

2011-11-19 Thread Stefan Hajnoczi
I have a Windows 7 VM running a sound driver for a passthrough USB host device. The driver submits iso in and out urbs to do audio capture and playback at the same time. Audacity running inside the guest freezes and does not record audio unless I move the mouse. Somehow it seems USB iso urbs

[Qemu-devel] Status of the SH4 / ARM7 emulators

2011-11-19 Thread Renato Utsch
Hello people, I am new to this mailing list, so if I do something wrong say to me... Well, I am making a dreamcast emulator and I wanted to know the status of the sh-4 emulator, if it is stable, if it actually works, etc... And the same for the ARM7-TDMI emulator (if QEMU supports it, it

Re: [Qemu-devel] Status of the SH4 / ARM7 emulators

2011-11-19 Thread Peter Maydell
On 19 November 2011 21:20, Renato Utsch renatout...@gmail.com wrote: Well, I am making a dreamcast emulator and I wanted to know the status of the sh-4 emulator, if it is stable, if it actually works, etc... And the same for the ARM7-TDMI emulator (if QEMU supports it, it supports?), because

[Qemu-devel] Qemu breakpoints

2011-11-19 Thread Ankur Dahiya
I am trying to set a breakpoint in qemu. That is, a function of mine should run when guest eip becomes equal to some specified address. I set the bp using : cpu_breakpoint_insert(first_cpu, 0xc103364f, BP_GDB, NULL) exec.c Then I do cpu_set_debug_excp_handler(NULL) cpu-exec.c because the default