[Qemu-devel] [PULL 39/42] vhost-user: remove superfluous '\n' around error_report()

2015-04-29 Thread Michael Tokarev
From: Gonglei Signed-off-by: Gonglei Reviewed-by: Andreas Färber Signed-off-by: Michael Tokarev --- hw/virtio/vhost-user.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/hw/virtio/vhost-user.c b/hw/virtio/vhost-user.c index aefe0bb..e7ab829 100644

[Qemu-devel] [PULL 32/42] input: remove unused mouse_handlers list

2015-04-29 Thread Michael Tokarev
From: "Emilio G. Cota" Signed-off-by: Emilio G. Cota Signed-off-by: Michael Tokarev --- ui/input-legacy.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/ui/input-legacy.c b/ui/input-legacy.c index 2d4ca19..3e9bb38 100644 --- a/ui/input-legacy.c +++ b/ui/input-legacy.c @@ -57,8 +57,6 @@ s

[Qemu-devel] [PULL 24/42] defconfigs: Piggyback microblazeel on microblaze

2015-04-29 Thread Michael Tokarev
From: Peter Crosthwaite Theres no difference in defconfig. Going forward microblazeel should superset microblaze so use an include. Signed-off-by: Peter Crosthwaite Reviewed-by: Edgar E. Iglesias Signed-off-by: Michael Tokarev --- default-configs/microblazeel-softmmu.mak | 10 +- 1 f

qemu-devel@nongnu.org

