[Qemu-devel] [PATCH v2 0/3] hw/arm/gic: Code duplication removal

2015-08-05 Thread Pavel Fedin
I decided to make this small patchset in order to try to push some of my changes before 2.4 is out. Idea of first patch of this set came during vGICv3 implementation. In order to be able to upstream it earlier i decided to make it doing something useful and refactored GICv2 code. This patchset con

[Qemu-devel] [PATCH v2 2/3] hw/arm/gic: Kill code duplication

2015-08-05 Thread Pavel Fedin
Extracted duplicated initialization code from SW-emulated and KVM GIC implementations and put into gic_init_irqs_and_mmio() Signed-off-by: Pavel Fedin --- hw/intc/arm_gic.c| 64 hw/intc/arm_gic_common.c | 41 +++

[Qemu-devel] [PATCH v2 1/3] Merge memory_region_init_reservation() into memory_region_init_io()

2015-08-05 Thread Pavel Fedin
Just speficying ops = NULL in some cases can be more convenient than having two functions. Signed-off-by: Pavel Fedin Acked-by: Paolo Bonzini Reviewed-by: Peter Maydell --- include/exec/memory.h | 14 +++--- memory.c | 10 +- 2 files changed, 12 insertions(+), 12 d

[Qemu-devel] [PATCH v2 3/3] Introduce gic_class_name() instead of repeating condition

2015-08-05 Thread Pavel Fedin
This small inline returns correct GIC class name depending on whether we use KVM acceleration or not. Avoids duplicating the condition everywhere. Signed-off-by: Pavel Fedin Reviewed-by: Peter Maydell --- hw/arm/virt.c| 7 +++ hw/cpu/a15mpcore.c | 8 ++-- target-arm/kvm_arm.h

Re: [Qemu-devel] QEMU Summit 2015 agenda

2015-08-05 Thread Amit Shah
On (Tue) 04 Aug 2015 [16:56:26], Stefan Hajnoczi wrote: > On Tue, Aug 4, 2015 at 4:40 PM, Peter Maydell > wrote: > > * Can we as a project do more to advertise the features > >and improvements we make? > > The QEMU Google+ page can do Hangouts On Air video streaming. > Community members can

Re: [Qemu-devel] [PATCH v7 15/42] Return path: Source handling of return path

2015-08-05 Thread zhanghailiang
Hi Dave, On 2015/6/16 18:26, Dr. David Alan Gilbert (git) wrote: From: "Dr. David Alan Gilbert" Open a return path, and handle messages that are received upon it. Signed-off-by: Dr. David Alan Gilbert --- include/migration/migration.h | 8 ++ migration/migration.c | 177

Re: [Qemu-devel] [Qemu-stable] Recent patches for 2.4

