[Qemu-devel] [PATCH v3 15/20] hw/intc/arm_gicv3: Implement GICv3 CPU interface registers

2016-06-14 Thread Peter Maydell
Implement the CPU interface registers for the GICv3; these are CPU system registers, not MMIO registers. This commit implements all the registers which are simple accessors for GIC state, but not those which act as interfaces for acknowledging, dismissing or generating interrupts. (Those will be a

[Qemu-devel] [PATCH v3 19/20] target-arm/machine.c: Allow user to request GICv3 emulation

2016-06-14 Thread Peter Maydell
Now we have an emulated GICv3, remove the restriction in gicv3_class_name() so that the user can request a GICv3 with -machine gic-version=3 even when not using KVM. Signed-off-by: Peter Maydell Reviewed-by: Shannon Zhao --- target-arm/machine.c | 3 +-- 1 file changed, 1 insertion(+), 2 deleti

Re: [Qemu-devel] [PATCH v7 06/15] qapi: Plumb in 'box' to qapi generator lower levels

2016-06-14 Thread Markus Armbruster
Eric Blake writes: > A future patch will add support for passing a qapi union > type as the 'data' of a command. But to do that, the user > function for implementing the command, as called by the > generated marshal command, must take the corresponding C > struct as a single boxed pointer, rathe

Re: [Qemu-devel] [PATCH v2 5/6] raw-posix: Implement .bdrv_co_preadv/pwritev

2016-06-14 Thread Eric Blake
On 06/14/2016 07:32 AM, Kevin Wolf wrote: > The raw-posix block driver actually supports byte-aligned requests now > on non-O_DIRECT images, like it already (and previously incorrectly) > claimed in bs->request_alignment. > > For some block drivers this means that a RMW cycle can be avoided when >

[Qemu-devel] [PATCH v3 02/20] bitops.h: Implement half-shuffle and half-unshuffle ops

2016-06-14 Thread Peter Maydell
A half-shuffle operation takes a word with zeros in the high half: ABCD EFGH IJKL MNOP and spreads the bits out so they are in every other bit of the word: 0A0B 0C0D 0E0F 0G0H 0I0J 0K0L 0M0N 0O0P A half-unshuffle performs the reverse operation. Provide functions in bitops.h w

Re: [Qemu-devel] [Qemu-ppc] [PATCH RFC 06/16] vl: move smp parsing to machine pre_init

2016-06-14 Thread Programmingkid
On Jun 14, 2016, at 7:39 AM, qemu-ppc-requ...@nongnu.org wrote: > On 13/06/2016 22:35, Andrew Jones wrote: >> On Mon, Jun 13, 2016 at 07:04:01PM +0200, Paolo Bonzini wrote: >>> On 10/06/2016 19:40, Andrew Jones wrote: +if (sockets == -1 || cores == -1 || threads == -1 || +ma

[Qemu-devel] [PULL 25/30] introduce dpcd module

2016-06-14 Thread Peter Maydell
From: KONRAD Frederic This introduces dpcd module. It wires on a aux-bus and can be accessed by the driver to get lane-speed, etc. Signed-off-by: KONRAD Frederic Reviewed-by: Alistair Francis Reviewed-by: Peter Crosthwaite Tested-By: Hyun Kwon Message-id: 1465833014-21982-6-git-send-email-fr

Re: [Qemu-devel] [PATCH v6 8/9] target-mips: Add nan2008 flavor of ..

2016-06-14 Thread Leon Alrae
On Fri, Jun 10, 2016 at 09:12:12PM +0100, Maciej W. Rozycki wrote: > On Fri, 10 Jun 2016, Aleksandar Markovic wrote: > > > The changes that make QEMU behavior the same as hardware behavior (in > > relation to CEIL, CVT, FLOOR, ROUND, TRUNC Mips instructions) are > > already contained in this pat

[Qemu-devel] [PATCH v3 17/20] hw/intc/arm_gicv3: Implement CPU i/f SGI generation registers

2016-06-14 Thread Peter Maydell
Implement the registers in the GICv3 CPU interface which generate new SGI interrupts. Signed-off-by: Peter Maydell Reviewed-by: Shannon Zhao --- hw/intc/arm_gicv3_cpuif.c | 125 + hw/intc/arm_gicv3_redist.c | 40 +++ hw/intc/gicv3_intern

[Qemu-devel] [PULL 15/30] hw/gpio: QOM'ify zaurus.c

2016-06-14 Thread Peter Maydell
From: xiaoqiang zhao Drop the old SysBus init function and use instance_init Signed-off-by: xiaoqiang zhao Message-id: 1465815255-21776-8-git-send-email-zxq_yx_...@163.com Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/gpio/zaurus.c | 14 ++ 1 file changed, 6 inse

Re: [Qemu-devel] [QEMU 1/7] balloon: speed up inflating & deflating process

2016-06-14 Thread Li, Liang Z
> > On 13.06.2016 12:16, Liang Li wrote: > > > The implementation of the current virtio-balloon is not very > > > efficient, Bellow is test result of time spends on inflating the > > > balloon to 3GB of a 4GB idle guest: > > > > > > a. allocating pages (6.5%, 103ms) > > > b. sending PFNs to host (6

[Qemu-devel] [PULL 24/30] introduce aux-bus

2016-06-14 Thread Peter Maydell
From: KONRAD Frederic This introduces a new bus: aux-bus. It contains an address space for aux slaves devices and a bridge to an I2C bus for I2C through AUX transactions. Signed-off-by: KONRAD Frederic Tested-By: Hyun Kwon Reviewed-by: Alistair Francis Message-id: 1465833014-21982-5-git-send

[Qemu-devel] [PULL 22/30] i2c: implement broadcast write

2016-06-14 Thread Peter Maydell
From: KONRAD Frederic This does a write to every slaves when the I2C bus get a write to address 0. Signed-off-by: KONRAD Frederic Reviewed-by: Alistair Francis Reviewed-by: Peter Crosthwaite Tested-By: Hyun Kwon Message-id: 1465833014-21982-3-git-send-email-fred.kon...@greensocs.com Signed-o

[Qemu-devel] [PULL 29/30] arm: xlnx-zynqmp: Add xlnx-dp and xlnx-dpdma

2016-06-14 Thread Peter Maydell
From: KONRAD Frederic This adds the DP and the DPDMA to the Zynq MP platform. Signed-off-by: KONRAD Frederic Reviewed-by: Peter Crosthwaite Reviewed-by: Alistair Francis Tested-By: Hyun Kwon Message-id: 1465833014-21982-10-git-send-email-fred.kon...@greensocs.com Signed-off-by: Peter Maydell

[Qemu-devel] [PULL 20/30] hw/sd: QOM'ify pl181.c

2016-06-14 Thread Peter Maydell
From: xiaoqiang zhao split the old SysBus init function into an instance_init and a Device realize function Signed-off-by: xiaoqiang zhao Message-id: 1465815255-21776-13-git-send-email-zxq_yx_...@163.com Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/sd/pl181.c | 26 +

[Qemu-devel] [PULL 17/30] hw/misc: QOM'ify exynos4210_pmu.c

2016-06-14 Thread Peter Maydell
From: xiaoqiang zhao Drop the old SysBus init function and use instance_init Signed-off-by: xiaoqiang zhao Message-id: 1465815255-21776-10-git-send-email-zxq_yx_...@163.com Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/misc/exynos4210_pmu.c | 11 +-- 1 file changed,

[Qemu-devel] [PULL 03/30] hw/arm/virt-acpi-build: Add PMU IRQ number in ACPI table

2016-06-14 Thread Peter Maydell
From: Shannon Zhao Add PMU IRQ number in ACPI table, then we can use PMU in guest through ACPI. Signed-off-by: Shannon Zhao Reviewed-by: Andrew Jones Message-id: 1465267577-1808-4-git-send-email-zhaoshengl...@huawei.com Signed-off-by: Peter Maydell --- hw/arm/virt-acpi-build.c | 4 1 fi

Re: [Qemu-devel] [Xen-devel] [PATCH] xen: Clean up includes

2016-06-14 Thread Stefano Stabellini
On Tue, 14 Jun 2016, Peter Maydell wrote: > On 30 May 2016 at 16:54, Stefano Stabellini wrote: > > On Tue, 24 May 2016, Peter Maydell wrote: > >> Clean up includes so that osdep.h is included first and headers > >> which it implies are not included manually. > >> > >> This commit was created with

[Qemu-devel] [PULL 21/30] i2cbus: remove unused dev field

2016-06-14 Thread Peter Maydell
From: KONRAD Frederic The dev field in i2cbus is not used. So just drop it. Signed-off-by: KONRAD Frederic Reviewed-by: Alistair Francis Reviewed-by: Peter Crosthwaite Tested-By: Hyun Kwon Message-id: 1465833014-21982-2-git-send-email-fred.kon...@greensocs.com Signed-off-by: Peter Maydell -

[Qemu-devel] [PULL 23/30] i2c: Factor our send() and recv() common logic

2016-06-14 Thread Peter Maydell
From: Peter Crosthwaite Most of the control flow logic between send and recv (error checking etc) is the same. Factor this out into a common send_recv() API. This is then usable by clients, where the control logic for send and receive differs only by a boolean. E.g. if (send) i2c_send(...): e

[Qemu-devel] [PULL 19/30] hw/dma: QOM'ify pxa2xx_dma.c

2016-06-14 Thread Peter Maydell
From: xiaoqiang zhao split the old SysBus init function into an instance_init and a Device realize function Signed-off-by: xiaoqiang zhao Message-id: 1465815255-21776-12-git-send-email-zxq_yx_...@163.com Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/dma/pxa2xx_dma.c | 38 +++

[Qemu-devel] [PULL 11/30] hw/i2c: QOM'ify omap_i2c.c

2016-06-14 Thread Peter Maydell
From: xiaoqiang zhao * Split the omap_i2c_init into an instance_init and realize function * Drop the old SysBus init function and use instance_init Signed-off-by: xiaoqiang zhao Message-id: 1465815255-21776-4-git-send-email-zxq_yx_...@163.com Reviewed-by: Peter Maydell Signed-off-by: Peter May

[Qemu-devel] [PULL 06/30] hw/arm/virt: introduce DEFINE_VIRT_MACHINE

2016-06-14 Thread Peter Maydell
From: Andrew Jones Use DEFINE_VIRT_MACHINE to generate versioned machine type info. Signed-off-by: Andrew Jones Reviewed-by: Peter Maydell Message-id: 1465746713-30414-3-git-send-email-drjo...@redhat.com Signed-off-by: Peter Maydell --- hw/arm/virt.c | 41

Re: [Qemu-devel] [QEMU 1/7] balloon: speed up inflating & deflating process

2016-06-14 Thread Li, Liang Z
> Subject: Re: [QEMU 1/7] balloon: speed up inflating & deflating process > > On 13.06.2016 12:16, Liang Li wrote: > > The implementation of the current virtio-balloon is not very > > efficient, Bellow is test result of time spends on inflating the > > balloon to 3GB of a 4GB idle guest: > > > > a

[Qemu-devel] [PULL 08/30] hw/arm/virt: create the 2.7 machine type

2016-06-14 Thread Peter Maydell
From: Andrew Jones Signed-off-by: Andrew Jones Message-id: 1465746713-30414-5-git-send-email-drjo...@redhat.com Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/arm/virt.c | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/hw/arm/virt.c b/h

[Qemu-devel] [PULL 02/30] hw/arm/virt: Add PMU node for virt machine

2016-06-14 Thread Peter Maydell
From: Shannon Zhao Add a virtual PMU device for virt machine while use PPI 7 for PMU overflow interrupt number. Signed-off-by: Shannon Zhao Reviewed-by: Andrew Jones Message-id: 1465267577-1808-3-git-send-email-zhaoshengl...@huawei.com Signed-off-by: Peter Maydell --- hw/arm/virt.c |

[Qemu-devel] [PULL 28/30] introduce xlnx-dp

2016-06-14 Thread Peter Maydell
From: KONRAD Frederic This is the implementation of the DisplayPort. It has an aux-bus to access dpcd and edid. Graphic plane is connected to the channel 3. Video plane is connected to the channel 0. Audio stream are connected to the channels 4 and 5. Signed-off-by: KONRAD Frederic Tested-By:

[Qemu-devel] [PULL 14/30] hw/gpio: QOM'ify pl061.c

2016-06-14 Thread Peter Maydell
From: xiaoqiang zhao * Merge the pl061_initfn into pl061_init * Drop the old SysBus init function and use instance_init Signed-off-by: xiaoqiang zhao Message-id: 1465815255-21776-7-git-send-email-zxq_yx_...@163.com Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/gpio/pl061.c |

[Qemu-devel] [PULL 07/30] hw/arm/virt: introduce DEFINE_VIRT_MACHINE_AS_LATEST

2016-06-14 Thread Peter Maydell
From: Andrew Jones Create two variants of DEFINE_VIRT_MACHINE. One, just called DEFINE_VIRT_MACHINE, that does not set properties that only the latest machine type should have, and another that does. This will hopefully reduce potential for errors when adding new versions. Signed-off-by: Andrew

[Qemu-devel] [PULL 00/30] target-arm queue

2016-06-14 Thread Peter Maydell
target-arm queue; quite a lot of patches but nothing earthshaking. thanks -- PMM The following changes since commit d32490ca74c700edc74f0b2f6b7536b52a644739: Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20160614' into staging (2016-06-14 13:14:55 +0100) are available

[Qemu-devel] [PULL 30/30] target-arm: Don't permit ARMv8-only Neon insns on ARMv7

2016-06-14 Thread Peter Maydell
The Neon instructions VCVTA, VCVTM, VCVTN, VCVTP, VRINTA, VRINTM, VRINTN, VRINTP, VRINTX, and VRINTZ were only introduced with ARMv8, so they need a guard to make them UNDEF if the CPU only supports ARMv7. (We got this right for all the other new-in-v8 insns, but forgot it for these Neon 2-reg-misc

[Qemu-devel] [PULL 18/30] hw/misc: QOM'ify mst_fpga.c

2016-06-14 Thread Peter Maydell
From: xiaoqiang zhao Drop the old SysBus init function and use instance_init Signed-off-by: xiaoqiang zhao Message-id: 1465815255-21776-11-git-send-email-zxq_yx_...@163.com Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/misc/mst_fpga.c | 13 ++--- 1 file changed, 6 in

[Qemu-devel] [PULL 27/30] introduce xlnx-dpdma

2016-06-14 Thread Peter Maydell
From: KONRAD Frederic This is the implementation of the DPDMA. Signed-off-by: KONRAD Frederic Reviewed-by: Alistair Francis Tested-By: Hyun Kwon Message-id: 1465833014-21982-8-git-send-email-fred.kon...@greensocs.com Signed-off-by: Peter Maydell --- hw/dma/Makefile.objs| 1 + hw/d

[Qemu-devel] [PULL 04/30] target-arm: Fix reset and migration of TTBCR(S)

2016-06-14 Thread Peter Maydell
Commit 6459b94c26dd666badb3 broke reset and migration of the AArch32 TTBCR(S) register if the guest used non-LPAE page tables. This is because the AArch32 TTBCR register definition is marked as ARM_CP_ALIAS, meaning that the AArch64 variant has to handle migration and reset. Although AArch64 TCR_EL

[Qemu-devel] [PULL 01/30] target-arm: kvm64: set guest PMUv3 feature bit if supported

2016-06-14 Thread Peter Maydell
From: Shannon Zhao Check if kvm supports guest PMUv3. If so, set the corresponding feature bit for vcpu. Signed-off-by: Shannon Zhao Reviewed-by: Andrew Jones Message-id: 1465267577-1808-2-git-send-email-zhaoshengl...@huawei.com Signed-off-by: Peter Maydell --- target-arm/cpu.h | 2 ++ tar

Re: [Qemu-devel] [PATCH v5 02/11] qapi: allow QmpInputVisitor to auto-cast types

2016-06-14 Thread Daniel P. Berrange
On Wed, Jun 08, 2016 at 02:01:23PM +0200, Paolo Bonzini wrote: > > > On 02/06/2016 18:46, Daniel P. Berrange wrote: > > Currently the QmpInputVisitor assumes that all scalar > > values are directly represented as their final types. > > ie it assumes an 'int' is using QInt, and a 'bool' is > > usi

[Qemu-devel] [PULL 05/30] hw/arm/virt: separate versioned type-init code

2016-06-14 Thread Peter Maydell
From: Andrew Jones Rename machvirt_info (which is specifically for 2.6 TypeInfo) to machvirt_2_6_info, and separate the type registration of the abstract machine type from the versioned type. Signed-off-by: Andrew Jones Reviewed-by: Peter Maydell Message-id: 1465746713-30414-2-git-send-email-d

[Qemu-devel] [PULL 13/30] hw/gpio: QOM'ify omap_gpio.c

2016-06-14 Thread Peter Maydell
From: xiaoqiang zhao * Split the old SysBus init into an instance_init and DeviceClass::realize function * Drop the SysBus init function Signed-off-by: xiaoqiang zhao Message-id: 1465815255-21776-6-git-send-email-zxq_yx_...@163.com Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell ---

Re: [Qemu-devel] [PATCH V10 0/9] Xilinx DisplayPort.

2016-06-14 Thread KONRAD Frederic
Le 14/06/2016 à 15:59, Peter Maydell a écrit : On 13 June 2016 at 16:50, wrote: From: KONRAD Frederic This is the 10th version of this patch-set of the implementation of the Xilinx DisplayPort and DPDMA. This 10th version fixes one bug with the I2C broadcast patch. Applied to target-a

[Qemu-devel] [PULL 26/30] hw/i2c-ddc.c: Implement DDC I2C slave

2016-06-14 Thread Peter Maydell
Implement an I2C slave which implements DDC and returns the EDID data for an attached monitor. Signed-off-by: Peter Maydell Reviewed-by: Alistair Francis Tested-by: Hyun Kwon Signed-off-by: KONRAD Frederic Message-id: 1465833014-21982-7-git-send-email-fred.kon...@greensocs.com - Rebased on

Re: [Qemu-devel] [Xen-devel] [PATCH] xen: Clean up includes

2016-06-14 Thread Peter Maydell
On 30 May 2016 at 16:54, Stefano Stabellini wrote: > On Tue, 24 May 2016, Peter Maydell wrote: >> Clean up includes so that osdep.h is included first and headers >> which it implies are not included manually. >> >> This commit was created with scripts/clean-includes. >> >> Signed-off-by: Peter May

[Qemu-devel] [PULL 10/30] hw/i2c: QOM'ify exynos4210_i2c.c

2016-06-14 Thread Peter Maydell
From: xiaoqiang zhao * Rename the exynos4210_i2c_realize to exynos4210_i2c_init * Drop the old SysBus init function and use instance_init Signed-off-by: xiaoqiang zhao Message-id: 1465815255-21776-3-git-send-email-zxq_yx_...@163.com Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell ---

Re: [Qemu-devel] [PATCH 1/1] block: fix libvirt snapshot with existing bitmaps

2016-06-14 Thread Max Reitz
On 13.06.2016 14:38, Denis V. Lunev wrote: > From: Vladimir Sementsov-Ogievskiy > > Fix the following bug: > > # virsh start test > Domain test started > > # virsh qemu-monitor-command test \ > '{"execute":"block-dirty-bitmap-add",\ > "arguments":{"node":"drive0","name":"ab"}}' >

Re: [Qemu-devel] [PATCH v9 10/10] target-mips: Add FCR31's FS bit definition

2016-06-14 Thread Leon Alrae
On Fri, Jun 10, 2016 at 11:57:37AM +0200, Aleksandar Markovic wrote: > From: Aleksandar Markovic > > Add preprocessor definition of FCR31's FS bit, and update related > code for setting this bit. > > Signed-off-by: Aleksandar Markovic > --- > target-mips/cpu.h | 3 ++- > 1 file changed, 2 inse

[Qemu-devel] [PULL 12/30] hw/i2c: QOM'ify versatile_i2c.c

2016-06-14 Thread Peter Maydell
From: xiaoqiang zhao Drop the old SysBus init function and use instance_init Signed-off-by: xiaoqiang zhao Message-id: 1465815255-21776-5-git-send-email-zxq_yx_...@163.com Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/i2c/versatile_i2c.c | 19 ++- 1 file chan

[Qemu-devel] [PULL 16/30] hw/misc: QOM'ify arm_l2x0.c

2016-06-14 Thread Peter Maydell
From: xiaoqiang zhao Drop the old SysBus init function and use instance_init Signed-off-by: xiaoqiang zhao Message-id: 1465815255-21776-9-git-send-email-zxq_yx_...@163.com Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/misc/arm_l2x0.c | 11 +-- 1 file changed, 5 inser

[Qemu-devel] [PULL 09/30] hw/i2c: QOM'ify bitbang_i2c.c

2016-06-14 Thread Peter Maydell
From: xiaoqiang zhao Drop the old SysBus init function and use instance_init Signed-off-by: xiaoqiang zhao Message-id: 1465815255-21776-2-git-send-email-zxq_yx_...@163.com Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/i2c/bitbang_i2c.c | 14 ++ 1 file changed, 6

Re: [Qemu-devel] [PATCH RFC 06/16] vl: move smp parsing to machine pre_init

2016-06-14 Thread Paolo Bonzini
On 14/06/2016 16:03, Andrew Jones wrote: > However, I just chatted with Igor, and he says cpu hotplug operates > on logical processors, and thus it's fine to talk about hotplugging > threads. Even real hardware does this. Real hardware will plug a > socket full of threads, but then the firmware m

Re: [Qemu-devel] [PATCH v9 01/10] softfloat: Implement run-time-configurable meaning of signaling NaN bit

2016-06-14 Thread Leon Alrae
On Fri, Jun 10, 2016 at 11:57:28AM +0200, Aleksandar Markovic wrote: > From: Aleksandar Markovic > > This patch modifies SoftFloat library so that it can be configured in > run-time in relation to the meaning of signaling NaN bit, while, at the > same time, strictly preserving its behavior on all

Re: [Qemu-devel] [PATCH v2 4/6] raw-posix: Switch to bdrv_co_* interfaces

2016-06-14 Thread Eric Blake
On 06/14/2016 07:32 AM, Kevin Wolf wrote: > In order to use the modern byte-based .bdrv_co_preadv/pwritev() > interface, this patch switches raw-posix to coroutine-based interfaces > as a first step. In terms of semantics and performance, it doesn't make > a difference with the existing code whethe

Re: [Qemu-devel] [PATCH v9 09/10] target-mips: Implement FCR31's R/W bitmask and related functionalities

2016-06-14 Thread Leon Alrae
On Fri, Jun 10, 2016 at 11:57:36AM +0200, Aleksandar Markovic wrote: > From: Aleksandar Markovic > > This patch implements read and write access rules for Mips floating > point control and status register (FCR31). The change can be divided > into following parts: > > - Add fields that will keep

Re: [Qemu-devel] [PATCH v1 0/6] Report format specific info for LUKS block driver

2016-06-14 Thread Daniel P. Berrange
On Tue, Jun 14, 2016 at 03:56:30PM +0200, Max Reitz wrote: > On 07.06.2016 12:11, Daniel P. Berrange wrote: > > The 'qemu-img info' tool has ability to print format specific > > information, eg with qcow2 it reports two extra items: > > > > $ qemu-img info ~/VirtualMachines/demo.qcow2 > > imag

Re: [Qemu-devel] [PATCH v7 05/15] qapi: Add type.is_empty() helper

2016-06-14 Thread Markus Armbruster
Eric Blake writes: > And use it in qapi-types and qapi-event. In the near future, we > want to lift our artificial restriction of no variants at the > top level of an event, at which point, inlining our check for > whether members is empty will no longer be sufficient; but > adding an inline che

[Qemu-devel] [PATCH v2] ppc / sparc: Add a tester for checking whether OpenBIOS runs successfully

2016-06-14 Thread Thomas Huth
Since the mac99 and g3beige PowerPC machines recently broke without being noticed, it would be good to have a tester for "make check" that detects such issues immediately. A simple way to test the firmware of these machines is to use the "-prom-env" parameter of QEMU. This parameter can be used to

Re: [Qemu-devel] [PATCH RFC 06/16] vl: move smp parsing to machine pre_init

2016-06-14 Thread Andrew Jones
On Tue, Jun 14, 2016 at 01:53:05PM +0200, Paolo Bonzini wrote: > > > On 14/06/2016 13:39, Andrew Jones wrote: > > On Tue, Jun 14, 2016 at 10:17:49AM +0200, Paolo Bonzini wrote: > >> On 13/06/2016 22:35, Andrew Jones wrote: > >>> On Mon, Jun 13, 2016 at 07:04:01PM +0200, Paolo Bonzini wrote: > >>>

Re: [Qemu-devel] [PATCH V10 0/9] Xilinx DisplayPort.

2016-06-14 Thread Peter Maydell
On 13 June 2016 at 16:50, wrote: > From: KONRAD Frederic > > This is the 10th version of this patch-set of the implementation of the Xilinx > DisplayPort and DPDMA. > > This 10th version fixes one bug with the I2C broadcast patch. Applied to target-arm.next, thanks. -- PMM

Re: [Qemu-devel] proposal: drop linux-user unicore32 support from QEMU

2016-06-14 Thread Xuetao Guan
> On 20 May 2016 at 13:48, Riku Voipio wrote: >> On torstaina 12. toukokuuta 2016 17.34.42 EEST, Peter Maydell wrote: >>> We should either fix our unicore32 support to use the real >>> syscall numbers, or just drop it; since nobody has touched >>> linux-user/unicore32 since 2012, and there have be

Re: [Qemu-devel] [PATCH v1 0/6] Report format specific info for LUKS block driver

2016-06-14 Thread Max Reitz
On 07.06.2016 12:11, Daniel P. Berrange wrote: > The 'qemu-img info' tool has ability to print format specific > information, eg with qcow2 it reports two extra items: > > $ qemu-img info ~/VirtualMachines/demo.qcow2 > image: /home/berrange/VirtualMachines/demo.qcow2 > file format: qcow2 >

[Qemu-devel] [PATCH 1/3] virgl: count the calls to gl_block

2016-06-14 Thread marcandre . lureau
From: Marc-André Lureau In virgl_cmd_resource_flush(), when several consoles are updated, it needs to keep blocking until all spice gl draws are done. This fixes an assert() in spice when using multiple monitors with virgl. Signed-off-by: Marc-André Lureau --- hw/display/virtio-gpu.c|

[Qemu-devel] [PATCH v2 5/6] raw-posix: Implement .bdrv_co_preadv/pwritev

2016-06-14 Thread Kevin Wolf
The raw-posix block driver actually supports byte-aligned requests now on non-O_DIRECT images, like it already (and previously incorrectly) claimed in bs->request_alignment. For some block drivers this means that a RMW cycle can be avoided when they write sub-sector metadata e.g. for cluster alloc

Re: [Qemu-devel] [PATCH v7 03/15] qapi: Require all branches of flat union enum to be covered

2016-06-14 Thread Eric Blake
On 06/14/2016 07:24 AM, Markus Armbruster wrote: > Eric Blake writes: > >> We were previously enforcing that all flat union branches were >> found in the corresponding enum, but not that all enum values >> were covered by branches. The resulting generated code would >> abort() if the user passes

Re: [Qemu-devel] [PATCH 1/2] msmouse: add MouseState, unregister handler on close

2016-06-14 Thread Paolo Bonzini
On 14/06/2016 14:51, Gerd Hoffmann wrote: > Add struct to track serial mouse state. Store mouse event handler > there. Unregister properly on chardev close. > > Signed-off-by: Gerd Hoffmann > --- > backends/msmouse.c | 22 +- > 1 file changed, 17 insertions(+), 5 deletion

[Qemu-devel] [PATCH v2 1/6] block: Byte-based bdrv_co_do_copy_on_readv()

2016-06-14 Thread Kevin Wolf
In a first step to convert the common I/O path to work on bytes rather than sectors, this converts the copy-on-read logic that is used by bdrv_aligned_preadv(). Signed-off-by: Kevin Wolf Reviewed-by: Eric Blake Reviewed-by: Stefan Hajnoczi --- block/io.c| 63 +++

Re: [Qemu-devel] [PATCH] ppc / sparc: Add a tester for checking whether OpenBIOS runs successfully

2016-06-14 Thread Thomas Huth
On 14.06.2016 13:31, Markus Armbruster wrote: > Thomas Huth writes: >[...] >> diff --git a/tests/prom-env-test.c b/tests/prom-env-test.c >> new file mode 100644 >> index 000..b4d5d68 >> --- /dev/null >> +++ b/tests/prom-env-test.c >> @@ -0,0 +1,93 @@ >> +/* >> + * Test OpenBIOS-based machines.

[Qemu-devel] [PATCH 3/3] virgl: pass whole GL scanout dimensions

2016-06-14 Thread marcandre . lureau
From: Marc-André Lureau Spice client needs the whole GL texture dimension to be able to show a scanout with a monitor offset (different than +0+0). Furthermore, this fixes a crash when calling surface_{width,height}() after dpy_gfx_replace_surface(con, NULL) was called in virgl_cmd_set_scanout()

[Qemu-devel] [PATCH v2 3/6] block: Prepare bdrv_aligned_pwritev() for byte-aligned requests

2016-06-14 Thread Kevin Wolf
Signed-off-by: Kevin Wolf Reviewed-by: Eric Blake Reviewed-by: Stefan Hajnoczi --- block/io.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/block/io.c b/block/io.c index e75bce2..b261cc6 100644 --- a/block/io.c +++ b/block/io.c @@ -1249,11 +1249,9 @@ static i

Re: [Qemu-devel] [PATCH v4 04/11] nbd: Improve server handling of bogus commands

2016-06-14 Thread Paolo Bonzini
On 13/06/2016 23:41, Alex Bligh wrote: > That's one of the reasons that there is a proposal to add > STRUCTURED_READ to the spec (although I still haven't had time to > implement that for qemu), so that we have a newer approach that allows > for proper error handling without ambiguity on whether

[Qemu-devel] [PATCH 0/3] virtio-gpu & spice multihead fixes

2016-06-14 Thread marcandre . lureau
From: Marc-André Lureau Hi Here are a few fixes for virtio-gpu multihead & spice support. To actually test this, you also need pending kernel fixes, and a small fix in spice-gtk for the virgl case. Marc-André Lureau (3): virgl: count the calls to gl_block spice: use the right head for multi

[Qemu-devel] [PATCH 2/3] spice: use the right head for multi-monitor

2016-06-14 Thread marcandre . lureau
From: Marc-André Lureau Look up the associated head monitor config. Signed-off-by: Marc-André Lureau --- ui/spice-display.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/ui/spice-display.c b/ui/spice-display.c index 34095fb..142c941 100644 --- a/ui/spice-dis

[Qemu-devel] [PATCH v2 6/6] block: Don't enforce 512 byte minimum alignment

2016-06-14 Thread Kevin Wolf
If block drivers say that they can do an alignment < 512 bytes, let's just suppose they mean it. raw-posix used to be an offender with respect to this, but it can actually deal with byte-aligned requests now. The default is still 512 bytes for any drivers that only implement sector-based interface

Re: [Qemu-devel] [PATCH v5 02/11] qapi: allow QmpInputVisitor to auto-cast types

2016-06-14 Thread Daniel P. Berrange
On Thu, Jun 09, 2016 at 04:03:50PM +0200, Markus Armbruster wrote: > "Daniel P. Berrange" writes: > > > Currently the QmpInputVisitor assumes that all scalar > > values are directly represented as their final types. > > ie it assumes an 'int' is using QInt, and a 'bool' is > > using QBool. > > >

Re: [Qemu-devel] [Qemu-block] [PATCH] qemu-img bench: Fix uninitialised writethrough mode

2016-06-14 Thread Max Reitz
On 14.06.2016 11:33, Kevin Wolf wrote: > If no -t option is specified, bool writethrough stayed uninitialised. > Initialise it as false, which makes cache=writeback the default cache > mode. > > Signed-off-by: Kevin Wolf > --- > qemu-img.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

[Qemu-devel] [PATCH v2 2/6] block: Prepare bdrv_aligned_preadv() for byte-aligned requests

2016-06-14 Thread Kevin Wolf
This patch makes bdrv_aligned_preadv() ready to accept byte-aligned requests. Note that this doesn't mean that such requests are actually made. The caller still ensures that all requests are aligned to at least 512 bytes. Signed-off-by: Kevin Wolf Reviewed-by: Eric Blake Reviewed-by: Stefan Hajn

[Qemu-devel] [PATCH v2 0/6] block: Enable byte granularity I/O

2016-06-14 Thread Kevin Wolf
Previous series have already converted some block drivers to byte-based rather than sector-based interfaces. However, the common I/O path as well as raw-posix still enforced a minimum alignment of 512 bytes because some sector-based logic was involved. This patch series removes these limitations a

Re: [Qemu-devel] [PATCH] block-backend: allow flush on devices with open tray

2016-06-14 Thread Max Reitz
On 10.06.2016 23:59, John Snow wrote: > If a device still has an attached BDS because the medium has not yet > been removed, we will be unable to migrate to a new host because > blk_flush will return an error for that backend. > > Replace the call to blk_is_available to blk_is_inserted to weaken >

Re: [Qemu-devel] [PATCH v7 04/15] qapi: Hide tag_name data member of variants

2016-06-14 Thread Markus Armbruster
Eric Blake writes: > Clean up the only remaining external use of the tag_name field of > QAPISchemaObjectTypeVariants, by explicitly listing the generated > 'type' tag for all variants in the testsuite. Then we can mark the > tag_name field as private by adding a leading underscore to prevent >

Re: [Qemu-devel] [PULL 6/6] virtio-gpu: add live migration support

2016-06-14 Thread Paolo Bonzini
On 06/06/2016 09:06, Gerd Hoffmann wrote: > +while (resource_id != 0) { > +res = g_new0(struct virtio_gpu_simple_resource, 1); > +res->resource_id = resource_id; > +res->width = qemu_get_be32(f); > +res->height = qemu_get_be32(f); > +res->format = qemu_

[Qemu-devel] [PATCH v2 4/6] raw-posix: Switch to bdrv_co_* interfaces

2016-06-14 Thread Kevin Wolf
In order to use the modern byte-based .bdrv_co_preadv/pwritev() interface, this patch switches raw-posix to coroutine-based interfaces as a first step. In terms of semantics and performance, it doesn't make a difference with the existing code whether we go from a coroutine to a callback-based inter

Re: [Qemu-devel] [PATCH] linux-user: add missing return in netlink switch statement

2016-06-14 Thread Peter Maydell
On 14 June 2016 at 14:07, Laurent Vivier wrote: > Reported-by: Peter Maydell > Signed-off-by: Laurent Vivier > --- > linux-user/syscall.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/linux-user/syscall.c b/linux-user/syscall.c > index 71ccbd9..0b937ca 100644 > --- a/linux-user/sysca

[Qemu-devel] [PATCH v4 5/6] trace: Conditionally trace events based on their per-vCPU state

2016-06-14 Thread Lluís Vilanova
Events with the 'vcpu' property are conditionally emitted according to their per-vCPU state. Other events are emitted normally based on their global tracing state. Note that the per-vCPU condition check applies to all tracing backends. Signed-off-by: Lluís Vilanova Reviewed-by: Stefan Hajnoczi

[Qemu-devel] [PATCH 1/2] build-sys: define QEMU_SRC_PATH

2016-06-14 Thread marcandre . lureau
From: Marc-André Lureau Define QEMU_SRC_PATH in config-host.h, to ease accessing of tests data files. Signed-off-by: Marc-André Lureau --- scripts/create_config | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/create_config b/scripts/create_config index 1dd6a35..2fbe126 100755 --

Re: [Qemu-devel] [RESEND PATCH 00/12] some ARM platform QOM'ify work (resend)

2016-06-14 Thread Peter Maydell
On 13 June 2016 at 11:54, xiaoqiang zhao wrote: > This patch series QOM'ify ARM platform related devices. > Where we drop the sysbus init function if possible and use > instance_init and DeviceClass::realize function. > > xiaoqiang zhao (12): > hw/i2c: QOM'ify bitbang_i2c.c > hw/i2c: QOM'ify e

[Qemu-devel] [PATCH v4 3/6] [trivial] trace: Cosmetic changes on fast-path tracing

2016-06-14 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova Reviewed-by: Stefan Hajnoczi --- trace/control-internal.h |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/trace/control-internal.h b/trace/control-internal.h index 0ba10fe..3f368fd 100644 --- a/trace/control-internal.h +++ b/trace/contr

Re: [Qemu-devel] [PATCH v7 03/15] qapi: Require all branches of flat union enum to be covered

2016-06-14 Thread Markus Armbruster
Eric Blake writes: > We were previously enforcing that all flat union branches were > found in the corresponding enum, but not that all enum values > were covered by branches. The resulting generated code would > abort() if the user passes the uncovered enum value. > > Signed-off-by: Eric Blake

[Qemu-devel] [PATCH 2/2] tests: use static qga config file

2016-06-14 Thread marcandre . lureau
From: Marc-André Lureau Do not create a leaking temporary file, but use a static file instead. Signed-off-by: Marc-André Lureau Reported-by: Peter Maydell --- tests/test-qga-config | 8 tests/test-qga.c | 27 --- 2 files changed, 12 insertions(+), 23 del

[Qemu-devel] [PATCH v4 2/6] disas: Remove unused macro '_'

2016-06-14 Thread Lluís Vilanova
Eliminates a future compilation error when UI code includes the tracing headers (indirectly pulling "disas/bfd.h" through "qom/cpu.h") and GLib's i18n '_' macro. Signed-off-by: Lluís Vilanova --- disas/alpha.c |6 +++--- disas/arm.c |2 +- disas/i386.c|2 +- dis

[Qemu-devel] [PATCH v4 1/6] trace: Identify events with the 'vcpu' property

2016-06-14 Thread Lluís Vilanova
A new event attribute 'cpu_id' is added to have a separate ID space ('TRACE_VCPU_*') for all events with the 'vcpu' property. These are later used to identify which events are enabled on each vCPU. Signed-off-by: Lluís Vilanova Reviewed-by: Stefan Hajnoczi --- scripts/tracetool/format/events_c

Re: [Qemu-devel] [PATCH v3 00/15] mirror: follow AioContext change gracefully

2016-06-14 Thread Fam Zheng
On Mon, 06/13 18:05, Stefan Hajnoczi wrote: > v3: > * Push infrastructure down into blockjob.c so other jobs can reuse it > [Stefan] > * Tested with drive_mirror + migration [Stefan] Looks good to me apart from the question raised by Paolo. I'm looking forward to v4. Thanks! Fam

[Qemu-devel] [PATCH v4 0/6] trace: Per-vCPU tracing states

2016-06-14 Thread Lluís Vilanova
NOTE: This series applies on top of "trace: Show vCPU info in guest code events" Provides per-vCPU dynamic controls of the tracing state of events with the "vcpu" property. A later series proposes an optimization where tracing code can be elided for dynamically disabled events (it uses multiple v

Re: [Qemu-devel] [PATCH v7 02/15] net: use Netdev instead of NetClientOptions in client init

2016-06-14 Thread Markus Armbruster
Eric Blake writes: > From: Kővágó, Zoltán First posted almost a year ago. I'm glad we're finally ready for this work. Zoltán, I'm sorry it has taken us so long. > This way we no longer need NetClientOptions and can convert Netdev > into a flat union. That's work enabled by this patch, not d

[Qemu-devel] [PATCH 0/2] Remove test-qga temporary file

2016-06-14 Thread marcandre . lureau
From: Marc-André Lureau Hi, Here are 2 small patches to remove the need for temporary file creation in test-qga. Marc-André Lureau (2): build-sys: define QEMU_SRC_PATH tests: use static qga config file scripts/create_config | 3 +++ tests/test-qga-config | 8 tests/test-qga.c

Re: [Qemu-devel] [RFC 02/10] softmmu_llsc_template.h: Move to multi-threading

2016-06-14 Thread Alex Bennée
alvise rigo writes: > 1. LL(x) // x requires a flush > 2. query flush to all the n VCPUs > 3. exit from the CPU loop and wait until all the flushes are done > 4. enter the loop to re-execute LL(x). This time no flush is required > > Now, points 2. and 3. can be done either with

[Qemu-devel] [PATCH v4 6/6] trace: Add QAPI/QMP interfaces to query and control per-vCPU tracing state

2016-06-14 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova Reviewed-by: Stefan Hajnoczi --- monitor.c |4 +- qapi/trace.json | 20 ++-- qmp-commands.hx | 17 ++- trace/qmp.c | 143 --- 4 files changed, 147 insertions(+), 37 deletions(-) diff --g

[Qemu-devel] [PATCH v4 4/6] trace: Add per-vCPU tracing states for events with the 'vcpu' property

2016-06-14 Thread Lluís Vilanova
Each vCPU gets a 'trace_dstate' bitmap to control the per-vCPU dynamic tracing state of events with the 'vcpu' property. Signed-off-by: Lluís Vilanova --- Makefile.objs|1 + bsd-user/main.c |2 ++ include/qom/cpu.h|6 + linux-user/main.c|2

Re: [Qemu-devel] [PULL 0/7] s390x: next batch of patches

2016-06-14 Thread Peter Maydell
On 14 June 2016 at 13:13, Cornelia Huck wrote: > The following changes since commit a28aae041aa76a779df6467a7fe68b9e8a8b2c0a: > > Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.7-20160614' > into staging (2016-06-14 09:30:05 +0100) > > are availa

Re: [Qemu-devel] [PATCH 6/6] block: Don't enforce 512 byte minimum alignment

2016-06-14 Thread Kevin Wolf
Am 14.06.2016 um 14:09 hat Stefan Hajnoczi geschrieben: > On Wed, Jun 08, 2016 at 04:10:11PM +0200, Kevin Wolf wrote: > > diff --git a/block.c b/block.c > > index f54bc25..3d850a2 100644 > > --- a/block.c > > +++ b/block.c > > @@ -937,7 +937,7 @@ static int bdrv_open_common(BlockDriverState *bs, >

[Qemu-devel] [PATCH] linux-user: add missing return in netlink switch statement

2016-06-14 Thread Laurent Vivier
Reported-by: Peter Maydell Signed-off-by: Laurent Vivier --- linux-user/syscall.c | 1 + 1 file changed, 1 insertion(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 71ccbd9..0b937ca 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -1688,6 +1688,7 @@ static abi_l

Re: [Qemu-devel] [PATCH v3 4/5] iotests: Add test for post-mirror backing chains

2016-06-14 Thread Max Reitz
On 12.06.2016 06:17, Fam Zheng wrote: > On Fri, 06/10 20:57, Max Reitz wrote: >> +import os >> +import stat >> +import time > > Unused import 'stat' and 'time'? That happens when you copy old tests and don't check stuff like this... Well, it won't hurt, but I guess now I may have enough reason to

Re: [Qemu-devel] [PATCH v2 0/4] create the mach-virt 2.7 machine type

2016-06-14 Thread Peter Maydell
On 12 June 2016 at 16:51, Andrew Jones wrote: > v2: > - drop 'is_default' setting [Peter] > - fix checkpatch warning [Peter] > - add a couple R-b's > > This is the first new machine type mach-virt has received > (2.6 being the first versioned machine type), so we need to > do a bit more than th

Re: [Qemu-devel] [PATCH v3 3/5] block/null: Implement bdrv_refresh_filename()

2016-06-14 Thread Max Reitz
On 12.06.2016 06:08, Fam Zheng wrote: > On Fri, 06/10 20:57, Max Reitz wrote: >> Signed-off-by: Max Reitz > > The commit message could go a little more informative. Seems nothing special > in > the added callback, aren't things supposed to just work without this patch? > What is missing? If you

<    1   2   3   4   5   6   >