2015-04-29 Thread Michael Tokarev
From: "Emilio G. Cota" Signed-off-by: Emilio G. Cota Signed-off-by: Michael Tokarev --- cpus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpus.c b/cpus.c index e6dcae3..62d157a 100644 --- a/cpus.c +++ b/cpus.c @@ -1016,7 +1016,7 @@ static void *qemu_tcg_cpu_thread_fn(v

[Qemu-devel] [PULL 35/42] linux-user/elfload: use QTAILQ_FOREACH instead of open-coding it

2015-04-29 Thread Michael Tokarev
From: "Emilio G. Cota" Signed-off-by: Emilio G. Cota Signed-off-by: Michael Tokarev --- linux-user/elfload.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 399c021..0ba9706 100644 --- a/linux-user/elfload.c +++ b/linux-us

[Qemu-devel] [PULL 29/42] microblaze: cpu: Renumber EXCP_* constants to close gap

2015-04-29 Thread Michael Tokarev
After removal of EXCP_NMI there's a gap in EXCP_* numbering. Let's remove it. Signed-off-by: Michael Tokarev Reviewed-by: Edgar E. Iglesias --- target-microblaze/cpu.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/target-microblaze/cpu.h b/target-microblaze/cpu.

Re: [Qemu-devel] [RESEND PATCH v4 3/4] cpu/apic: drop icc bus/bridge/

2015-04-29 Thread Andreas Färber
Subject: s|bus/bridge/|bus/bridge| Am 30.04.2015 um 03:33 schrieb Zhu Guihua: > From: Chen Fan > > ICC bus was invented only to provide hotplug capability to > CPU and APIC because at the time being hotplug was available only for > BUS attached devices. > > Now this patch is to drop ICC bus imp

[Qemu-devel] [PULL 26/42] microblaze: cpu: Remote unused cpu_get_pc

2015-04-29 Thread Michael Tokarev
From: Peter Crosthwaite This function is not used by anything. Remove. Signed-off-by: Peter Crosthwaite Reviewed-by: Edgar E. Iglesias Signed-off-by: Michael Tokarev --- target-microblaze/cpu.h | 5 - 1 file changed, 5 deletions(-) diff --git a/target-microblaze/cpu.h b/target-microblaz

[Qemu-devel] [PULL 41/42] tcg: Delete unused cpu_pc_from_tb()

2015-04-29 Thread Michael Tokarev
From: Peter Crosthwaite No code uses the cpu_pc_from_tb() function. Delete from tricore and arm which each provide an unused implementation. Update the comment in tcg.h to reflect that this is obsoleted by synchronize_from_tb. Signed-off-by: Peter Crosthwaite Signed-off-by: Michael Tokarev ---

[Qemu-devel] [PULL 17/42] usb: Remove unused functions

2015-04-29 Thread Michael Tokarev
From: Thomas Huth Delete set_usb_string(), usb_ep_get_ifnum(), usb_ep_get_max_packet_size() usb_ep_get_max_streams() and usb_ep_set_pipeline() since they are not used anymore. Signed-off-by: Thomas Huth Reviewed-by: Gerd Hoffmann Signed-off-by: Michael Tokarev --- hw/usb/core.c| 41 -

[Qemu-devel] [PULL 42/42] microblaze: fix memory leak

2015-04-29 Thread Michael Tokarev
From: Gonglei When not assign a -dtb argument, the variable dtb_filename storage returned from qemu_find_file(), which should be freed after use. Alternatively we define a local variable filename, with 'char *' type, free after use. Signed-off-by: Gonglei Reviewed-by: Peter Crosthwaite Reviewe

[Qemu-devel] [PULL 25/42] microblaze: mmu: Delete flip_um fn prototype

2015-04-29 Thread Michael Tokarev
From: Peter Crosthwaite This is not implemented or used. Signed-off-by: Peter Crosthwaite Reviewed-by: Edgar E. Iglesias Signed-off-by: Michael Tokarev --- target-microblaze/mmu.h | 1 - 1 file changed, 1 deletion(-) diff --git a/target-microblaze/mmu.h b/target-microblaze/mmu.h index 3f74d

[Qemu-devel] [PULL 16/42] monitor: Remove unused functions

2015-04-29 Thread Michael Tokarev
From: Thomas Huth The functions ringbuf_read_completion() and monitor_get_rs() are not used anywhere anymore, so let's remove them. Signed-off-by: Thomas Huth Cc: Luiz Capitulino Signed-off-by: Michael Tokarev --- hmp.h | 1 - include/monitor/monitor.h | 1 - monitor.c

Re: [Qemu-devel] [RESEND PATCH v4 2/4] apic: convert ->busdev.qdev casts to DEVICE() casts

2015-04-29 Thread Andreas Färber
Am 30.04.2015 um 03:33 schrieb Zhu Guihua: > Use DEVICE() casts to avoid accessing ICCDevice's qdev field > directly. > > Signed-off-by: Zhu Guihua > --- > hw/intc/apic.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/hw/intc/apic.c b/hw/intc/apic.c > index 0f97b

[Qemu-devel] [PULL 19/42] arm: cpu.h: Remove unused typdefs

2015-04-29 Thread Michael Tokarev
From: Peter Crosthwaite These CP accessor function prototypes are unused. Remove them. Signed-off-by: Peter Crosthwaite Signed-off-by: Michael Tokarev --- target-arm/cpu.h | 5 - 1 file changed, 5 deletions(-) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index d63d9b2..8df0b6a 100644

[Qemu-devel] [PULL 13/42] qemu-options: trivial spelling fix (messsage)

2015-04-29 Thread Michael Tokarev
Signed-off-by: Michael Tokarev Reviewed-by: Eric Blake --- qemu-options.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu-options.hx b/qemu-options.hx index 319d971..ec356f6 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -3106,7 +3106,7 @@ executed often has litt

[Qemu-devel] [PULL 38/42] target-mips: fix memory leak

2015-04-29 Thread Michael Tokarev
From: Gonglei Coveristy reports that variable prom_buf/params_buf going out of scope leaks the storage it points to. Cc: Aurelien Jarno Cc: Leon Alrae Signed-off-by: Gonglei Reviewed-by: Leon Alrae Signed-off-by: Michael Tokarev --- hw/mips/mips_fulong2e.c | 1 + hw/mips/mips_malta.c|

[Qemu-devel] [PULL 01/42] tpm: Cast 64bit variables to int when used in DPRINTF

2015-04-29 Thread Michael Tokarev
From: Stefan Berger Cast 64bit variables to int when used in DPRINTF. They only contain 32bit of data. Signed-off-by: Stefan Berger Reviewed-by: Eric Blake Signed-off-by: Michael Tokarev --- hw/tpm/tpm_tis.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/tpm/t

[Qemu-devel] [PULL 40/42] kvm: Silence warning from valgrind

2015-04-29 Thread Michael Tokarev
From: Thomas Huth valgrind complains here about uninitialized bytes with the following message: ==17814== Syscall param ioctl(generic) points to uninitialised byte(s) ==17814==at 0x466A780: ioctl (in /usr/lib64/power8/libc-2.17.so) ==17814==by 0x100735B7: kvm_vm_ioctl (kvm-all.c:1920) ==

[Qemu-devel] [PULL 09/42] range: remove useless inclusions

2015-04-29 Thread Michael Tokarev
From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Michael Tokarev --- dma-helpers.c | 1 - hw/acpi/pcihp.c | 1 - hw/i386/acpi-build.c | 1 - include/hw/i386/ich9.h| 1 - include/hw/pci-host/q35.h | 1 - 5 files changed, 5 deletions(-) diff --git a

[Qemu-devel] [PULL 07/42] hw/display : remove 'struct' from 'typedef QXL struct'

2015-04-29 Thread Michael Tokarev
From: Chih-Min Chao Signed-off-by: Chih-Min Chao Reviewed-by: Gerd Hoffmann Signed-off-by: Michael Tokarev --- hw/display/qxl.c | 2 +- ui/spice-display.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/display/qxl.c b/hw/display/qxl.c index b6d65b9..0cd314c 10

[Qemu-devel] [PULL 14/42] vmxnet: Remove unused function vmxnet_rx_pkt_get_num_frags()

2015-04-29 Thread Michael Tokarev
From: Thomas Huth The function is not used anymore and thus can be deleted. Signed-off-by: Thomas Huth Cc: Dmitry Fleytman Signed-off-by: Michael Tokarev --- hw/net/vmxnet_rx_pkt.c | 7 --- hw/net/vmxnet_rx_pkt.h | 9 - 2 files changed, 16 deletions(-) diff --git a/hw/net/vmxnet

[Qemu-devel] [PULL 18/42] util: Remove unused functions

2015-04-29 Thread Michael Tokarev
From: Thomas Huth Delete the unused functions qemu_signalfd_available(), qemu_send_full() and qemu_recv_full(). Signed-off-by: Thomas Huth Signed-off-by: Michael Tokarev --- include/qemu-common.h | 4 --- include/qemu/compatfd.h | 1 - util/compatfd.c | 19 -- util/osd

[Qemu-devel] [PULL 30/42] microblaze: cpu: delete unused cpu_interrupts_enabled

2015-04-29 Thread Michael Tokarev
From: Peter Crosthwaite This function is unused. Remove. Signed-off-by: Peter Crosthwaite Signed-off-by: Michael Tokarev --- target-microblaze/cpu.h | 5 - 1 file changed, 5 deletions(-) diff --git a/target-microblaze/cpu.h b/target-microblaze/cpu.h index d389597..4ea04ac 100644 --- a/ta

[Qemu-devel] [PULL 20/42] configure: alphabetize tricore in target list

2015-04-29 Thread Michael Tokarev
From: Peter Crosthwaite tricore was out of alphabetical order in the target list. Fix. Signed-off-by: Peter Crosthwaite Acked-by: Bastian Koppelmann Signed-off-by: Michael Tokarev --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure inde

[Qemu-devel] [PULL 27/42] microblaze: cpu: Remove unused CC_OP enum

2015-04-29 Thread Michael Tokarev
From: Peter Crosthwaite This enum is not used by anything. Remove. Signed-off-by: Peter Crosthwaite Reviewed-by: Edgar E. Iglesias Signed-off-by: Michael Tokarev --- target-microblaze/cpu.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/target-microblaze/cpu.h b/target-microblaze/c

[Qemu-devel] [PULL 03/42] bitops : fix coding style

2015-04-29 Thread Michael Tokarev
From: Chih-Min Chao don't mix tab and space. The rule is 4 spaces Signed-off-by: Chih-Min Chao Reviewed-by: Gerd Hoffmann Signed-off-by: Michael Tokarev --- include/qemu/bitops.h | 61 ++- 1 file changed, 31 insertions(+), 30 deletions(-)

[Qemu-devel] [PULL 02/42] tpm: Modify DPRINTF to enable -Wformat checking

2015-04-29 Thread Michael Tokarev
From: Stefan Berger Modify DPRINTF to always enable -Wformat checking. Signed-off-by: Stefan Berger Reviewed-by: Eric Blake Signed-off-by: Michael Tokarev --- hw/tpm/tpm_passthrough.c | 16 +++- hw/tpm/tpm_tis.c | 14 ++ 2 files changed, 13 insertions(+), 17 d

[Qemu-devel] [PULL 10/42] qemu-config: remove stray inclusions of hw/ files

2015-04-29 Thread Michael Tokarev
From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Michael Tokarev --- util/qemu-config.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/util/qemu-config.c b/util/qemu-config.c index a393a3d..30d6dcf 100644 --- a/util/qemu-config.c +++ b/util/qemu-config.c @@ -3,10 +3,8 @@

[Qemu-devel] [PULL 05/42] ui/vnc : remove 'struct' of 'typedef struct'

2015-04-29 Thread Michael Tokarev
From: Chih-Min Chao Signed-off-by: Chih-Min Chao Reviewed-by: Gerd Hoffmann Signed-off-by: Michael Tokarev --- ui/vnc-auth-vencrypt.c | 4 ++-- ui/vnc-tls.c | 10 +- ui/vnc-ws.c| 4 ++-- ui/vnc.c | 2 +- 4 files changed, 10 insertions(+), 10 dele

[Qemu-devel] [PULL 00/42] Trivial patches for 2015-04-30

2015-04-29 Thread Michael Tokarev
Hello. This is the first pull request for trivial-patches tree since 2.3 has been released. During the freeze many patches has been accumulated, and even more has been received after 2.4 developmnent has been opened. So here we have 42 trivial patches, which is kinda too much, but that's what we

[Qemu-devel] [PULL 12/42] hostmem: Fix mem-path property name in error report

2015-04-29 Thread Michael Tokarev
From: Jan Kiszka The subtle difference between "property not found" and "property not set" is already confusing enough. Signed-off-by: Jan Kiszka Reviewed-by: Peter Crosthwaite Signed-off-by: Michael Tokarev --- backends/hostmem-file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) d

