[Qemu-devel] [PATCH v7 03/15] target-tricore: Add softmmu support

2014-09-01 Thread Bastian Koppelmann
Add basic softmmu support for TriCore Signed-off-by: Bastian Koppelmann --- v6 -> v7: - TRICORECPU -> TriCoreCPU. - CPUTRICOREState -> CPUTriCoreState. target-tricore/helper.c| 54 +- target-tricore/op_helper.c | 33 +++

[Qemu-devel] [PATCH v7 04/15] target-tricore: Add initialization for translation and activate target

2014-09-01 Thread Bastian Koppelmann
Add tcg and cpu model initialization. Add gen_intermediate_code function. Activate target in configure and add softmmu config. Signed-off-by: Bastian Koppelmann --- v6 -> v7: - configure: Remove empty disas case. Remove target_phys_bits=32. - tricore-softmmu.mak: Remove pci, SMC91C111 and

[Qemu-devel] [PATCH v7 10/15] target-tricore: Add instructions of SB opcode format

2014-09-01 Thread Bastian Koppelmann
Add instructions of SB opcode format. Add helper call/ret. Add micro-op generator functions for branches. Add makro to generate helper functions. Signed-off-by: Bastian Koppelmann --- v6 -> v7: - CPUTRICOREState -> CPUTriCoreState. target-tricore/helper.h| 3 + target-tricore/op_helpe

[Qemu-devel] [PATCH v7 09/15] target-tricore: Add instructions of SRRS and SLRO opcode format

2014-09-01 Thread Bastian Koppelmann
Add instructions of SSRS and SLRO opcode format. Add micro-op generator functions for offset loads. Signed-off-by: Bastian Koppelmann Reviewed-by: Richard Henderson --- target-tricore/translate.c | 59 ++ 1 file changed, 59 insertions(+) diff --git

[Qemu-devel] [PATCH v7 08/15] target-tricore: Add instructions of SSR opcode format

2014-09-01 Thread Bastian Koppelmann
Add instructions of SSR opcode format. Signed-off-by: Bastian Koppelmann Reviewed-by: Richard Henderson --- target-tricore/translate.c | 50 ++ 1 file changed, 50 insertions(+) diff --git a/target-tricore/translate.c b/target-tricore/translate.c ind

[Qemu-devel] [PATCH v7 12/15] target-tricore: Add instructions of SBR opcode format

2014-09-01 Thread Bastian Koppelmann
Add instructions of SBR opcode format. Add gen_loop micro-op generator function. Signed-off-by: Bastian Koppelmann Reviewed-by: Richard Henderson --- target-tricore/translate.c | 66 +- 1 file changed, 65 insertions(+), 1 deletion(-) diff --git a/ta

[Qemu-devel] [PATCH v7 14/15] target-tricore: Add instructions of SLR, SSRO and SRO opcode format

2014-09-01 Thread Bastian Koppelmann
Add instructions of SLR, SSRO and SRO opcode format. Signed-off-by: Bastian Koppelmann Reviewed-by: Richard Henderson --- target-tricore/translate.c | 121 + 1 file changed, 121 insertions(+) diff --git a/target-tricore/translate.c b/target-tricore/

[Qemu-devel] [PATCH v7 07/15] target-tricore: Add instructions of SRR opcode format

2014-09-01 Thread Bastian Koppelmann
Add instructions of SRR opcode format. Add helper for add/sub_ssov. Signed-off-by: Bastian Koppelmann --- v6 -> v7: - CPUTRICOREState -> CPUTriCoreState. target-tricore/helper.h| 4 ++ target-tricore/op_helper.c | 43 target-tricore/translate.c | 164

Re: [Qemu-devel] [PATCH] qcow2: add update refcount table realization for update_refcount

2014-09-01 Thread Jun Li
Please ignore it. You could review v2 of this patch directly. Thx. On Mon, 09/01 01:22, Jun Li wrote: > When every item of refcount block is NULL, free refcount block and reset the > corresponding item of refcount table with NULL. > > Signed-off-by: Jun Li > --- > block/qcow2-refcount.c | 31 ++

[Qemu-devel] [PATCH v7 15/15] target-tricore: Add instructions of SR opcode format

2014-09-01 Thread Bastian Koppelmann
Add instructions of SR opcode format. Add micro-op generator functions for saturate. Add helper return from exception (rfe). Signed-off-by: Bastian Koppelmann --- v6 -> v7: - CPUTRICOREState -> CPUTriCoreState. target-tricore/helper.h| 1 + target-tricore/op_helper.c | 52 +++

[Qemu-devel] [PATCH v7 13/15] target-tricore: Add instructions of SC opcode format

2014-09-01 Thread Bastian Koppelmann
Add instructions of SC opcode format. Add helper for begin interrupt service routine. Signed-off-by: Bastian Koppelmann --- v6 -> v7: - CPUTRICOREState -> CPUTriCoreState. target-tricore/helper.h| 1 + target-tricore/op_helper.c | 59 ++ targ

Re: [Qemu-devel] [v3][PATCH 1/1] hw/pci-assign: split pci-assign.c

2014-09-01 Thread Chen, Tiejun
On 2014/9/1 18:46, Michael S. Tsirkin wrote: On Mon, Sep 01, 2014 at 06:36:47PM +0800, Tiejun Chen wrote: We will try to reuse assign_dev_load_option_rom in xen side, and especially its a good beginning to unify pci assign codes both on kvm and xen in the future. Signed-off-by: Tiejun Chen ---

Re: [Qemu-devel] [v3][PATCH 1/1] hw/pci-assign: split pci-assign.c

