[Qemu-devel] [PATCH] CODING_STYLE: don't allow non-indented statements after if/else blocks

2009-10-26 Thread Aurelien Jarno
Rationale: The following code is difficult to read, but allowed by the current coding style. if (a == 5) printf(a was 5.\n); else if (a == 6) printf(a was 6.\n); else printf(a was something else entirely.\n); Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- CODING_STYLE | 10

[Qemu-devel] Re: [ANNOUNCE] Sheepdog: Distributed Storage System for KVM

2009-10-26 Thread MORITA Kazutaka
On 2009/10/25 17:51, Dietmar Maurer wrote: Do you support multiple guests accessing the same image? A VM image can be attached to any VMs but one VM at a time; multiple running VMs cannot access to the same VM image. I guess this is a problem when you want to do live migrations? Yes,

[Qemu-devel] [PATCH v3] target-arm: fix neon shift helper functions

2009-10-26 Thread juha . riihimaki
From: Juha Riihimäki juha.riihim...@nokia.com Current code is broken at least on recent compilers, comparison between signed and unsigned types yield incorrect code and render the neon shift helper functions defunct. This is the third revision of this patch, casting all comparisons with the

[Qemu-devel] guest OS crash during shutdown/reboot

2009-10-26 Thread Purna Chandar
Hi, I have compiled qemu 0.11.0 for x86 64 bit. I run Fedora Core 10 64 bit as my guest OS. Sometimes, when I shutdown the guest OS gracefully (using halt command), I see a kernel crash with a stack trace on guest OS window at * native_machine_shutdown()*. The RIP points to

Re: [Qemu-devel] Re: [PATCH v2 3/3] char: emit the OPENED event only when a new char connection is opened

2009-10-26 Thread Jan Kiszka
Amit Shah wrote: On (Sat) Oct 24 2009 [12:36:54], Jan Kiszka wrote: Amit Shah wrote: The OPENED event gets sent also when qemu resets its state initially. The consumers of the event aren't interested in receiving this event on reset. The monitor was. Now its initial prompt on activation is

Re: [Qemu-devel] [PATCH v2 09/10] target-arm: optimize neon vld/vst ops

2009-10-26 Thread Juha.Riihimaki
On Oct 25, 2009, at 16:01, ext Laurent Desnogues wrote: I don't really like the idea of having tcg_qemu_ld/st not factored in some place, as it makes memory access tracing extensions more intrusive. This brings us back to the problem having function freeing tmps. In that case, you could

[Qemu-devel] Re: [PATCH] raw/linux-aio: Also initialize POSIX AIO

2009-10-26 Thread Kevin Wolf
Am 25.10.2009 08:19, schrieb Christoph Hellwig: On Thu, Oct 22, 2009 at 11:05:55AM +0200, Kevin Wolf wrote: Yes, it might look like overkill to introduce a abstraction for exactly two backends. I felt the same way. But then, the current implementation just feels totally wrong. It absolutely

Re: [Qemu-devel] [PATCH] isa: configure serial+parallel by index.

2009-10-26 Thread Markus Armbruster
Markus Armbruster arm...@redhat.com writes: Gerd Hoffmann kra...@redhat.com writes: This patch adds a 'index' property to the isa-parallel and isa-serial devices. This can be used to create devices with the default isa irqs and ioports by simply specifying the index, i.e. -device

Re: [Qemu-devel] [PATCH v2 03/10] target-arm: allow modifying vfp fpexc en bit only

2009-10-26 Thread Laurent Desnogues
On Mon, Oct 26, 2009 at 8:32 AM, juha.riihim...@nokia.com wrote: [...] Shouldn't writes to FPEXC from gdb be protected in the same way?  Except for that I agree with your patch. Please correct me if I'm wrong but it seems to me that the code in gdbstub.c never writes anything to the VFP

Re: [Qemu-devel] [PATCH v2 09/10] target-arm: optimize neon vld/vst ops

2009-10-26 Thread Laurent Desnogues
On Mon, Oct 26, 2009 at 8:46 AM, juha.riihim...@nokia.com wrote: On Oct 25, 2009, at 16:01, ext Laurent Desnogues wrote: I don't really like the idea of having tcg_qemu_ld/st not factored in some place, as it makes memory access tracing extensions more intrusive. This brings us back to