[Qemu-devel] ABNT2 keys again

2015-04-29 Thread Michael Tokarev
There's a bug open in qemu bugtracker for several years already, https://bugs.launchpad.net/qemu/+bug/1038136 . The solution appears to be trivial (see also some background at http://blog.nielshorn.net/2011/03/qemu-and-brazilian-keyboards/ ), but the problem is definitely still here. Maybe it's a

Re: [Qemu-devel] [REBASE PATCH v5 1/2] machine: add default_ram_size to machine class

2015-04-29 Thread Nikunj A Dadhania
Hi Paolo, Paolo Bonzini writes: > On 29/04/2015 11:06, Nikunj A Dadhania wrote: >> > so David can push both patches. >> > >> > But isn't 1G a bit too much? At least on x86 you can easily boot with >> > 512M. >> >> I understood this number as not the _minimum memory_ to boot the >> VM. And thi

Re: [Qemu-devel] [PATCH v8 00/16] spapr: add support for pci hotplug

2015-04-29 Thread David Gibson
On Wed, Apr 22, 2015 at 01:28:04AM -0500, Michael Roth wrote: > These patches are based on spapr-next, and can also be obtained > from: Thanks Michael. I've made a few small conflict fixes and merged this into spapr-next. Could you please: a) Pull the new spapr-next and test that your code st

Re: [Qemu-devel] [PATCH 2/2] hw/ppc/spapr: Use error_report() instead of hw_error()

2015-04-29 Thread Alexey Kardashevskiy
On 04/30/2015 05:01 AM, Thomas Huth wrote: hw_error() is designed for printing CPU-related error messages (e.g. it also prints a full CPU register dump). For error messages that are not directly related to CPU problems, a function like error_report() should be used instead. Signed-off-by: Thomas

Re: [Qemu-devel] [PATCH RFC v6 11/11] vfio: add bus reset notifier for host bus reset

2015-04-29 Thread Chen Fan
On 04/30/2015 01:32 AM, Alex Williamson wrote: On Wed, 2015-04-29 at 16:48 +0800, Chen Fan wrote: add host secondary bus reset for vfio when AER occurs, if reset failed, we should stop vm. Signed-off-by: Chen Fan --- hw/vfio/pci.c | 151 +-

Re: [Qemu-devel] [PATCH] qapi: Accept 'null' in QMP