2014-09-01 Thread Michael S. Tsirkin
On Mon, Sep 01, 2014 at 06:56:55PM +0800, Chen, Tiejun wrote: > On 2014/9/1 18:46, Michael S. Tsirkin wrote: > >On Mon, Sep 01, 2014 at 06:36:47PM +0800, Tiejun Chen wrote: > >>We will try to reuse assign_dev_load_option_rom in xen side, and > >>especially its a good beginning to unify pci assign c

Re: [Qemu-devel] [PATCH v2] qcow2: add update refcount table realization for update_refcount

2014-09-01 Thread Benoît Canet
The Monday 01 Sep 2014 à 18:52:48 (+0800), Jun Li wrote : > When every item of refcount block is NULL, free refcount block and reset the > corresponding item of refcount table with NULL. > > Signed-off-by: Jun Li > --- > > The v2 do following change to modify some potential issue. > >

Re: [Qemu-devel] [v3][PATCH 1/1] hw/pci-assign: split pci-assign.c

2014-09-01 Thread Chen, Tiejun
On 2014/9/1 19:08, Michael S. Tsirkin wrote: On Mon, Sep 01, 2014 at 06:56:55PM +0800, Chen, Tiejun wrote: On 2014/9/1 18:46, Michael S. Tsirkin wrote: On Mon, Sep 01, 2014 at 06:36:47PM +0800, Tiejun Chen wrote: We will try to reuse assign_dev_load_option_rom in xen side, and especially its a

Re: [Qemu-devel] [PATCH 1/2] qcow2: Drop REFCOUNT_SHIFT

2014-09-01 Thread Benoît Canet
The Friday 29 Aug 2014 à 23:45:26 (+0200), Max Reitz wrote : > With BDRVQcowState.refcount_block_bits, we don't need REFCOUNT_SHIFT > anymore. > > Signed-off-by: Max Reitz > --- > block/qcow2-refcount.c | 32 ++-- > block/qcow2.c | 2 +- > block/qcow2.h

Re: [Qemu-devel] [v3][PATCH 1/1] hw/pci-assign: split pci-assign.c

2014-09-01 Thread Michael S. Tsirkin
On Mon, Sep 01, 2014 at 07:15:42PM +0800, Chen, Tiejun wrote: > Michael, > > Thanks for this preview of IGD stuff patches, I already fixed these two > points in my tree. > > Then this mean the v3 patch should be fine to you? > > Thanks > Tiejun I'll know when I see it :)

Re: [Qemu-devel] [PATCH 1/5] target-ppc: Extend rtas-blob

2014-09-01 Thread Aravinda Prasad
On Monday 01 September 2014 01:16 PM, Alexey Kardashevskiy wrote: > On 08/25/2014 11:45 PM, Aravinda Prasad wrote: >> Extend rtas-blob to accommodate error log. Error log >> structure is saved in rtas space upon a machine check >> exception. >> >> Signed-off-by: Aravinda Prasad >> --- >> hw/ppc

Re: [Qemu-devel] [PATCH v2] rules.mak: Fix DSO build by pulling in archive symbols

2014-09-01 Thread Paolo Bonzini
Il 01/09/2014 12:59, Peter Maydell ha scritto: > > warning: > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm: > no name list > warning: > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm: > no name list > warning

[Qemu-devel] please start submitting gpg-signed pull requests if you aren't already

2014-09-01 Thread Peter Maydell
Hi; for a while now we've been slowly switching over to signed pull requests for merging code into qemu master. The current situation is that we would prefer signed tagged pull requests but are still accepting old ones, and many submaintainers are now using signed requests routinely. I'd like to mo

Re: [Qemu-devel] [libvirt] IO accounting overhaul

2014-09-01 Thread Markus Armbruster
Benoît Canet writes: > The Monday 01 Sep 2014 à 11:52:00 (+0200), Markus Armbruster wrote : >> Cc'ing libvirt following Stefan's lead. >> >> Benoît Canet writes: >> >> > Hi, >> > >> > I collected some items of a cloud provider wishlist regarding I/O >> > accouting. >> >> Feedback from real p

Re: [Qemu-devel] [PATCH v2] rules.mak: Fix DSO build by pulling in archive symbols

2014-09-01 Thread Peter Maydell
On 1 September 2014 12:28, Paolo Bonzini wrote: > Il 01/09/2014 12:59, Peter Maydell ha scritto: >> >> warning: >> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm: >> no name list >> warning: >> /Applications/Xcode.app/Contents/Developer/Toolchains/Xcode

Re: [Qemu-devel] [PATCH v1 3/5] Netduino_SYSCFG: Add the Netduino Plus 2 SYSCFG

2014-09-01 Thread Alistair Francis
On Sun, Aug 24, 2014 at 1:09 PM, Peter Crosthwaite wrote: > On Sun, Aug 24, 2014 at 10:14 AM, Alistair Francis > wrote: >> This patch adds the Netduino Plus 2 System Configuration >> Controller. This is used to configure what memory is mapped >> at address 0 (although that is not supported) as w

Re: [Qemu-devel] [PATCH] KVM_CAP_IRQFD and KVM_CAP_IRQFD_RESAMPLE checks

2014-09-01 Thread Eric Auger
On 09/01/2014 12:49 PM, Paolo Bonzini wrote: > Il 29/08/2014 19:38, Eric Auger ha scritto: >> Compute kvm_irqfds_allowed by checking the KVM_CAP_IRQFD extension. >> Remove direct settings in architecture specific files. >> >> Add a new kvm_resamplefds_allowed variable, initialized by >> checking th

[Qemu-devel] [PATCH v2 2/5] target-arm: do not set do_interrupt handler for AArch64 user mode

2014-09-01 Thread Ard Biesheuvel
From: Rob Herring User mode emulation should never get interrupts and thus should not use the system emulation exception handler function. Remove the reference, and '#ifndef USER_MODE_ONLY' the function itself as well, so that we can add system mode only functionality to it. Signed-off-by: Rob H

