[Qemu-devel] [Bug 1082292] Re: [ARM] pflash_write: Unimplemented flash cmd sequence

2012-11-23 Thread davidlt
** Also affects: qemu-linaro Importance: Undecided Status: New -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1082292 Title: [ARM] pflash_write: Unimplemented flash cmd sequence Status in

Re: [Qemu-devel] [PATCH V10 0/8] memory: unify ioport registration

2012-11-23 Thread Julien Grall
ping ? On Mon, Oct 8, 2012 at 5:53 PM, Julien Grall wrote: > On 09/19/2012 12:50 PM, Julien Grall wrote: > > > This is the tenth version of patch series about ioport registration. > > > > Some part of QEMU still use register_ioport* functions to register > ioport. > > These functions doesn't all

[Qemu-devel] [Bug 1079713] Re: failed to set sndbuf on VMs network interface

2012-11-23 Thread Serge Hallyn
Latest upstream qemu.git still reproduces this, so marking it as affecting QEMU. ** Also affects: qemu Importance: Undecided Status: New -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/107971

Re: [Qemu-devel] [Bug 739785] Re: qemu-i386 user mode can't fork (bash: fork: Invalid argument)

2012-11-23 Thread Justin Shafer
Something new... I have started to compile qemu with all the audio drivers --audio-drv- list="oss alsa ps sdl esd" on 0.14.1 with a patch that was included in 0.15 and it compiles IF I edit ioctls.h and remove 3 lines about sound. Oddly enough my kernel from CM9\Ubuntu is not compiled with those

[Qemu-devel] [PATCH] target-xtensa: make sar_m32 global instead of local temp