2015-04-29 Thread Eric Blake
On 04/02/2015 01:31 PM, Eric Blake wrote: > We document that in QMP, the client may send any json-value > for the optional "id" key, and then return that same value > on reply (both success and failures, insofar as the failure > happened after parsing the id). [Note that the output may > not be id

Re: [Qemu-devel] [PATCH RFC v6 11/11] vfio: add bus reset notifier for host bus reset

2015-04-29 Thread Alex Williamson
On Thu, 2015-04-30 at 11:07 +0800, Chen Fan wrote: > On 04/30/2015 01:32 AM, Alex Williamson wrote: > > On Wed, 2015-04-29 at 16:48 +0800, Chen Fan wrote: > >> add host secondary bus reset for vfio when AER occurs, if reset failed, > >> we should stop vm. > >> > >> Signed-off-by: Chen Fan > >> ---

Re: [Qemu-devel] [PATCH 0/2] hw/ppc/spapr: Improve error printing

2015-04-29 Thread David Gibson
On Wed, Apr 29, 2015 at 09:01:06PM +0200, Thomas Huth wrote: > While loading alternate slof.bin images with the "-bios" option > of qemu-softmmu-ppc64, I noticed that the error message is > wrong when trying to load an non-existing file. Also, the > error message is printed with hw_error() which re

Re: [Qemu-devel] [PATCH v8 11/16] spapr: add pseries-2.4 machine type

2015-04-29 Thread David Gibson
On Wed, Apr 29, 2015 at 01:11:52AM -0500, Michael Roth wrote: > Quoting David Gibson (2015-04-28 02:25:51) > > On Wed, Apr 22, 2015 at 01:28:15AM -0500, Michael Roth wrote: > > > Initially this is identifical to pseries-2.3. Subsequent patches will > > > use it to mask new 2.4 features by default.

[Qemu-devel] [RESEND PATCH v4 3/4] cpu/apic: drop icc bus/bridge/

2015-04-29 Thread Zhu Guihua
From: Chen Fan ICC bus was invented only to provide hotplug capability to CPU and APIC because at the time being hotplug was available only for BUS attached devices. Now this patch is to drop ICC bus impl, and switch to bus-less CPU+APIC hotplug, handling them in the same manner as pc-dimm. and

[Qemu-devel] [RESEND PATCH v4 1/4] apic: move apic mmio register to each apic realizefn

2015-04-29 Thread Zhu Guihua
From: Chen Fan Due to local apic address is in view of CPU's address space, so able to move apic mapping to each apic realizefn. Signed-off-by: Chen Fan Signed-off-by: Zhu Guihua --- exec.c| 5 + hw/i386/pc.c | 7 --- hw/intc/apic_common.c | 14 -

[Qemu-devel] [RESEND PATCH v4 2/4] apic: convert ->busdev.qdev casts to DEVICE() casts

2015-04-29 Thread Zhu Guihua
Use DEVICE() casts to avoid accessing ICCDevice's qdev field directly. Signed-off-by: Zhu Guihua --- hw/intc/apic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/intc/apic.c b/hw/intc/apic.c index 0f97b47..00ae0ec 100644 --- a/hw/intc/apic.c +++ b/hw/intc/apic.c @@

[Qemu-devel] [RESEND PATCH v4 4/4] icc_bus: drop the unused files

2015-04-29 Thread Zhu Guihua
ICC bus impl has been droped, so all icc related files are not useful any more; delete them. Signed-off-by: Zhu Guihua --- default-configs/i386-softmmu.mak | 1 - default-configs/x86_64-softmmu.mak | 1 - hw/cpu/Makefile.objs | 1 - hw/cpu/icc_bus.c | 118

[Qemu-devel] [RESEND PATCH v4 0/4] remove icc bus/bridge

2015-04-29 Thread Zhu Guihua
ICC Bus was used for providing a hotpluggable bus for APIC and CPU, but now we use HotplugHandler to make hotplug. So ICC Bus is unnecessary. This code has passed the new pc-cpu-test. And I have tested with kvm along with kernel_irqchip=on/off, it works fine. This patch series is rebased on the l

Re: [Qemu-devel] [PATCH v6 00/47] Postcopy implementation

2015-04-29 Thread Li, Liang Z
> * Li, Liang Z (liang.z...@intel.com) wrote: > > Hi David, > > > > I have tired your v6 postcopy patches and found it doesn't work. When > > I tried to start the postcopy in live migration, some errors were printed. I > just did the following things: > > > > On destination side, started the qemu l

[Qemu-devel] [RFC] Differential Backups

2015-04-29 Thread John Snow
This is a feature that should be very easy to add on top of the existing incremental feature, since it's just a difference in how the bitmap is treated: Incremental - Links to the last incremental (managed by libvirt) - Clears the bitmap after creation Differential: - Links to the last full ba

Re: [Qemu-devel] [PATCH qemu v6 07/15] vfio: spapr: Add SPAPR IOMMU v2 support (DMA memory preregistering)

2015-04-29 Thread David Gibson
On Wed, Apr 22, 2015 at 07:38:27PM +1000, Alexey Kardashevskiy wrote: > On 04/22/2015 03:53 PM, David Gibson wrote: > >On Sat, Apr 11, 2015 at 01:24:36AM +1000, Alexey Kardashevskiy wrote: > >>This makes use of the new "memory registering" feature. The idea is > >>to provide the userspace ability t

[Qemu-devel] [PATCH v2 1/3] qobject: Clean up around qtype_code

2015-04-29 Thread Eric Blake
From: Markus Armbruster QTYPE_NONE is a sentinel value. No QObject has this type code. Document it properly. Fix dump_qobject() to abort() on QTYPE_NONE, just like for any other invalid type code. Fix to_json() to abort() on all invalid type codes, not just QTYPE_MAX. Clean up Property member

[Qemu-devel] [PATCH v2 3/3] json-parser: Accept 'null' in QMP

2015-04-29 Thread Eric Blake
We document that in QMP, the client may send any json-value for the optional "id" key, and then return that same value on reply (both success and failures, insofar as the failure happened after parsing the id). [Note that the output may not be identical to the input, as whitespace may change and s

[Qemu-devel] [PATCH v2 0/3] parse 'null' literal in QMP

2015-04-29 Thread Eric Blake
Here's my attempt to merge the best points of Markus' approach [1] (patches 16-18 of that series - benefit of smaller patches and fewer malloc calls) and my approach [2] (benefit of a testsuite addition and more detailed commit messages), while fixing the typos that both of us had in v1. [1]https:

[Qemu-devel] [PATCH v2 2/3] qobject: Add a special null QObject

2015-04-29 Thread Eric Blake
From: Markus Armbruster I'm going to fix the JSON parser to recognize null. The obvious representation of JSON null as (QObject *)NULL doesn't work, because the parser already uses it as an error value. Perhaps we should change it to free NULL for null, but that's more than I can do right now.

Re: [Qemu-devel] [PATCH v4 0/2] virtio: Move host features to backends

2015-04-29 Thread Michael S. Tsirkin
On Wed, Apr 29, 2015 at 09:49:53PM +0200, Christian Borntraeger wrote: > Am 29.04.2015 um 20:35 schrieb Michael S. Tsirkin: > > On Wed, Apr 29, 2015 at 04:43:19PM +0200, Christian Borntraeger wrote: > >> Am 29.04.2015 um 12:32 schrieb Michael S. Tsirkin: > >>> On Wed, Apr 29, 2015 at 10:52:15AM +02

Re: [Qemu-devel] [PATCH v4 2/4] scripts: qmp-shell: Expand support for QMP expressions

2015-04-29 Thread John Snow
On 04/29/2015 03:25 PM, Eric Blake wrote: On 04/29/2015 01:14 PM, John Snow wrote: This includes support for [] expressions, single-quotes in QMP expressions (which is not strictly a part of JSON), and the ability to use "True", "False" and "None" literals instead of JSON's equivalent true, fa

Re: [Qemu-devel] [PATCH v4 0/2] virtio: Move host features to backends

2015-04-29 Thread Christian Borntraeger
Am 29.04.2015 um 20:35 schrieb Michael S. Tsirkin: > On Wed, Apr 29, 2015 at 04:43:19PM +0200, Christian Borntraeger wrote: >> Am 29.04.2015 um 12:32 schrieb Michael S. Tsirkin: >>> On Wed, Apr 29, 2015 at 10:52:15AM +0200, Cornelia Huck wrote: On Wed, 29 Apr 2015 10:17:55 +0200 Christian

Re: [Qemu-devel] [PATCH v4 4/4] scripts: qmp-shell: Add verbose flag

2015-04-29 Thread Eric Blake
On 04/29/2015 01:14 PM, John Snow wrote: > Add a verbose flag that shows the QMP command that was > constructed, to allow for later copy/pasting, reference, > debugging, etc. > > The QMP is converted from a Python literal to JSON first, > to ensure that it is viable input to the actual QMP parser.

Re: [Qemu-devel] [PATCH v4 3/4] scripts: qmp-shell: add transaction subshell

2015-04-29 Thread Eric Blake
On 04/29/2015 01:14 PM, John Snow wrote: > Add a special processing mode to craft transactions. > > By entering "transaction(" the shell will enter a special > mode where each subsequent command will be saved as a transaction > instead of executed as an individual command. > > The transaction can

Re: [Qemu-devel] [PATCH v14 02/10] hw/vfio/platform: vfio-platform skeleton

2015-04-29 Thread Alex Williamson
On Wed, 2015-04-29 at 15:51 +0100, Eric Auger wrote: > Minimal VFIO platform implementation supporting register space > user mapping but not IRQ assignment. > > Signed-off-by: Kim Phillips > Signed-off-by: Eric Auger > > --- > v13 -> v14: > - fix ENAMETOOLONG error path sign > > v12 -> v13: >

[Qemu-devel] [RFC PATCH 08/15] spapr: create DR connectors for PHBs and register reset hooks

2015-04-29 Thread Michael Roth
Since we route hotplugged PHBs to their DR connector using their PHB.index value, we align the number of DR connectors with the maximum index value: SPAPR_PCI_MAX_INDEX. Signed-off-by: Michael Roth --- hw/ppc/spapr.c | 28 1 file changed, 28 insertions(+) diff --git

Re: [Qemu-devel] [PATCH v4 2/4] scripts: qmp-shell: Expand support for QMP expressions

2015-04-29 Thread Eric Blake
On 04/29/2015 01:14 PM, John Snow wrote: > This includes support for [] expressions, single-quotes in > QMP expressions (which is not strictly a part of JSON), and > the ability to use "True", "False" and "None" literals instead > of JSON's equivalent true, false, and null literals. > > qmp-shell

[Qemu-devel] [RFC PATCH 05/15] spapr_pci: add PHB unrealize

2015-04-29 Thread Michael Roth
To support PHB hotplug we need to clean up lingering references, memory, child properties, etc. prior to the PHB object being finalized. Generally this will be called as a result of calling object_unref() on the PHB object, which in turn would normally be called as the result of an unplug() operati

[Qemu-devel] [RFC PATCH 06/15] spapr_pci: also use 'index' property as DRC index for PHBs

2015-04-29 Thread Michael Roth
Prior to this patch 'index' is purely a shorthand for specifying MMIO windows, BUIDs, and other configuration values for a PHB. With the addition of PHB hotplug, we have a static number of DRCs that can be used to handle hotplug/unplug operations on our PHBs, and need a consistent way to map PHBs

[Qemu-devel] [RFC PATCH 07/15] spapr: enable PHB hotplug for pseries-2.4

2015-04-29 Thread Michael Roth
Introduce an sPAPRMachineClass sub-class of MachineClass to handle sPAPR-specific machine configuration properties. The 'dr_phb_enabled' field of that class can be set as part of machine-specific init code, and is then propagated to sPAPREnvironment to conditionally enable creation of DRC objects

[Qemu-devel] [RFC PATCH 03/15] spapr_drc: pass object ownership to parent/owner

2015-04-29 Thread Michael Roth
DRC objects attach themselves to an owner as a child property. unref afterward to allow them to be finalized when their owner is finalized. Signed-off-by: Michael Roth --- hw/ppc/spapr_drc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/ppc/spapr_drc.c b/hw/ppc/spapr_drc.c index 48bf193

[Qemu-devel] [RFC PATCH 15/15] spapr: add hotplug hooks for PHB hotplug

2015-04-29 Thread Michael Roth
Hotplugging PHBs is a machine-level operation, but PHBs reside on the main system bus, so we register spapr machine as the handler for the main system bus. The entry point for plug/unplug is shared by all such machine-level hotplug operations (memory, CPU, PHB, etc), and from there we branch off to

[Qemu-devel] [RFC PATCH 01/15] pci: allow cleanup/unregistration of PCI buses

2015-04-29 Thread Michael Roth
This adds cleanup counterparts to pci_register_bus(), pci_bus_new(), and pci_bus_irqs(). These cleanup routines are needed in the case of hotpluggable PCIHostBridge implementations. Currently we can rely on the object_unparent()'ing of the PCIHostState recursively unparenting and cleaning up it's

[Qemu-devel] [RFC PATCH 04/15] spapr_iommu: pass object ownership to parent/owner

2015-04-29 Thread Michael Roth
DRC objects attach themselves to an owner as a child property. unref afterward to allow them to be finalized when their owner is finalized. Signed-off-by: Michael Roth --- hw/ppc/spapr_iommu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/ppc/spapr_iommu.c b/hw/ppc/spapr_iommu.c index a

[Qemu-devel] [RFC PATCH 11/15] qdev: add qbus_set_hotplug_handler_generic()

2015-04-29 Thread Michael Roth
Certain devices types, like memory/CPU, are now being handled using a hotplug interface provided by a top-level MachineClass. Hotpluggable host bridges are another such device where it makes sense to use a machine-level hotplug handler. However, unlike those devices, host-bridges have a parent bus

[Qemu-devel] [RFC PATCH 02/15] qdev: store DeviceState's canonical path to use when unparenting

2015-04-29 Thread Michael Roth
device_unparent(dev, ...) is called when a device is unparented, either directly, or as a result of a parent device being finalized, and handles some final cleanup for the device. Part of this includes emiting a DEVICE_DELETED QMP event to notify management, which includes the device's path in the

[Qemu-devel] [RFC PATCH 14/15] spapr_pci: add ibm, my-drc-index property for PHB hotplug

2015-04-29 Thread Michael Roth
This is needed to denote a boot-time PHB as being hot-pluggable. Signed-off-by: Michael Roth --- hw/ppc/spapr_pci.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/hw/ppc/spapr_pci.c b/hw/ppc/spapr_pci.c index 66fe85f..91dfd96 100644 --- a/hw/ppc/spapr_pci.c +++ b/hw/ppc/spapr_pc

[Qemu-devel] [RFC PATCH 09/15] spapr: populate PHB DRC entries for root DT node

2015-04-29 Thread Michael Roth
From: Nathan Fontenot This add entries to the root OF node to advertise our PHBs as being DR-capable in accordance with PAPR specification. Signed-off-by: Nathan Fontenot Signed-off-by: Michael Roth --- hw/ppc/spapr.c | 9 + 1 file changed, 9 insertions(+) diff --git a/hw/ppc/spapr.c

[Qemu-devel] [RFC PATCH 13/15] spapr_pci: provide node start offset via spapr_populate_pci_dt()

2015-04-29 Thread Michael Roth
PHB hotplug re-uses PHB device tree generation code and passes it to a guest via RTAS. Doing this requires knowledge of where exactly in the device tree the node describing the PHB begins. Provide this via a new optional pointer that can be used to store the PHB node's start offset. Signed-off-by

[Qemu-devel] [RFC PATCH 12/15] spapr: stub implementation of machine-level HotplugHandler interface

2015-04-29 Thread Michael Roth
This is mostly a shim patch to base more easily on CPU/MEM patches. In that case it can most likely be dropped, otherwise it should be squashed into actual hotplug handler implementation that will follow. Signed-off-by: Michael Roth --- hw/ppc/spapr.c | 24 1 file change

[Qemu-devel] [RFC PATCH 00/15] spapr: add support for PHB hotplug

2015-04-29 Thread Michael Roth
These patches are based on latest spapr-hotplug-pci patches, and can also be obtained from: https://github.com/mdroth/qemu/commits/spapr-hotplug-phb These patches implement support for hotplug/unplug of PCI host-bridges. The main use cases are: - allowing for VFIO PCI hotplug for host kernels

[Qemu-devel] [RFC PATCH 10/15] spapr_events: add support for phb hotplug events

2015-04-29 Thread Michael Roth
Extend the existing EPOW event format we use for PCI devices to emit PHB plug/unplug events. Signed-off-by: Michael Roth --- hw/ppc/spapr_events.c | 5 + 1 file changed, 5 insertions(+) diff --git a/hw/ppc/spapr_events.c b/hw/ppc/spapr_events.c index be82815..5d7cfac 100644 --- a/hw/ppc/spa

Re: [Qemu-devel] [PATCH] QJSON: Use OBJECT_CHECK

2015-04-29 Thread Paolo Bonzini
On 27/04/2015 19:23, Eduardo Habkost wrote: > Also, why do we have two JSON writers in QEMU? And why do they have > exactly the same name? qobject/qjson.c could use qjson.c... but then qjson.c probably should be changed 1) to not use QOM 2) to use GString instead of QString, just like most other