[Qemu-devel] [PATCH v2 0/5] ARM: add PSCI 0.2 support in TCG mode

2014-09-01 Thread Ard Biesheuvel
This series adds PSCI support to ARM and AArch64 system emulation when running in TCG mode. As PSCI calls can be made using either hypervisor call (HVC) or secure monitor call (SMC) instructions, support is added for handling those in patch #3 before patch #4 adds the actual PSCI dispatch logic. Pa

[Qemu-devel] [PATCH v2 1/5] target-arm: add powered off cpu state

2014-09-01 Thread Ard Biesheuvel
From: Rob Herring Add tracking of cpu power state in order to support powering off of cores in system emuluation. The initial state is determined by the start-powered-off QOM property. Signed-off-by: Rob Herring Signed-off-by: Ard Biesheuvel --- target-arm/cpu-qom.h | 2 ++ target-arm/cpu.c

[Qemu-devel] [PATCH v2 3/5] target-arm: add hvc and smc exception emulation handling infrastructure

2014-09-01 Thread Ard Biesheuvel
From: Rob Herring Add the infrastructure to handle and emulate hvc and smc exceptions. This will enable emulation of things such as PSCI calls. This commit does not change the behavior and will exit with unknown exception. Signed-off-by: Rob Herring Signed-off-by: Ard Biesheuvel --- target-ar

[Qemu-devel] [PATCH v2 4/5] target-arm: add emulation of PSCI calls for system emulation

2014-09-01 Thread Ard Biesheuvel
From: Rob Herring Add support for handling PSCI calls in system emulation. Both version 0.1 and 0.2 of the PSCI spec are supported. Platforms can enable support by setting "psci-method" QOM property on the cpus to SMC or HVC emulation and having PSCI binding in their dtb. Signed-off-by: Rob Herr

[Qemu-devel] [PATCH v2 5/5] arm/virt: enable PSCI emulation support for system emulation

2014-09-01 Thread Ard Biesheuvel
From: Rob Herring Now that we have PSCI emulation, enable it for the virt platform. This simplifies the virt machine a bit now that PSCI no longer needs to be a KVM only feature. Signed-off-by: Rob Herring Signed-off-by: Ard Biesheuvel --- hw/arm/virt.c | 70 +-

Re: [Qemu-devel] [PATCH v2] rules.mak: Fix DSO build by pulling in archive symbols