Re: [Qemu-devel] [PATCH] isa: configure serial+parallel by index.

2009-10-26 Thread Gerd Hoffmann
Looks fine to me. A similar solution could do for default mac address. One little thing I missed on first reading: making an index property hexadecimal is weird. I'd really expect decimal there. Indeed. Wasn't intentional, cut+paste bug. Will fix. cheers, Gerd

Re: [Qemu-devel] Re: [PATCH v2 3/3] char: emit the OPENED event only when a new char connection is opened

2009-10-26 Thread Amit Shah
On (Mon) Oct 26 2009 [08:40:12], Jan Kiszka wrote: Amit Shah wrote: On (Sat) Oct 24 2009 [12:36:54], Jan Kiszka wrote: Amit Shah wrote: The OPENED event gets sent also when qemu resets its state initially. The consumers of the event aren't interested in receiving this event on reset.

[Qemu-devel] [PATCH v3] target-arm: allow modifying vfp fpexc en bit only

2009-10-26 Thread juha . riihimaki
From: Juha Riihimäki juha.riihim...@nokia.com All other bits except for the EN in the VFP FPEXC register are defined as subarchitecture specific and real functionality for any of the other bits has not been implemented in QEMU. However, current code allows modifying all bits in the VFP FPEXC

Re: [Qemu-devel] [PATCH v3] target-arm: allow modifying vfp fpexc en bit only

2009-10-26 Thread Laurent Desnogues
On Mon, Oct 26, 2009 at 10:46 AM, juha.riihim...@nokia.com wrote: From: Juha Riihimäki juha.riihim...@nokia.com All other bits except for the EN in the VFP FPEXC register are defined as subarchitecture specific and real functionality for any of the other bits has not been implemented in

Re: [Qemu-devel] [PATCH v2][RESEND] target-arm: cleanup internal resource leaks

2009-10-26 Thread Laurent Desnogues
On Thu, Oct 22, 2009 at 1:17 PM, juha.riihim...@nokia.com wrote: From: Juha Riihimäki juha.riihim...@nokia.com Revised patch for getting rid of tcg temporary variable leaks in target-arm/translate.c. This version also includes the leak patch for gen_set_cpsr macro, now converted as a static

Re: [Qemu-devel] [PATCH v2][RESEND] target-arm: cleanup internal resource leaks

2009-10-26 Thread Juha.Riihimaki
On Oct 26, 2009, at 12:46, ext Laurent Desnogues wrote: @@ -5511,8 +5539,9 @@ static int disas_neon_data_insn(CPUState * env, DisasContext *s, uint32_t insn) tcg_gen_movi_i32(tmp, 0); } tmp2 = neon_load_reg(rm, 0); -

[Qemu-devel] [PATCH] target-arm: fix incorrect temporary variable freeing

2009-10-26 Thread juha . riihimaki
From: Juha Riihimäki juha.riihim...@nokia.com tmp4 and tmp5 temporary variables are allocated using tcg_const_i32 but incorrectly released using dead_tmp which will cause resource leak tracking to report false leaks. Signed-off-by: Juha Riihimäki juha.riihim...@nokia.com ---

[Qemu-devel] [PATCH v4 1/4] rom loader: use qemu_strdup.