[Qemu-devel] [PATCH v4 4/4] scripts: qmp-shell: Add verbose flag

2015-04-29 Thread John Snow
Add a verbose flag that shows the QMP command that was constructed, to allow for later copy/pasting, reference, debugging, etc. The QMP is converted from a Python literal to JSON first, to ensure that it is viable input to the actual QMP parser. As a side-effect, this JSON output will helpfully s

[Qemu-devel] [PATCH v4 1/4] scripts: qmp-shell: refactor helpers

2015-04-29 Thread John Snow
Refactor the qmp-shell command line processing function into two components. This will be used to allow sub-expressions, which will assist us in adding transactional support to qmp-shell. Signed-off-by: John Snow Reviewed-by: Eric Blake --- scripts/qmp/qmp-shell | 24 +--- 1

[Qemu-devel] [PATCH v4 2/4] scripts: qmp-shell: Expand support for QMP expressions

2015-04-29 Thread John Snow
This includes support for [] expressions, single-quotes in QMP expressions (which is not strictly a part of JSON), and the ability to use "True", "False" and "None" literals instead of JSON's equivalent true, false, and null literals. qmp-shell currently allows you to describe values as JSON expre

[Qemu-devel] [PATCH v4 0/4] scripts: qmp-shell: add transaction support

2015-04-29 Thread John Snow
The qmp-shell is a little rudimentary, but it can be hacked to give us some transactional support without too much difficulty. (1) Prep. (2) Add support for serializing json arrays and improve the robustness of QMP parsing (3) Add a special transaction( ... ) syntax that lets users build u