2014-09-01 Thread Paolo Bonzini
Il 01/09/2014 13:46, Peter Maydell ha scritto: > So we could fix this by not compiling empty files... Easy for int128, even easier for getauxval (it's not a fastpath, so we can move the "always return 0" version from include/qemu/osdep.h to util/getauxval.c). I'm not sure how to detect that there

Re: [Qemu-devel] [PATCH v2 4/5] target-arm: add emulation of PSCI calls for system emulation

2014-09-01 Thread Peter Maydell
On 1 September 2014 12:55, Ard Biesheuvel wrote: > From: Rob Herring > > Add support for handling PSCI calls in system emulation. Both version > 0.1 and 0.2 of the PSCI spec are supported. Platforms can enable support > by setting "psci-method" QOM property on the cpus to SMC or HVC > emulation a

Re: [Qemu-devel] [PATCH v2] rules.mak: Fix DSO build by pulling in archive symbols

2014-09-01 Thread Peter Maydell
On 1 September 2014 13:04, Paolo Bonzini wrote: > Il 01/09/2014 13:46, Peter Maydell ha scritto: >> So we could fix this by not compiling empty files... > > Easy for int128, even easier for getauxval (it's not a fastpath, so we > can move the "always return 0" version from include/qemu/osdep.h to

Re: [Qemu-devel] [PATCH v1 5/5] Netduino: Add the Netduino Plus 2 Machine Model

2014-09-01 Thread Alistair Francis
On Sun, Aug 24, 2014 at 11:20 PM, Peter Crosthwaite wrote: > On Sun, Aug 24, 2014 at 10:14 AM, Alistair Francis > wrote: >> This patch adds the Netduion Plus 2 machine to QEMU. >> >> Signed-off-by: Alistair Francis >> --- >> hw/arm/Makefile.objs | 2 +- >> hw/arm/netduinoplus2.c | 202 >>

Re: [Qemu-devel] [question] virtio-blk performance degradationhappened with virito-serial

2014-09-01 Thread Zhang Haoyu
>> Hi, all >> >> I start a VM with virtio-serial (default ports number: 31), and found that >> virtio-blk performance degradation happened, about 25%, this problem can be >> reproduced 100%. >> without virtio-serial: >> 4k-read-random 1186 IOPS >> with virtio-serial: >> 4k-read-random 871 IOPS >

Re: [Qemu-devel] qcow2, lazy_refcounts and killing qemu

2014-09-01 Thread Greg Kurz
On Sat, 30 Aug 2014 15:53:13 +0100 "Richard W.M. Jones" wrote: > I found out a few days ago that if you: > > (1) Open a qcow2 file that has lazy_refcounts = on and a backing file, and > > (2) Write lots of stuff, and > > (3) Kill qemu with SIGTERM [which I believed, maybe incorrectly, is a > "n

Re: [Qemu-devel] [PATCH v1 5/5] Netduino: Add the Netduino Plus 2 Machine Model

2014-09-01 Thread Peter Maydell
On 1 September 2014 13:34, Alistair Francis wrote: > On Sun, Aug 24, 2014 at 11:20 PM, Peter Crosthwaite > wrote: >> Most of this function is the same as armv7m_init(). This seems the be >> the main difference - the SRAM and FLASH setup. Everything else is >> board-level additive. The fact that i

Re: [Qemu-devel] [question] virtio-blk performance degradationhappened with virito-serial

2014-09-01 Thread Amit Shah
On (Mon) 01 Sep 2014 [20:38:20], Zhang Haoyu wrote: > >> Hi, all > >> > >> I start a VM with virtio-serial (default ports number: 31), and found that > >> virtio-blk performance degradation happened, about 25%, this problem can > >> be reproduced 100%. > >> without virtio-serial: > >> 4k-read-ra

Re: [Qemu-devel] [PATCH v7 02/15] target-tricore: Add board for systemmode

2014-09-01 Thread Peter Maydell
On 1 September 2014 12:59, Bastian Koppelmann wrote: > Add basic board to allow systemmode emulation > > Signed-off-by: Bastian Koppelmann > --- > v6 -> v7: > - TRICORECPU -> TriCoreCPU. > - CPUTRICOREState -> CPUTriCoreState. > - tricore_testboard.c: Change Licence to GPL v2. > + *

Re: [Qemu-devel] [question] virtio-blk performance degradationhappened with virito-serial

2014-09-01 Thread Zhang Haoyu
>>> Hi, all >>> >>> I start a VM with virtio-serial (default ports number: 31), and found that >>> virtio-blk performance degradation happened, about 25%, this problem can be >>> reproduced 100%. >>> without virtio-serial: >>> 4k-read-random 1186 IOPS >>> with virtio-serial: >>> 4k-read-random 8

[Qemu-devel] [PULL 10/19] pc-bios/s390-ccw: Do proper console setup

2014-09-01 Thread Christian Borntraeger
The final newline/return must happen before we reset the sclp via diag 308. Signed-off-by: Christian Borntraeger Reviewed-by: David Hildenbrand Acked-by: Cornelia Huck Signed-off-by: Jens Freimann Signed-off-by: Christian Borntraeger --- pc-bios/s390-ccw/bootmap.c | 10 +- 1 file cha

[Qemu-devel] [PULL 11/19] pc-bios/s390-ccw.img binary update

2014-09-01 Thread Christian Borntraeger
From: "Eugene (jno) Dvurechenski" Rebuild of s390-ccw.img containing these patches: pc-bios/s390-ccw: Do proper console setup pc-bios/s390-ccw: support all virtio block size pc-bios/s390-ccw: handle more ECKD DASD block sizes pc-bios/s390-ccw Improve ECKD informational message pc-bios/

[Qemu-devel] [PULL 02/19] s390x/kvm: execute sigp orders on the target vcpu thread

2014-09-01 Thread Christian Borntraeger
From: David Hildenbrand All sigp orders that can result in ioctls on the target vcpu should be executed on the associated vcpu thread. Reviewed-by: Cornelia Huck Acked-by: Christian Borntraeger Signed-off-by: David Hildenbrand Signed-off-by: Jens Freimann Signed-off-by: Christian Borntraeger

[Qemu-devel] [PULL 00/19] s390x/kvm: Several updates/fixes/features

2014-09-01 Thread Christian Borntraeger
u.git tags/kvm-s390-20140901 for you to fetch changes up to 218829db2303e3d61f901f1d12fd4f7cd03644e1: s390x/gdb: coding style fixes (2014-09-01 09:45:19 +0200) s390x/kvm: Several updates/fixes/features 1. s390x/kvm: avoid synchroniz

[Qemu-devel] [PULL 07/19] pc-bios/s390-ccw Improve ECKD informational message

2014-09-01 Thread Christian Borntraeger
From: "Eugene (jno) Dvurechenski" Add block size display to ECKD scheme report. Signed-off-by: Eugene (jno) Dvurechenski Reviewed-by: David Hildenbrand Acked-by: Christian Borntraeger Acked-by: Cornelia Huck Signed-off-by: Jens Freimann Signed-off-by: Christian Borntraeger --- pc-bios/s39

[Qemu-devel] [PULL 12/19] sclp-s390: Add device to manage s390 memory hotplug

2014-09-01 Thread Christian Borntraeger
From: Matthew Rosato Add sclpMemoryHotplugDev to contain associated data structures, etc. Signed-off-by: Matthew Rosato Signed-off-by: Christian Borntraeger --- hw/s390x/sclp.c | 30 ++ include/hw/s390x/sclp.h | 20 2 files changed, 50

[Qemu-devel] [PULL 01/19] s390x/kvm: run guest triggered resets on the target vcpu thread

2014-09-01 Thread Christian Borntraeger
From: David Hildenbrand Currently, load_normal_reset() and modified_clear_reset() as triggered by a guest vcpu will initiate cpu resets on the current vcpu thread for all cpus. The reset should happen on the individual vcpu thread instead, so let's use run_on_cpu() for this. This avoids calls to

[Qemu-devel] [PULL 15/19] sclp-s390: Add memory hotplug SCLPs

2014-09-01 Thread Christian Borntraeger
From: Matthew Rosato Add memory information to read SCP info and add handlers for Read Storage Element Information, Attach Storage Element, Assign Storage and Unassign Storage. Signed-off-by: Matthew Rosato Signed-off-by: Christian Borntraeger --- hw/s390x/sclp.c| 259

[Qemu-devel] [PULL 04/19] s390x/kvm: execute the first cpu reset on the vcpu thread

2014-09-01 Thread Christian Borntraeger
From: David Hildenbrand As all full cpu resets currently call into the kernel to do initial cpu reset, let's run this reset (triggered by cpu_s390x_init()) on the proper vcpu thread. Reviewed-by: Cornelia Huck Acked-by: Christian Borntraeger Signed-off-by: David Hildenbrand Signed-off-by: Jen

[Qemu-devel] [PULL 03/19] s390x/kvm: execute "system reset" cpu resets on the vcpu thread

2014-09-01 Thread Christian Borntraeger
From: David Hildenbrand Let's execute resets triggered by qemu system resets on the target vcpu thread. This will avoid synchronize_rcu's in the kernel. Reviewed-by: Cornelia Huck Acked-by: Christian Borntraeger Signed-off-by: David Hildenbrand Signed-off-by: Jens Freimann Signed-off-by: Chr

[Qemu-devel] [PULL 06/19] pc-bios/s390-ccw: handle more ECKD DASD block sizes

2014-09-01 Thread Christian Borntraeger
From: "Eugene (jno) Dvurechenski" Using dasdfmt(8) to format a DASD allows to choose a block size. There are four supported values: 512, 1024, 2048, and 4096 bytes per block. Each block size leads to selection of new count of sectors per track. The head count remains always the same: 15. This em

[Qemu-devel] [PULL 13/19] virtio-ccw: Include standby memory when calculating storage increment

2014-09-01 Thread Christian Borntraeger
From: Matthew Rosato When determining the memory increment size, use the maxmem size if it was specified. Signed-off-by: Matthew Rosato Signed-off-by: Christian Borntraeger --- hw/s390x/s390-virtio-ccw.c | 46 ++ qemu-options.hx| 3 ++-

[Qemu-devel] [PULL 09/19] pc-bios/s390-ccw: IPL from DASD with format variations

2014-09-01 Thread Christian Borntraeger
From: "Eugene (jno) Dvurechenski" There are two known cases of DASD format where signatures are incomplete or absent: 1. result of (ECKD_LDL_UNLABELED) 2. CDL with zero keys in IPL1 and IPL2 records Now the code attempts to 1. find zIPL and use SCSI layout 2. find IPL1 and use CDL layout 3. fi

[Qemu-devel] [PULL 08/19] pc-bios/s390-ccw Really big EAV ECKD DASD handling

2014-09-01 Thread Christian Borntraeger
From: "Eugene (jno) Dvurechenski" For EAV ECKD DASD, the cylinder count will have the magic value 0xfffeU. Therefore, use the block number to test for valid eckd addresses instead. Signed-off-by: Eugene (jno) Dvurechenski Acked-by: Cornelia Huck Acked-by: Christian Borntraeger Reviewed-by: Da

[Qemu-devel] [PULL 14/19] s390-virtio: Apply same memory boundaries as virtio-ccw

2014-09-01 Thread Christian Borntraeger
From: Matthew Rosato Although s390-virtio won't support memory hotplug, it should enforce the same memory boundaries so that it can use shared codepaths (like read_SCP_info). Signed-off-by: Matthew Rosato Signed-off-by: Christian Borntraeger --- hw/s390x/s390-virtio.c | 15 +-- 1

[Qemu-devel] [PULL 17/19] s390x/gdb: add the feature xml files for s390x

2014-09-01 Thread Christian Borntraeger
From: David Hildenbrand This patch adds the relevant s390x feature xml files taken from gdb. Signed-off-by: David Hildenbrand Acked-by: Cornelia Huck Acked-by: Christian Borntraeger Signed-off-by: Jens Freimann Signed-off-by: Christian Borntraeger --- configure| 1 + gdb-x

[Qemu-devel] [PULL 18/19] s390x/gdb: generate target.xml and handle fp/ac as coprocessors

2014-09-01 Thread Christian Borntraeger
From: David Hildenbrand This patch reduces the core registers to the psw and the general purpose registers. The fpc and ac registers are handled as coprocessors registers by gdb. This allows to reuse the feature xml files taken from gdb without further modification and is what other architecture

[Qemu-devel] [PULL 16/19] s390x/gdb: don't touch the cc if tcg is not enabled

2014-09-01 Thread Christian Borntraeger
From: David Hildenbrand When reading/writing the psw mask, the condition code may only be touched if running on tcg. Signed-off-by: David Hildenbrand Signed-off-by: Jens Freimann Signed-off-by: Christian Borntraeger --- target-s390x/gdbstub.c | 14 ++ 1 file changed, 10 insertion

[Qemu-devel] [PULL 05/19] pc-bios/s390-ccw: support all virtio block size

2014-09-01 Thread Christian Borntraeger
From: "Eugene (jno) Dvurechenski" The block size value may be given "as is" OR as a base value and a shift count (exponent). So, we have to use calculation to get the proper number in the code. The main expression reads as (blk_cfg.blk_size << blk_cfg.physical_block_exp) E.g., various c

[Qemu-devel] [PULL 19/19] s390x/gdb: coding style fixes

2014-09-01 Thread Christian Borntraeger
From: David Hildenbrand This patch cleanes up two coding style issues (missing whitespaces). Signed-off-by: David Hildenbrand Acked-by: Cornelia Huck Acked-by: Christian Borntraeger Signed-off-by: Jens Freimann Signed-off-by: Christian Borntraeger --- target-s390x/gdbstub.c | 4 ++-- 1 fil

Re: [Qemu-devel] qcow2, lazy_refcounts and killing qemu

2014-09-01 Thread Richard W.M. Jones
On Mon, Sep 01, 2014 at 02:41:02PM +0200, Greg Kurz wrote: > On Sat, 30 Aug 2014 15:53:13 +0100 > "Richard W.M. Jones" wrote: > > I can reproduce this easily, although of course the reproducer will > > involve libguestfs. > > > > Rich. > > > > Can you share this reproducer ? The immediate repr

Re: [Qemu-devel] [question] virtio-blk performancedegradationhappened with virito-serial

2014-09-01 Thread Zhang Haoyu
>> >> Hi, all >> >> >> >> I start a VM with virtio-serial (default ports number: 31), and found >> >> that virtio-blk performance degradation happened, about 25%, this problem >> >> can be reproduced 100%. >> >> without virtio-serial: >> >> 4k-read-random 1186 IOPS >> >> with virtio-serial: >> >

Re: [Qemu-devel] [PATCH v7 02/15] target-tricore: Add board for systemmode

2014-09-01 Thread Bastian Koppelmann
Hi Peter, On 09/01/2014 01:48 PM, Peter Maydell wrote: On 1 September 2014 12:59, Bastian Koppelmann wrote: Add basic board to allow systemmode emulation Signed-off-by: Bastian Koppelmann --- v6 -> v7: - TRICORECPU -> TriCoreCPU. - CPUTRICOREState -> CPUTriCoreState. - tricore

Re: [Qemu-devel] [question] virtio-blk performance degradationhappened with virito-serial

2014-09-01 Thread Christian Borntraeger
On 01/09/14 14:52, Zhang Haoyu wrote: Hi, all I start a VM with virtio-serial (default ports number: 31), and found that virtio-blk performance degradation happened, about 25%, this problem can be reproduced 100%. without virtio-serial: 4k-read-random 1186 IOPS

Re: [Qemu-devel] [question] virtio-blk performance degradationhappened with virito-serial

2014-09-01 Thread Paolo Bonzini
Il 01/09/2014 15:09, Christian Borntraeger ha scritto: > This is just wild guessing: > If virtio-blk and virtio-serial share an IRQ, the guest operating system has > to check each virtqueue for activity. Maybe there is some inefficiency doing > that. > AFAIK virtio-serial registers 64 virtqueues

Re: [Qemu-devel] [question] virtio-blk performance degradationhappened with virito-serial

2014-09-01 Thread Christian Borntraeger
On 01/09/14 15:12, Paolo Bonzini wrote: > Il 01/09/2014 15:09, Christian Borntraeger ha scritto: >> This is just wild guessing: >> If virtio-blk and virtio-serial share an IRQ, the guest operating system has >> to check each virtqueue for activity. Maybe there is some inefficiency doing >> that.

Re: [Qemu-devel] [question] virtio-blk performance degradationhappened with virito-serial

2014-09-01 Thread Paolo Bonzini
Il 01/09/2014 15:22, Christian Borntraeger ha scritto: > > > If virtio-blk and virtio-serial share an IRQ, the guest operating system > > > has to check each virtqueue for activity. Maybe there is some > > > inefficiency doing that. > > > AFAIK virtio-serial registers 64 virtqueues (on 31 ports +

[Qemu-devel] [PATCH v3 3/3] pcie: remove confused comments

2014-09-01 Thread arei.gonglei
From: Gonglei The below functions is not allocation funcitons, but find helper function. The only allocation function is pcie_add_capability(), but its argument names is not the same with the comments. So remove this comments which make people confused. Signed-off-by: Gonglei --- hw/pci/pcie.c

[Qemu-devel] [PATCH v3 0/3] add check for PCIe root ports and downstream ports

2014-09-01 Thread arei.gonglei
From: Gonglei Root ports and downstream ports of switches are the hot pluggable ports in a PCI Express hierarchy. PCI Express supports chip-to-chip interconnect, a PCIe link can only connect one pci device/Switch/EndPoint or PCI-bridge. 7.3. Configuration Transaction Rules (PCI Express specifica

[Qemu-devel] [PATCH v3 2/3] pcie: add check for ari capability of pcie devices

2014-09-01 Thread arei.gonglei
From: Gonglei In QEMU, ARI Forwarding is enabled defualt at emulation of PCIe ports. ARI Forwarding enable setting at firmware/OS Control handoff. If the bit is Set when a non-ARI Device is present, the non-ARI Device can respond to Configuration Space accesses under what it interprets as being d

[Qemu-devel] [PATCH v3 1/3] qdev: Introduce a function to get qbus's parent

2014-09-01 Thread arei.gonglei
From: Gonglei We may use it check type of qbus's parent. Signed-off-by: Gonglei --- hw/core/qdev.c | 9 + include/hw/qdev-core.h | 1 + 2 files changed, 10 insertions(+) diff --git a/hw/core/qdev.c b/hw/core/qdev.c index da1ba48..e42d313 100644 --- a/hw/core/qdev.c +++ b/hw/co

Re: [Qemu-devel] [libvirt] IO accounting overhaul

2014-09-01 Thread Benoît Canet
The Monday 01 Sep 2014 à 13:41:01 (+0200), Markus Armbruster wrote : > Benoît Canet writes: > > > The Monday 01 Sep 2014 à 11:52:00 (+0200), Markus Armbruster wrote : > >> Cc'ing libvirt following Stefan's lead. > >> > >> Benoît Canet writes: > >> > >> > Hi, > >> > > >> > I collected some item

Re: [Qemu-devel] [PULL 00/19] s390x/kvm: Several updates/fixes/features

2014-09-01 Thread Peter Maydell
:15 +0100) > > are available in the git repository at: > > > git://github.com/borntraeger/qemu.git tags/kvm-s390-20140901 > > for you to fetch changes up to 218829db2303e3d61f901f1d12fd4f7cd03644e1: > >

[Qemu-devel] [Bug 1362635] Re: bdrv_read co-routine re-entered recursively

2014-09-01 Thread senya
It seems like I only need to put all my bdrv_read's into one co-routine and start it -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1362635 Title: bdrv_read co-routine re-entered recursively Status

Re: [Qemu-devel] [PATCH v2 0/5] ARM: add PSCI 0.2 support in TCG mode

2014-09-01 Thread Peter Maydell
On 1 September 2014 12:55, Ard Biesheuvel wrote: > Currently, booting multiple cores under TCG is unstable, so the restriction > to 1 cpu in TCG mode is retained for now. However, PSCI reset and poweroff are > supported. This is worrying, incidentally. What's the instability? Last time I tried Ro

Re: [Qemu-devel] [question] virtio-blk performance degradationhappened with virito-serial

2014-09-01 Thread Christian Borntraeger
On 01/09/14 15:29, Paolo Bonzini wrote: > Il 01/09/2014 15:22, Christian Borntraeger ha scritto: If virtio-blk and virtio-serial share an IRQ, the guest operating system has to check each virtqueue for activity. Maybe there is some inefficiency doing that. AFAIK virtio-serial

Re: [Qemu-devel] [question] virtio-blk performance degradationhappened with virito-serial

2014-09-01 Thread Christian Borntraeger
On 01/09/14 16:03, Christian Borntraeger wrote: > On 01/09/14 15:29, Paolo Bonzini wrote: >> Il 01/09/2014 15:22, Christian Borntraeger ha scritto: > If virtio-blk and virtio-serial share an IRQ, the guest operating system > has to check each virtqueue for activity. Maybe there is some >>

Re: [Qemu-devel] qcow2, lazy_refcounts and killing qemu

2014-09-01 Thread Richard W.M. Jones
A test case, attached. Note that you have to look at the output of the final qemu-img info command. In the case where it goes wrong, the 'backing file:' and 'backing file format:' lines disappear completely. In the case where the bug is not reproduced, these lines are still present. It's 100% r

Re: [Qemu-devel] qcow2, lazy_refcounts and killing qemu

2014-09-01 Thread Richard W.M. Jones
> # Write stuff to the overlay. > guestfish < add-drive overlay.qcow2 format:qcow2 cachemode:unsafe To head off any suggestions, removing cachemode:unsafe doesn't fix it. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualizat

Re: [Qemu-devel] qcow2, lazy_refcounts and killing qemu

2014-09-01 Thread Greg Kurz
On Mon, 1 Sep 2014 15:19:28 +0100 "Richard W.M. Jones" wrote: > A test case, attached. > > Note that you have to look at the output of the final qemu-img info > command. In the case where it goes wrong, the 'backing file:' and > 'backing file format:' lines disappear completely. In the case wh

Re: [Qemu-devel] [RFC V2 0/8] Throttle group cooperative round robin scheduling

2014-09-01 Thread Benoît Canet
On Wed, Aug 20, 2014 at 02:27:06PM +, Benoît Canet wrote: > On Wed, Aug 13, 2014 at 04:23:51PM +0200, Benoît Canet wrote: > > Hi, > > > > Here is my current wip on the throttle group support. > > > > For the user interface I implemented Stefanha's idea proposed in Stuttgart. > > > > For the

Re: [Qemu-devel] [PATCH v7 00/15] TriCore architecture guest implementation

2014-09-01 Thread Peter Maydell
On 1 September 2014 12:59, Bastian Koppelmann wrote: > Hi, > > my aim is to add Infineon's TriCore architecture to QEMU. This series of > patches adds the target stubs, a basic testboard and a softmmu for system > mode emulation. Furthermore it adds all the 16 bit long instructions of the > arc

[Qemu-devel] [PATCH 0/2] qemu-img: src_mode option documentation improvements

2014-09-01 Thread Stefan Hajnoczi
These patches clarify and fix the documentation for the recent qemu-img src_mode (-T) option. Stefan Hajnoczi (2): qemu-img: clarify src_cache option documentation qemu-img: fix rebase src_cache option documentation qemu-img.c| 3 ++- qemu-img.texi | 7 --- 2 files changed, 6 inserti

[Qemu-devel] [PATCH 1/2] qemu-img: clarify src_cache option documentation

2014-09-01 Thread Stefan Hajnoczi
The source cache option takes the same values as the cache option. The documentation reads a little strange because it starts with "In contrast the src_cache option ...". The fact that this is comparing with the previous documented option (the 'cache' option) is implicit. Readers may be confused

[Qemu-devel] [PATCH 2/2] qemu-img: fix rebase src_cache option documentation

2014-09-01 Thread Stefan Hajnoczi
The src_cache option (-T) specifies the cache mode for backing files. It applies both the image's old backing file as well as the new backing file: ret = bdrv_open(&bs_old_backing, backing_name, NULL, NULL, src_flags, old_backing_drv, &local_err); if (ret) { ... } i

Re: [Qemu-devel] [PATCH] block: kill tail whitespace in block.c

2014-09-01 Thread Stefan Hajnoczi
On Mon, Sep 01, 2014 at 01:35:21PM +0800, Liu Yuan wrote: > Cc: Kevin Wolf > Cc: Stefan Hajnoczi > Signed-off-by: Liu Yuan > --- > block.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan pgpRbGkd

Re: [Qemu-devel] [PULL 09/35] block/quorum: add simple read pattern support

2014-09-01 Thread Stefan Hajnoczi
On Fri, Aug 29, 2014 at 06:47:01PM +0200, Benoît Canet wrote: > The Friday 29 Aug 2014 à 17:29:37 (+0100), Stefan Hajnoczi wrote : > > Cc: Benoit Canet > > Cc: Eric Blake > > Cc: Kevin Wolf > > Cc: Stefan Hajnoczi > > Signed-off-by: Liu Yuan > > Signed-off-by: Stefan Hajnoczi > > Here again

Re: [Qemu-devel] [PATCH] block/iscsi: use 16 byte CDBs only when necessary

2014-09-01 Thread Peter Lieven
On 17.06.2014 13:46, Paolo Bonzini wrote: Il 17/06/2014 13:37, Peter Lieven ha scritto: On 17.06.2014 13:15, Paolo Bonzini wrote: Il 17/06/2014 08:14, Peter Lieven ha scritto: BTW, while debugging a case with a bigger storage supplier I found that open-iscsi seems to do exactly this undeter

Re: [Qemu-devel] [PATCH v7 2/7] tests: Add virtio device initialization

2014-09-01 Thread Stefan Hajnoczi
On Fri, Aug 29, 2014 at 05:59:37PM +0200, Paolo Bonzini wrote: > Il 29/08/2014 17:49, Stefan Hajnoczi ha scritto: > > for (i = 0; i < 8; ++i) { > > quad.bytes[i] = qpci_io_readb(dev->pdev, addr + i); > > } > > if (qtest_big_endian() != qtest_host_endian()) { > > quad.u64 = bswap64(quad.u64)

Re: [Qemu-devel] bug (bisected): qemu-system-sh4 serial console, ctrl-C kills emulator

2014-09-01 Thread Rob Landley
On 09/01/14 00:05, Rob Landley wrote: > If you grab http://landley.net/aboriginal/bin/qemu-system-sh4.tar.bz2 > extract it and ./run-emulator.sh (which is a fairly straightforward > qemu-system-sh4 invocation on the included kernel image and squashfs > root filesystem), older qemu versions would ru

Re: [Qemu-devel] bug (bisected): qemu-system-sh4 serial console, ctrl-C kills emulator

2014-09-01 Thread Rob Landley
On 09/01/14 03:07, Paolo Bonzini wrote: > Il 01/09/2014 07:05, Rob Landley ha scritto: >> If you grab http://landley.net/aboriginal/bin/qemu-system-sh4.tar.bz2 >> extract it and ./run-emulator.sh (which is a fairly straightforward >> qemu-system-sh4 invocation on the included kernel image and squas

Re: [Qemu-devel] [Bug 1362635] Re: bdrv_read co-routine re-entered recursively

2014-09-01 Thread Stefan Hajnoczi
On Mon, Sep 01, 2014 at 07:55:22AM -, senya wrote: > I'm trying to reanimate github.com/jagane/qemu-kvm-livebackup > there is a separate thread which connects with client through socket and > sends disk blocks to it. Regarding your original question about threads: it is possible to do block I

Re: [Qemu-devel] [PATCH 0/2] pflash (UEFI varstore) migration shortcut for libvirt

2014-09-01 Thread Stefan Hajnoczi
On Sat, Aug 23, 2014 at 12:19:05PM +0200, Laszlo Ersek wrote: > Libvirt is growing support for x86_64 OVMF guests: > > http://www.redhat.com/archives/libvir-list/2014-August/msg01045.html > > An important feature of such guests is the persistent store for > non-volatile UEFI variables. This is im

Re: [Qemu-devel] [PATCH] hw/arm/virt: add linux, stdout-path to /chosen DT node

2014-09-01 Thread Peter Maydell
On 29 August 2014 14:03, Ard Biesheuvel wrote: > Add a property "linux,stdout-path" to the /chosen DT node and make > it point to the emulated UART. This allows users such as the Linux > kernel to produce console output without the need to pass console= > or earlycon=pl011,0x... command line argum

Re: [Qemu-devel] [PATCH v2 0/5] ARM: add PSCI 0.2 support in TCG mode

2014-09-01 Thread Ard Biesheuvel
On 1 September 2014 15:50, Peter Maydell wrote: > On 1 September 2014 12:55, Ard Biesheuvel wrote: >> Currently, booting multiple cores under TCG is unstable, so the restriction >> to 1 cpu in TCG mode is retained for now. However, PSCI reset and poweroff >> are >> supported. > > This is worryin

Re: [Qemu-devel] [PATCH v2] qcow2: add update refcount table realization for update_refcount

2014-09-01 Thread Jun Li
On Mon, 09/01 13:11, Benoît Canet wrote: > The Monday 01 Sep 2014 à 18:52:48 (+0800), Jun Li wrote : > > When every item of refcount block is NULL, free refcount block and reset the > > corresponding item of refcount table with NULL. > > > > Signed-off-by: Jun Li > > --- > > > > The v2 do follow

Re: [Qemu-devel] [PATCH v8 5/7] libqos: Added test case for configuration changes in virtio-blk test

2014-09-01 Thread Greg Kurz
On Mon, 1 Sep 2014 12:07:58 +0200 Marc Marí wrote: > Reviewed-by: Stefan Hajnoczi > Signed-off-by: Marc Marí > --- Hi Marc, I gave it a try for various host/target combinations involving ppc64 and x86_64. Here is what I get: | x86_64 |ppc64| TARGET ++-

Re: [Qemu-devel] [PATCH v2 4/5] target-arm: add emulation of PSCI calls for system emulation

2014-09-01 Thread Ard Biesheuvel
On 1 September 2014 14:04, Peter Maydell wrote: > On 1 September 2014 12:55, Ard Biesheuvel wrote: >> From: Rob Herring >> >> Add support for handling PSCI calls in system emulation. Both version >> 0.1 and 0.2 of the PSCI spec are supported. Platforms can enable support >> by setting "psci-meth

Re: [Qemu-devel] [RFC PATCH v6 00/14] Reverse execution.

2014-09-01 Thread Paolo Bonzini
Il 03/07/2014 16:33, fred.kon...@greensocs.com ha scritto: > From: KONRAD Frederic > > Hi everybody, > > This is the sixth version of this RFC (see the changes below). > > Those are the two first patch-set we have been worked on for reverse > execution. > > The first part is fully reviewed ex

Re: [Qemu-devel] [PATCH v8 5/7] libqos: Added test case for configuration changes in virtio-blk test

2014-09-01 Thread Marc Marí
El Mon, 1 Sep 2014 18:09:09 +0200 Greg Kurz escribió: > On Mon, 1 Sep 2014 12:07:58 +0200 > Marc Marí wrote: > > Reviewed-by: Stefan Hajnoczi > > Signed-off-by: Marc Marí > > --- > > Hi Marc, > > I gave it a try for various host/target combinations involving ppc64 > and x86_64. Here is what

<    1   2   3   >