2015-08-05 Thread Paolo Bonzini
On 05/08/2015 01:23, ronnie sahlberg wrote: > > You only get >0 from this call if there are actual bytes available to read. > > For context, the problem was that > > > 75 static void nfs_process_read(void *arg) > 76 { > 77 NFSClient *client = arg; > 78 nfs_service(client->con

[Qemu-devel] virtio: qemu crashes in virtqueue_map_sg()

2015-08-05 Thread Igor Mammedov
Since I'm going to disappear for vacation and not sure how to fix it right away, I'm reporting issue here for those who knows virtio internals. QEMU aborts during guest reboot with following backtrace: Breakpoint 1, virtqueue_map_sg (sg=0x57cbc6c0, addr=0x57cb86c0, num_sg=0x12, is_write=

[Qemu-devel] [Bug 1481654] [NEW] libcacard.pc paths are not modified when configure prefix is

2015-08-05 Thread jean-christophe manciot
Public bug reported: Ubuntu Server 15.04 Gnome Qemu sources from master git://git.qemu-project.org/qemu.git 2.4.0-rc3 SHA 2be4f242 Built with: make distclean ./configure --target-list=x86_64-softmmu \ --cpu=x86_64 \ --enable-virtfs \ --enable-kvm \

Re: [Qemu-devel] [PATCH] block: don't register quorum driver if SHA256 support is unavailable

2015-08-05 Thread Alberto Garcia
> Move the run-time check to bdrv_quorum_init() to avoid registering the > quorum block driver if we know it cannot work. This way API consumers > can recognise it's unavailable. > > Fixes: 488981a4af396551a3178d032cc2b41d9553ada2 > Signed-off-by: Sascha Silbe Reviewed-by: Alberto Garcia Berto

Re: [Qemu-devel] [PATCH] block: don't register quorum driver if SHA256 support is unavailable

2015-08-05 Thread Daniel P. Berrange
On Tue, Aug 04, 2015 at 04:48:25PM +0200, Sascha Silbe wrote: > Commit 488981a4 [block: convert quorum blockdrv to use crypto APIs] > broke qemu-iotest 041 on hosts with GnuTLS < 2.10.0. It converted a > compile-time check to a run-time check at device open time. The result > is that we now adverti

Re: [Qemu-devel] [PATCH] qmp-shell: add documentation

2015-08-05 Thread Markus Armbruster
Luiz Capitulino writes: > On Thu, 23 Jul 2015 09:36:38 +0200 > Markus Armbruster wrote: > >> John Snow writes: >> >> > On 07/02/2015 11:31 AM, Luiz Capitulino wrote: >> >> On Wed, 1 Jul 2015 14:25:49 -0400 >> >> John Snow wrote: >> >> >> >>> I should probably document the changes that were

[Qemu-devel] [PATCH for 2.4 V2] virtio: fix 1.0 virtqueue migration

2015-08-05 Thread Jason Wang
1.0 does not requires physically-contiguous pages layout for a virtqueue. So we could not infer avail and used from desc. This means we need to migrate vring.avail and vring.used when host support virtio 1.0. This fixes malfunction of virtio 1.0 device after migration. Cc: Michael S. Tsirkin Cc:

Re: [Qemu-devel] [PATCH] make: explicit dependencies for ACPI gen sources

2015-08-05 Thread Paolo Bonzini
On 04/08/2015 18:21, Victor Kaplansky wrote: > Rebuilding QEMU after switching versions from git can cause make failure > if IASL is enabled. This is caused by including stale *.d info from > previous build. > > To prevent this in the future we generate dependency info for generated > ACPI sourc

Re: [Qemu-devel] [PATCH for-2.4] oslib-win32: only provide localtime_r/gmtime_r if missing

2015-08-05 Thread Daniel P. Berrange
On Fri, Jul 31, 2015 at 07:58:45PM +0200, Stefan Weil wrote: > Am 31.07.2015 um 14:49 schrieb Paolo Bonzini: > >On 31/07/2015 12:17, Daniel P. Berrange wrote: > >> CCutil/osdep.o > >>In file included from include/qemu-common.h:48:0, > >> from util/osdep.c:48: > >>include/syse

Re: [Qemu-devel] [PATCH v5] hmp: add info iothreads command

2015-08-05 Thread Markus Armbruster
Ting Wang writes: > Make "info iothreads" available on the HMP monitor. > > For example, the results are as follows when executing qemu > command with "-object iothread,id=iothread-1 -object > iothread,id=iothread-2". > (qemu) info iothreads > iothread-1: thread_id=123 > iothread-2: thread_id=45

[Qemu-devel] QEMU using hugepage

2015-08-05 Thread 陈博
Hi, My host os is CentOS6, to avoid being affected by the unstable Transparent Hugepage feature, I started to pre-allocate memory for qemu by using the kernel native hugepage. What I’m asking here is, if the guest set huge page inside itself as well (very large guest, 32 core 128G for instance

Re: [Qemu-devel] [PATCH COLO-Frame v8 24/34] COLO NIC: Implement colo nic device interface configure()

2015-08-05 Thread Dr. David Alan Gilbert
* zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: > Implement colo nic device interface configure() > add a script to configure nic devices: > ${QEMU_SCRIPT_DIR}/colo-proxy-script.sh > > Cc: Stefan Hajnoczi > Cc: Jason Wang > Signed-off-by: zhanghailiang > Signed-off-by: Li Zhijian > ---

[Qemu-devel] QEMU 2.4 for Windows - current status

2015-08-05 Thread Stefan Weil
Am 05.08.2015 um 11:52 schrieb Daniel P. Berrange: On Fri, Jul 31, 2015 at 07:58:45PM +0200, Stefan Weil wrote: Am 31.07.2015 um 14:49 schrieb Paolo Bonzini: On 31/07/2015 12:17, Daniel P. Berrange wrote: CCutil/osdep.o In file included from include/qemu-common.h:48:0,

Re: [Qemu-devel] QEMU developers on DebConf15?

2015-08-05 Thread Peter Maydell
On 28 July 2015 at 19:03, Aurelien Jarno wrote: > On 2015-07-28 19:22, Stefan Weil wrote: >> are there QEMU developers at the Debian Conference 2015 in Heidelberg >> (Germany) >> (http://debconf15.debconf.org/)? I'll be there for one or two days. > > I'll be there for the whole Debcamp and Debconf

Re: [Qemu-devel] Segmentation Fault while running tests.

2015-08-05 Thread Peter Maydell
On 4 August 2015 at 22:21, Julio Faracco wrote: > Hi guys. > > I'm trying to run the QEMU tests for i386 and x86_64 architectures but > they are returning some errors. > I'm using the most update version from git tree and my system is Ubuntu 14.04. > Take a look at this segfault errors. > > $ make

Re: [Qemu-devel] [PATCH COLO-Frame v8 00/34] COarse-grain LOck-stepping(COLO) Virtual Machines for Non-stop Service (FT)

2015-08-05 Thread Dr. David Alan Gilbert
* zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: > This is the 8th version of COLO. > > Here is only COLO frame part, include: VM checkpoint, > failover, proxy API, block replication API, not include block replication. > The block part is treated as a separate series. > > As usual, we prov

Re: [Qemu-devel] [PATCH V3 1/3] hw/vhost-user: remove unnecessary virtio control bits

2015-08-05 Thread Marcel Apfelbaum
On 07/31/2015 07:38 PM, Marcel Apfelbaum wrote: The backend is interested in negotiating only several virtio bits, remove the others. Signed-off-by: Marcel Apfelbaum --- hw/net/vhost_net.c | 22 -- 1 file changed, 22 deletions(-) diff --git a/hw/net/vhost_net.c b/hw/net/

Re: [Qemu-devel] QEMU developers on DebConf15?

2015-08-05 Thread Aurelien Jarno
On 2015-08-05 12:08, Peter Maydell wrote: > On 28 July 2015 at 19:03, Aurelien Jarno wrote: > > On 2015-07-28 19:22, Stefan Weil wrote: > >> are there QEMU developers at the Debian Conference 2015 in Heidelberg > >> (Germany) > >> (http://debconf15.debconf.org/)? I'll be there for one or two days.

Re: [Qemu-devel] [PATCH 0/2] throttle: refuse bps_max/iops_max without bps/iops

2015-08-05 Thread Stefan Hajnoczi
On Tue, Aug 04, 2015 at 11:22:11AM +0100, Stefan Hajnoczi wrote: > A bps_max/iops_max value without a corresponding bps/iops does nothing. Avoid > confusing the user by refusing invalid inputs instead of silently ignoring > them. > > Stefan Hajnoczi (2): > throttle: refuse bps_max/iops_max with

Re: [Qemu-devel] [PATCH COLO-Frame v8 24/34] COLO NIC: Implement colo nic device interface configure()

2015-08-05 Thread Li Zhijian
On 08/05/2015 06:42 PM, Dr. David Alan Gilbert wrote: * zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: Implement colo nic device interface configure() add a script to configure nic devices: ${QEMU_SCRIPT_DIR}/colo-proxy-script.sh Cc: Stefan Hajnoczi Cc: Jason Wang Signed-off-by: zhangh

Re: [Qemu-devel] [PATCH COLO-BLOCK v8 02/18] quorum: implement block driver interfaces add/delete a BDS's child

2015-08-05 Thread Alberto Garcia
On Tue 07 Jul 2015 10:43:00 AM CEST, Wen Congyang wrote: > Signed-off-by: Wen Congyang > Signed-off-by: zhanghailiang > Signed-off-by: Gonglei > Cc: Alberto Garcia Sorry for being so late with this, I was on holidays during July. > +static void quorum_del_child(BlockDriverState *bs, BlockDriv

Re: [Qemu-devel] [PATCH v7 01/42] Start documenting how postcopy works.

2015-08-05 Thread Dr. David Alan Gilbert
* Amit Shah (amit.s...@redhat.com) wrote: > On (Tue) 16 Jun 2015 [11:26:14], Dr. David Alan Gilbert (git) wrote: > > From: "Dr. David Alan Gilbert" > > > > Signed-off-by: Dr. David Alan Gilbert > > Reviewed-by: Amit Shah > > A few minor comments: > > > --- > > docs/migration.txt | 167 > >

[Qemu-devel] Summary of MTTCG Call 3/8/2015

2015-08-05 Thread Alex Bennée
Hi, Seeing as the last summary was useful I thought I'd send out some fresh notes: Alex discussed his barrier tests which where posted to the list last week. There is some behaviour that needs explaining w.r.t to barrier only approaches which should fail in real hardware but don't. Alvise prompte

Re: [Qemu-devel] QEMU 2.4 for Windows - current status

2015-08-05 Thread Paolo Bonzini
On 05/08/2015 13:03, Stefan Weil wrote: > > Fix sigsetjmp for w64 > http://repo.or.cz/w/qemu/ar7.git/commit/8fa9c07c9a33174905e67589bea6be3e278712cb Does this work too? diff --git a/cpu-exec.c b/cpu-exec.c index 75694f3..d882b89 100644 --- a/cpu-exec.c +++ b/cpu-exec.c @@ -17,6 +17,7 @@ * Li

Re: [Qemu-devel] [PATCH v5 1/2] vhost user: add support of live migration

2015-08-05 Thread Thibaut Collet
On Tue, Aug 4, 2015 at 7:50 PM, Marc-André Lureau wrote: > Hi Thibaut > > On Mon, Aug 3, 2015 at 11:22 AM, Thibaut Collet > wrote: >> Some vhost user backends are able to support live migration. >> To provide this service the following features must be added: >> 1. Add the VIRTIO_NET_F_GUEST_ANNO

[Qemu-devel] [Bug 1481750] [NEW] qemu-system-ppc hangs when running -M ppce500 -bios u-boot.e500

2015-08-05 Thread Andreas Rasmusson
Public bug reported: On recent qemu versions (tested on locally built versions 2.3.50 and 2.3.93) the command below causes qemu to hang before the u-boot command prompt is reached. However in an older version (2.2.1) the u-boot bootprompt is reached and can be typed into, so apparenly something

Re: [Qemu-devel] [PATCH for 2.4 V2] virtio: fix 1.0 virtqueue migration

2015-08-05 Thread Michael S. Tsirkin
On Wed, Aug 05, 2015 at 05:50:07PM +0800, Jason Wang wrote: > 1.0 does not requires physically-contiguous pages layout for a > virtqueue. So we could not infer avail and used from desc. This means > we need to migrate vring.avail and vring.used when host support virtio > 1.0. This fixes malfunction

Re: [Qemu-devel] [PATCH] make: explicit dependencies for ACPI gen sources

2015-08-05 Thread Michael S. Tsirkin
On Wed, Aug 05, 2015 at 11:50:54AM +0200, Paolo Bonzini wrote: > > > On 04/08/2015 18:21, Victor Kaplansky wrote: > > Rebuilding QEMU after switching versions from git can cause make failure > > if IASL is enabled. This is caused by including stale *.d info from > > previous build. > > > > To pr

Re: [Qemu-devel] [Consult] tilegx: About floating point instructions

2015-08-05 Thread Chen Gang
On 8/4/15 23:04, Richard Henderson wrote: > On 08/04/2015 06:56 AM, Chen Gang wrote: >> >> On 8/4/15 04:47, Chen Gang wrote: >>> On 8/4/15 00:40, Richard Henderson wrote: On 08/01/2015 02:47 AM, Chen Gang wrote: > I am just adding floating point instructions (e.g. fsingle_add1), > but

Re: [Qemu-devel] [PATCH 21/26] qapi: Command returning anonymous type doesn't work, outlaw

2015-08-05 Thread Eric Blake
On 08/04/2015 11:29 PM, Markus Armbruster wrote: > Eric Blake writes: > >> On 08/04/2015 03:18 AM, Markus Armbruster wrote: >>> Reproducer: with >>> >>> { 'command': 'user_def_cmd4', 'returns': { 'a': 'int' } } >>> >>> added to qapi-schema-test.json, qapi-commands.py dies when it tries to >>>

Re: [Qemu-devel] [PATCH RFC v3 02/32] qapi: New QAPISchema intermediate reperesentation

2015-08-05 Thread Eric Blake
On 08/05/2015 12:23 AM, Markus Armbruster wrote: > Eric Blake writes: > >> On 08/04/2015 09:57 AM, Markus Armbruster wrote: >>> The QAPI code generators work with a syntax tree (nested dictionaries) >>> plus a few symbol tables (also dictionaries) on the side. >>> >>> +class QAPISchemaArrayType(

Re: [Qemu-devel] [PATCH] block: don't register quorum driver if SHA256 support is unavailable

2015-08-05 Thread Peter Maydell
On 4 August 2015 at 15:48, Sascha Silbe wrote: > Commit 488981a4 [block: convert quorum blockdrv to use crypto APIs] > broke qemu-iotest 041 on hosts with GnuTLS < 2.10.0. It converted a > compile-time check to a run-time check at device open time. The result > is that we now advertise a feature (

Re: [Qemu-devel] [PATCH for 2.4 V2] virtio: fix 1.0 virtqueue migration

2015-08-05 Thread Peter Maydell
On 5 August 2015 at 14:58, Michael S. Tsirkin wrote: > On Wed, Aug 05, 2015 at 05:50:07PM +0800, Jason Wang wrote: >> 1.0 does not requires physically-contiguous pages layout for a >> virtqueue. So we could not infer avail and used from desc. This means >> we need to migrate vring.avail and vring.

Re: [Qemu-devel] Does PCI hotplug work with IVSHMEM?

2015-08-05 Thread Ivano Cerrato
We tried with 2MB hugepages, and it works fine.. Ivano Il 04/08/2015 16:21, Marc-André Lureau ha scritto: Hi On Tue, Aug 4, 2015 at 4:14 PM, Ivano Cerrato wrote: even with 1G hugepages, we are not able to hotplug an ivshmem device. The outputs we get are the following: It's not about t

[Qemu-devel] [PATCH] qemu-doc.texi: Add usb sound card info

2015-08-05 Thread Programmingkid
Add info on usb sound card to qemu documentation. Note: please update the documentation here: http://qemu.weilnetz.de/qemu-doc.html Signed-off-by: John Arbuckle --- qemu-doc.texi |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/qemu-doc.texi b/qemu-doc.texi index

[Qemu-devel] [PULL 0/1] virtio fix for 2.4

2015-08-05 Thread Michael S. Tsirkin
The following changes since commit 2be4f242b50a84bf360df02480b173bfed161107: Merge remote-tracking branch 'remotes/ehabkost/tags/x86-pull-request' into staging (2015-08-04 16:51:24 +0100) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git tags/for_ups

[Qemu-devel] [PULL 1/1] virtio: fix 1.0 virtqueue migration

2015-08-05 Thread Michael S. Tsirkin
From: Jason Wang 1.0 does not requires physically-contiguous pages layout for a virtqueue. So we could not infer avail and used from desc. This means we need to migrate vring.avail and vring.used when host support virtio 1.0. This fixes malfunction of virtio 1.0 device after migration. Cc: Micha

Re: [Qemu-devel] Summary of MTTCG Call 3/8/2015

2015-08-05 Thread Claudio Fontana
Thank you Alex! Ciao Claudio -Original Message- From: Alex Bennée [mailto:alex.ben...@linaro.org] Sent: Mittwoch, 5. August 2015 14:25 To: mt...@listserver.greensocs.com; Alvise Rigo; pbonz...@redhat.com; Frederic Konrad; Jan Kiszka Cc: Claudio Fontana; Mark Burton; qemu-devel@nongnu.o

Re: [Qemu-devel] [PATCH RFC v3 10/32] qapi-types: Convert to QAPISchemaVisitor, fixing flat unions

2015-08-05 Thread Eric Blake
On 08/04/2015 09:57 AM, Markus Armbruster wrote: > Fixes flat unions to get the base's base members. Test case is from > commit 2fc0043, in qapi-schema-test.json: > > > Flat union visitors remain broken. They'll be fixed next. > > Signed-off-by: Markus Armbruster > --- > docs/qapi-code-gen.

[Qemu-devel] FW: about the bdrv_invalidate_cache_all()

2015-08-05 Thread Li, Liang Z
Hi Kevin & Juan, I found the function bdrv_invalidate_cache_all() in the process_incoming_migration_co() takes more the 10ms when doing live migration with shared storage, which prolong the service down time. The bdrv_invalidate_cache_all() is needed when doing the live migration with '-b' opt

Re: [Qemu-devel] QEMU 2.4 for Windows - current status

2015-08-05 Thread Stefan Weil
Am 05.08.2015 um 14:49 schrieb Paolo Bonzini: On 05/08/2015 13:03, Stefan Weil wrote: Fix sigsetjmp for w64 http://repo.or.cz/w/qemu/ar7.git/commit/8fa9c07c9a33174905e67589bea6be3e278712cb Does this work too? diff --git a/cpu-exec.c b/cpu-exec.c index 75694f3..d882b89 100644 --- a/cpu-exec.c +

Re: [Qemu-devel] Segmentation Fault while running tests.

2015-08-05 Thread Julio Faracco
Thanks for your clarification, Peter. Julio Cesar Faracco

Re: [Qemu-devel] [PATCH RFC v3 11/32] qapi-visit: Convert to QAPISchemaVisitor, fixing bugs

2015-08-05 Thread Eric Blake
On 08/04/2015 09:57 AM, Markus Armbruster wrote: > Fixes flat unions to visit the base's base members (the previous > commit merely added them to the struct). Same test case. > > Patch's effect on visit_type_UserDefFlatUnion(): > > static void visit_type_UserDefFlatUnion_fields(Visitor *m,

Re: [Qemu-devel] [PULL 0/1] virtio fix for 2.4

2015-08-05 Thread Peter Maydell
On 5 August 2015 at 15:59, Michael S. Tsirkin wrote: > The following changes since commit 2be4f242b50a84bf360df02480b173bfed161107: > > Merge remote-tracking branch 'remotes/ehabkost/tags/x86-pull-request' into > staging (2015-08-04 16:51:24 +0100) > > are available in the git repository at: >

Re: [Qemu-devel] [PATCH RFC v3 19/32] qapi: Clean up after recent conversions to QAPISchemaVisitor

2015-08-05 Thread Eric Blake
On 08/04/2015 09:58 AM, Markus Armbruster wrote: > Generate just 'FOO' instead of 'struct FOO' when possible. > > Drop helper functions that are now unused. > > Make pylint reasonably happy. > > Rename generate_FOO() functions to gen_FOO() for consistency. > > Use more consistent and sensible v

[Qemu-devel] [RFC 10/14] bbvec: Move mode/PID change detection to register writes

2015-08-05 Thread Christopher Covington
This should speed up basic block detection since these were previously being checked for on each basic block / instruction. Written by Aaron Lindsay. Signed-off-by: Christopher Covington --- target-arm/cpu.h | 13 + target-arm/helper-a64.c| 2 +- target-arm/helper.c

[Qemu-devel] [RFC 12/14] bbvec: Detect mode changes after uncached_cpsr update

2015-08-05 Thread Christopher Covington
The previous code checked for the mode change before the new mode was written to env->uncached_cpsr, which unfortunately made the bbvec output look reasonable for small tests. Written by Aaron Lindsay. Signed-off-by: Christopher Covington --- target-arm/helper.c | 6 +++--- 1 file changed, 3 in

[Qemu-devel] [RFC 07/14] Add PMU to ARM virt platform

2015-08-05 Thread Christopher Covington
This reserves one PPI (private peripheral interrupt) for the PMU and creates a corresponding entry in the device tree. Writteb by Aaron Lindsay. Signed-off-by: Christopher Covington --- hw/arm/virt.c| 21 + target-arm/cpu-qom.h | 4 ++-- target-arm/cpu.c | 8 ++

Re: [Qemu-devel] QEMU 2.4 for Windows - current status

2015-08-05 Thread Liviu Ionescu
> On 05 Aug 2015, at 14:03, Stefan Weil wrote: > > Fix sigsetjmp for w64 > http://repo.or.cz/w/qemu/ar7.git/commit/8fa9c07c9a33174905e67589bea6be3e278712cb I tried to apply your patch to my branch and I got: Running QEMU make install... CCgnuarmeclipse-softmmu/cpu-exec.o /Host/Work/qemu

[Qemu-devel] [RFC 06/14] Added support for block profiling for AArch32 and Aarch64

2015-08-05 Thread Christopher Covington
Blocks are split on all branch instructions. Code assumes a translation block does not end in a branch. When a branch instruction is identified, gen_store_is_jmp(1) is called to indicate that a split should happen on this instruction. The exit notifier is used to finalize the block profiler, ensuri

[Qemu-devel] [RFC 11/14] Print bbvec stats on 'magic' exceptions

2015-08-05 Thread Christopher Covington
This is necessary because we need a way to differentiate between instructions executed in a PID by the benchmark we care about and those executed by CRIU. Written by Aaron Lindsay. Signed-off-by: Christopher Covington --- bbv_profiler.c | 15 +++ bbv_profiler.h |

[Qemu-devel] [RFC 14/14] bbvec: Properly detect conditional thumb2 branching instructions

2015-08-05 Thread Christopher Covington
Add bbvec detection of thumb2 branch instructions via a stripped-down version of the thumb2 instruction decoding logic. Unfortunately, this code still called into disas_neon_ls_insn(), which is apparently not free from side effects. Therefore, calling into this function twice (once in the added bbv

Re: [Qemu-devel] [PATCH RFC v3 23/32] qapi: De-duplicate parameter list generation

2015-08-05 Thread Eric Blake
On 08/04/2015 09:58 AM, Markus Armbruster wrote: > Generated qapi-event.[ch] lose line breaks. No change otherwise. > > Signed-off-by: Markus Armbruster --- > scripts/qapi-commands.py | 11 ++- scripts/qapi-event.py| > 18 +++--- scripts/qapi.py | 16 +

Re: [Qemu-devel] QEMU 2.4 for Windows - current status

2015-08-05 Thread Paolo Bonzini
On 05/08/2015 18:51, Liviu Ionescu wrote: > >> On 05 Aug 2015, at 14:03, Stefan Weil wrote: >> >> Fix sigsetjmp for w64 >> http://repo.or.cz/w/qemu/ar7.git/commit/8fa9c07c9a33174905e67589bea6be3e278712cb > > > I tried to apply your patch to my branch and I got: > > Running QEMU make install.

Re: [Qemu-devel] Segmentation Fault while running tests.

2015-08-05 Thread Alex Bennée
Peter Maydell writes: > On 4 August 2015 at 22:21, Julio Faracco wrote: >> Hi guys. >> >> I'm trying to run the QEMU tests for i386 and x86_64 architectures but >> they are returning some errors. >> I'm using the most update version from git tree and my system is Ubuntu >> 14.04. >> Take a loo

Re: [Qemu-devel] [PATCH RFC v3 18/32] qapi: Replace dirty is_c_ptr() by method c_null()

2015-08-05 Thread Eric Blake
On 08/04/2015 09:58 AM, Markus Armbruster wrote: > is_c_ptr() looks whether the end of the C text for the type looks like > a pointer. Works, but is fragile. > > We now have a better tool: use QAPISchemaType method c_null(). The > initializers for non-pointers become prettier: 0, false or the >

Re: [Qemu-devel] Logging number of translated instructions per basic block

2015-08-05 Thread Christopher Covington
Hi Anthony, On 07/28/2015 05:20 PM, Anthony Carno wrote: > Hi there, > > As the subject of my email suggests, is there a way to log the number of > translated instructions per basic block? I've dug into the debug code a bit > (specifically /target_disas /and the arch-specific /print_insn_*/) and

Re: [Qemu-devel] [PATCH RFC v3 29/32] qapi: Pseudo-type '**' is now unused, drop it

2015-08-05 Thread Eric Blake
On 08/04/2015 09:58 AM, Markus Armbruster wrote: > 'gen': false needs to stay for now, because netdev_add is still using > it. And the next patch will use it too. > > Signed-off-by: Markus Armbruster > --- > docs/qapi-code-gen.txt| 18 ++ > scripts/qapi.py

Re: [Qemu-devel] [ARM SMBIOS V1 PATCH 0/6] SMBIOS Support for ARM

2015-08-05 Thread Laszlo Ersek
On 07/28/15 08:00, Wei Huang wrote: > SMBIOS tables present userful system hardware info to management > applications, such as DMI tools. Even though SMBIOS was originally > developed for Intel x86, it has been extended to both Itanium and > ARM (32bit & 64bit). More and more ARM server releases,

[Qemu-devel] [RFC 02/14] Added semihosting support for A64 in full-system mode

2015-08-05 Thread Christopher Covington
This is for full-system only; not implemented in user mode Written by Derek Hower. Signed-off-by: Christopher Covington --- include/exec/softmmu-semi.h | 21 ++- target-arm/arm-semi.c | 142 target-arm/cpu.h| 3 +- target-arm

[Qemu-devel] [PATCH v2 0/2] make: Cleanup and fix of loading of dependency info

2015-08-05 Thread Victor Kaplansky
Hi, sometimes the make fails when one switches between commits without running "make clean". This is caused by loading old *.d dependency info files and is harmful for autogenerated sources with their own includes. This situation may significantly slow down the process of git bisect. These two

[Qemu-devel] [PATCH v2 1/2] make: fix where dependency *.d are stored.

2015-08-05 Thread Victor Kaplansky
In rules like "bar/%.o: %.c" there is a difference between $(*D) and $(@D). It is cleaner to generate *.d next to appropriate *.o, because it allows precise including of dependency info from .d files. As a hack, we also touch two sources for generated *.hex files. This is to ensure *.hex rebuild,

[Qemu-devel] [RFC 08/14] Add instruction-counting infrastructure to target-arm

2015-08-05 Thread Christopher Covington
This (partially) divorces counting instructions from basic block collection so instructions can be counted without the bbv plugin being enabled. Written by Aaron Lindsay. Signed-off-by: Christopher Covington --- include/exec/cpu-defs.h| 2 ++ target-arm/helper.c| 43 +++

[Qemu-devel] [PATCH v2 2/2] make: load only required dependency files.

2015-08-05 Thread Victor Kaplansky
The old rules.mak loads dependency .d files using include directive with file glob pattern "*.d". This breaks the build when build tree has remanent *.d files from another build. This patch fixes this by - loading precise list of .d files made from *.o and *.mo. - specifying explicit list of r

[Qemu-devel] [RFC 01/14] Make unknown semihosting calls non-fatal

2015-08-05 Thread Christopher Covington
Signed-off-by: Christopher Covington --- target-arm/arm-semi.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/target-arm/arm-semi.c b/target-arm/arm-semi.c index a8b83e6..bcc70ec 100644 --- a/target-arm/arm-semi.c +++ b/target-arm/arm-semi.c @@ -186,8 +186,6 @@ static

[Qemu-devel] [PATCH v6 00/17] qcow2: Add new overlap check functions

2015-08-05 Thread Max Reitz
This is a continuation of previous versions of this series. v2's cover letter was the most elaborate, which you can find here (includes benchmarks): http://lists.nongnu.org/archive/html/qemu-devel/2014-11/msg03430.html See patch 1 for an explanation of why this series exists and what it does. Patc

[Qemu-devel] [PATCH v6 04/17] qcow2/overlaps: Protect image header

2015-08-05 Thread Max Reitz
Enter the image header into the metadata list to protect it against accidental modifications. Signed-off-by: Max Reitz Reviewed-by: Eric Blake --- block/qcow2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/block/qcow2.c b/block/qcow2.c index d30d008..9815325 100644 --- a/block/qcow2.c

[Qemu-devel] [PATCH v6 03/17] qcow2: Create metadata list

2015-08-05 Thread Max Reitz
Create and destroy the metadata list on creation and destruction of a qcow2 BDS, respectively. Skip creation if no overlap checks should be performed. Signed-off-by: Max Reitz --- block/qcow2.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/block/qcow2.c b/block/qcow2.c index 9

[Qemu-devel] [PATCH v6 02/17] qcow2: Pull up overlap check option evaluation

2015-08-05 Thread Max Reitz
Pull up the absorption of the qcow2-relevant command line options and the evaluation of the overlap check options in qcow2_open(). Signed-off-by: Max Reitz Reviewed-by: Eric Blake --- block/qcow2.c | 96 +-- 1 file changed, 48 insertions(+

[Qemu-devel] [PATCH v6 08/17] qcow2/overlaps: Protect active L2 tables

2015-08-05 Thread Max Reitz
Keep track of the active L2 tables in the metadata list to protect them against accidental modifications. Signed-off-by: Max Reitz --- block/qcow2-cluster.c | 2 ++ block/qcow2-refcount.c | 6 ++ block/qcow2-snapshot.c | 21 + block/qcow2.c | 8 +++- 4 fi

[Qemu-devel] [PATCH v6 10/17] qcow2/overlaps: Protect inactive L1 tables

2015-08-05 Thread Max Reitz
Keep track of the inactive L1 tables in the metadata list to protect them against accidental modifications. Signed-off-by: Max Reitz Reviewed-by: Eric Blake --- block/qcow2-snapshot.c | 25 + 1 file changed, 25 insertions(+) diff --git a/block/qcow2-snapshot.c b/block/q

[Qemu-devel] [PATCH v6 06/17] qcow2/overlaps: Protect refcount blocks

2015-08-05 Thread Max Reitz
Keep track of the refcount blocks in the metadata list to protect them against accidental modifications. Signed-off-by: Max Reitz Reviewed-by: Eric Blake --- block/qcow2-refcount.c | 38 +- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/block/q

[Qemu-devel] [PATCH v6 11/17] qcow2/overlaps: Protect inactive L2 tables

2015-08-05 Thread Max Reitz
Keep track of the inactive L2 tables in the metadata list to protect them against accidental modifications. Signed-off-by: Max Reitz --- block/qcow2-refcount.c | 20 block/qcow2-snapshot.c | 43 --- 2 files changed, 60 insertions(+), 3

[Qemu-devel] [PATCH v6 09/17] qcow2/overlaps: Protect snapshot table

2015-08-05 Thread Max Reitz
Keep track of the snapshot table in the metadata list to protect it against accidental modifications. Signed-off-by: Max Reitz Reviewed-by: Eric Blake --- block/qcow2-snapshot.c | 10 ++ block/qcow2.c | 6 ++ 2 files changed, 16 insertions(+) diff --git a/block/qcow2-snap

Re: [Qemu-devel] [PATCH v2 2/2] make: load only required dependency files.

2015-08-05 Thread Paolo Bonzini
On 05/08/2015 19:29, Victor Kaplansky wrote: > The old rules.mak loads dependency .d files using include directive > with file glob pattern "*.d". This breaks the build when build tree has > remanent *.d files from another build. > > This patch fixes this by > - loading precise list of .d file

[Qemu-devel] [PATCH v6 17/17] iotests: Test qcow2's overlap check memory limit

2015-08-05 Thread Max Reitz
This patch adds some test cases for the memory limit concerning the in-memory structures used to detect and prevent accidental metadata overlaps. Signed-off-by: Max Reitz --- tests/qemu-iotests/060 | 222 + tests/qemu-iotests/060.out | 47

[Qemu-devel] [PATCH v6 12/17] qcow2: Use new metadata overlap check function

2015-08-05 Thread Max Reitz
Make the static new overlap check function global and drop the old function. Signed-off-by: Max Reitz --- block/qcow2-overlap.c | 8 +--- block/qcow2-refcount.c | 120 - 2 files changed, 2 insertions(+), 126 deletions(-) diff --git a/block/qcow

[Qemu-devel] [RFC 09/14] Implement remaining PMU functionality

2015-08-05 Thread Christopher Covington
This adds logic to increment PMEVCNTR's based on different event inputs, implements all remaining CP registers, and triggers an interrupt on event overflow. Written by Aaron Lindsay. Signed-off-by: Christopher Covington --- target-arm/cpu-qom.h | 2 + target-arm/cpu.c | 2 + target-arm/

Re: [Qemu-devel] FW: about the bdrv_invalidate_cache_all()

2015-08-05 Thread Paolo Bonzini
On 05/08/2015 17:21, Li, Liang Z wrote: > I found the function bdrv_invalidate_cache_all() in the > process_incoming_migration_co() takes more the 10ms when doing live > migration with shared storage, which prolong the service down time. > > The bdrv_invalidate_cache_all() is needed when doing t

[Qemu-devel] [PATCH v6 16/17] qapi: Expose new qcow2 overlap check options

2015-08-05 Thread Max Reitz
Expose the two new options for controlling the memory usage of the overlap check implementation via QAPI. Signed-off-by: Max Reitz --- qapi/block-core.json | 31 +++ 1 file changed, 31 insertions(+) diff --git a/qapi/block-core.json b/qapi/block-core.json index 7b2ef

[Qemu-devel] [RFC 13/14] Enable negative icount values for QEMU.

2015-08-05 Thread Christopher Covington
The icount setting specifies how far to shift the instruction count as a ratio of ns to tie system time to instruction count. Allow a negative value (i.e. a right shift instead of a left shift) to be used. Written by Pat Galizia. Signed-off-by: Christopher Covington --- cpus.c | 17

[Qemu-devel] [RFC 03/14] Fix makefile

2015-08-05 Thread Christopher Covington
Fixes https://bugs.launchpad.net/qemu/+bug/1319493/ Signed-off-by: Christopher Covington --- Makefile | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 93af871..fcc6314 100644 --- a/Makefile +++ b/Makefile @@ -408,7 +408,11 @@ ifneq ($(CONFIG_MODU

Re: [Qemu-devel] [ARM SMBIOS V1 PATCH 0/6] SMBIOS Support for ARM

2015-08-05 Thread Peter Maydell
On 5 August 2015 at 18:16, Laszlo Ersek wrote: > On 07/28/15 08:00, Wei Huang wrote: >> SMBIOS tables present userful system hardware info to management >> applications, such as DMI tools. Even though SMBIOS was originally >> developed for Intel x86, it has been extended to both Itanium and >> ARM

[Qemu-devel] [PATCH v6 07/17] qcow2/overlaps: Protect active L1 table

2015-08-05 Thread Max Reitz
Keep track of the active L1 table in the metadata list to protect it against accidental modifications. Signed-off-by: Max Reitz Reviewed-by: Eric Blake --- block/qcow2-cluster.c | 11 +++ block/qcow2-snapshot.c | 10 ++ block/qcow2.c | 4 3 files changed, 25 inse

[Qemu-devel] [PATCH v6 13/17] qcow2/overlaps: Add "memory limit reached" event

2015-08-05 Thread Max Reitz
Later, a mechanism to set a limit on how much memory may be used for the overlap prevention structures will be introduced. If that limit is about to be exceeded, a QMP event should be emitted. This very event is specified by this patch. Signed-off-by: Max Reitz --- docs/qmp/qmp-events.txt | 27 +

[Qemu-devel] [PATCH v6 15/17] qcow2: Add overlap structure memory size options

2015-08-05 Thread Max Reitz
Add runtime options to qcow2 to control the size of the structures used for metadata overlap prevention (one option to control the size of the bitmap cache, another one to control the total memory size limit). Signed-off-by: Max Reitz --- block/qcow2.c | 35 +-- b

Re: [Qemu-devel] [PATCH v2 2/2] make: load only required dependency files.

2015-08-05 Thread Victor kaplansky
On Wed, Aug 05, 2015 at 07:40:00PM +0200, Paolo Bonzini wrote: > > > On 05/08/2015 19:29, Victor Kaplansky wrote: > > diff --git a/hw/i386/Makefile.objs b/hw/i386/Makefile.objs > > index bd4f147..311d364 100644 > > --- a/hw/i386/Makefile.objs > > +++ b/hw/i386/Makefile.objs > > @@ -10,6 +10,8 @@

[Qemu-devel] [PATCH v6 14/17] qcow2/overlaps: Add memory usage limit

2015-08-05 Thread Max Reitz
This adds an adjustable limit for the total memory usage of the overlap prevention structures. Signed-off-by: Max Reitz --- block/qcow2-overlap.c | 183 +++--- block/qcow2.c | 2 +- block/qcow2.h | 2 +- 3 files changed, 177 inserti

Re: [Qemu-devel] [PATCH] make: explicit dependencies for ACPI gen sources

2015-08-05 Thread Victor Kaplansky
> - Original Message - > From: "Michael S. Tsirkin" > To: "Paolo Bonzini" > Cc: "Victor Kaplansky" , qemu-devel@nongnu.org, "Richard > Henderson" , "Eduardo Habkost" > Sent: Wednesday, August 5, 2015 4:59:56 PM > Subject: Re: [PATCH] make: explicit dependencies for ACPI gen sources >

[Qemu-devel] [Bug 1481750] Re: qemu-system-ppc hangs when running -M ppce500 -bios u-boot.e500

2015-08-05 Thread Andreas Rasmusson
It is not qemu that hangs. The u-boot.e500 software falls into an eternal loop at the addresses 0x00f1f964 to 0x00f1f94c due to the registers r9 and r10 (both) being 0x0 in the newer versions and 0x40 in the working 2.2.1 version. Howerver, those values ought to have originated from the qemu

Re: [Qemu-devel] [PATCH v2 2/2] make: load only required dependency files.

2015-08-05 Thread Michael S. Tsirkin
On Wed, Aug 05, 2015 at 08:29:33PM +0300, Victor Kaplansky wrote: > The old rules.mak loads dependency .d files using include directive > with file glob pattern "*.d". This breaks the build when build tree has > remanent *.d files from another build. > > This patch fixes this by > - loading prec

Re: [Qemu-devel] [ARM SMBIOS V1 PATCH 0/6] SMBIOS Support for ARM

2015-08-05 Thread Laszlo Ersek
On 08/05/15 19:35, Peter Maydell wrote: > On 5 August 2015 at 18:16, Laszlo Ersek wrote: >> On 07/28/15 08:00, Wei Huang wrote: >>> SMBIOS tables present userful system hardware info to management >>> applications, such as DMI tools. Even though SMBIOS was originally >>> developed for Intel x86, i

[Qemu-devel] [PATCH v6 05/17] qcow2/overlaps: Protect refcount table

2015-08-05 Thread Max Reitz
Keep track of the refcount table in the metadata list to protect it against accidental modifications. Signed-off-by: Max Reitz Reviewed-by: Eric Blake --- block/qcow2-refcount.c | 18 ++ block/qcow2.c | 4 2 files changed, 22 insertions(+) diff --git a/block/qcow

[Qemu-devel] [PATCH v6 01/17] qcow2: Add new overlap check functions

2015-08-05 Thread Max Reitz
The existing qcow2 metadata overlap detection function used existing structures to determine the location of the image metadata, from plain fields such as l1_table_offset and l1_size in the BDRVQcowState, over image structures in memory such as the L1 table for the L2 tables' positions, or it even

  1   2   >