[Qemu-devel] [PATCH v4 3/4] scripts: qmp-shell: add transaction subshell

2015-04-29 Thread John Snow
Add a special processing mode to craft transactions. By entering "transaction(" the shell will enter a special mode where each subsequent command will be saved as a transaction instead of executed as an individual command. The transaction can be submitted by entering ")" on a line by itself. Exa

[Qemu-devel] [PATCH 1/2] hw/ppc/spapr: Fix error message when firmware could not be loaded

2015-04-29 Thread Thomas Huth
When specifying a non-existing file with the "-bios" parameter, QEMU complained that it "could not find LPAR rtas". That's obviously a copy-n-paste bug from the code which loads the spapr-rtas.bin, it should complain about a missing firmware file instead. Additionally the error message was printed

[Qemu-devel] [PATCH 0/2] hw/ppc/spapr: Improve error printing

2015-04-29 Thread Thomas Huth
While loading alternate slof.bin images with the "-bios" option of qemu-softmmu-ppc64, I noticed that the error message is wrong when trying to load an non-existing file. Also, the error message is printed with hw_error() which results in a huge CPU register dump - something you don't expect when y

[Qemu-devel] [PATCH 2/2] hw/ppc/spapr: Use error_report() instead of hw_error()

2015-04-29 Thread Thomas Huth
hw_error() is designed for printing CPU-related error messages (e.g. it also prints a full CPU register dump). For error messages that are not directly related to CPU problems, a function like error_report() should be used instead. Signed-off-by: Thomas Huth --- hw/ppc/spapr.c | 12 ++--