2012-11-23 Thread Max Filippov
This fixes the following assertion caused by local temp reaching the end of TB in discarded state: qemu-system-xtensa: tcg/tcg.c:1665: temp_save: Assertion `s->temps[temp].val_type == 2 || s->temps[temp].fixed_reg' failed. Aborted Signed-off-by: Max Filippov --- target-xtensa/cpu.h |

[Qemu-devel] [Bug 955379] Re: cmake hangs with qemu-arm-static

2012-11-23 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: qemu-linaro (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/955379 Title:

[Qemu-devel] [Bug 1082292] [NEW] [ARM] pflash_write: Unimplemented flash cmd sequence

2012-11-23 Thread davidlt
Public bug reported: I find the bug already reported on qemu-devel mailing-list [1] w/o replies also on other sources. Tested on Darwin (Mac OS X 10.7.5) and Scientific Linux 6.3 hosts. Also using the latest 1.2.X and 1.3.0-rc0 and qemu-linaro. On all host operating systems and with different ver

[Qemu-devel] [PATCH v3] vnc: added initial websocket protocol support

2012-11-23 Thread Tim Hardeck
This patch adds basic Websocket Protocol version 13 - RFC 6455 - support to QEMU VNC. Binary encoding support on the client side is mandatory. Because of the GnuTLS requirement the Websockets implementation is optional (--enable-vnc-ws). To activate Websocket support the VNC option "websocket"is

[Qemu-devel] [PATCH 1/2] pc_sysfw: Check for qemu_find_file() failure

2012-11-23 Thread Markus Armbruster
pc_fw_add_pflash_drv() ignores qemu_find_file() failure, and happily creates a drive without a medium. When pc_system_flash_init() asks for its size, bdrv_getlength() fails with -ENOMEDIUM, which isn't checked either. It fails relatively cleanly only because -ENOMEDIUM isn't a multiple of 4096:

[Qemu-devel] [PATCH 2/2] pc_sysfw: Plug memory leak on pc_fw_add_pflash_drv() error path

2012-11-23 Thread Markus Armbruster
Harmless, because we the error inevitably leads to another, fatal one in pc_system_flash_init(): PC system firmware (pflash) not available. Fix it anyway. Signed-off-by: Markus Armbruster --- hw/pc_sysfw.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/pc_sysfw.c b/hw/

[Qemu-devel] [PATCH 0/2] pc_fw_add_pflash_drv() fixes

2012-11-23 Thread Markus Armbruster
Straightforward bug fixes, so they could qualify for 1.3. But since the bugs are fairly harmless, we might want to postpone to 1.4 regardless. If we do, perhaps qemu-trivial could pick them up. Markus Armbruster (2): pc_sysfw: Check for qemu_find_file() failure pc_sysfw: Plug memory leak on

[Qemu-devel] [PATCH 17/20] apci: switch piix4 gpe to memory api

2012-11-23 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/acpi_piix4.c | 24 ++-- 1 files changed, 18 insertions(+), 6 deletions(-) diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c index a85c2d4..b75be72 100644 --- a/hw/acpi_piix4.c +++ b/hw/acpi_piix4.c @@ -57,6 +57,7 @@ struct pci_status { type

Re: [Qemu-devel] [PATCH 1.3 3/5] qom: make object_delete usable for statically-allocated objects

2012-11-23 Thread Paolo Bonzini
Il 23/11/2012 18:02, Andreas Färber ha scritto: >> Store in the object the freeing function that will be used at deletion >> > time. This makes it possible to use object_delete on statically-allocated >> > (embedded) objects. Dually, it makes it possible to use object_unparent >> > and object_unr

Re: [Qemu-devel] [PATCH 1.3 5/5] qom: make object_finalize static

2012-11-23 Thread Paolo Bonzini
Il 23/11/2012 18:12, Andreas Färber ha scritto: > We have not yet started using the in-place mechanism much (i440fx and > prep_pci patches, not in master; also my tegra branch), so I would like > to keep this for symmetry with "initialize" vs. "new" and their > distinguished semantics. But you do

[Qemu-devel] [PATCH 05/20] apci: switch timer to memory api [ich9]

2012-11-23 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/acpi_ich9.c |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/hw/acpi_ich9.c b/hw/acpi_ich9.c index e03b1a6..b3022c0 100644 --- a/hw/acpi_ich9.c +++ b/hw/acpi_ich9.c @@ -170,9 +170,6 @@ static uint32_t pm_ioport_readl(void *opaque, ui

Re: [Qemu-devel] [PATCH 1.3 4/5] qdev: simplify (de)allocation of buses

2012-11-23 Thread Paolo Bonzini
Il 23/11/2012 18:07, Andreas Färber ha scritto: >> > bus = g_malloc0(sizeof(*bus)); >> > -bus->qbus.glib_allocated = true; >> > pci_bus_new_inplace(bus, parent, name, address_space_mem, >> > address_space_io, devfn_min); >> > +OBJECT(bus)->free = g_free; >

Re: [Qemu-devel] [PATCH 1.3 5/5] qom: make object_finalize static

2012-11-23 Thread Andreas Färber
Am 23.11.2012 09:47, schrieb Paolo Bonzini: > It is not used anymore, and there is no need to make it public. > > Signed-off-by: Paolo Bonzini We have not yet started using the in-place mechanism much (i440fx and prep_pci patches, not in master; also my tegra branch), so I would like to keep thi

Re: [Qemu-devel] [PATCH 1.3 4/5] qdev: simplify (de)allocation of buses

2012-11-23 Thread Andreas Färber
Am 23.11.2012 09:47, schrieb Paolo Bonzini: > All conditional deallocation can now be done with object_delete. > Remove the @qom_allocated and @glib_allocated fields; replace the latter > with a direct assignment of the @free function pointer. > > Signed-off-by: Paolo Bonzini I am grateful for y

Re: [Qemu-devel] [PATCH 1.3 3/5] qom: make object_delete usable for statically-allocated objects

2012-11-23 Thread Andreas Färber
Am 23.11.2012 09:47, schrieb Paolo Bonzini: > Store in the object the freeing function that will be used at deletion > time. This makes it possible to use object_delete on statically-allocated > (embedded) objects. Dually, it makes it possible to use object_unparent > and object_unref without lea

[Qemu-devel] [PATCH 04/20] apci: switch timer to memory api

2012-11-23 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/acpi.c | 19 +-- hw/acpi.h |5 +++-- hw/acpi_piix4.c |5 + hw/vt82c686.c |6 +- 4 files changed, 22 insertions(+), 13 deletions(-) diff --git a/hw/acpi.c b/hw/acpi.c index f4aca49..ba25c23 100644 --- a/hw/acp

[Qemu-devel] [PATCH 13/20] apci: switch ich9 smi to memory api

2012-11-23 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/acpi_ich9.c | 46 -- hw/acpi_ich9.h |1 + 2 files changed, 37 insertions(+), 10 deletions(-) diff --git a/hw/acpi_ich9.c b/hw/acpi_ich9.c index aa290d6..cdfa266 100644 --- a/hw/acpi_ich9.c +++ b/hw/acpi_ich9.c

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 1/2] Make default boot order machine specific

2012-11-23 Thread Alexander Graf
On 05.11.2012, at 12:34, Avik Sil wrote: > On 10/26/2012 05:15 PM, Alexander Graf wrote: >> >> On 25.10.2012, at 22:57, Alexander Graf wrote: >> >>> >>> On 25.10.2012, at 22:50, Peter Maydell wrote: >>> On 25 October 2012 21:18, Anthony Liguori wrote: > The other approach to this w

[Qemu-devel] [PATCH 18/20] acpi: remove acpi_gpe_blk

2012-11-23 Thread Gerd Hoffmann
With gpe being switched to memory api this is no longer needed. Signed-off-by: Gerd Hoffmann --- hw/acpi.c |7 --- hw/acpi.h |2 -- hw/acpi_ich9.c |1 - hw/acpi_piix4.c |1 - 4 files changed, 0 insertions(+), 11 deletions(-) diff --git a/hw/acpi.c b/hw/acpi.c in

[Qemu-devel] [PATCH 16/20] acpi: fix piix4 smbus mapping

2012-11-23 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/acpi_piix4.c | 23 ++- 1 files changed, 22 insertions(+), 1 deletions(-) diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c index cd876c8..a85c2d4 100644 --- a/hw/acpi_piix4.c +++ b/hw/acpi_piix4.c @@ -146,12 +146,33 @@ static void pm_io_spac

Re: [Qemu-devel] [PATCH 1.3 2/5] qdev: move bus removal to object_unparent

2012-11-23 Thread Andreas Färber
Am 23.11.2012 09:47, schrieb Paolo Bonzini: > Add an ObjectClass method that is done at object_unparent time. It > should remove any backlinks to the object in the composition tree, > so that object_delete will be able to drop the last reference and > free the object. > > Use it for qdev buses. >

Re: [Qemu-devel] [PATCH 1.3 1/2] qom: dynamic_cast of NULL is always NULL

2012-11-23 Thread Paolo Bonzini
Il 23/11/2012 17:30, Andreas Färber ha scritto: > If having SCSI_BUS() return NULL was your intent you would not have > needed to switch to object_dynamic_cast in your second patch. :) In the second patch I needed object_dynamic_cast in case the bus was not a SCSI bus at all. For example: $ qemu

Re: [Qemu-devel] [PATCH 1.3 1/5] qom: fix refcount of non-heap-allocated objects

2012-11-23 Thread Andreas Färber
Am 23.11.2012 09:47, schrieb Paolo Bonzini: > The reference count for embedded objects is always one too low, because > object_initialize_with_type returns with zero references to the object. > This causes premature finalization of the object (or an assertion failure) > after calling object_ref to

Re: [Qemu-devel] [PATCH 1/1] Legacy qemu-kvm options have no argument

2012-11-23 Thread Andreas Färber
Am 23.11.2012 13:41, schrieb Marcelo Tosatti: > From: Bruce Rogers > > The options no-kvm, no-kvm-pit, no-kvm-pit-reinjection, and no-kvm-irqchip > should be marked as having no argument. > > Signed-off-by: Bruce Rogers > Reviewed-by: Jan Kiszka Missing a Reviewed-by: Stefan Hajnoczi from

Re: [Qemu-devel] [PATCH] Fix missing TRACE exception

2012-11-23 Thread Andreas Färber
Am 23.11.2012 17:06, schrieb Alexander Graf: > > On 19.10.2012, at 12:17, Julio Guerra wrote: > >> This patch fixes bug 1031698 : >> https://bugs.launchpad.net/qemu/+bug/1031698 >> >> If we look at the (truncated) translation of the conditional branch >> instruction in the test submitted in the b

Re: [Qemu-devel] [PATCH 1.3 1/2] qom: dynamic_cast of NULL is always NULL

2012-11-23 Thread Andreas Färber
Am 23.11.2012 17:25, schrieb Paolo Bonzini: > Il 23/11/2012 17:16, Andreas Färber ha scritto: @@ -430,7 +430,7 @@ Object *object_dynamic_cast_assert(Object *obj, const char *typename) inst = object_dynamic_cast(obj, typename); -if (!inst) { +if (

Re: [Qemu-devel] [PATCH 1.3 1/2] qom: dynamic_cast of NULL is always NULL

2012-11-23 Thread Paolo Bonzini
Il 23/11/2012 17:16, Andreas Färber ha scritto: >> > @@ -430,7 +430,7 @@ Object *object_dynamic_cast_assert(Object *obj, const >> > char *typename) >> > >> > inst = object_dynamic_cast(obj, typename); >> > >> > -if (!inst) { >> > +if (!inst && obj) { >> > fprintf(stderr,

Re: [Qemu-devel] [PATCH 0/2] Followup patches regarding block default interface

2012-11-23 Thread Stefan Hajnoczi
On Thu, Nov 22, 2012 at 09:02:54PM +0100, Christian Borntraeger wrote: > here are two followup patches. > > > Christian Borntraeger (2): > block: simply default_drive > block: clarify comment about IF_IDE = 0 > > blockdev.h |6 +- > vl.c | 20 ++-- > 2 files

Re: [Qemu-devel] [PATCH] qemu-timer: Don't use RDTSC on 386s and 486s

2012-11-23 Thread Jamie Lokier
Peter Maydell wrote: > On 23 November 2012 15:31, Jamie Lokier wrote: > > x86 instruction sets haven't followed a linear progression of features > > for quite a while, especially including non-Intel chips, so it stopped > > making sense for GCC to indicate the instruction set in that way. > > If

Re: [Qemu-devel] [PATCH] qemu-timer: Don't use RDTSC on 386s and 486s

2012-11-23 Thread Jamie Lokier
Peter Maydell wrote: > On 23 November 2012 15:17, Peter Maydell wrote: > > On 23 November 2012 15:15, Paolo Bonzini wrote: > >> You should at least test __i686__ too: > >> > >> $ gcc -m32 -dM -E -x c /dev/null |grep __i > >> #define __i686 1 > >> #define __i686__ 1 > >> #define __i386 1 > >> #def

Re: [Qemu-devel] [RFC PATCH v2 0/3] Virtio-refactoring.

2012-11-23 Thread Stefan Hajnoczi
On Fri, Nov 23, 2012 at 03:29:52PM +0100, Konrad Frederic wrote: > On 23/11/2012 13:38, Stefan Hajnoczi wrote: > >On Thu, Nov 22, 2012 at 03:50:49PM +0100, fred.kon...@greensocs.com wrote: > >>From: KONRAD Frederic > >>I made the changes you suggest in the last RFC. > >> > >>There are still two iss

[Qemu-devel] [PATCH 03/20] apci: switch vt82c686 to memory api

2012-11-23 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/vt82c686.c | 28 +++- 1 files changed, 23 insertions(+), 5 deletions(-) diff --git a/hw/vt82c686.c b/hw/vt82c686.c index 5d7c00c..7f9c7a2 100644 --- a/hw/vt82c686.c +++ b/hw/vt82c686.c @@ -24,6 +24,7 @@ #include "pm_smbus.h" #includ

Re: [Qemu-devel] [PATCH 1.3 1/2] qom: dynamic_cast of NULL is always NULL

2012-11-23 Thread Andreas Färber
Am 23.11.2012 16:56, schrieb Paolo Bonzini: > Trying to cast a NULL value will cause a crash. Returning > NULL is also sensible, and it is also what the type-unsafe > DO_UPCAST macro does. > > Reported-by: Markus Armbruster > Signed-off-by: Paolo Bonzini I believe we had a lengthy discussion o

Re: [Qemu-devel] [RFC PATCH v2 1/3] virtio-bus : Introduce VirtioBus.

2012-11-23 Thread Stefan Hajnoczi
On Fri, Nov 23, 2012 at 03:21:30PM +0100, Konrad Frederic wrote: > On 23/11/2012 13:23, Stefan Hajnoczi wrote: > >On Thu, Nov 22, 2012 at 03:50:50PM +0100, fred.kon...@greensocs.com wrote: > >>+struct VirtioBusInfo { > >This is defining an ad-hoc interface. QOM has support for interfaces so > >tha

[Qemu-devel] [PATCH 08/20] apci: switch evt to memory api

2012-11-23 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/acpi.c | 49 +++-- hw/acpi.h |6 -- hw/acpi_piix4.c | 18 +- hw/vt82c686.c | 18 +- 4 files changed, 53 insertions(+), 38 deletions(-) diff --git a/hw/acpi.

[Qemu-devel] [PATCH 02/20] apci: switch ich9 to memory api

2012-11-23 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/acpi_ich9.c | 33 +++-- hw/acpi_ich9.h |1 + 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/hw/acpi_ich9.c b/hw/acpi_ich9.c index 61034d3..e03b1a6 100644 --- a/hw/acpi_ich9.c +++ b/hw/acpi_ich9.c @@ -29,6 +29,

Re: [Qemu-devel] [PATCH for-1.3] hw/ide/macio: Fix segfault caused by NULL DMAContext*

2012-11-23 Thread Alexander Graf
On 20.11.2012, at 19:16, Peter Maydell wrote: > Pass qemu_sglist_init the global dma_context_memory rather than a NULL > pointer; this fixes a segfault in dma_memory_map() when the guest > starts using DMA. > > Reported-by: Amadeusz Sławiński > Signed-off-by: Peter Maydell Thanks, applied to

Re: [Qemu-devel] [PATCH] Fix missing TRACE exception

2012-11-23 Thread Alexander Graf
On 19.10.2012, at 12:17, Julio Guerra wrote: > This patch fixes bug 1031698 : > https://bugs.launchpad.net/qemu/+bug/1031698 > > If we look at the (truncated) translation of the conditional branch > instruction in the test submitted in the bug post, the call to the > exception helper is missing

[Qemu-devel] [PATCH 01/20] apci: switch piix4 to memory api

2012-11-23 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/acpi_piix4.c | 30 +++--- 1 files changed, 19 insertions(+), 11 deletions(-) diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c index 519269a..086f230 100644 --- a/hw/acpi_piix4.c +++ b/hw/acpi_piix4.c @@ -28,6 +28,7 @@ #include "range.h

[Qemu-devel] [PATCH 11/20] acpi: cleanup vt82c686 memory region

2012-11-23 Thread Gerd Hoffmann
Nothing left to do, everything handled by subregions, we can zap the reaw/write handlers now. Signed-off-by: Gerd Hoffmann --- hw/vt82c686.c | 61 + 1 files changed, 1 insertions(+), 60 deletions(-) diff --git a/hw/vt82c686.c b/hw/vt82c6

[Qemu-devel] [PATCH 1.3 2/2] hmp: do not crash on invalid SCSI hotplug

2012-11-23 Thread Paolo Bonzini
Commit 0d93692 (qdev: Convert busses to QEMU Object Model, 2012-05-02) removed a check on the type of the bus where a SCSI disk is hotplugged. However, hot-plugging to the wrong kind of device now causes a crash due to either a NULL pointer dereference (avoided by the previous patch) or a failed QO

[Qemu-devel] [PATCH 1.3 1/2] qom: dynamic_cast of NULL is always NULL

2012-11-23 Thread Paolo Bonzini
Trying to cast a NULL value will cause a crash. Returning NULL is also sensible, and it is also what the type-unsafe DO_UPCAST macro does. Reported-by: Markus Armbruster Signed-off-by: Paolo Bonzini --- qom/object.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qom/ob

[Qemu-devel] [PATCH 1.3 0/2] "drive_add NN if=scsi" fixes

2012-11-23 Thread Paolo Bonzini
Reported by Markus, and a regression from 1.1. Not really SCSI stuff, just happens to have it in the name, so I'm not sending it through my tree. Paolo Bonzini (2): qom: dynamic_cast of NULL is always NULL hmp: do not crash on invalid SCSI hotplug hw/pci-hotplug.c | 8 +++- qom/object.c

Re: [Qemu-devel] [PATCH] overflow of int ret: use ssize_t for ret

2012-11-23 Thread Stefan Hajnoczi
On Fri, Nov 23, 2012 at 3:15 PM, Peter Maydell wrote: > On 23 November 2012 14:11, Stefan Hajnoczi wrote: >> On Thu, Nov 22, 2012 at 10:07 AM, Stefan Priebe >> wrote: >>> diff --git a/block/rbd.c b/block/rbd.c >>> index 5a0f79f..0384c6c 100644 >>> --- a/block/rbd.c >>> +++ b/block/rbd.c >>> @@

Re: [Qemu-devel] qcow2: slow internal snapshot creation

2012-11-23 Thread Alexandre DERUMIER
>>Can you post more details about your benchmark setup so that this can be >>reproduced? And does it reproduce with local files as well or only using >>NFS? Sure, I have redone tests, here the results: (note that my netapp san have a nvram journal, so directio are as fast than buffered io) pre

[Qemu-devel] [PATCH 06/20] apci: switch cnt to memory api

2012-11-23 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/acpi.c | 38 ++ hw/acpi.h |5 +++-- hw/acpi_piix4.c |8 +--- hw/vt82c686.c |8 +--- 4 files changed, 35 insertions(+), 24 deletions(-) diff --git a/hw/acpi.c b/hw/acpi.c index ba25c23..956

[Qemu-devel] [PATCH 19/20] apci: switch piix4 pci hotplug to memory api

2012-11-23 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/acpi_piix4.c | 37 + 1 files changed, 29 insertions(+), 8 deletions(-) diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c index d74fff9..93aa319 100644 --- a/hw/acpi_piix4.c +++ b/hw/acpi_piix4.c @@ -42,6 +42,9 @@ #define G

[Qemu-devel] [PATCH 15/20] acpi: switch smbus to memory api

2012-11-23 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/acpi_piix4.c |5 ++--- hw/pm_smbus.c | 17 + hw/pm_smbus.h |3 +-- hw/smbus_ich9.c | 52 +++- hw/vt82c686.c |6 ++ 5 files changed, 33 insertions(+), 50 deletions(-) diff

[Qemu-devel] [PATCH 09/20] apci: switch evt to memory api [ich9]

2012-11-23 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/acpi_ich9.c | 18 +- 1 files changed, 1 insertions(+), 17 deletions(-) diff --git a/hw/acpi_ich9.c b/hw/acpi_ich9.c index 237b577..0f025f8 100644 --- a/hw/acpi_ich9.c +++ b/hw/acpi_ich9.c @@ -105,17 +105,7 @@ static uint32_t pm_ioport_readb(v

[Qemu-devel] [PATCH 20/20] q35: update lpc pci config space according to configured devices

2012-11-23 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/ich9.h |1 + hw/lpc_ich9.c | 29 + hw/smbus_ich9.c | 12 3 files changed, 30 insertions(+), 12 deletions(-) diff --git a/hw/ich9.h b/hw/ich9.h index de49135..34e216f 100644 --- a/hw/ich9.h +++ b/hw/ich9.

[Qemu-devel] [PATCH 10/20] acpi: cleanup piix4 memory region

2012-11-23 Thread Gerd Hoffmann
Nothing left to do, everything handled by subregions, we can zap the reaw/write handlers now. Signed-off-by: Gerd Hoffmann --- hw/acpi_piix4.c | 41 + 1 files changed, 1 insertions(+), 40 deletions(-) diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c index

[Qemu-devel] [PATCH 07/20] apci: switch cnt to memory api [ich9]

2012-11-23 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/acpi_ich9.c |8 +--- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/hw/acpi_ich9.c b/hw/acpi_ich9.c index b3022c0..237b577 100644 --- a/hw/acpi_ich9.c +++ b/hw/acpi_ich9.c @@ -116,9 +116,6 @@ static void pm_ioport_writew(void *opaque, ui

[Qemu-devel] [PATCH 14/20] acpi: cleanup ich9 memory region

2012-11-23 Thread Gerd Hoffmann
Nothing left to do, everything handled by subregions, we can zap the reaw/write handlers now. Signed-off-by: Gerd Hoffmann --- hw/acpi_ich9.c | 125 +--- 1 files changed, 1 insertions(+), 124 deletions(-) diff --git a/hw/acpi_ich9.c b/hw/acpi

[Qemu-devel] [PATCH 12/20] apci: switch ich9 gpe to memory api

2012-11-23 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/acpi_ich9.c | 38 -- hw/acpi_ich9.h |1 + 2 files changed, 29 insertions(+), 10 deletions(-) diff --git a/hw/acpi_ich9.c b/hw/acpi_ich9.c index 0f025f8..aa290d6 100644 --- a/hw/acpi_ich9.c +++ b/hw/acpi_ich9.c @@ -73,1

[Qemu-devel] [PATCH 00/20] acpi: switch to memory api

2012-11-23 Thread Gerd Hoffmann
Hi, While wading through the qemu acpi and seabios aml code I've figured the qemu acpi codebase is *way* too messy. So this patch series switches the apci code to the memory api. That alone cleans up quite a bit and makes the code in hw/acpi.c more self-contained. As bonus everything shows up

Re: [Qemu-devel] [PATCH] qemu-timer: Don't use RDTSC on 386s and 486s

2012-11-23 Thread Peter Maydell
On 23 November 2012 15:31, Jamie Lokier wrote: > x86 instruction sets haven't followed a linear progression of features > for quite a while, especially including non-Intel chips, so it stopped > making sense for GCC to indicate the instruction set in that way. If you're going to go down that rout

Re: [Qemu-devel] [PATCH] qemu-timer: Don't use RDTSC on 386s and 486s

2012-11-23 Thread Peter Maydell
On 23 November 2012 15:17, Peter Maydell wrote: > On 23 November 2012 15:15, Paolo Bonzini wrote: >> You should at least test __i686__ too: >> >> $ gcc -m32 -dM -E -x c /dev/null |grep __i >> #define __i686 1 >> #define __i686__ 1 >> #define __i386 1 >> #define __i386__ 1 > > Yuck. I had assumed

Re: [Qemu-devel] [PATCH] qemu-timer: Don't use RDTSC on 386s and 486s

2012-11-23 Thread Jamie Lokier
Peter Maydell wrote: > On 23 November 2012 15:15, Paolo Bonzini wrote: > > Il 23/11/2012 16:12, Peter Maydell ha scritto: > >> Adjust the conditional which guards the implementation of > >> > >> -#elif defined(__i386__) > >> +#elif defined(__i586__) > >> > >> static inline int64_t cpu_get_real_ti

Re: [Qemu-devel] qcow2: slow internal snapshot creation

2012-11-23 Thread Kevin Wolf
Am 23.11.2012 08:26, schrieb Dietmar Maurer: > qcow2 snapshot on newly created files are fast: > > # qemu-img create -f qcow2 test.img 200G > # time qemu-img snapshot -c snap1 test.img > real 0m0.014s > > but if metadata is allocated it gets very slow: > > # qemu-img create -f qcow2 -o "p

Re: [Qemu-devel] drive_add 0 if=scsi crashes

2012-11-23 Thread Markus Armbruster
Paolo Bonzini writes: > Il 22/11/2012 15:02, Markus Armbruster ha scritto: >> Watch this: >> >> (qemu) drive_add 0 if=scsi >> Segmentation fault (core dumped) >> >> Broken in commit 0d936928 "qdev: Convert busses to QEMU Object Model". >> Before: >> >> (qemu) drive_add 0 if=scsi >>

Re: [Qemu-devel] [PATCH 1/3] S390: Basic CPU model support

2012-11-23 Thread Andreas Färber
Am 23.11.2012 11:18, schrieb Jens Freimann: > From: Viktor Mihajlovski > > This enables qemu -cpu ? to return the list of supported CPU models > on s390. Since only the host model is supported at this point in time > this is pretty straight-forward. Further, a validity check for the > requested C

Re: [Qemu-devel] [PATCH] qemu-timer: Don't use RDTSC on 386s and 486s

2012-11-23 Thread Peter Maydell
On 23 November 2012 15:15, Paolo Bonzini wrote: > Il 23/11/2012 16:12, Peter Maydell ha scritto: >> Adjust the conditional which guards the implementation of >> >> -#elif defined(__i386__) >> +#elif defined(__i586__) >> >> static inline int64_t cpu_get_real_ticks(void) >> { >> > > You should at

Re: [Qemu-devel] [PATCH] qemu-timer: Don't use RDTSC on 386s and 486s

2012-11-23 Thread Paolo Bonzini
Il 23/11/2012 16:12, Peter Maydell ha scritto: > Adjust the conditional which guards the implementation of > cpu_get_real_ticks() via RDTSC, so that we don't try to use it > on x86 CPUs which don't implement RDTSC. Instead we will fall > back to the no-cycle-counter-available default implementatio

[Qemu-devel] [PATCH 1.3? 1/2] tests: add AioContext unit tests

2012-11-23 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- tests/Makefile | 2 + tests/test-aio.c | 667 +++ 2 files changed, 669 insertions(+) create mode 100644 tests/test-aio.c diff --git a/tests/Makefile b/tests/Makefile index ca680e5..61cbe3b 100644 --- a/test

[Qemu-devel] [PATCH 1.3? 2/2] tests: add thread pool unit tests

2012-11-23 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- tests/Makefile | 2 + tests/test-thread-pool.c | 213 +++ 2 files changed, 215 insertions(+) create mode 100644 tests/test-thread-pool.c diff --git a/tests/Makefile b/tests/Makefile index 61cbe3b..b60f0fb 1

[Qemu-devel] [PATCH 1.3? 0/2] AioContext and thread pool unit tests

2012-11-23 Thread Paolo Bonzini
As requested. :) The tests pass on both Linux and Wine. I'm not sure if it makes sense to include these in 1.3, but the idea has some worth. Paolo Bonzini (2): tests: add AioContext unit tests tests: add thread pool unit tests tests/Makefile | 4 + tests/test-aio.c | 66

Re: [Qemu-devel] [PATCH 2/3] s390: clear registers, psw and prefix at vcpu reset

2012-11-23 Thread Alexander Graf
On 23.11.2012, at 16:02, Peter Maydell wrote: > On 23 November 2012 10:18, Jens Freimann wrote: >> +/* The initial reset call is needed here to reset in-kernel >> + * vcpu data that we can't access directly from QEMU. > > If there's in-kernel vcpu data we can't access from QEMU, > doesn

[Qemu-devel] [PATCH] qemu-timer: Don't use RDTSC on 386s and 486s

2012-11-23 Thread Peter Maydell
Adjust the conditional which guards the implementation of cpu_get_real_ticks() via RDTSC, so that we don't try to use it on x86 CPUs which don't implement RDTSC. Instead we will fall back to the no-cycle-counter-available default implementation. Reported-by: Yurij Popov Signed-off-by: Peter Mayd

Re: [Qemu-devel] [PATCH 0/2] Followup patches regarding block default interface

2012-11-23 Thread Markus Armbruster
Christian Borntraeger writes: > here are two followup patches. Thanks! Stefan, PATCH 1/2 could be squashed into "Support default block interfaces per QEMUMachine". Your choice. Reviewed-by: Markus Armbruster

Re: [Qemu-devel] [PATCH 2/3] s390: clear registers, psw and prefix at vcpu reset

2012-11-23 Thread Peter Maydell
On 23 November 2012 10:18, Jens Freimann wrote: > +/* The initial reset call is needed here to reset in-kernel > + * vcpu data that we can't access directly from QEMU. If there's in-kernel vcpu data we can't access from QEMU, doesn't this cause problems for migration? > Before > + *

[Qemu-devel] [PATCH 1.3] aio: avoid livelock behavior for Win32

2012-11-23 Thread Paolo Bonzini
The repeated calls to WaitForMultipleObjects may cause a livelock in aio_poll, where no progress is made on bottom halves. This patch matches the behavior of the POSIX code. Signed-off-by: Paolo Bonzini --- Found by the new unit tests. aio-win32.c | 5 - 1 file changed, 4 insertion

Re: [Qemu-devel] qcow2: slow internal snapshot creation

2012-11-23 Thread Kevin Wolf
Am 23.11.2012 15:17, schrieb Alexandre DERUMIER: >>> Preallocation doesn't matter much these days. > > I have done benchmark through nfs on a netapp san, (with directio), > > I got 300 iops without preallocation, and 6000 iops with preallocation This doesn't sound right, even for writethrou

Re: [Qemu-devel] [PATCH] overflow of int ret: use ssize_t for ret

2012-11-23 Thread Stefan Priebe - Profihost AG
Hi, i'm not a ceph or inktank guy. I can't made any decision on what to change. At least right now you'll see failing I/O's in your guest, when you discard whole disks. I could fix this for me with int64 and with ssize_t. So if i should resend another patch i need a concrete advise how to pa

Re: [Qemu-devel] [RFC PATCH v2 1/3] virtio-bus : Introduce VirtioBus.

2012-11-23 Thread Cornelia Huck
On Fri, 23 Nov 2012 15:12:45 +0100 Konrad Frederic wrote: > On 23/11/2012 13:08, Cornelia Huck wrote: > > On Thu, 22 Nov 2012 15:50:50 +0100 > > fred.kon...@greensocs.com wrote: > > > > > >> +/* Create a virtio bus. */ > >> +VirtioBus *virtio_bus_new(DeviceState *host, const VirtioBusInfo *info)

Re: [Qemu-devel] [PATCH 2/3] s390: clear registers, psw and prefix at vcpu reset

2012-11-23 Thread Alexander Graf
On 23.11.2012, at 15:32, Christian Borntraeger wrote: > On 23/11/12 14:40, Alexander Graf wrote: >> >> On 23.11.2012, at 11:18, Jens Freimann wrote: >> >>> When resetting vcpus on s390/kvm we have to clear registers, psw >>> and prefix as described in the z/Architecture PoP, otherwise a >>> reb

Re: [Qemu-devel] [RFC PATCH v2 2/3] virtio-pci : add a virtio-bus interface

2012-11-23 Thread Konrad Frederic
On 23/11/2012 15:26, Peter Maydell wrote: On 23 November 2012 14:23, Konrad Frederic wrote: On 23/11/2012 13:34, Peter Maydell wrote: On 23 November 2012 12:29, Stefan Hajnoczi wrote: Eventually VirtIOBindings can probably be inlined into VirtioBusInfo. I don't see a need for separate stru

Re: [Qemu-devel] [PATCH 2/3] s390: clear registers, psw and prefix at vcpu reset

2012-11-23 Thread Christian Borntraeger
On 23/11/12 14:40, Alexander Graf wrote: > > On 23.11.2012, at 11:18, Jens Freimann wrote: > >> When resetting vcpus on s390/kvm we have to clear registers, psw >> and prefix as described in the z/Architecture PoP, otherwise a >> reboot won't work. IPL PSW and prefix are set later on by the >> s3

Re: [Qemu-devel] [RFC PATCH v2 0/3] Virtio-refactoring.

2012-11-23 Thread Konrad Frederic
On 23/11/2012 13:38, Stefan Hajnoczi wrote: On Thu, Nov 22, 2012 at 03:50:49PM +0100, fred.kon...@greensocs.com wrote: From: KONRAD Frederic I made the changes you suggest in the last RFC. There are still two issues with the command line : * When I use ./qemu* -device virtio-blk -device v

Re: [Qemu-devel] [Qemu-ppc] [PATCH 12/12] pseries: Generate unique LIOBNs for PCI host bridges

2012-11-23 Thread Alexander Graf
On 23.11.2012, at 15:18, Michael S. Tsirkin wrote: > On Fri, Nov 23, 2012 at 03:03:24PM +0100, Alexander Graf wrote: >> >> On 23.11.2012, at 15:01, Michael S. Tsirkin wrote: >> >>> On Fri, Nov 23, 2012 at 02:44:15PM +0100, Alexander Graf wrote: On 23.11.2012, at 14:44, Michael S. Tsi

Re: [Qemu-devel] [RFC PATCH v2 2/3] virtio-pci : add a virtio-bus interface

2012-11-23 Thread Peter Maydell
On 23 November 2012 14:23, Konrad Frederic wrote: > On 23/11/2012 13:34, Peter Maydell wrote: >> On 23 November 2012 12:29, Stefan Hajnoczi wrote: >>> Eventually VirtIOBindings can probably be inlined into VirtioBusInfo. I >>> don't see a need for separate structs. >> >> I agree. It might (or mi

Re: [Qemu-devel] [RFC PATCH v2 2/3] virtio-pci : add a virtio-bus interface

2012-11-23 Thread Konrad Frederic
On 23/11/2012 13:34, Peter Maydell wrote: On 23 November 2012 12:29, Stefan Hajnoczi wrote: On Thu, Nov 22, 2012 at 03:50:51PM +0100, fred.kon...@greensocs.com wrote: +static const struct VirtioBusInfo virtio_bus_info = { +.init_cb = virtio_pci_init_cb, +.exit_cb = virtio_pci_exit_cb,

Re: [Qemu-devel] [RFC PATCH v2 1/3] virtio-bus : Introduce VirtioBus.

2012-11-23 Thread Konrad Frederic
On 23/11/2012 13:23, Stefan Hajnoczi wrote: On Thu, Nov 22, 2012 at 03:50:50PM +0100, fred.kon...@greensocs.com wrote: +/* Bind the VirtIODevice to the VirtioBus. */ +void virtio_bus_bind_device(VirtioBus *bus) +{ +BusState *qbus = BUS(bus); +assert(bus != NULL); +assert(bus->vdev !=

Re: [Qemu-devel] [PATCH 0/2] Followup patches regarding block default interface

2012-11-23 Thread Stefan Hajnoczi
On Thu, Nov 22, 2012 at 9:02 PM, Christian Borntraeger wrote: > here are two followup patches. > > > Christian Borntraeger (2): > block: simply default_drive > block: clarify comment about IF_IDE = 0 > > blockdev.h |6 +- > vl.c | 20 ++-- > 2 files changed, 11

Re: [Qemu-devel] qcow2: slow internal snapshot creation

2012-11-23 Thread Alexandre DERUMIER
>>Preallocation doesn't matter much these days. I have done benchmark through nfs on a netapp san, (with directio), I got 300 iops without preallocation, and 6000 iops with preallocation - Mail original - De: "Kevin Wolf" À: "Alexandre DERUMIER" Cc: "Dietmar Maurer" , qemu-deve

Re: [Qemu-devel] [Qemu-ppc] [PATCH 12/12] pseries: Generate unique LIOBNs for PCI host bridges

2012-11-23 Thread Michael S. Tsirkin
On Fri, Nov 23, 2012 at 03:03:24PM +0100, Alexander Graf wrote: > > On 23.11.2012, at 15:01, Michael S. Tsirkin wrote: > > > On Fri, Nov 23, 2012 at 02:44:15PM +0100, Alexander Graf wrote: > >> > >> On 23.11.2012, at 14:44, Michael S. Tsirkin wrote: > >> > >>> On Fri, Nov 23, 2012 at 11:59:51PM

Re: [Qemu-devel] [PATCH] overflow of int ret: use ssize_t for ret

2012-11-23 Thread Peter Maydell
On 23 November 2012 14:11, Stefan Hajnoczi wrote: > On Thu, Nov 22, 2012 at 10:07 AM, Stefan Priebe wrote: >> diff --git a/block/rbd.c b/block/rbd.c >> index 5a0f79f..0384c6c 100644 >> --- a/block/rbd.c >> +++ b/block/rbd.c >> @@ -69,7 +69,7 @@ typedef enum { >> typedef struct RBDAIOCB { >>

Re: [Qemu-devel] [RFC PATCH v2 1/3] virtio-bus : Introduce VirtioBus.

2012-11-23 Thread Konrad Frederic
On 23/11/2012 13:08, Cornelia Huck wrote: On Thu, 22 Nov 2012 15:50:50 +0100 fred.kon...@greensocs.com wrote: +/* Create a virtio bus. */ +VirtioBus *virtio_bus_new(DeviceState *host, const VirtioBusInfo *info) +{ +/* + * This is needed, as we want to have different names for each vir

Re: [Qemu-devel] [PATCH] overflow of int ret: use ssize_t for ret

2012-11-23 Thread Stefan Hajnoczi
On Thu, Nov 22, 2012 at 10:07 AM, Stefan Priebe wrote: > diff --git a/block/rbd.c b/block/rbd.c > index 5a0f79f..0384c6c 100644 > --- a/block/rbd.c > +++ b/block/rbd.c > @@ -69,7 +69,7 @@ typedef enum { > typedef struct RBDAIOCB { > BlockDriverAIOCB common; > QEMUBH *bh; > -int ret;

Re: [Qemu-devel] qcow2: slow internal snapshot creation

2012-11-23 Thread Kevin Wolf
Am 23.11.2012 15:03, schrieb Alexandre DERUMIER: > performance is also reduced when snapshot exist. (like if they are no > preallocated metadatas) Preallocation doesn't matter much these days. > see initial git commit > > http://git.qemu.org/?p=qemu.git;a=commit;h=a35e1c177debb01240243bd656caca

Re: [Qemu-devel] qcow2: slow internal snapshot creation

2012-11-23 Thread Alexandre DERUMIER
performance is also reduced when snapshot exist. (like if they are no preallocated metadatas) see initial git commit http://git.qemu.org/?p=qemu.git;a=commit;h=a35e1c177debb01240243bd656caca302410d38c "qcow2: Metadata preallocation This introduces a qemu-img create option for qcow2 which allow

Re: [Qemu-devel] [Qemu-ppc] [PATCH 12/12] pseries: Generate unique LIOBNs for PCI host bridges

2012-11-23 Thread Alexander Graf
On 23.11.2012, at 15:01, Michael S. Tsirkin wrote: > On Fri, Nov 23, 2012 at 02:44:15PM +0100, Alexander Graf wrote: >> >> On 23.11.2012, at 14:44, Michael S. Tsirkin wrote: >> >>> On Fri, Nov 23, 2012 at 11:59:51PM +1100, David Gibson wrote: > Look, even if solution using a required proper

Re: [Qemu-devel] [Qemu-ppc] [PATCH 12/12] pseries: Generate unique LIOBNs for PCI host bridges

2012-11-23 Thread Michael S. Tsirkin
On Fri, Nov 23, 2012 at 02:44:15PM +0100, Alexander Graf wrote: > > On 23.11.2012, at 14:44, Michael S. Tsirkin wrote: > > > On Fri, Nov 23, 2012 at 11:59:51PM +1100, David Gibson wrote: > >>> Look, even if solution using a required property is less elegant for CLI > >>> use, it will work, won't

Re: [Qemu-devel] [Qemu-ppc] [PATCH 12/12] pseries: Generate unique LIOBNs for PCI host bridges

2012-11-23 Thread Alexander Graf
On 23.11.2012, at 14:44, Michael S. Tsirkin wrote: > On Fri, Nov 23, 2012 at 11:59:51PM +1100, David Gibson wrote: >>> Look, even if solution using a required property is less elegant for CLI >>> use, it will work, won't it? >>> So how about we merge it so that things work, and then we can discus

Re: [Qemu-devel] [PATCH 3/3] sclp: Fix uninitialized var in handle_write_event_buf().

2012-11-23 Thread Alexander Graf
On 23.11.2012, at 11:18, Jens Freimann wrote: > From: Cornelia Huck > > Some gcc versions rightly complain about a possibly unitialized rc, > so let's move setting it before the QTAILQ_FOREACH(). > > Signed-off-by: Cornelia Huck > Signed-off-by: Christian Borntraeger > Signed-off-by: Jens Fr

Re: [Qemu-devel] [Qemu-ppc] [PATCH 12/12] pseries: Generate unique LIOBNs for PCI host bridges

2012-11-23 Thread Michael S. Tsirkin
On Fri, Nov 23, 2012 at 11:59:51PM +1100, David Gibson wrote: > > Look, even if solution using a required property is less elegant for CLI > > use, it will work, won't it? > > So how about we merge it so that things work, and then we can discuss a > > patch on top that auto-generates this property?

Re: [Qemu-devel] [PATCH 2/3] s390: clear registers, psw and prefix at vcpu reset

2012-11-23 Thread Alexander Graf
On 23.11.2012, at 11:18, Jens Freimann wrote: > When resetting vcpus on s390/kvm we have to clear registers, psw > and prefix as described in the z/Architecture PoP, otherwise a > reboot won't work. IPL PSW and prefix are set later on by the > s390-ipl device reset code. > > Signed-off-by: Jens

  1   2   >