2009-10-26 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/loader.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/loader.c b/hw/loader.c index 7aa1a67..6baafa8 100644 --- a/hw/loader.c +++ b/hw/loader.c @@ -559,7 +559,7 @@ int rom_add_file(const char *file,

[Qemu-devel] [PATCH v4 4/4] use rom loader for pc bios.

2009-10-26 Thread Gerd Hoffmann
The pc bios shows up in 'info roms' now. Note that the BIOS is mapped to two places: The complete rom at the top of the memory, and the first 128k at 0xe. Only the first place is listed in 'info roms'. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/pc.c |4 ++-- 1 files changed,

[Qemu-devel] [PATCH v4 3/4] vga roms: move loading from pc.c to vga drivers.

2009-10-26 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/cirrus_vga.c |6 +- hw/pc.c | 12 hw/vga-isa.c|3 +++ hw/vga-pci.c|4 hw/vga_int.h|2 ++ 5 files changed, 14 insertions(+), 13 deletions(-) diff --git a/hw/cirrus_vga.c

[Qemu-devel] [PATCH] isa: configure serial+parallel by index.

2009-10-26 Thread Gerd Hoffmann
This patch adds a 'index' property to the isa-parallel and isa-serial devices. This can be used to create devices with the default isa irqs and ioports by simply specifying the index, i.e. -device isa-serial,index=1 instead of -device isa-serial,iobase=0x2f8,irq=3 for ttyS1 aka com2.

Re: [Qemu-devel] [PATCH] target-arm: fix incorrect temporary variable freeing

2009-10-26 Thread Laurent Desnogues
On Mon, Oct 26, 2009 at 12:02 PM, juha.riihim...@nokia.com wrote: From: Juha Riihimäki juha.riihim...@nokia.com tmp4 and tmp5 temporary variables are allocated using tcg_const_i32 but incorrectly released using dead_tmp which will cause resource leak tracking to report false leaks.

Re: [Qemu-devel] Re: [Patch] Make usermode stacksize (-s) configurable at compile-time

2009-10-26 Thread Jan-Simon Möller
Am Sonntag 25 Oktober 2009 22:09:10 schrieb Juan Quintela: If we are changing the code in configure anyways, why don't add the default there? Something like this (I tested that it compiled, but didn't tested usermode). I am assuming that you only want it for linux-user. I like this

[Qemu-devel] [PATCH v4 2/4] rom loader: make vga+rom loading configurable.

2009-10-26 Thread Gerd Hoffmann
The rom_add_vga() and rom_add_option() macros are transformed into functions. They look at the new rom_enable_driver_roms variable and only do something if it is set to non-zero, making vga+option rom loading runtime option. pc_init() sets rom_enable_driver_roms to 1. With this in place we can

[Qemu-devel] [PATCH v4 0/4] more rom loader patches.

2009-10-26 Thread Gerd Hoffmann
Hi, A collection of rom loader bits, check individual patches for details. One more change for rom_add_{vga,option}. We are simply using a variable now to enable rom loading, so different TARGET_I386 machine types can have different behavior here. pc98 support needs this. cheers, Gerd

[Qemu-devel] [PATCH v10 0/2] virtio-console: Add support for multiple ports for generic guest-host communication

2009-10-26 Thread Amit Shah
Hello, This iteration of the series fixes a style bug pointed out by Gerd and a typo noticed by Rich. In addition to that, it also introduces a few debug prints in the 'info qtree' output that shows some per-port data that could be helpful for debugging. I've been testing all the features that

[Qemu-devel] [PATCH v10 2/2] virtio-console: Add a new virtserialport device for generic serial port support

2009-10-26 Thread Amit Shah
This patch adds generic serial ports over the virtio serial bus. These ports have a few more options that are not relevant for virtio console ports: the ability to cache buffers that are received for a port while it's disconnected, setting of limits to the bytes that are cached so as to prevent

[Qemu-devel] [PATCH] Remove aio_ctx from paio_* interface

2009-10-26 Thread Kevin Wolf
The context parameter in paio_submit isn't used anyway, so there is no reason why block drivers should need to remember it. This also avoids passing a Linux AIO context to paio_submit (which doesn't do any harm as long as the parameter is unused, but it is highly confusing). Signed-off-by: Kevin

[Qemu-devel] [PATCH v10 1/2] virtio-console: Add a virtio-serial bus, support for multiple ports

2009-10-26 Thread Amit Shah
This patch migrates virtio-console to the qdev infrastructure and creates a new virtio-serial bus on which multiple ports are exposed as devices. The bulk of the code now resides in a new file with virtio-console.c being just a simple qdev device. This interface enables spawning of multiple

Re: [Qemu-devel] [Patch] Make usermode stacksize (-s) configurable at compile-time

2009-10-26 Thread Riku Voipio
On Sun, Oct 25, 2009 at 06:49:44PM +0100, Jan-Simon Möller wrote: We encontered problems with the low default value for the stacksize in usermode (ok, whats low). For environments like scratchbox, its hard to use -s as qemu is called by binfmt mechanism. The attached patch makes this