Re: [Qemu-devel] [PATCH v4 0/2] virtio: Move host features to backends

2015-04-29 Thread Michael S. Tsirkin
On Wed, Apr 29, 2015 at 04:43:19PM +0200, Christian Borntraeger wrote: > Am 29.04.2015 um 12:32 schrieb Michael S. Tsirkin: > > On Wed, Apr 29, 2015 at 10:52:15AM +0200, Cornelia Huck wrote: > >> On Wed, 29 Apr 2015 10:17:55 +0200 > >> Christian Borntraeger wrote: > >> > >>> Am 28.04.2015 um 20:32

Re: [Qemu-devel] [PATCH v4 0/2] virtio: Move host features to backends

2015-04-29 Thread Michael S. Tsirkin
On Wed, Apr 29, 2015 at 04:33:44PM +0200, Cornelia Huck wrote: > On Wed, 29 Apr 2015 12:32:04 +0200 > "Michael S. Tsirkin" wrote: > > > On Wed, Apr 29, 2015 at 10:52:15AM +0200, Cornelia Huck wrote: > > > > And (surprise, surprise) virtio-blk now works - but it also works when > > > I back out t

Re: [Qemu-devel] [PATCH RFC v6 11/11] vfio: add bus reset notifier for host bus reset

2015-04-29 Thread Alex Williamson
On Wed, 2015-04-29 at 16:48 +0800, Chen Fan wrote: > add host secondary bus reset for vfio when AER occurs, if reset failed, > we should stop vm. > > Signed-off-by: Chen Fan > --- > hw/vfio/pci.c | 151 > +- > 1 file changed, 138 insertion

Re: [Qemu-devel] [PATCH v6 00/47] Postcopy implementation

