Re: [Qemu-devel] [PATCH 1/7] qom: add object_property_add_alias()

2014-05-22 Thread Peter Crosthwaite
On Fri, May 23, 2014 at 12:38 AM, Stefan Hajnoczi wrote: > On Fri, May 23, 2014 at 12:02:44AM +1000, Peter Crosthwaite wrote: >> On Thu, May 22, 2014 at 6:22 AM, Stefan Hajnoczi wrote: >> > +void object_property_add_alias(Object *obj, const char *name, >> > + Object

Re: [Qemu-devel] [PATCH v3 3/7] iotests: Add default common.env

2014-05-22 Thread Fam Zheng
On Thu, 05/22 23:30, Max Reitz wrote: > Add a default common.env in case the one supposed to be emitted by > configure cannot be found. > > Signed-off-by: Max Reitz Now we can run both from in-tree build and out-of-tree build without this, which is already very good, but we need this patch to ru

[Qemu-devel] [PATCH v6 0/7] vfio: Prepare for SPAPR

2014-05-22 Thread Alexey Kardashevskiy
Yet another try with VFIO on SPAPR (server PPC64). After a previous try, the series was split into few smaller ones, first one was "spapr_pci: Prepare for VFIO" which prepares spapr_pci. This one is the second one and prepares vfio. Third one will be posted after series 1 and 2 meet in some extern

[Qemu-devel] [PATCH v6 1/7] memory: Sanity check that no listeners remain on a destroyed AddressSpace

2014-05-22 Thread Alexey Kardashevskiy
From: David Gibson At the moment, most AddressSpace objects last as long as the guest system in practice, but that could well change in future. In addition, for VFIO we will be introducing some private per-AdressSpace information, which must be disposed of before the AddressSpace itself is destr

[Qemu-devel] [PATCH v6 2/7] int128: Add int128_exts64()

2014-05-22 Thread Alexey Kardashevskiy
This adds macro to extend signed 64bit value to signed 128bit value. Signed-off-by: Alexey Kardashevskiy Reviewed-by: Paolo Bonzini --- Changes: v2: * (.hi = (a >> 63) ? -1 : 0) changed to (.hi = (a < 0) ? -1 : 0) --- include/qemu/int128.h | 5 + 1 file changed, 5 insertions(+) diff --git

[Qemu-devel] [PATCH v6 6/7] vfio: Create VFIOAddressSpace objects as needed

2014-05-22 Thread Alexey Kardashevskiy
From: David Gibson So far, VFIO has a notion of different logical DMA address spaces, but only ever uses one (system memory). This patch extends this, creating new VFIOAddressSpace objects as necessary, according to the AddressSpace reported by the PCI subsystem for this device's DMAs. This isn

[Qemu-devel] [PATCH v6 3/7] vfio: Fix 128 bit handling

2014-05-22 Thread Alexey Kardashevskiy
Upcoming VFIO on SPAPR PPC64 support will initialize the IOMMU memory region with UINT64_MAX (2^64 bytes) size so int128_get64() will assert. The patch takes care of this check. The existing type1 IOMMU code is not expected to map all 64 bits of RAM so the patch does not touch that part. Signed-o

[Qemu-devel] [PATCH v6 4/7] vfio: Rework to have error paths

2014-05-22 Thread Alexey Kardashevskiy
This reworks vfio_connect_container() and vfio_get_group() to have common exit path at the end of the function bodies. Signed-off-by: Alexey Kardashevskiy --- hw/misc/vfio.c | 60 -- 1 file changed, 33 insertions(+), 27 deletions(-) diff -

[Qemu-devel] [PATCH v6 7/7] vfio: Add guest side IOMMU support

2014-05-22 Thread Alexey Kardashevskiy
From: David Gibson This patch uses the new IOMMU notifiers to allow VFIO pass through devices to work with guest side IOMMUs, as long as the host-side VFIO iommu has sufficient capability and granularity to match the guest side. This works by tracking all map and unmap operations on the guest IOM

[Qemu-devel] [PATCH v6 5/7] vfio: Introduce VFIO address spaces

2014-05-22 Thread Alexey Kardashevskiy
From: David Gibson The only model so far supported for VFIO passthrough devices is the model usually used on x86, where all of the guest's RAM is mapped into the (host) IOMMU and there is no IOMMU visible in the guest. This patch begins to relax this model, introducing the notion of a VFIOAddres

[Qemu-devel] [PATCH] dma-helpers: avoid calling dma_bdrv_unmap() twice

2014-05-22 Thread Jules Wang
Calling dma_bdrv_unmap() twice is not necessary and may cause potential problems if some code changes. Signed-off-by: Jules Wang --- dma-helpers.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dma-helpers.c b/dma-helpers.c index 5f421e9..53cbe92 100644 --- a/dma-helpe

Re: [Qemu-devel] [PATCH v3 6/7] iotests: Drop Python version from 065's Shebang

2014-05-22 Thread Fam Zheng
On Thu, 05/22 23:30, Max Reitz wrote: > Test 065 specified python2 to be used in its Shebang; this might not > work on systems without a python2 symlink and furthermore it is now > counter-productive, as the check script compares the Shebang to > "#!/usr/bin/env python" and only uses the Python int

Re: [Qemu-devel] [PATCH v3 4/7] iotests: Source common.env

2014-05-22 Thread Fam Zheng
On Thu, 05/22 23:30, Max Reitz wrote: > Source common.env in the iotests' check script. If the one supposed to > be created by configure cannot be found, use common.env.default from the > source tree. > > Signed-off-by: Max Reitz > --- > tests/qemu-iotests/check | 16 > 1 file c

Re: [Qemu-devel] [PATCH v3 5/7] iotests: Use $PYTHON for Python scripts

2014-05-22 Thread Fam Zheng
On Thu, 05/22 23:30, Max Reitz wrote: > Instead of invoking Python scripts directly via ./, use $PYTHON to > obtain the correct Python interpreter command. > > Signed-off-by: Max Reitz > --- > tests/qemu-iotests/031 | 8 > tests/qemu-iotests/036 | 6 +++--- > tests/qemu-iotests/03

Re: [Qemu-devel] [libvirt] [PATCHv2 3/4] qemu: fix RTC_CHANGE event for

2014-05-22 Thread Marcelo Tosatti
On Thu, May 22, 2014 at 01:33:14PM -0600, Eric Blake wrote: > [Adding qemu] > > On 05/22/2014 05:07 AM, Laine Stump wrote: > > commit e31b5cf393857 attempted to fix libvirt's > > VIR_DOMAIN_EVENT_ID_RTC_CHANGE, which is documentated to always > > s/documentated/documented/ > > > provide the new

Re: [Qemu-devel] [PATCH v3 2/7] configure: Enable out-of-tree iotests

2014-05-22 Thread Fam Zheng
On Thu, 05/22 23:30, Max Reitz wrote: > In order to allow out-of-tree iotests, create a symlink for the check > script in the build tree. > > While doing so, also write configured options relevant to the iotests to > common.env in the build tree; currently, this is the command to invoke > Python 2

Re: [Qemu-devel] [PATCH v3 1/7] iotests: Allow out-of-tree run

2014-05-22 Thread Fam Zheng
On Thu, 05/22 23:30, Max Reitz wrote: > As out-of-tree builds are preferred for qemu, running the qemu-iotests > in that out-of-tree build should be supported as well. To do so, a > symbolic link has to be created pointing to the check script in the > source directory. That script will check whethe

[Qemu-devel] [PATCH 5/7] block: Add bdrv_set_backing_hd()

2014-05-22 Thread Fam Zheng
This is the common but non-trivial steps to assign or change the backing_hd of BDS. Signed-off-by: Fam Zheng Reviewed-by: Stefan Hajnoczi Reviewed-by: Jeff Cody --- block.c | 36 +++- include/block/block.h | 1 + 2 files changed, 24 insertions(+),

[Qemu-devel] [PATCH 2/7] block: Introduce op_blockers to BlockDriverState

2014-05-22 Thread Fam Zheng
BlockDriverState.op_blockers is an array of lists with BLOCK_OP_TYPE_MAX elements. Each list is a list of blockers of an operation type (BlockOpType), that marks this BDS as currently blocked for a certain type of operation with reason errors stored in the list. The rule of usage is: * BDS user w

[Qemu-devel] [PATCH 7/7] block: Add backing_blocker in BlockDriverState

2014-05-22 Thread Fam Zheng
This makes use of op_blocker and blocks all the operations except for commit target, on each BlockDriverState->backing_hd. The asserts for op_blocker in bdrv_swap are removed because with this change, the target of block commit has at least the backing blocker of its child, so the assertion is not

[Qemu-devel] [PATCH 4/7] block: Move op_blocker check from block_job_create to its caller

2014-05-22 Thread Fam Zheng
It makes no sense to check for "any" blocker on bs, we are here only because of the mechanical conversion from in_use to op_blockers. Remove it now, and let the callers check specific operation types. Backup and mirror already have it, add checker to stream and commit. Signed-off-by: Fam Zheng Re

[Qemu-devel] [PATCH 3/7] block: Replace in_use with operation blocker

2014-05-22 Thread Fam Zheng
This drops BlockDriverState.in_use with op_blockers: - Call bdrv_op_block_all in place of bdrv_set_in_use(bs, 1). - Call bdrv_op_unblock_all in place of bdrv_set_in_use(bs, 0). - Check bdrv_op_is_blocked() in place of bdrv_in_use(bs). The specific types are used, e.g. in place of star

[Qemu-devel] [PATCH 6/7] block: Use bdrv_set_backing_hd everywhere

2014-05-22 Thread Fam Zheng
We need to handle the coming backing_blocker properly, so don't open code the assignment, instead, call bdrv_set_backing_hd to change backing_hd. Signed-off-by: Fam Zheng --- block.c| 4 ++-- block/stream.c | 4 ++-- block/vvfat.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-)

[Qemu-devel] [PATCH 0/7] block: Drop in_use with op blocker

2014-05-22 Thread Fam Zheng
This is split from series "[Qemu-devel] [PATCH v20 00/15] Drop in_use from BlockDriverState and enable point-in-time snapshot exporting over NBD", with a new patch 06 to avoid backing_blocker assertion violation. Thanks, Fam Fam Zheng (7): block: Add BlockOpType enum block: Introduce op_block

[Qemu-devel] [PATCH 1/7] block: Add BlockOpType enum

2014-05-22 Thread Fam Zheng
This adds the enum of all the operations that can be taken on a block device. Signed-off-by: Fam Zheng Reviewed-by: Benoit Canet Reviewed-by: Jeff Cody Reviewed-by: Stefan Hajnoczi --- include/block/block.h | 19 +++ 1 file changed, 19 insertions(+) diff --git a/include/block

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

2014-05-22 Thread Rob Herring
From: Rob Herring Add tracking of cpu power state in order to support powering off of cores in system emulation. The initial state is determined by the start-powered-off QOM property. Signed-off-by: Rob Herring --- v2: - Add vmstate for powered_off target-arm/cpu-qom.h | 2 ++ target-arm/cpu.

[Qemu-devel] [PATCH v3 1/9] target-ppc: Add "compat" CPU option

2014-05-22 Thread Alexey Kardashevskiy
PowerISA defines a compatibility mode for server POWERPC CPUs which is supported by the PCR special register which is hypervisor privileged. To support this mode for guests, SPAPR defines a set of virtual PVRs, one per PowerISA spec version. When a hypervisor needs a guest to work in a compatibilit

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

2014-05-22 Thread Rob Herring
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 --- v2: - add syn_aa32_smc - add missing synd

[Qemu-devel] [PATCH 3/4] rules.mak: Link DSO with libqemuutil.a

2014-05-22 Thread Fam Zheng
Because block-iscsi.so needs bitmap_set. Signed-off-by: Fam Zheng --- rules.mak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules.mak b/rules.mak index b12d312..6c675fd 100644 --- a/rules.mak +++ b/rules.mak @@ -80,7 +80,7 @@ endif DSO_CFLAGS := -fPIC -DBUILD_DSO %$(D

[Qemu-devel] [PATCH 2/4] Makefile: Compile libqemustub.a and libqemuutil.a with -fPIC

2014-05-22 Thread Fam Zheng
Signed-off-by: Fam Zheng --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index d830483..9b691ec 100644 --- a/Makefile +++ b/Makefile @@ -203,6 +203,7 @@ Makefile: $(version-obj-y) $(version-lobj-y) libqemustub.a: $(stub-obj-y) libqemuutil.a: $(util-obj-y)

[Qemu-devel] [PATCH 4/4] .travis.yml: Add a new build target with --enable-modules

2014-05-22 Thread Fam Zheng
Signed-off-by: Fam Zheng --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 04da973..972c49a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -79,3 +79,6 @@ matrix: EXTRA_PKGS="liblttng-ust-dev liburcu-dev" EXTRA_CONFIG="--ena

[Qemu-devel] [PATCH 1/4] Makefile: Link vscclient with libqemuutil.a and libqemustub.a

2014-05-22 Thread Fam Zheng
Don't include individual objects, just link to archives. Signed-off-by: Fam Zheng --- libcacard/Makefile | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/libcacard/Makefile b/libcacard/Makefile index 881b222..abb6eea 100644 --- a/libcacard/Makefile +++ b/libcacard/Mak

[Qemu-devel] [PATCH 0/4] buildsys: Fix module build for block-iscsi.so

2014-05-22 Thread Fam Zheng
We get: $ qemu-img Failed to open module: /home/fam/build/master/block-iscsi.so: undefined symbol: bitmap_set qemu-img: Not enough arguments Try 'qemu-img --help' for more information Because since commit b03c38 (block/iscsi: speed up read for unallocated sectors), block/iscsi.c

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

2014-05-22 Thread Rob Herring
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

Re: [Qemu-devel] [PATCH 0/6] Obtain dirty bitmap via VM logging

2014-05-22 Thread Sanidhya Kashyap
> Hmm, I think we need the two flags. Although it is little hard to do it. > Because the vm can't > do something like hotplug vcpu or device during migrate. But for now qemu > don't guarantee it(in my reading). > So we should change the vm state RUN_STATE_RUNNING to RUN_STATE_MIGRATE when > mig

Re: [Qemu-devel] [PATCH v2] rules.mak: Rewrite unnest-vars

2014-05-22 Thread Fam Zheng
On Tue, 05/13 21:24, Fam Zheng wrote: > The macro unnest-vars is the most important, complicated but hard to > track magic in QEMU's build system. > > Rewrite it in a (hopefully) clearer way, with more comments, to make it > easier to understand and maintain. > > Remove DSO_CFLAGS and module-objs

[Qemu-devel] [PATCH v2 6/6] arm/highbank: enable PSCI emulation support

2014-05-22 Thread Rob Herring
From: Rob Herring Enable PSCI emulation on highbank and midway platforms. Note that this requires fixing the PSCI function IDs in the DTB to match what QEMU is using. This should get fixed. Signed-off-by: Rob Herring --- v2: - Add error_abort on setting of start-powered-off. hw/arm/highbank

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

2014-05-22 Thread Rob Herring
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 and SMP no longer need to be KVM only features. Signed-off-by: Rob Herring --- v2: - Rebased. Mostly a whitespace change removing the kvm_enabled() check. h

[Qemu-devel] [PATCH v2 1/6] target-arm: don't set cpu do_interrupt handler for user mode emulation

2014-05-22 Thread Rob Herring
From: Rob Herring In preparation to add system mode only calls to aarch64_cpu_do_interrupt, compile it for system mode only and don't set the do_interrupt callback for user mode emulation. User mode emulation should never get interrupts and thus should not have a exception handler function. Do th

[Qemu-devel] [PATCH v2 0/6] ARM: add PSCI emulation support

2014-05-22 Thread Rob Herring
From: Rob Herring This series adds support for emulating ARM PSCI calls. PSCI or Power State Coordination Interface is an ARM standard for controlling cpu power states. This series supports both AArch32 and AArch64 using HVC or SMC calls. This is based on version 6 of Pranavkumar Sawargaonkar's

[Qemu-devel] [PATCH v3 6/9] spapr: Rework spapr_fixup_cpu_dt()

2014-05-22 Thread Alexey Kardashevskiy
In PPC code we usually use the "cs" name for a CPUState* variables and "cpu" for PowerPCCPU. So let's change spapr_fixup_cpu_dt() to use same rules as spapr_create_fdt_skel() does. This adds missing nodes creation if they do not already exist in the current device tree, this is going to be used fr

[Qemu-devel] [PATCH v3 3/9] target-ppc: Implement "compat" CPU option

2014-05-22 Thread Alexey Kardashevskiy
This adds basic support for the "compat" CPU option. By specifying the compat property, the user can manually switch guest CPU mode from "raw" to "architected". This defines feature disable bits which are not used yet as, for example, PowerISA 2.07 says if 2.06 mode is selected, the TM bit does no

[Qemu-devel] [PATCH v3 9/9] KVM: PPC: Enable compatibility mode

2014-05-22 Thread Alexey Kardashevskiy
The host kernel implements a KVM_REG_PPC_ARCH_COMPAT register which this uses to enable a compatibility mode if any chosen. This sets the KVM_REG_PPC_ARCH_COMPAT register in KVM. ppc_set_compat() signals the caller if the mode cannot be enabled by the host kernel. Signed-off-by: Alexey Kardashevs

[Qemu-devel] [PATCH v3 2/9] spapr: Move SMT-related properties out of skeleton fdt

2014-05-22 Thread Alexey Kardashevskiy
The upcoming support of the "ibm,client-architecture-support" reconfiguration call will be able to change dynamically the number of threads per core (SMT mode). From the device tree prospective this does not change the number of CPU nodes (as it is one node per a CPU core) but affects content and s

[Qemu-devel] [PATCH v3 8/9] spapr: Implement processor compatibility in ibm, client-architecture-support

2014-05-22 Thread Alexey Kardashevskiy
Modern Linux kernels support last POWERPC CPUs so when a kernel boots, in most cases it can find a matching cpu_spec in the kernel's cpu_specs list. However if the kernel is quite old, it may be missing a definition of the actual CPU. To provide an ability for old kernels to work on modern hardware

[Qemu-devel] [PATCH v3 7/9] spapr: Limit threads per core according to current compatibility mode

2014-05-22 Thread Alexey Kardashevskiy
This puts a limit to the number of threads per core based on the current compatibility mode. Although PowerISA specs do not specify the maximum threads per core number, the linux guest still expects that PowerISA2.05-compatible CPU supports only 2 threads per core as this is what POWER6 (2.05 compl

[Qemu-devel] [PATCH v3 0/9] spapr: Enable ibm, client-architecture-support

2014-05-22 Thread Alexey Kardashevskiy
This enables a ibm,client-architecture-support RTAS call. This allows older distros (such as SLES11 or RHEL6) to work on modern POWERPC hardware (such as POWER8) in "architected" mode. Changelog for v3 is in "spapr: Implement processor compatibility in ibm,client-architecture-support" and that i

[Qemu-devel] [PATCH v3 4/9] target-ppc: Define Processor Compatibility Masks

2014-05-22 Thread Alexey Kardashevskiy
This introduces PCR mask for supported compatibility modes. This will be used later by the ibm,client-architecture-support call. Signed-off-by: Alexey Kardashevskiy --- target-ppc/cpu-qom.h| 1 + target-ppc/translate_init.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/target-p

[Qemu-devel] [PATCH v3 5/9] spapr: Add ibm, client-architecture-support call

2014-05-22 Thread Alexey Kardashevskiy
The PAPR+ specification defines a ibm,client-architecture-support (CAS) RTAS call which purpose is to provide a negotiation mechanism for the guest and the hypervisor to work out the best compatibility parameters. During the negotiation process, the guest provides an array of various options and ca

Re: [Qemu-devel] [PATCH v4 0/3] SMBIOS cleanup round

2014-05-22 Thread Gabriel L. Somlo
Michael, On Mon, May 19, 2014 at 10:44:48PM +0300, Michael S. Tsirkin wrote: > One question: we don't seem to have unit-test for this > interface in qemu, do we? > I would like to see at least a basic test along the lines of > tests/acpi-test.c: run bios to load tables from QEMU, > then do some ba

Re: [Qemu-devel] [Xen-devel] [v2][PATCH 4/8] xen, gfx passthrough: reserve 00:02.0 for INTEL IGD

2014-05-22 Thread Chen, Tiejun
> -Original Message- > From: Igor Mammedov [mailto:imamm...@redhat.com] > Sent: Thursday, May 22, 2014 10:20 PM > To: Michael S. Tsirkin > Cc: Chen, Tiejun; peter.mayd...@linaro.org; xen-de...@lists.xensource.com; > Daniel P. Berrange; stefano.stabell...@eu.citrix.com; Kay, Allen M; > kelly

Re: [Qemu-devel] [v2][PATCH 4/8] xen, gfx passthrough: reserve 00:02.0 for INTEL IGD

2014-05-22 Thread Chen, Tiejun
> -Original Message- > From: Gerd Hoffmann [mailto:kra...@redhat.com] > Sent: Thursday, May 22, 2014 7:22 PM > To: Chen, Tiejun > Cc: Anthony PERARD; Daniel P. Berrange; peter.mayd...@linaro.org; > xen-de...@lists.xensource.com; m...@redhat.com; > stefano.stabell...@eu.citrix.com; Kay, Alle

[Qemu-devel] [PATCH v4 20/21] target-arm: A64: Register VBAR_EL2

2014-05-22 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Reviewed-by: Peter Crosthwaite Signed-off-by: Edgar E. Iglesias --- target-arm/cpu.h| 2 +- target-arm/helper.c | 21 + 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index b14fac5..3ccbd95 1

[Qemu-devel] [PATCH v4 21/21] target-arm: A64: Register VBAR_EL3

2014-05-22 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Reviewed-by: Peter Crosthwaite Signed-off-by: Edgar E. Iglesias --- target-arm/cpu.h| 2 +- target-arm/helper.c | 5 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index 3ccbd95..8d04385 100644 --- a/target-

[Qemu-devel] [PATCH v4 19/21] target-arm: Make vbar_write writeback to any CPREG

2014-05-22 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Reviewed-by: Peter Crosthwaite Signed-off-by: Edgar E. Iglesias --- target-arm/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-arm/helper.c b/target-arm/helper.c index cb7c964a..5a2073e 100644 --- a/target-arm/helper.c +++ b/target-

[Qemu-devel] [PATCH v4 18/21] target-arm: A64: Generalize update_spsel for the various ELs

2014-05-22 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Reviewed-by: Peter Crosthwaite Signed-off-by: Edgar E. Iglesias --- target-arm/internals.h | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/target-arm/internals.h b/target-arm/internals.h index c9897c2..564b5fa 100644 --- a/target-arm/in

[Qemu-devel] [PATCH v4 17/21] target-arm: A64: Generalize ERET to various ELs

2014-05-22 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Adds support for ERET to and from AArch64 EL2 and 3. Signed-off-by: Edgar E. Iglesias --- target-arm/op_helper.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/target-arm/op_helper.c b/target-arm/op_helper.c index e95a7f4..50a4157 1006

[Qemu-devel] [PATCH v4 16/21] target-arm: A64: Trap ERET from EL0 at translation time

2014-05-22 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Suggested-by: Peter Maydell Signed-off-by: Edgar E. Iglesias --- target-arm/translate-a64.c | 4 1 file changed, 4 insertions(+) diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c index bfd139a..ec6a39d 100644 --- a/target-arm/translate-a64.c +

[Qemu-devel] [PATCH v4 15/21] target-arm: A64: Forbid ERET to higher or unimplemented ELs

2014-05-22 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Reviewed-by: Peter Crosthwaite Signed-off-by: Edgar E. Iglesias --- target-arm/op_helper.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/target-arm/op_helper.c b/target-arm/op_helper.c index c2b4bf0..e95a7f4 100644 --- a/target-arm/op_hel

[Qemu-devel] [PATCH v4 14/21] target-arm: Register EL3 versions of ELR and SPSR

2014-05-22 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Reviewed-by: Peter Crosthwaite Signed-off-by: Edgar E. Iglesias --- target-arm/helper.c | 16 1 file changed, 16 insertions(+) diff --git a/target-arm/helper.c b/target-arm/helper.c index 81de010..cb7c964a 100644 --- a/target-arm/helper.c +++ b/targe

[Qemu-devel] [PATCH v4 11/21] target-arm: Add a feature flag for EL2

2014-05-22 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Reviewed-by: Peter Crosthwaite Signed-off-by: Edgar E. Iglesias --- target-arm/cpu.h | 1 + 1 file changed, 1 insertion(+) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index 5919dfd..75a4ed8 100644 --- a/target-arm/cpu.h +++ b/target-arm/cpu.h @@ -633,6 +633,7 @@

[Qemu-devel] [PATCH v4 13/21] target-arm: Register EL2 versions of ELR and SPSR

2014-05-22 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Reviewed-by: Peter Crosthwaite Signed-off-by: Edgar E. Iglesias --- target-arm/helper.c | 16 1 file changed, 16 insertions(+) diff --git a/target-arm/helper.c b/target-arm/helper.c index 5e2eac3..81de010 100644 --- a/target-arm/helper.c +++ b/target

[Qemu-devel] [PATCH v4 12/21] target-arm: Add a feature flag for EL3

2014-05-22 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Reviewed-by: Peter Crosthwaite Signed-off-by: Edgar E. Iglesias --- target-arm/cpu.h | 1 + 1 file changed, 1 insertion(+) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index 75a4ed8..b14fac5 100644 --- a/target-arm/cpu.h +++ b/target-arm/cpu.h @@ -634,6 +634,7 @@

[Qemu-devel] [PATCH v4 10/21] target-arm: A64: Introduce aarch64_banked_spsr_index()

2014-05-22 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Add aarch64_banked_spsr_index(), used to map an Exception Level to an index in the banked_spsr array. Reviewed-by: Peter Crosthwaite Signed-off-by: Edgar E. Iglesias --- target-arm/helper-a64.c | 2 +- target-arm/internals.h | 14 ++ target-arm/op_helpe

[Qemu-devel] [PATCH v4 09/21] target-arm: Add SPSR entries for EL2/HYP and EL3/MON

2014-05-22 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Reviewed-by: Peter Crosthwaite Signed-off-by: Edgar E. Iglesias --- target-arm/cpu.h | 4 +++- target-arm/helper.c| 4 target-arm/machine.c | 6 +++--- target-arm/translate.c | 4 ++-- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/ta

[Qemu-devel] [PATCH v4 07/21] target-arm: A64: Add SP entries for EL2 and 3

2014-05-22 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Reviewed-by: Peter Crosthwaite Signed-off-by: Edgar E. Iglesias --- target-arm/cpu.h | 2 +- target-arm/machine.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index 62d85ff..ba1d495 100644 --- a/tar

[Qemu-devel] [PATCH v4 08/21] target-arm: A64: Add ELR entries for EL2 and 3

2014-05-22 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Reviewed-by: Peter Crosthwaite Signed-off-by: Edgar E. Iglesias --- target-arm/cpu.h | 2 +- target-arm/machine.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index ba1d495..60414ac 100644 --- a/tar

[Qemu-devel] [PATCH v4 06/21] target-arm: Use a 1:1 mapping between EL and MMU index

2014-05-22 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- target-arm/cpu.h | 8 target-arm/translate.h | 6 +- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index 11b7a0b..62d85ff 100644 --- a/target-arm/cpu.h +++ b/ta

[Qemu-devel] [PATCH v4 05/21] target-arm: A32: Use get_mem_index for load/stores

2014-05-22 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Avoid using IS_USER directly as the MMU-idx to simplify future changes to the MMU layout. Reviewed-by: Peter Maydell Signed-off-by: Edgar E. Iglesias --- target-arm/translate.c | 220 + 1 file changed, 113 insertions(+)

[Qemu-devel] [PATCH v4 04/21] target-arm: Move get_mem_index to translate.h

2014-05-22 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" So that it can be shared with the AArch32 code. Signed-off-by: Edgar E. Iglesias --- target-arm/translate-a64.c | 9 - target-arm/translate.h | 9 + 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/target-arm/translate-a64.c b/target-

[Qemu-devel] [PATCH v4 03/21] target-arm: c12_vbar -> vbar_el[]

2014-05-22 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" No functional change. Preparation for adding EL2 and 3 versions of this reg. Reviewed-by: Peter Crosthwaite Signed-off-by: Edgar E. Iglesias --- target-arm/cpu.h| 2 +- target-arm/helper-a64.c | 2 +- target-arm/helper.c | 6 +++--- 3 files changed, 5 ins

[Qemu-devel] [PATCH v4 02/21] target-arm: Make esr_el1 an array

2014-05-22 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" No functional change. Prepares for future addtion of EL2 and 3 versions of this reg. Reviewed-by: Peter Crosthwaite Signed-off-by: Edgar E. Iglesias --- target-arm/cpu.h| 2 +- target-arm/helper-a64.c | 4 ++-- target-arm/helper.c | 10 +- 3 fil

[Qemu-devel] [PATCH v4 01/21] target-arm: Make elr_el1 an array

2014-05-22 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" No functional change. Prepares for future additions of the EL2 and 3 versions of this reg. Reviewed-by: Peter Crosthwaite Signed-off-by: Edgar E. Iglesias --- target-arm/cpu.h| 2 +- target-arm/helper-a64.c | 4 ++-- target-arm/helper.c | 3 ++- target-ar

[Qemu-devel] [PATCH v4 00/21] target-arm: Preparations for A64 EL2 and 3

2014-05-22 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Hi, I've been doing some work on modeling parts of EL2 and 3 + some of the system-wide virtualization features for ARMv8. A lot is missing but I've got a series with enough to for example run KVM A64 guests on top of EL3 firmware inside emulated QEMU A64 VMs. I'm workin

Re: [Qemu-devel] [PATCH v1 RFC 6/6] KVM: s390: add cpu model support

2014-05-22 Thread Alexander Graf
On 22.05.14 22:36, Christian Borntraeger wrote: On 22/05/14 10:53, Paolo Bonzini wrote: Il 22/05/2014 10:23, Michael Mueller ha scritto: On Wed, 21 May 2014 15:22:35 +0200 Alexander Graf wrote: I have seen the slides from Eduardo which he presented during this years DevConf in Brno and made

Re: [Qemu-devel] qemu 2.0, deadlock in block-commit

2014-05-22 Thread Marcin Gibuła
I've encountered deadlock in qemu during some stress testing. The test is making snapshots, committing them and constantly quering for block job info. What is the exact command you used for triggering the block-commit? Was it via direct HMP or QMP, or indirect via libvirt? Via libvirt. Were

Re: [Qemu-devel] [PATCH v3 0/7] iotests: Allow out-of-tree run

2014-05-22 Thread Max Reitz
On 22.05.2014 23:30, Max Reitz wrote: This series enables qemu-iotests to be run in a build tree outside of the source tree. It also makes the tests use the command for invoking the Python interpreter specified through configure instead of always using "/usr/bin/env python". v3: - Patch 1:

[Qemu-devel] [PATCH v3 5/7] iotests: Use $PYTHON for Python scripts

2014-05-22 Thread Max Reitz
Instead of invoking Python scripts directly via ./, use $PYTHON to obtain the correct Python interpreter command. Signed-off-by: Max Reitz --- tests/qemu-iotests/031 | 8 tests/qemu-iotests/036 | 6 +++--- tests/qemu-iotests/039 | 18 +- tests/qemu-iotests/054

[Qemu-devel] [PATCH v3 4/7] iotests: Source common.env

2014-05-22 Thread Max Reitz
Source common.env in the iotests' check script. If the one supposed to be created by configure cannot be found, use common.env.default from the source tree. Signed-off-by: Max Reitz --- tests/qemu-iotests/check | 16 1 file changed, 16 insertions(+) diff --git a/tests/qemu-iote

[Qemu-devel] [PATCH v3 7/7] iotests: Fix 083 for out-of-tree builds

2014-05-22 Thread Max Reitz
iotest 083 filters out debug messages from nbd, which are prefixed (and recognized) by __FILE__. However, the current filter (/^nbd\.c…/) is valid for in-tree builds only, as out-of-tree builds will have a path before that filename (e.g. "/tmp/qemu/nbd.c"). Fix this by adding .* before "nbd\.c". W

[Qemu-devel] [PATCH v3 3/7] iotests: Add default common.env

2014-05-22 Thread Max Reitz
Add a default common.env in case the one supposed to be emitted by configure cannot be found. Signed-off-by: Max Reitz --- tests/qemu-iotests/common.env.default | 6 ++ 1 file changed, 6 insertions(+) create mode 100644 tests/qemu-iotests/common.env.default diff --git a/tests/qemu-iotests/

[Qemu-devel] [PATCH v3 6/7] iotests: Drop Python version from 065's Shebang

2014-05-22 Thread Max Reitz
Test 065 specified python2 to be used in its Shebang; this might not work on systems without a python2 symlink and furthermore it is now counter-productive, as the check script compares the Shebang to "#!/usr/bin/env python" and only uses the Python interpreter selected by configure on an exact mat

[Qemu-devel] [PATCH v3 2/7] configure: Enable out-of-tree iotests

2014-05-22 Thread Max Reitz
In order to allow out-of-tree iotests, create a symlink for the check script in the build tree. While doing so, also write configured options relevant to the iotests to common.env in the build tree; currently, this is the command to invoke Python 2. Signed-off-by: Max Reitz --- configure | 12 +

[Qemu-devel] [PATCH v3 1/7] iotests: Allow out-of-tree run

2014-05-22 Thread Max Reitz
As out-of-tree builds are preferred for qemu, running the qemu-iotests in that out-of-tree build should be supported as well. To do so, a symbolic link has to be created pointing to the check script in the source directory. That script will check whether it has been run through a symlink, and if so

[Qemu-devel] [PATCH v3 0/7] iotests: Allow out-of-tree run

2014-05-22 Thread Max Reitz
This series enables qemu-iotests to be run in a build tree outside of the source tree. It also makes the tests use the command for invoking the Python interpreter specified through configure instead of always using "/usr/bin/env python". v3: - Patch 1: - assume in-tree build when run from the

Re: [Qemu-devel] qemu 2.0, deadlock in block-commit

2014-05-22 Thread Eric Blake
On 05/22/2014 02:49 PM, Marcin Gibuła wrote: > Hi, > > I've encountered deadlock in qemu during some stress testing. The test > is making snapshots, committing them and constantly quering for block > job info. What is the exact command you used for triggering the block-commit? Was it via direct

Re: [Qemu-devel] [PATCH v2 16/23] target-arm: Use arm_current_sctlr to access SCTLR

2014-05-22 Thread Edgar E. Iglesias
On Thu, May 22, 2014 at 02:56:22PM +, Aggeler Fabian wrote: > > On 22 May 2014, at 09:33, Edgar E. Iglesias wrote: > > > On Tue, May 13, 2014 at 06:16:01PM +0200, Fabian Aggeler wrote: > >> Add SCTLR_EL3 and introduce new function to access correct > >> instance of SCTLR in different modes/

Re: [Qemu-devel] [PATCH V6 8/8] hw/arm/virt: Use PSCI v0.2 compatible string when KVM or TCG provides it

2014-05-22 Thread Rob Herring
On Thu, May 22, 2014 at 6:18 AM, Pranavkumar Sawargaonkar wrote: > If we have PSCI v0.2 emulation available for KVM ARM/ARM64 or TCG then > we need to provide PSCI v0.2 compatible string via generated DTB. > > Signed-off-by: Pranavkumar Sawargaonkar > Signed-off-by: Anup Patel Reviewed-by: Rob

Re: [Qemu-devel] qemu 2.0, deadlock in block-commit

2014-05-22 Thread Marcin Gibuła
W dniu 2014-05-22 22:49, Marcin Gibuła pisze: Thread 1 (Thread 0x7f699bfcd900 (LWP 13647)): #0 0x7f6998020286 in ppoll () from /lib64/libc.so.6 #1 0x7f699c1f3d9b in ppoll (__ss=0x0, __timeout=0x0, __nfds=, __fds=) at /usr/include/bits/poll2.h:77 #2 qemu_poll_ns (fds=, nfds=, timeout=)

Re: [Qemu-devel] [PATCH v2 1/7] iotests: Allow out-of-tree run

2014-05-22 Thread Max Reitz
On 22.05.2014 08:45, Fam Zheng wrote: On Tue, 05/20 22:23, Max Reitz wrote: As out-of-tree builds are preferred for qemu, running the qemu-iotests in that out-of-tree build should be supported as well. To do so, a symbolic link has to be created pointing to the check script in the source directo

[Qemu-devel] qemu 2.0, deadlock in block-commit

2014-05-22 Thread Marcin Gibuła
Hi, I've encountered deadlock in qemu during some stress testing. The test is making snapshots, committing them and constantly quering for block job info. The version of QEMU is 2.0.0 rc3 (backtrace below says rc2, but it's manualy patched to rc3), but there seems to be no changes in block l

Re: [Qemu-devel] [PATCH v1 RFC 6/6] KVM: s390: add cpu model support

2014-05-22 Thread Christian Borntraeger
On 22/05/14 10:53, Paolo Bonzini wrote: > Il 22/05/2014 10:23, Michael Mueller ha scritto: >> On Wed, 21 May 2014 15:22:35 +0200 >> Alexander Graf wrote: >> >> I have seen the slides from Eduardo which he presented during this years >> DevConf in Brno and made my comments according the s390x imple

Re: [Qemu-devel] [libvirt] [PATCHv2 3/4] qemu: fix RTC_CHANGE event for

2014-05-22 Thread Eric Blake
[Adding qemu] On 05/22/2014 05:07 AM, Laine Stump wrote: > commit e31b5cf393857 attempted to fix libvirt's > VIR_DOMAIN_EVENT_ID_RTC_CHANGE, which is documentated to always s/documentated/documented/ > provide the new offset of the domain's real time clock from UTC. The > problem was that, in th

Re: [Qemu-devel] [PULL 0/5] purge error_is_set()

2014-05-22 Thread Peter Maydell
On 21 May 2014 11:45, Gerd Hoffmann wrote: > Hi, > > $subject says all. Final chardev pieces (and one socket). > > please pull, > Gerd > > The following changes since commit c5fa6c86d0765f837515d1c10654c621724a77e0: > > Merge remote-tracking branch 'remotes/qmp-unstable/queue/qmp' into stag

Re: [Qemu-devel] [PULL 0/2] audio: two intel-hda fixes.

2014-05-22 Thread Peter Maydell
On 21 May 2014 09:50, Gerd Hoffmann wrote: > Hi, > > $sibject says all. > > please pull, > Gerd > > The following changes since commit c5fa6c86d0765f837515d1c10654c621724a77e0: > > Merge remote-tracking branch 'remotes/qmp-unstable/queue/qmp' into staging > (2014-05-19 14:10:01 +0100) > > a

Re: [Qemu-devel] [PATCH 0/7] libcacard: A few simple fixes and cleanups

2014-05-22 Thread Alon Levy
On 05/22/2014 05:57 PM, Markus Armbruster wrote: > Makes Coverity happy with libcacard/ (for now). > > Markus Armbruster (7): > libcacard/vscclient: Bury some dead code > libcacard: Plug memory leaks around vreader_get_reader_list() > libcacard/vreader: Drop broken recovery from failed asser

Re: [Qemu-devel] [PATCH v20 06/15] block: Add backing_blocker in BlockDriverState

2014-05-22 Thread Jeff Cody
On Wed, May 21, 2014 at 10:37:50PM +0800, Fam Zheng wrote: > On Wed, 05/21 10:24, Jeff Cody wrote: > > On Wed, May 21, 2014 at 04:03:03PM +0200, Stefan Hajnoczi wrote: > > > On Tue, May 20, 2014 at 02:04:31PM +0800, Fam Zheng wrote: > > > > diff --git a/block/mirror.c b/block/mirror.c > > > > index

Re: [Qemu-devel] [PATCH] docs: clarify that qcow2 file size is not always a cluster multiple

2014-05-22 Thread Eric Blake
On 05/22/2014 03:42 AM, Stefan Hajnoczi wrote: > Normally one would expect that qcow2 image file lengths are multiples of > the cluster size. This is not true in all cases and the spec should > document this so implementers remember to accept such files. > > $ qemu-img create -f qcow2 foo.qcow2 2

Re: [Qemu-devel] [PATCH v5 3/3] qapi: Suppress unwanted space between type and identifier

2014-05-22 Thread Eric Blake
On 05/22/2014 06:41 AM, Amos Kong wrote: > We always generate a space between type and identifier in parameter > and variable declarations, even when idiomatic C style doesn't have > a space there. Suppress it. > > Signed-off-by: Amos Kong > --- > scripts/qapi-commands.py | 2 +- > scripts/qap

Re: [Qemu-devel] [PATCH 08/20] nfs: Handle failure for potentially large allocations

2014-05-22 Thread ronnie sahlberg
For this case and for the iscsi case, isn't it likely that once this happens the guest is pretty much doomed since I/O to the disk will no longer work ? Should we also change the block layer so that IF *_readv/_writev fails with -ENOMEM then it should try again but break the request up into a chai

  1   2   3   >