[Qemu-devel] [PATCH v1 01/22] exec: Make tb_invalidate_phys_addr input an AS

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" No functional change. Signed-off-by: Edgar E. Iglesias --- exec.c|3 ++- include/exec/exec-all.h |2 +- target-xtensa/op_helper.c |3 ++- translate-all.c |4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --

[Qemu-devel] [PATCH v1 00/22] Steps towards per CPU address-spaces

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Hi, I'm looking at modeling systems where multiple CPUs co-exist with different views of their attached buses/devs. With this series I'm trying to take some steps towards having an address-space per CPU. It's not complete but good enough for making it possible to model

[Qemu-devel] [PATCH v1 02/22] exec: Make iotlb_to_region input an AS

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- cputlb.c|2 +- exec.c |5 ++--- include/exec/exec-all.h |2 +- include/exec/softmmu_template.h |5 +++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff

[Qemu-devel] [PATCH v1 03/22] exec: Always initialize MemorySection address spaces

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/exec.c b/exec.c index c34f642..6d88931 100644 --- a/exec.c +++ b/exec.c @@ -878,6 +878,7 @@ static void register_subpage(AddressSpaceDispatch *d, MemoryRegionSection *

[Qemu-devel] [PATCH v1 04/22] exec: Make memory_region_section_get_iotlb use section AS

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec.c b/exec.c index 6d88931..803bbde 100644 --- a/exec.c +++ b/exec.c @@ -782,7 +782,7 @@ hwaddr memory_region_section_get_iotlb(CPUArchState *env,

[Qemu-devel] [PATCH v1 05/22] memory: Add MemoryListener to typedefs.h

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- include/exec/memory.h |2 -- include/qemu/typedefs.h |1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/exec/memory.h b/include/exec/memory.h index 480dfbf..2d0b614 100644 --- a/include/exec/memory

[Qemu-devel] [PATCH v1 07/22] qdev: Add qdev property type for AddressSpaces

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- hw/core/qdev-properties-system.c | 46 ++ include/hw/qdev-properties.h |5 + 2 files changed, 51 insertions(+) diff --git a/hw/core/qdev-properties-system.c b/hw/core/qdev-propertie

[Qemu-devel] [PATCH v1 06/22] memory: Add address_space_find_by_name()

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- include/exec/memory.h |8 memory.c | 12 2 files changed, 20 insertions(+) diff --git a/include/exec/memory.h b/include/exec/memory.h index 2d0b614..02f4012 100644 --- a/include/exec/memory.

[Qemu-devel] [PATCH v1 09/22] target-microblaze: Add address-space property

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- target-microblaze/cpu.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/target-microblaze/cpu.c b/target-microblaze/cpu.c index 0ef9aa4..ada9556 100644 --- a/target-microblaze/cpu.c +++ b/target-microblaze/cpu.

[Qemu-devel] [PATCH v1 08/22] cpu: Add per-cpu address space

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- cputlb.c|4 ++-- exec.c | 31 +++ include/exec/cpu-defs.h |3 +++ include/exec/exec-all.h |1 + include/exec/softmmu_template

[Qemu-devel] [PATCH v1 12/22] exec: Make ldq/ldub_*_phys input an AddressSpace

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c| 22 hw/alpha/typhoon.c|2 +- hw/display/sm501.c|1 + hw/display/sm501_template.h |2 +- hw/net/vmware_utils.h |4 +- hw

[Qemu-devel] [PATCH v1 10/22] exec: On AS changes, only flush affected CPU TLBs

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c |5 + 1 file changed, 5 insertions(+) diff --git a/exec.c b/exec.c index edb6a43..203c8e4 100644 --- a/exec.c +++ b/exec.c @@ -1810,6 +1810,11 @@ static void tcg_commit(MemoryListener *listener) reset the mod

[Qemu-devel] [PATCH v1 11/22] exec: Make ldl_*_phys input an AddressSpace

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- cpu-exec.c|5 +- exec.c| 19 --- hw/dma/pl080.c|9 ++-- hw/dma/sun4m_iommu.c |3 +- hw/net/vmware_utils.h |2 +-

[Qemu-devel] [PATCH v1 13/22] exec: Make lduw_*_phys input an AddressSpace

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c | 18 +- hw/net/vmware_utils.h |2 +- hw/ppc/spapr_hcall.c |6 +++--- hw/s390x/css.c |3 ++- hw/s390x/virtio-ccw.c |8 +--- hw/virtio/virti

[Qemu-devel] [PATCH v1 16/22] exec: Make stl_phys_notdirty input an AddressSpace

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c|4 ++-- hw/arm/boot.c |9 + hw/arm/highbank.c |6 +++--- include/exec/cpu-common.h |2 +- target-i386/helper.c | 16 target-sparc/mmu_hel

[Qemu-devel] [PATCH v1 17/22] exec: Make stw_*_phys input an AddressSpace

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c | 20 ++-- hw/net/vmware_utils.h |2 +- hw/ppc/ppc405_uc.c |2 +- hw/ppc/spapr_hcall.c |4 ++-- hw/s390x/css.c |3 ++- hw/s390x/s390-virtio-

[Qemu-devel] [PATCH v1 18/22] exec: Make stb_phys input an AddressSpace

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c |6 +++--- hw/net/vmware_utils.h |2 +- hw/ppc/ppc405_uc.c | 10 +- hw/ppc/spapr_hcall.c |6 +++--- hw/s390x/s390-virtio-bus.c | 16 +++- hw/s390x/s39

[Qemu-devel] [PATCH v1 14/22] exec: Make stq_*_phys input an AddressSpace

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c | 12 +++--- hw/alpha/dp264.c |5 ++- hw/net/vmware_utils.h |2 +- hw/ppc/spapr_hcall.c |4 +- hw/s390x/s390-virtio-bus.c |3 +- hw/s390x/virtio-ccw.c |4 +-

[Qemu-devel] [PATCH v1 20/22] exec: Make cpu_memory_rw_debug use the CPUs AS

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exec.c b/exec.c index 686f0d1..e672824 100644 --- a/exec.c +++ b/exec.c @@ -2669,6 +2669,7 @@ int cpu_memory_rw_debug(CPUState *cpu, target_ulong ad

[Qemu-devel] [PATCH v1 19/22] exec: Make cpu_physical_memory_write_rom input an AS

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c|8 hw/core/loader.c |3 ++- hw/intc/apic.c|3 ++- hw/sparc/sun4m.c |3 ++- include/exec/cpu-common.h |2 +- 5 files changed, 11 insertions(+), 8 d

[Qemu-devel] [PATCH v1 15/22] exec: Make stl_*_phys input an AddressSpace

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c | 19 + hw/net/vmware_utils.h |2 +- hw/pci/msi.c |2 +- hw/pci/msix.c |2 +- hw/ppc/ppc405_uc.c | 32 +++--- hw/ppc/spapr_hcall.c

[Qemu-devel] [PATCH v1 21/22] petalogix-ml605: Create the CPU with object_new()

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" This is to allow future patches to set properties before cpu::realize(). Signed-off-by: Edgar E. Iglesias --- hw/microblaze/petalogix_ml605_mmu.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hw/microblaze/petalogix_ml605_mmu.c b/h

[Qemu-devel] [PATCH v1 22/22] petalogix-ml605: Make the LMB visible only to the CPU

2013-12-16 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- hw/microblaze/petalogix_ml605_mmu.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/hw/microblaze/petalogix_ml605_mmu.c b/hw/microblaze/petalogix_ml605_mmu.c index 4009ff5..0a13b0e 100644 ---

Re: [Qemu-devel] [PATCH v4 00/10] Clean up and fix no_user

2013-12-16 Thread Markus Armbruster
Andreas Färber writes: > Am 28.11.2013 17:26, schrieb arm...@redhat.com: >> Markus Armbruster (10): >> qdev: Replace no_user by cannot_instantiate_with_device_add_yet >> sysbus: Set cannot_instantiate_with_device_add_yet >> cpu: Document why cannot_instantiate_with_device_add_yet >> apic:

Re: [Qemu-devel] [PATCH v4 00/10] Clean up and fix no_user

2013-12-16 Thread Marcel Apfelbaum
On Sun, 2013-12-15 at 21:37 +0100, Andreas Färber wrote: > Am 28.11.2013 17:26, schrieb arm...@redhat.com: > > Markus Armbruster (10): > > qdev: Replace no_user by cannot_instantiate_with_device_add_yet > > sysbus: Set cannot_instantiate_with_device_add_yet > > cpu: Document why cannot_instan

Re: [Qemu-devel] [RFC PATCH v2 5/6] qcow2: implement bdrv_preallocate

2013-12-16 Thread Hu Tao
On Wed, Dec 11, 2013 at 03:33:40PM +0800, Hu Tao wrote: > On Thu, Nov 28, 2013 at 11:03:04AM +0100, Peter Lieven wrote: > > On 28.11.2013 09:48, Hu Tao wrote: > > >On Wed, Nov 27, 2013 at 11:13:40AM +0100, Peter Lieven wrote: > > >>Am 27.11.2013 11:07, schrieb Fam Zheng: > > >>>On 2013年11月27日 18:03

Re: [Qemu-devel] [PATCH 0/2] Pointer properties and device_add

2013-12-16 Thread Marcel Apfelbaum
On Sun, 2013-12-15 at 21:51 +0100, Andreas Färber wrote: > Am 02.12.2013 09:52, schrieb Marcel Apfelbaum: > > On Sun, 2013-12-01 at 16:14 +0100, Andreas Färber wrote: > >> The alternative BTW is dropping all those pointer properties and > >> replacing them with link<> properties. Paolo tried that f

Re: [Qemu-devel] [PATCH 1/2] hw: cannot_instantiate_with_device_add_yet due to pointer props

2013-12-16 Thread Markus Armbruster
Peter Maydell writes: > On 15 December 2013 20:55, Andreas Färber wrote: >> Since you're mentioned by name, should I wait for you to review the >> three OMAP parts? > > There's nothing particularly omap-specific in them. The only OMAP-specific issue I can think of would be me misreading the int

Re: [Qemu-devel] [PATCH 0/2] Pointer properties and device_add

2013-12-16 Thread Markus Armbruster
Andreas Färber writes: > Am 29.11.2013 10:43, schrieb arm...@redhat.com: >> From: Markus Armbruster >> >> Pointer properties can be set only by code, not by device_add. A >> device with a pointer property can't work with device_add only unless >> the property may remain null. cannot_instantia

Re: [Qemu-devel] [PATCH v3 7/8] target-arm: A64: add support for 3 src data proc insns

2013-12-16 Thread Claudio Fontana
Hello Peter, On 13.12.2013 20:18, Peter Maydell wrote: > From: Alexander Graf > > This patch adds emulation for the "Data-processing (3 source)" > family of instructions, namely MADD, MSUB, SMADDL, SMSUBL, SMULH, > UMADDL, UMSUBL, UMULH. > > Signed-off-by: Alexander Graf > Signed-off-by: Alex

Re: [Qemu-devel] [PATCH RFC 2/3] qapi script: add support of event

2013-12-16 Thread Markus Armbruster
Wenchao Xia writes: > 于 2013/12/13 21:43, Kevin Wolf 写道: >> Am 13.12.2013 um 14:31 hat Eric Blake geschrieben: >>> On 11/12/2013 06:44 PM, Wenchao Xia wrote: +++ b/scripts/qapi-event.py @@ -0,0 +1,355 @@ +# +# QAPI event generator +# +# Copyright IBM, Corp. 2013

[Qemu-devel] [PATCH v2] x86: gigabyte alignment for ram

2013-12-16 Thread Gerd Hoffmann
Map 3G (i440fx) or 2G (q35) of memory below 4G, so the RAM pieces are nicely aligned to gigabyte borders. Keep old memory layout for (a) old machine types and (b) in case all memory fits below 4G and thus we don't have to split RAM into pieces in the first place. The later makes sure this change

Re: [Qemu-devel] [PATCH RFC 2/3] qapi script: add support of event

2013-12-16 Thread Markus Armbruster
[Licensing problem, cc: Anthony] Kevin Wolf writes: > Am 13.12.2013 um 14:31 hat Eric Blake geschrieben: >> On 11/12/2013 06:44 PM, Wenchao Xia wrote: >> > +++ b/scripts/qapi-event.py >> > @@ -0,0 +1,355 @@ >> > +# >> > +# QAPI event generator >> > +# >> > +# Copyright IBM, Corp. 2013 >> > +# >>

Re: [Qemu-devel] [PATCH v3 5/7] Add vhost-user calls implementation

2013-12-16 Thread Luke Gorrie
Cool stuff :-) some thoughts: On 13 December 2013 12:14, Antonios Motakis wrote: > static int vhost_user_recv(int fd, VhostUserMsg *msg) > { > ssize_t r = read(fd, msg, sizeof(VhostUserMsg)); Is it worth considering a "timeout and reconnect" check here? I mean so that if the vhost server

Re: [Qemu-devel] [PATCH v3 7/7] Add vhost-user reconnection

2013-12-16 Thread Luke Gorrie
On 13 December 2013 12:14, Antonios Motakis wrote: > At runtime vhost-user netdev will detect if the vhost backend is up or down. > Upon disconnection it will set link_down accordingly and notify virtio-net. Based on inspection with 'lsof' I think that the v3 reconnect mechanism leaks socket file

Re: [Qemu-devel] [RFC PATCH v2 5/6] qcow2: implement bdrv_preallocate

2013-12-16 Thread Fam Zheng
On 2013年12月11日 15:33, Hu Tao wrote: On Thu, Nov 28, 2013 at 11:03:04AM +0100, Peter Lieven wrote: On 28.11.2013 09:48, Hu Tao wrote: On Wed, Nov 27, 2013 at 11:13:40AM +0100, Peter Lieven wrote: Am 27.11.2013 11:07, schrieb Fam Zheng: On 2013年11月27日 18:03, Peter Lieven wrote: Am 27.11.2013 0

[Qemu-devel] [PATCH 01/16] spice: flip streaming video mode to off by default

2013-12-16 Thread Gerd Hoffmann
Video streaming detection heuristics in spice-server have problems keeping modern desktop animations (as done by gnome shell) and real video playback apart. This leads to jpeg compression artefacts on your desktop, due to spice using mjpeg to send what it thinks is a video stream. Turn off video

[Qemu-devel] [PATCH 03/16] spice-char: remove unused field

2013-12-16 Thread Gerd Hoffmann
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Gerd Hoffmann --- spice-qemu-char.c | 1 - 1 file changed, 1 deletion(-) diff --git a/spice-qemu-char.c b/spice-qemu-char.c index 6d147a7..e074d9e 100644 --- a/spice-qemu-char.c +++ b/spice-qemu-char.c @@ -11,7 +11,6 @@

[Qemu-devel] [PULL 00/16] spice patch queue

2013-12-16 Thread Gerd Hoffmann
Hi, Here comes the spice patch queue, with some nbd bits for upcoming spice-nbd and the usual share of small fixes & cleanups. please pull, Gerd The following changes since commit e157b8fdd412d48eacfbb8c67d3d58780154faa3: Merge remote-tracking branch 'bonzini/virtio' into staging (2013-12

[Qemu-devel] [PATCH 08/16] Split nbd block client code

2013-12-16 Thread Gerd Hoffmann
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Acked-by: Paolo Bonzini Signed-off-by: Gerd Hoffmann --- block/Makefile.objs | 2 +- block/nbd-client.c | 372 +++ block/nbd-client.h | 51 +++ block/nbd.c | 373 -

[Qemu-devel] [PATCH 02/16] vscclient: do not add a socket watch if there is not data to send

2013-12-16 Thread Gerd Hoffmann
From: Marc-André Lureau Fixes the following error: ** (process:780): CRITICAL **: do_socket_send: assertion `socket_to_send->len != 0' failed Signed-off-by: Marc-André Lureau Signed-off-by: Gerd Hoffmann --- libcacard/vscclient.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-

[Qemu-devel] [PATCH 06/16] char: add qemu_chr_fe_event()

2013-12-16 Thread Gerd Hoffmann
From: Marc-André Lureau Teach the chardev frontend to send event. This is used by the Spice port chardev currently. Signed-off-by: Marc-André Lureau Signed-off-by: Gerd Hoffmann --- include/sysemu/char.h | 10 ++ qemu-char.c | 7 +++ 2 files changed, 17 insertions(+) d

[Qemu-devel] [PATCH 13/16] nbd: avoid uninitialized warnings

2013-12-16 Thread Gerd Hoffmann
From: Marc-André Lureau ==15815== Thread 1: ==15815== Syscall param socketcall.sendto(msg) points to uninitialised byte(s) ==15815==at 0x65AD5CB: send (send.c:31) ==15815==by 0x37F84B: nbd_wr_sync (nbd.c:145) ==15815==by 0x37F94B: write_sync (nbd.c:186) ==15815==by 0x380FA9: nbd_s

[Qemu-devel] [PATCH 05/16] include: add missing config-host.h include

2013-12-16 Thread Gerd Hoffmann
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Gerd Hoffmann --- include/ui/qemu-spice.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/ui/qemu-spice.h b/include/ui/qemu-spice.h index 86c75c7..a93b4b2 100644 --- a/include/ui/qemu-spice.h +++ b/include/ui

[Qemu-devel] [PATCH] usb: Remove magic constants from device bmAttributes

2013-12-16 Thread Pantelis Koukousoulas
Replace magic constants in device bmAttributes with symbolic ones from Linux kernel ch9.h Signed-off-by: Pantelis Koukousoulas --- hw/usb/desc.c | 2 +- hw/usb/dev-audio.c| 2 +- hw/usb/dev-bluetooth.c| 2 +- hw/usb/dev-hid.c | 8 hw/usb/

Re: [Qemu-devel] [PATCH v3 7/8] target-arm: A64: add support for 3 src data proc insns

2013-12-16 Thread Peter Maydell
On 16 December 2013 08:54, Claudio Fontana wrote: > Hello Peter, > > On 13.12.2013 20:18, Peter Maydell wrote: >> From: Alexander Graf >> >> This patch adds emulation for the "Data-processing (3 source)" >> family of instructions, namely MADD, MSUB, SMADDL, SMSUBL, SMULH, >> UMADDL, UMSUBL, UMULH

[Qemu-devel] [PATCH 14/16] spice: move qemu_spice_display_*() from spice-graphics to spice-core

2013-12-16 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- ui/spice-core.c| 16 ui/spice-display.c | 17 - 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/ui/spice-core.c b/ui/spice-core.c index 9fb9544..0c48156 100644 --- a/ui/spice-core.c +++ b/ui/spice-core.c @@ -47

[Qemu-devel] [PATCH 04/16] qmp_change_blockdev() remove unused has_format

2013-12-16 Thread Gerd Hoffmann
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Gerd Hoffmann --- blockdev.c| 2 +- include/sysemu/blockdev.h | 2 +- qmp.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/blockdev.c b/blockdev.c index 44755e1..

[Qemu-devel] [PATCH 11/16] nbd: make nbd_client_session_close() idempotent

2013-12-16 Thread Gerd Hoffmann
From: Marc-André Lureau Signed-off-by: Marc-André Lureau Acked-by: Paolo Bonzini Signed-off-by: Gerd Hoffmann --- block/nbd-client.c | 5 + 1 file changed, 5 insertions(+) diff --git a/block/nbd-client.c b/block/nbd-client.c index 3dfae1d..9156093 100644 --- a/block/nbd-client.c +++ b/bl

[Qemu-devel] [Bug 1261268] Re: save guest running time is more than 450s with AVX running.

2013-12-16 Thread Paolo Bonzini
The bisection is probably incorrect. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1261268 Title: save guest running time is more than 450s with AVX running. Status in QEMU: New Bug description

[Qemu-devel] [PATCH 15/16] spice: move spice_server_vm_{start, stop} calls into qemu_spice_display_*()

2013-12-16 Thread Gerd Hoffmann
So calling spice server to start/stop the worker goes hand in hand with the status variable update. Signed-off-by: Gerd Hoffmann --- ui/spice-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/spice-core.c b/ui/spice-core.c index 0c48156..4cce3b3 100644 --- a/ui/sp

[Qemu-devel] [Bug 1261265] Re: win7 guest boot up fail.

2013-12-16 Thread Paolo Bonzini
Already reported http://permalink.gmane.org/gmane.comp.emulators.qemu/245664 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1261265 Title: win7 guest boot up fail. Status in QEMU: New Bug descri

Re: [Qemu-devel] [PATCH 1/2] hw: cannot_instantiate_with_device_add_yet due to pointer props

2013-12-16 Thread Peter Maydell
On 16 December 2013 08:48, Markus Armbruster wrote: > Peter Maydell writes: >> I kind of think this whole thing is backwards anyway: >> we should really say "the user can only instantiate >> devices via command line or monitor that are specifically >> intended to be hot-pluggable", rather than ha

[Qemu-devel] [PATCH 16/16] spice: stop server for qxl hard reset

2013-12-16 Thread Gerd Hoffmann
Hard reset can happen at any time. We should be able to put qxl into a known-good state no matter what. Stop spice server thread for reset so it can't be confused by fetching stale commands lingering around in the rings while we reset is ongoing. Signed-off-by: Gerd Hoffmann --- hw/display/qxl

[Qemu-devel] [PATCH 10/16] nbd: pass export name as init argument

2013-12-16 Thread Gerd Hoffmann
From: Marc-André Lureau There is no need to keep the export name around, and it seems a better fit as an argument in the init() call. Signed-off-by: Marc-André Lureau Acked-by: Paolo Bonzini Signed-off-by: Gerd Hoffmann --- block/nbd-client.c | 9 - block/nbd-client.h | 5 ++--- bl

[Qemu-devel] [PATCH 09/16] nbd: don't change socket block during negotiate

2013-12-16 Thread Gerd Hoffmann
From: Marc-André Lureau The caller might handle non-blocking using coroutine. Leave the choice to the caller to use a blocking or non-blocking negotiate. Signed-off-by: Marc-André Lureau Acked-by: Paolo Bonzini Signed-off-by: Gerd Hoffmann --- block/nbd-client.c | 1 + nbd.c | 2

[Qemu-devel] [PATCH 12/16] nbd: finish any pending coroutine

2013-12-16 Thread Gerd Hoffmann
From: Marc-André Lureau Make sure all pending coroutines are finished when closing the session. Signed-off-by: Marc-André Lureau Acked-by: Paolo Bonzini Signed-off-by: Gerd Hoffmann --- block/nbd-client.c | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) diff --gi

Re: [Qemu-devel] [PATCH v3 5/8] target-arm: A64: add support for add, addi, sub, subi

2013-12-16 Thread C Fontana
Sorry for noticing only now, but there is a missing return here as well I think: On 13 December 2013 20:17, Peter Maydell wrote: > From: Alex Bennée > > Implement the non-carry forms of addition and subtraction > (immediate, extended register and shifted register). > This includes the code to ca

[Qemu-devel] Question about module load

2013-12-16 Thread Choonho Son
Hello All, I cannot understand QEMU iniitialization. Before starting main function(main@vl.c), how modules are loaded? Since module are already loaded in module_call_init(MODULE_INIT_QOM); Best regards, Choonho Son

[Qemu-devel] [Bug 1261320] [NEW] Virtual Disk with over 16TB

2013-12-16 Thread Chris Weltzien
Public bug reported: Hi, is there a option to create a disk for a vm with a size over 16TB. the problem that after the diskfile reach 16TB, the disk get a state of read-only at this limit. I know, that 16TB file size is max, is there a option to create the disk in mutliple files? we want to us

[Qemu-devel] [PATCH 07/16] spice-char: implement chardev port event

2013-12-16 Thread Gerd Hoffmann
From: Marc-André Lureau Wire up chardev fe_event to Spice port. Signed-off-by: Marc-André Lureau Signed-off-by: Gerd Hoffmann --- spice-qemu-char.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/spice-qemu-char.c b/spice-qemu-char.c index e074d9e..16439c5 100644 --- a/spice-q

Re: [Qemu-devel] [PATCH v3 1/7] Add -mem-share option

2013-12-16 Thread Paolo Bonzini
Il 16/12/2013 08:32, Edgar E. Iglesias ha scritto: > On Fri, Dec 13, 2013 at 12:14:31PM +0100, Antonios Motakis wrote: >> This option complements -mem-path. It implies -mem-prealloc. If specified, >> the guest RAM is allocated as a shared memory object. If both -mem-path >> and -mem-share are provi

Re: [Qemu-devel] [PATCH] block/iscsi: use a bh to schedule co reentrance

2013-12-16 Thread Paolo Bonzini
Il 14/12/2013 17:31, Peter Lieven ha scritto: > this fixes a potential segfault and performance regression. > > If the coroutine is reentered directly in the iscsi_co_generic_cb > iscsi_process_{read,write} are interrupted and reentered any > time later. One the one hand this could happen after an

Re: [Qemu-devel] [PATCH v3 5/8] target-arm: A64: add support for add, addi, sub, subi

2013-12-16 Thread Peter Maydell
On 16 December 2013 10:11, C Fontana wrote: > Sorry for noticing only now, > but there is a missing return here as well I think: > >> static void disas_add_sub_imm(DisasContext *s, uint32_t insn) >> +default: >> +unallocated_encoding(s); > > should return; here I think. Yes, fixed.

[Qemu-devel] [PATCH 10/42] input: keyboard: add helper functions to core

2013-12-16 Thread Gerd Hoffmann
A bunch of helper functions to manage keyboard events, to make life simpler for the ui code when submitting keyboard events. Signed-off-by: Gerd Hoffmann --- include/ui/input.h | 5 + ui/input.c | 35 +++ 2 files changed, 40 insertions(+) diff --git

[Qemu-devel] [PATCH 00/42] rework input handling, sdl2 support

2013-12-16 Thread Gerd Hoffmann
Hi, This patch series features a reworked input layer and sdl2 support. The input layer moves to a model modeled roughly after the linux event layer. It also uses qapi to create all the data types needed. First, because it is convinient to have all the support code generated, and also to make

[Qemu-devel] [PATCH 02/42] sdl2: baum build fix

2013-12-16 Thread Gerd Hoffmann
--- backends/baum.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backends/baum.c b/backends/baum.c index 1132899..665107f 100644 --- a/backends/baum.c +++ b/backends/baum.c @@ -566,7 +566,7 @@ CharDriverState *chr_baum_init(void) BaumDriverState *baum; CharDriv

[Qemu-devel] [PATCH 04/42] console: export QemuConsole index, width, height

2013-12-16 Thread Gerd Hoffmann
Add functions to query QemuConsole properties. Signed-off-by: Gerd Hoffmann --- include/ui/console.h | 3 +++ ui/console.c | 24 2 files changed, 27 insertions(+) diff --git a/include/ui/console.h b/include/ui/console.h index 4156a87..8543d18 100644 --- a/inclu

[Qemu-devel] [PATCH 13/42] input: keyboard: switch gtk ui to new core

2013-12-16 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 19 --- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/ui/gtk.c b/ui/gtk.c index 6316f5b..993a9b5 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -55,6 +55,7 @@ #include "trace.h" #include "ui/console.h" +#include "ui/input.h

[Qemu-devel] [PATCH 12/42] input: keyboard: switch qmp_send_key() to new core.

2013-12-16 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- ui/input-legacy.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/ui/input-legacy.c b/ui/input-legacy.c index 80f4f5c..a4006cc 100644 --- a/ui/input-legacy.c +++ b/ui/input-legacy.c @@ -260,10 +260,8 @@ static void free_keycodes(voi

[Qemu-devel] [PATCH 06/42] input: qapi: define event types

2013-12-16 Thread Gerd Hoffmann
Define input event types, using qapi. So we get nicely autogenerated types for our input events. And when it comes to qmp support some day things will be alot easier. Types are modeled after the linux input layer. There are separate event types for each value. There is a sync to indicate the e

[Qemu-devel] [PATCH 05/42] input: rename file to legacy

2013-12-16 Thread Gerd Hoffmann
Rename ui/input.c to ui/input-legacy.c. We are going to replace it step by step. Signed-off-by: Gerd Hoffmann --- ui/Makefile.objs | 2 +- ui/{input.c => input-legacy.c} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename ui/{input.c => input-legacy.c} (100%) diff --git a/

[Qemu-devel] [PATCH 18/42] input: keyboard: switch curses ui to new core

2013-12-16 Thread Gerd Hoffmann
--- ui/curses.c | 47 +-- 1 file changed, 25 insertions(+), 22 deletions(-) diff --git a/ui/curses.c b/ui/curses.c index dbc3d5e..b044790 100644 --- a/ui/curses.c +++ b/ui/curses.c @@ -30,6 +30,7 @@ #include "qemu-common.h" #include "ui/console.h" +

[Qemu-devel] [PATCH 03/42] sdl2: remove text console logic

2013-12-16 Thread Gerd Hoffmann
sdl2 explicitly binds windows to graphics consoles. No need to handle non-graphic consoles anywhere. Also console switching is pointless. Zap code. Signed-off-by: Gerd Hoffmann --- ui/sdl2.c | 117 +- 1 file changed, 8 insertions(+), 1

[Qemu-devel] [PATCH 14/42] input: keyboard: switch sdl ui to new core

2013-12-16 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- ui/sdl.c | 27 +-- 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/ui/sdl.c b/ui/sdl.c index 736bb95..c3b8036 100644 --- a/ui/sdl.c +++ b/ui/sdl.c @@ -32,6 +32,7 @@ #include "qemu-common.h" #include "ui/console.h" +#inclu

[Qemu-devel] [PATCH 27/42] input: mouse: switch spice ui to new core

2013-12-16 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- ui/spice-input.c | 62 ++-- 1 file changed, 38 insertions(+), 24 deletions(-) diff --git a/ui/spice-input.c b/ui/spice-input.c index c9df699..6dab23b 100644 --- a/ui/spice-input.c +++ b/ui/spice-input.c @@ -98,4

[Qemu-devel] [PATCH 25/42] sdl2: switch mouse handling to new core

2013-12-16 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- ui/sdl2.c | 60 +++- 1 file changed, 31 insertions(+), 29 deletions(-) diff --git a/ui/sdl2.c b/ui/sdl2.c index ac3ac19..e841424 100644 --- a/ui/sdl2.c +++ b/ui/sdl2.c @@ -329,7 +329,7 @@ static void sdl_hid

[Qemu-devel] [PATCH 16/42] input: keyboard: switch vnc ui to new core

2013-12-16 Thread Gerd Hoffmann
--- ui/vnc.c | 25 ++--- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/ui/vnc.c b/ui/vnc.c index 5601cc3..4658559 100644 --- a/ui/vnc.c +++ b/ui/vnc.c @@ -33,6 +33,7 @@ #include "qapi/qmp/types.h" #include "qmp-commands.h" #include "qemu/osdep.h" +#include "

[Qemu-devel] [PATCH 15/42] sdl2: switch keyboard handling to new core

2013-12-16 Thread Gerd Hoffmann
--- ui/sdl2.c | 23 ++- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/ui/sdl2.c b/ui/sdl2.c index e7a30b3..ac3ac19 100644 --- a/ui/sdl2.c +++ b/ui/sdl2.c @@ -33,6 +33,7 @@ #include "qemu-common.h" #include "ui/console.h" +#include "ui/input.h" #include "s

[Qemu-devel] [PATCH 09/42] input: add core bits of the new input layer

2013-12-16 Thread Gerd Hoffmann
Register and unregister handlers. Event dispatcher code. Signed-off-by: Gerd Hoffmann --- include/ui/input.h | 32 + ui/Makefile.objs | 2 +- ui/input.c | 83 ++ 3 files changed, 116 insertions(+), 1 deletion(-)

[Qemu-devel] [PATCH 28/42] input: mouse: switch monitor to new core

2013-12-16 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- monitor.c | 31 ++- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/monitor.c b/monitor.c index 845f608..d22e720 100644 --- a/monitor.c +++ b/monitor.c @@ -39,6 +39,7 @@ #include "monitor/monitor.h" #include "monitor/re

[Qemu-devel] [PATCH 08/42] input: qapi: add pause key

2013-12-16 Thread Gerd Hoffmann
It's missing. Signed-off-by: Gerd Hoffmann --- qapi-schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qapi-schema.json b/qapi-schema.json index 89d8060..56981d9 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -3372,7 +3372,7 @@ 'kp_9', 'less', '

[Qemu-devel] [PATCH 31/42] input: trace events

2013-12-16 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- trace-events | 8 ui/input.c | 48 2 files changed, 56 insertions(+) diff --git a/trace-events b/trace-events index 9f4456a..a81d71e 100644 --- a/trace-events +++ b/trace-events @@ -1019,6 +1019,14 @@ g

[Qemu-devel] [PATCH 34/42] input-legacy: remove kbd_mouse_is_absolute

2013-12-16 Thread Gerd Hoffmann
--- include/ui/console.h | 1 - ui/input-legacy.c| 11 +-- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/include/ui/console.h b/include/ui/console.h index 53e956d..21b32e4 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -50,7 +50,6 @@ void kbd_put_leds

[Qemu-devel] [PATCH 37/42] input: add input_mouse_mode tracepoint

2013-12-16 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- trace-events | 1 + ui/input.c | 1 + 2 files changed, 2 insertions(+) diff --git a/trace-events b/trace-events index a81d71e..322ad11 100644 --- a/trace-events +++ b/trace-events @@ -1026,6 +1026,7 @@ input_event_btn(int conidx, const char *btn, bool down) "c

[Qemu-devel] [PATCH 20/42] input: mouse: add graphic_rotate support

2013-12-16 Thread Gerd Hoffmann
Transform absolute mouse events according to graphic_rotate. Legacy input code does it for both absolute and relative events, but the logic is broken for relative coordinates, so this is most likely not used anyway. Signed-off-by: Gerd Hoffmann --- ui/input.c | 33 ++

[Qemu-devel] [PATCH 29/42] input: keyboard: switch cocoa ui to new core [untested]

2013-12-16 Thread Gerd Hoffmann
--- ui/cocoa.m | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index be49179..a029493 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -496,16 +496,14 @@ QemuCocoaView *cocoaView; keycode = cocoa_keycode_to_qemu([event keyCode

[Qemu-devel] [PATCH 32/42] input-legacy: remove kbd_put_keycode

2013-12-16 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- include/ui/console.h | 1 - ui/input-legacy.c| 23 --- 2 files changed, 24 deletions(-) diff --git a/include/ui/console.h b/include/ui/console.h index a3062d0..c7f4e4f 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -46,7

[Qemu-devel] [PATCH 22/42] input: mouse: switch legacy handlers to new core

2013-12-16 Thread Gerd Hoffmann
legacy mouse event handlers are registered in the new core, so they receive events submitted to the new input core. legacy kbd_mouse_event() continues to use the old code paths. So new-core event handlers wouldn't see events submitted via kbd_mouse_event. This leads to the constrain that we we mu

[Qemu-devel] [PATCH 41/42] input: move do_mouse_set to new core

2013-12-16 Thread Gerd Hoffmann
This removes the last user of the lecagy input mouse handler list, so we can remove more legacy bits with this. Signed-off-by: Gerd Hoffmann --- ui/input-legacy.c | 43 --- ui/input.c| 21 + 2 files changed, 21 insertions(+), 43

[Qemu-devel] [PATCH 07/42] input: qapi: add unmapped key

2013-12-16 Thread Gerd Hoffmann
Simplifies building something -> QkeyCode mapping tables. Uninitialized entries can easily identified then. Signed-off-by: Gerd Hoffmann --- qapi-schema.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qapi-schema.json b/qapi-schema.json index 0316cb4..89d8060 100644 --

[Qemu-devel] [PATCH 35/42] input-legacy: remove kbd_mouse_event

2013-12-16 Thread Gerd Hoffmann
--- include/ui/console.h | 1 - ui/input-legacy.c| 49 - 2 files changed, 50 deletions(-) diff --git a/include/ui/console.h b/include/ui/console.h index 21b32e4..71a0da3 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -47,7 +47,

[Qemu-devel] [PATCH 33/42] input-legacy: remove kbd_mouse_has_absolute

2013-12-16 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- include/ui/console.h | 3 --- ui/input-legacy.c| 21 ++--- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/include/ui/console.h b/include/ui/console.h index c7f4e4f..53e956d 100644 --- a/include/ui/console.h +++ b/include/ui/co

[Qemu-devel] [PATCH 24/42] input: mouse: switch sdl ui to new core

2013-12-16 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- ui/sdl.c | 84 ++-- 1 file changed, 39 insertions(+), 45 deletions(-) diff --git a/ui/sdl.c b/ui/sdl.c index c3b8036..c1a16be 100644 --- a/ui/sdl.c +++ b/ui/sdl.c @@ -353,7 +353,7 @@ static void sdl_hide

[Qemu-devel] [PATCH 42/42] input: remove index_from_keycode (no users)

2013-12-16 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- include/ui/console.h | 1 - ui/input-legacy.c| 14 -- 2 files changed, 15 deletions(-) diff --git a/include/ui/console.h b/include/ui/console.h index 9a282cb..3bf69ee 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -329,7 +329,6 @

[Qemu-devel] [PATCH 30/42] input: mouse: switch cocoa ui to new core [untested]

2013-12-16 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- include/ui/console.h | 2 ++ ui/cocoa.m | 63 ++-- 2 files changed, 44 insertions(+), 21 deletions(-) diff --git a/include/ui/console.h b/include/ui/console.h index 8543d18..a3062d0 100644 --- a/include/u

[Qemu-devel] [PATCH 38/42] sdl2: simplify keymap handling

2013-12-16 Thread Gerd Hoffmann
sdl2 gives us scancodes (i.e. identifies keys by location not by keysym mapped to it). We can map them directly to QKeyCodes, pass them on to the new input core and be done with it. No need to jump though any keymap hops. Zap the code. Also operate directly on SDL scancodes for any hotkeys. Sig

Re: [Qemu-devel] [PATCH v3 7/8] target-arm: A64: add support for 3 src data proc insns

2013-12-16 Thread Peter Maydell
On 13 December 2013 19:18, Peter Maydell wrote: > static void disas_data_proc_3src(DisasContext *s, uint32_t insn) > { > -unsupported_encoding(s, insn); > +int rd = extract32(insn, 0, 5); > +int rn = extract32(insn, 5, 5); > +int ra = extract32(insn, 10, 5); > +int rm = extra

[Qemu-devel] [PATCH 39/42] sdl2: codestyle fixups

2013-12-16 Thread Gerd Hoffmann
--- ui/Makefile.objs | 2 +- ui/sdl2.c| 173 +-- 2 files changed, 104 insertions(+), 71 deletions(-) diff --git a/ui/Makefile.objs b/ui/Makefile.objs index e6a5ec1..6f2294e 100644 --- a/ui/Makefile.objs +++ b/ui/Makefile.objs @@ -15,6

[Qemu-devel] [PATCH 17/42] input: keyboard: switch spice ui to new core

2013-12-16 Thread Gerd Hoffmann
--- ui/spice-input.c | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/ui/spice-input.c b/ui/spice-input.c index 3beb8de..c9df699 100644 --- a/ui/spice-input.c +++ b/ui/spice-input.c @@ -26,12 +26,15 @@ #include "qemu-common.h" #include "ui/qemu-spice.h"

  1   2   3   >