2015-04-29 Thread Dr. David Alan Gilbert
* Li, Liang Z (liang.z...@intel.com) wrote: > Hi David, > > I have tired your v6 postcopy patches and found it doesn't work. When I tried > to start the > postcopy in live migration, some errors were printed. I just did the > following things: > > On destination side, started the qemu like thi

Re: [Qemu-devel] [PATCH v2] microblaze: fix memory leak

2015-04-29 Thread Michael Tokarev
05.03.2015 06:05, arei.gong...@huawei.com wrote: > From: Gonglei > > When not assign a -dtb argument, the variable dtb_filename > storage returned from qemu_find_file(), which should be freed > after use. Alternatively we define a local variable filename, > with 'char *' type, free after use. Ac

Re: [Qemu-devel] [PATCH v2] microblaze: fix memory leak

2015-04-29 Thread Peter Crosthwaite
On Wed, Mar 4, 2015 at 7:05 PM, wrote: > From: Gonglei > > When not assign a -dtb argument, the variable dtb_filename > storage returned from qemu_find_file(), which should be freed > after use. Alternatively we define a local variable filename, > with 'char *' type, free after use. > > Cc: Mich

Re: [Qemu-devel] [PATCH v2] qemu-sockets: Report explicit error if unlink fails

2015-04-29 Thread Eric Blake
On 04/29/2015 11:03 AM, Cole Robinson wrote: > Consider this case: > > $ ls -ld ~/root-owned/ > drwx--x--x. 2 root root 4096 Apr 29 12:55 /home/crobinso/root-owned/ > $ ls -l ~/root-owned/foo.sock > -rwxrwxrwx. 1 crobinso crobinso 0 Apr 29 12:55 > /home/crobinso/root-owned/foo.sock > > $ qemu-sy

[Qemu-devel] [PATCH v2] qemu-sockets: Report explicit error if unlink fails

2015-04-29 Thread Cole Robinson
Consider this case: $ ls -ld ~/root-owned/ drwx--x--x. 2 root root 4096 Apr 29 12:55 /home/crobinso/root-owned/ $ ls -l ~/root-owned/foo.sock -rwxrwxrwx. 1 crobinso crobinso 0 Apr 29 12:55 /home/crobinso/root-owned/foo.sock $ qemu-system-x86_64 -vnc unix:~/root-owned/foo.sock qemu-system-x86_64:

Re: [Qemu-devel] [PATCH 0/3] vnc: Fixes for unix socket error handling

2015-04-29 Thread Eric Blake
On 04/29/2015 10:37 AM, Cole Robinson wrote: > Minor fixes for unix socket error handling, see patches for details > > Cole Robinson (3): > vnc: Don't assert if opening unix socket fails > vnc: Tweak error when init fails > qemu-sockets: Report explicit error if unlink fails Reviewed-by: Er

Re: [Qemu-devel] [PATCH 0/5] Extend TPM support with a QEMU-external TPM

2015-04-29 Thread Stefan Berger
On 04/29/2015 05:06 AM, Igor Mammedov wrote: On Wed, 22 Apr 2015 14:18:55 -0400 Stefan Berger wrote: On 04/22/2015 03:00 AM, Igor Mammedov wrote: On Thu, 16 Apr 2015 10:05:35 -0400 Stefan Berger wrote: On 04/16/2015 09:35 AM, Igor Mammedov wrote: On Wed, 15 Apr 2015 18:38:43 -0400 [...]

Re: [Qemu-devel] [PATCH 0/7] virtio: inline private qdev properties into virtio devices

2015-04-29 Thread Paolo Bonzini
On 29/04/2015 17:24, Shannon Zhao wrote: > The private qdev properties of virtio devices are only used by > themselves. As Peter suggested and like what virtio-blk has done, we > should move the private qdev properties into devices and don't expose > them to avoid wrongly use. > > This patchset

[Qemu-devel] [PATCH 1/3] vnc: Don't assert if opening unix socket fails

2015-04-29 Thread Cole Robinson
Reproducer: $ qemu-system-x86_64 -display vnc=unix:/root/i-cant-access-you.sock qemu-system-x86_64: iohandler.c:60: qemu_set_fd_handler2: Assertion `fd >= 0' failed. Aborted (core dumped) Signed-off-by: Cole Robinson --- ui/vnc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/vnc.c b

[Qemu-devel] [PATCH 0/3] vnc: Fixes for unix socket error handling

2015-04-29 Thread Cole Robinson
Minor fixes for unix socket error handling, see patches for details Cole Robinson (3): vnc: Don't assert if opening unix socket fails vnc: Tweak error when init fails qemu-sockets: Report explicit error if unlink fails ui/vnc.c| 5 +++-- util/qemu-sockets.c | 6 +- 2 files

[Qemu-devel] [PATCH 2/3] vnc: Tweak error when init fails

2015-04-29 Thread Cole Robinson
Before: qemu-system-x86_64: -display vnc=unix:/root/foo.sock: Failed to start VNC server on `(null)': Failed to bind socket to /root/foo.sock: Permission denied After: qemu-system-x86_64: -display vnc=unix:/root/foo.sock: Failed to start VNC server: Failed to bind socket to /root/foo.sock: Permi

[Qemu-devel] [PATCH 3/3] qemu-sockets: Report explicit error if unlink fails

2015-04-29 Thread Cole Robinson
It's possible via libvirt for a user to request an explicit socket path that qemu lacks permissions to unlink, but the error that's reported is from bind(2), 'Address already in use' bind(2) will fail if the unix socket path already exists, so we need to unlink first. But we should report the unli

  1   2   3   >