[Qemu-devel] [PATCH] qemu/virtio: make wmb compiler barrier + comments

2009-10-26 Thread Michael S. Tsirkin
wmb must be at least a compiler barrier, even without SMP. Further, we likely need some rmb()/mb() as well: I have not audited the code but lguest has mb(), add a comment for now. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/virtio.c |5 - 1 files changed, 4 insertions(+), 1

[Qemu-devel] Re: qemu: async sending in tap causes NFS not responding error

2009-10-26 Thread Sven Rudolph
Scott Tsai scottt...@gmail.com writes: I recently found that this chageset: http://git.savannah.gnu.org/cgit/qemu.git/commit/?id=e19eb22486f258a421108ac22b8380a4e2f16b97 net: make use of async packet sending API in tap client causes NFS root Linux guest setups using TAP networking to fail

[Qemu-devel] [PATCH] scsi-disk: Inquiry with allocation length of CDB 36

2009-10-26 Thread Artyom Tarasenko
According to SCSI-2 specification, http://ldkelley.com/SCSI2/SCSI2/SCSI2/SCSI2-08.html#8.2.5 , if the allocation length of the command descriptor block (CDB) is too small to transfer all of the parameters, the additional length shall not be adjusted to reflect the truncation. The 36 mandatory

RE: [Qemu-devel] net packet storms with multiple NICs

2009-10-26 Thread Krumme, Chris
-Original Message- From: qemu-devel-bounces+chris.krumme=windriver@nongnu.org [mailto:qemu-devel-bounces+chris.krumme=windriver@nongnu.o rg] On Behalf Of Avi Kivity Sent: Sunday, October 25, 2009 9:23 AM To: Mark McLoughlin Cc: Michael Tokarev; qemu-devel@nongnu.org; KVM

Re: [Qemu-devel] net packet storms with multiple NICs

2009-10-26 Thread Avi Kivity
On 10/26/2009 03:40 PM, Krumme, Chris wrote: Well, it is. vlan=x really means the ethernet segment named x. If you connect all your guest nics to one vlan, you are connecting them all to one ethernet segment, so any packet transmitted on one will be reflected on others. Whether this is a

Re: [Qemu-devel] Re: [PATCH] new SDL keyboard shortcuts to start and stop VM

2009-10-26 Thread Avi Kivity
On 10/26/2009 03:45 PM, Anthony Liguori wrote: Avi Kivity wrote: On 10/23/2009 03:59 PM, Anthony Liguori wrote: Your answer may be, this is for a developer and they'll be aware of all the short comings/gotchas but this ends up being a rather user-hostile interface. People are never as aware

[Qemu-devel] [PATCH] qemu/msix: fix table access issues

2009-10-26 Thread Michael S. Tsirkin
Fixes a couple of issues with msix table access: - With misbehaving guests, misaligned 4 byte access could overflow msix table and cause qemu to segfault. Since PCI spec requires host to only issue dword-aligned accesses, as a fix, it's enough to mask the address low bits. - Tables use pci

[Qemu-devel] [PATCH v2] Added readonly flag to -drive command

2009-10-26 Thread Naphtali Sprei
This is a slightly revised patch for adding readonly flag to the -drive command. Even though this patch is stand-alone, it assumes a previous related patch (in Anthony staging tree), that passes the readonly attribute of the drive to the guest OS, applied first. This enables sharing same image

[Qemu-devel] [PATCH 4/7] usb: make attach optional.

2009-10-26 Thread Gerd Hoffmann
Add a auto_attach field to USBDevice, which is enabled by default. USB drivers can clear this field in case they do *not* want the device being attached (i.e. plugged into a usb port) automatically after successfull init(). Use cases (see next patches): * attaching encrypted mass storage

[Qemu-devel] [PATCH v2 0/7] use qdev for -usbdevice

2009-10-26 Thread Gerd Hoffmann
Hi, This patch series changes the way the -usbdevice switch (and the usb_add monitor command) is handled. Instead of hard-coding stuff in vl.c it is integrated with qdev by adding new fields to USBDeviceInfo. First patch adds the infrastructure. Follwing patches switch over the usb drivers

