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 co

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, 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 tr

[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 --- 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 --- a/hw/serial.c +++ b/

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 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 > >> wrote: > >> > Rationale: The following code is difficult

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 re

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 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 wrote: >> > Rationale: The following code is difficult to read, but allowed by the >> > current coding style. >> >> Fully agree.

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 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 inde

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 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 registers and

[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 c

[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 sign

[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 CC: Marcelo Tosatti CC: Avi Kivity --- target-i386/kvm.c | 200 ++--

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.

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

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:49 PM, Anthony Liguori wrote: A user starts a VM at a physical box. Everythings fine but he wants to return to his workstation so he closes the window. He goes back to his workstation and connects to a VNC server (on a different X server). He wants to now

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 disc

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 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 one statement.  

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.c

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 aga

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, unfortunate

[Qemu-devel] [PATCH] qcow2: Allow qcow2 disk images with size zero

2009-10-26 Thread Stefan Weil
Images with disk size 0 may be used for VM snapshots, but not to save normal block data. It is possible to create such images using qemu-img, but opening them later fails. So even "qemu-img info image.qcow2" is not possible for an image created with "qemu-img create -f qcow2 image.qcow2 0". This

[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

[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 --- qemu-char.c | 87 +- 1 files changed, 61 insertions(+), 26 deletions(-) diff

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

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 sam

[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

[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 --- hw/usb-msd.c | 33 + hw/usb.h |4 vl.c | 25 - 3 files changed, 25 insertions(+), 37 d

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

2009-10-26 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- 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 usb_bus_dev_print(Monitor *mon, DeviceStat

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

2009-10-26 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- 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(-) diff --git a/hw/bau

[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 name.

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

2009-10-26 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- 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 +++ b/hw/usb-hid.

[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 to

[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 devices.

[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] 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 fo

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 o

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/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 of short comings/gotchas as we'd like them to be

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 u

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;

[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 byt

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

2009-10-26 Thread Sven Rudolph
Scott Tsai 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 with > error mess

[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 --- hw/virtio.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) di

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 th

[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 virtio

[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 W

[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 OOM

[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 a

[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 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 m

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 ver

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, wrote: > From: Juha Riihimäki > > 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 Acked-by: Lauren

[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. Li

[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 --- 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 b/hw/cirrus_vga.c index 9dfe76

[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 --- hw/pc.c |4 ++-- 1 files changed, 2 insertions(+),

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

2009-10-26 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- 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, rom->name = qemu_strdup(f

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

2009-10-26 Thread juha . riihimaki
From: Juha Riihimäki 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 --- target-arm/translate.c |4 ++-- 1 files changed, 2 insertions(+)

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); >> -

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, wrote: > From: Juha Riihimäki > > 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 inline function, which I > sent earlier as a

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, wrote: > From: Juha Riihimäki > > 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 a

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

2009-10-26 Thread juha . riihimaki
From: Juha Riihimäki 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 register leading to problems

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 >

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] [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, 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 the problem ha

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, 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 registers, at least

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

2009-10-26 Thread Markus Armbruster
Markus Armbruster writes: > Gerd Hoffmann 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 isa-serial,index=1 >> >> ins

[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 absolut

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 cou

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 ac

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

2009-10-26 Thread Juha.Riihimaki
On Oct 25, 2009, at 14:23, ext Laurent Desnogues wrote: > On Sat, Oct 24, 2009 at 1:19 PM, wrote: >> From: Juha Riihimäki >> >> 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

[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 *native_smp_send_stop()*

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

2009-10-26 Thread juha . riihimaki
From: Juha Riihimäki 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 sizeof operator to signed ssiz