[Qemu-devel] [PATCH 2/7] usb-hid: use qdev for -usbdevice

2009-10-26 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb-hid.c |3 +++ hw/usb-wacom.c |1 + vl.c | 29 - 3 files changed, 4 insertions(+), 29 deletions(-) diff --git a/hw/usb-hid.c b/hw/usb-hid.c index d1cc45e..f4a2a48 100644 --- a/hw/usb-hid.c

[Qemu-devel] [PATCH 1/7] usb core: use qdev for -usbdevice

2009-10-26 Thread Gerd Hoffmann
This patchs adds infrastructure to handle -usbdevice via qdev callbacks. USBDeviceInfo gets a name field (for the -usbdevice driver name) and a callback for -usbdevice parameter parsing. The new usbdevice_create() function walks the qdev driver list and looks for a usb driver with a matching

[Qemu-devel] [PATCH 3/7] usb-serial and braille: use qdev for -usbdevice

2009-10-26 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/baum.c |6 hw/baum.h |3 -- hw/usb-serial.c | 85 ++- hw/usb.h|3 -- vl.c|6 5 files changed, 65 insertions(+), 38 deletions(-)

[Qemu-devel] [PATCH 7/7] usb: print attached status in info qtree

2009-10-26 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb-bus.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/usb-bus.c b/hw/usb-bus.c index 87dcc7f..99d185e 100644 --- a/hw/usb-bus.c +++ b/hw/usb-bus.c @@ -226,9 +226,10 @@ static void

[Qemu-devel] [PATCH 5/7] usb-storage: use qdev for -usbdevice

2009-10-26 Thread Gerd Hoffmann
Hook up usb_msd_init. Also rework handling of encrypted block devices, move the code out vl.c. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb-msd.c | 33 + hw/usb.h |4 vl.c | 25 - 3 files changed, 25

[Qemu-devel] [PATCH 6/7] usb-host: use qdev for -usbdevice + rework.

2009-10-26 Thread Gerd Hoffmann
Changes: * We don't create/delete devices, we attach/detach them instead. * The separate autofilter list is gone, we simply walk the list of devices directly instead. * Autofiltering is done unconditionally now. Non-auto device scan code got dropped. * Autofiltering turns off the timer

Re: [Qemu-devel] Re: [PATCH] new SDL keyboard shortcuts to start and stop VM

2009-10-26 Thread Anthony Liguori
Avi Kivity wrote: I'd much rather see a real GUI client, perhaps implemented by scripting QObjects or QMP. I'm with you 100% here. I'd rather see our focus put into a proper gui based on QMP than to tack on features to SDL. Maybe slightly less than 100%. I meant a native GUI in the

Re: [Qemu-devel] Re: [PATCH] new SDL keyboard shortcuts to start and stop VM

2009-10-26 Thread Avi Kivity
On 10/26/2009 05:04 PM, Anthony Liguori wrote: Maybe slightly less than 100%. I meant a native GUI in the same process as qemu, but talking to QObjects through a scripting language. The trouble here is that if you want to support being able to close the gui and open it again without killing

[Qemu-devel] [PATCH] serial: Support additional serial speed values

2009-10-26 Thread Stefan Weil
* Allow any speed value which is defined for Linux (and possibly other systems). * Compare int values instead of double values. Signed-off-by: Stefan Weil w...@mail.berlios.de --- qemu-char.c | 87 +- 1 files changed, 61 insertions(+),

[Qemu-devel] FAUmachine

2009-10-26 Thread Alexander Graf
Hi list, there's been a lot of discussion about abstraction of hardware devices and machine description. Last Saturday I've been running into some developers from the University of Erlangen (FAU) who work on an x86 emulator, used to simulate machine failures (memory bit flips, hard drive

Re: [Qemu-devel] [PATCH] tcg, tci: Add TCG and interpreter for bytecode (virtual machine)

2009-10-26 Thread Stefan Weil
malc schrieb: On Sun, 11 Oct 2009, Stefan Weil wrote: Stuart Brady schrieb: On Mon, Sep 28, 2009 at 06:50:21PM +0200, Stefan Weil wrote: Please send patches / enhancements based on my latest version from git://repo.or.cz/qemu/ar7.git. Just bug reports for now, unfortunately... [..snip..]

Re: [Qemu-devel] Re: [PATCH] new SDL keyboard shortcuts to start and stop VM

2009-10-26 Thread Anthony Liguori
Avi Kivity wrote: On 10/26/2009 05:04 PM, Anthony Liguori wrote: Maybe slightly less than 100%. I meant a native GUI in the same process as qemu, but talking to QObjects through a scripting language. The trouble here is that if you want to support being able to close the gui and open it

Re: [Qemu-devel] [PATCH] tcg, tci: Add TCG and interpreter for bytecode (virtual machine)

2009-10-26 Thread malc
On Mon, 26 Oct 2009, Stefan Weil wrote: malc schrieb: On Sun, 11 Oct 2009, Stefan Weil wrote: Stuart Brady schrieb: On Mon, Sep 28, 2009 at 06:50:21PM +0200, Stefan Weil wrote: Please send patches / enhancements based on my latest version from git://repo.or.cz/qemu/ar7.git. Just

Re: [Qemu-devel] [PATCH] CODING_STYLE: don't allow non-indented statements after if/else blocks

2009-10-26 Thread Blue Swirl
On Mon, Oct 26, 2009 at 8:26 AM, Aurelien Jarno aurel...@aurel32.net wrote: Rationale: The following code is difficult to read, but allowed by the current coding style. Fully agree. +Every control flow statement is followed by a new indented and braced +block; even if the block contains just

Re: [Qemu-devel] Re: [PATCH] new SDL keyboard shortcuts to start and stop VM

2009-10-26 Thread Avi Kivity
On 10/26/2009 05:49 PM, Anthony Liguori wrote: Many applications minimize to the system tray without needing two processes. Minimizing or hiding the window are different use cases. Now, I'm not 100% convinced this use-case is absolutely required but historically, it's always come up in

Re: [Qemu-devel] [RFC] in-kernel irqchip : split devices

2009-10-26 Thread Glauber Costa
On Sun, Oct 25, 2009 at 12:26:51PM +0200, Avi Kivity wrote: On 10/14/2009 04:30 PM, Glauber Costa wrote: Hello people, As I promised, I am sending a very brief PoC wrt split devices and in-kernel irqchip. In this mail, I am including only the ioapic version for apreciation. I also have

Re: [Qemu-devel] [RFC] in-kernel irqchip : split devices

2009-10-26 Thread Anthony Liguori
Avi Kivity wrote: On 10/14/2009 04:30 PM, Glauber Costa wrote: Hello people, As I promised, I am sending a very brief PoC wrt split devices and in-kernel irqchip. In this mail, I am including only the ioapic version for apreciation. I also have i8259, and apic will take me a little bit more.

[Qemu-devel] [PATCH] Use msr list to load and save msrs

2009-10-26 Thread Glauber Costa
Since there is an ioctl that tells us which msrs are available, use it. This saves us from the need of functions like has_star(), lm_capable(), etc. Signed-off-by: Glauber Costa glom...@redhat.com CC: Marcelo Tosatti mtosa...@redhat.com CC: Avi Kivity a...@redhat.com --- target-i386/kvm.c | 200

[Qemu-devel] Re: qemu-kvm: sigsegv at exit

2009-10-26 Thread Marcelo Tosatti
On Thu, Oct 22, 2009 at 06:57:27PM -0200, Marcelo Tosatti wrote: On Thu, Oct 22, 2009 at 02:00:15PM +0200, Michael S. Tsirkin wrote: Hi! I'm sometimes getting segfaults when I kill qemu. This time I caught it when qemu was under gdb: Program received signal SIGSEGV,

[Qemu-devel] Re: qemu-kvm: sigsegv at exit

2009-10-26 Thread Michael S. Tsirkin
On Mon, Oct 26, 2009 at 04:43:11PM -0200, Marcelo Tosatti wrote: On Thu, Oct 22, 2009 at 06:57:27PM -0200, Marcelo Tosatti wrote: On Thu, Oct 22, 2009 at 02:00:15PM +0200, Michael S. Tsirkin wrote: Hi! I'm sometimes getting segfaults when I kill qemu. This time I caught it when

Re: [Qemu-devel] Re: [PATCH] tcg, tci: Add TCG and interpreter for bytecode (virtual machine)

2009-10-26 Thread Stuart Brady
On Sat, Oct 24, 2009 at 11:23:43AM +0800, TeLeMan wrote: On Sat, Oct 24, 2009 at 02:58, Stefan Weil w...@mail.berlios.de wrote: Is patch 4 (call handling) needed, or is it an optimization? If it is needed, the tcg disassembler has to be extended as well. In fact tci has no stack and robber

Re: [Qemu-devel] [PATCH] CODING_STYLE: don't allow non-indented statements after if/else blocks

2009-10-26 Thread Aurelien Jarno
On Mon, Oct 26, 2009 at 06:02:52PM +0200, Blue Swirl wrote: On Mon, Oct 26, 2009 at 8:26 AM, Aurelien Jarno aurel...@aurel32.net wrote: Rationale: The following code is difficult to read, but allowed by the current coding style. Fully agree. +Every control flow statement is followed by

Re: [Qemu-devel] [PATCH] CODING_STYLE: don't allow non-indented statements after if/else blocks

2009-10-26 Thread Blue Swirl
On Mon, Oct 26, 2009 at 10:03 PM, Aurelien Jarno aurel...@aurel32.net wrote: On Mon, Oct 26, 2009 at 06:02:52PM +0200, Blue Swirl wrote: On Mon, Oct 26, 2009 at 8:26 AM, Aurelien Jarno aurel...@aurel32.net wrote: Rationale: The following code is difficult to read, but allowed by the current

Re: [Qemu-devel] Re: [PATCH v2 3/3] char: emit the OPENED event only when a new char connection is opened

2009-10-26 Thread Jan Kiszka
Amit Shah wrote: On (Mon) Oct 26 2009 [08:40:12], Jan Kiszka wrote: Amit Shah wrote: On (Sat) Oct 24 2009 [12:36:54], Jan Kiszka wrote: Amit Shah wrote: The OPENED event gets sent also when qemu resets its state initially. The consumers of the event aren't interested in receiving this event

Re: [Qemu-devel] [PATCH] CODING_STYLE: don't allow non-indented statements after if/else blocks

2009-10-26 Thread Aurelien Jarno
On Mon, Oct 26, 2009 at 10:20:34PM +0200, Blue Swirl wrote: On Mon, Oct 26, 2009 at 10:03 PM, Aurelien Jarno aurel...@aurel32.net wrote: On Mon, Oct 26, 2009 at 06:02:52PM +0200, Blue Swirl wrote: On Mon, Oct 26, 2009 at 8:26 AM, Aurelien Jarno aurel...@aurel32.net wrote: Rationale: The

[Qemu-devel] [PATCH] serial: Add missing bit

2009-10-26 Thread Stefan Weil
Serial frames always start with a start bit. This bit was missing in frame size calculation. Signed-off-by: Stefan Weil w...@mail.berlios.de --- hw/serial.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hw/serial.c b/hw/serial.c index eb14f11..7552fee 100644 ---

Re: [Qemu-devel] [PATCH v2 09/10] target-arm: optimize neon vld/vst ops

2009-10-26 Thread Aurelien Jarno
On Mon, Oct 26, 2009 at 10:11:07AM +0100, Laurent Desnogues wrote: On Mon, Oct 26, 2009 at 8:46 AM, juha.riihim...@nokia.com wrote: On Oct 25, 2009, at 16:01, ext Laurent Desnogues wrote: I don't really like the idea of having tcg_qemu_ld/st not factored in some place, as it makes

Re: [Qemu-devel] [PATCH] CODING_STYLE: don't allow non-indented statements after if/else blocks

2009-10-26 Thread Anthony Liguori
Aurelien Jarno wrote: That's the problem. We have seen that people already take advantage of the ambiguities, as I would have never have imagined someone writing the code in the rationale of this patch to avoid putting braces. I appreciate the desire to be precise, but we aren't writing a