Re: [Qemu-devel] Speed disk virtio

2014-02-08 Thread XliN
08.02.2014 03:55, Brian Jackson пишет: What latest? There are a few different places to get drivers (Fedora site, RHEL subscription, build yourself, etc). From the graphs, it looks like the speed isn't too bad at times. But it's hard to tell with the information you've given about your particular

Re: [Qemu-devel] [PATCH 3/3] block: Don't call ROUND_UP with negative values

2014-02-08 Thread Kevin Wolf
Am 08.02.2014 um 00:24 hat Laszlo Ersek geschrieben: > On 02/07/14 22:45, Kevin Wolf wrote: > > Am 07.02.2014 um 17:27 hat Eric Blake geschrieben: > >> On 02/07/2014 09:12 AM, Kevin Wolf wrote: > >>> The behaviour of the ROUND_UP macro with negative numbers isn't obvious. > >>> It happens to do the

Re: [Qemu-devel] migration question: disk images on nfs server

2014-02-08 Thread Kevin Wolf
Am 07.02.2014 um 13:47 hat Orit Wasserman geschrieben: > On 02/07/2014 02:10 PM, Alexey Kardashevskiy wrote: > >On 07.02.2014 18:46, Orit Wasserman wrote: > >>On 02/07/2014 06:35 AM, Alexey Kardashevskiy wrote: > >>>Hi! > >>> > >>>I have yet another problem with migration. Or NFS. > >>> > >>>There

[Qemu-devel] [PATCH] blkdebug: Don't leak bs->file on failure

2014-02-08 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- block/blkdebug.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/block/blkdebug.c b/block/blkdebug.c index 56c4cd0..519b483 100644 --- a/block/blkdebug.c +++ b/block/blkdebug.c @@ -414,7 +414,7 @@ static int blkdebug_open(BlockDriverState

[Qemu-devel] [PATCH] qtest: Don't segfault with invalid -qtest option

2014-02-08 Thread Fam Zheng
This prints an error message, instead of core dump, when "-qtest" option value is invalid, e.g.: $ ./x86_64-softmmu/qemu-system-x86_64 -qtest unknown qemu-system-x86_64: Failed to initialize device for qtest: "unknown" Signed-off-by: Fam Zheng --- include/sysemu/qtest.h | 2 +- qtest.c

Re: [Qemu-devel] [PATCH] blkdebug: Don't leak bs->file on failure

2014-02-08 Thread Laszlo Ersek
comments below On 02/08/14 09:54, Kevin Wolf wrote: > Signed-off-by: Kevin Wolf > --- > block/blkdebug.c | 9 ++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > > diff --git a/block/blkdebug.c b/block/blkdebug.c > index 56c4cd0..519b483 100644 > --- a/block/blkdebug.c > +++ b/block/b

[Qemu-devel] [PATCH] block: Fix 32 bit truncation in mark_request_serialising()

2014-02-08 Thread Kevin Wolf
On 32 bit hosts, size_t is too small for align as the bitmask ~(align - 1) will zero out the higher 32 bits of the offset. While at it, change the local overlap_bytes variable to unsigned to match the field in BdrvTrackedRequest. Signed-off-by: Kevin Wolf --- block.c | 6 +++--- 1 file changed,

Re: [Qemu-devel] [PATCH] block: Fix 32 bit truncation in mark_request_serialising()

2014-02-08 Thread Laszlo Ersek
On 02/08/14 10:47, Kevin Wolf wrote: > On 32 bit hosts, size_t is too small for align as the bitmask > ~(align - 1) will zero out the higher 32 bits of the offset. > > While at it, change the local overlap_bytes variable to unsigned to > match the field in BdrvTrackedRequest. > > Signed-off-by: K

Re: [Qemu-devel] [PATCH] blkdebug: Don't leak bs->file on failure

2014-02-08 Thread Kevin Wolf
Am 08.02.2014 um 10:46 hat Laszlo Ersek geschrieben: > comments below > > On 02/08/14 09:54, Kevin Wolf wrote: > > Signed-off-by: Kevin Wolf > > --- > > block/blkdebug.c | 9 ++--- > > 1 file changed, 6 insertions(+), 3 deletions(-) > > > > diff --git a/block/blkdebug.c b/block/blkdebug.c >

Re: [Qemu-devel] [PATCH] blkdebug: Don't leak bs->file on failure

2014-02-08 Thread Laszlo Ersek
On 02/08/14 10:55, Kevin Wolf wrote: > Am 08.02.2014 um 10:46 hat Laszlo Ersek geschrieben: >> How about the attached patch instead? Releasing stuff in specific error >> handler blocks quickly becomes intractable if there are many resources >> to allocate in succession, but in this case I think we

[Qemu-devel] [PATCH v2] blkdebug: Don't leak bs->file on failure

2014-02-08 Thread Kevin Wolf
Reported-by: Laszlo Ersek Signed-off-by: Kevin Wolf --- block/blkdebug.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/block/blkdebug.c b/block/blkdebug.c index 56c4cd0..8eb0db0 100644 --- a/block/blkdebug.c +++ b/block/blkdebug.c @@ -396,14 +396,14 @@ static

[Qemu-devel] [PULL 00/14] Cleanup qdev legacy properties

2014-02-08 Thread Paolo Bonzini
Anthony, Peter, The following changes since commit 0169c511554cb0014a00290b0d3d26c31a49818f: Merge remote-tracking branch 'qemu-kvm/uq/master' into staging (2014-01-24 15:52:44 -0800) are available in the git repository at: git://github.com/bonzini/qemu.git qdev-props for you to fetch cha

[Qemu-devel] [PULL 04/14] qdev: legacy properties are now read-only

2014-02-08 Thread Paolo Bonzini
Reviewed-by: Igor Mammedov Reviewed-by: Eric Blake Signed-off-by: Paolo Bonzini --- hw/core/qdev-properties.c | 10 +- hw/core/qdev.c| 30 ++ include/hw/qdev-core.h| 1 - 3 files changed, 3 insertions(+), 38 deletions(-) diff --git a/hw/core

[Qemu-devel] [PULL 06/14] qdev: inline qdev_prop_parse

2014-02-08 Thread Paolo Bonzini
Reviewed-by: Igor Mammedov Reviewed-by: Eric Blake Signed-off-by: Paolo Bonzini --- hw/core/qdev-properties.c| 8 +--- include/hw/qdev-properties.h | 2 -- qdev-monitor.c | 4 ++-- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/hw/core/qdev-properties.c b/

[Qemu-devel] [PULL 01/14] qapi: add size parser to StringInputVisitor

2014-02-08 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- qapi/string-input-visitor.c | 24 1 file changed, 24 insertions(+) diff --git a/qapi/string-input-visitor.c b/qapi/string-input-visitor.c index 8f1bc41..793548a 100644 --- a/qapi/string-input-visitor.c +++ b/qapi/string-input-visitor.c @@

[Qemu-devel] [PULL 03/14] qdev: remove legacy parsers for hex8/32/64

2014-02-08 Thread Paolo Bonzini
The hexNN property types have not been accepting values not prefixed by "0x" since QEMU 1.2. Parse those values as decimals now. Reviewed-by: Igor Mammedov Reviewed-by: Eric Blake Signed-off-by: Paolo Bonzini --- hw/core/qdev-properties.c | 54 ---

[Qemu-devel] [PULL 08/14] qdev: use human mode in "info qtree"

2014-02-08 Thread Paolo Bonzini
Reviewed-by: Igor Mammedov Reviewed-by: Eric Blake Signed-off-by: Paolo Bonzini --- qdev-monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qdev-monitor.c b/qdev-monitor.c index f385fb3..b37778f 100644 --- a/qdev-monitor.c +++ b/qdev-monitor.c @@ -577,7 +577,7 @@ stat

[Qemu-devel] [PULL 09/14] qdev: remove most legacy printers

2014-02-08 Thread Paolo Bonzini
Their functionality is either aesthetic only (e.g. on/off vs. true/false) or obtained by the "human mode" of StringOutputVisitor. Reviewed-by: Igor Mammedov Reviewed-by: Eric Blake Signed-off-by: Paolo Bonzini --- hw/core/qdev-properties.c | 60 ---

[Qemu-devel] [PULL 02/14] qdev: sizes are now parsed by StringInputVisitor

2014-02-08 Thread Paolo Bonzini
Reviewed-by: Igor Mammedov Reviewed-by: Eric Blake Signed-off-by: Paolo Bonzini --- hw/core/qdev-properties.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/hw/core/qdev-properties.c b/hw/core/qdev-properties.c index b949f0e..da37710 100644 --- a/hw/core/qdev-properties.c +++ b

[Qemu-devel] [PULL 11/14] block: handle "rechs" and "large" translation options

2014-02-08 Thread Paolo Bonzini
Sure, CHS translation is an obscure topic, and legacy options for hard-disk geometries are obscure as well. But since QEMU does nothing with it except telling the BIOS, and since there "large" and "rechs" are listed in the enums, parsing them seems to be the bare minimum. Acked-by: Stefan Hajnocz

[Qemu-devel] [PULL 10/14] qdev: remove hex8/32/64 property types

2014-02-08 Thread Paolo Bonzini
Replace them with uint8/32/64. Reviewed-by: Igor Mammedov Reviewed-by: Eric Blake Signed-off-by: Paolo Bonzini --- hw/audio/adlib.c | 2 +- hw/audio/cs4231a.c | 2 +- hw/audio/gus.c | 2 +- hw/audio/pcspk.c | 2 +- hw/audio/sb16.c

[Qemu-devel] [PULL 12/14] qdev: add enum property types to QAPI schema

2014-02-08 Thread Paolo Bonzini
Reviewed-by: Igor Mammedov Reviewed-by: Eric Blake Signed-off-by: Paolo Bonzini --- hw/core/qdev-properties.c | 20 +++- hw/i386/kvm/i8254.c | 6 ++--- hw/timer/mc146818rtc.c| 14 ++-- include/hw/block/block.h | 6 - include/qemu-common.h | 8 --- q

[Qemu-devel] [PULL 13/14] qdev: use QAPI type names for properties

2014-02-08 Thread Paolo Bonzini
Use "drive", "chr", etc. only for legacy_name (which shows up in -device foo,? output). Reviewed-by: Igor Mammedov Reviewed-by: Eric Blake Signed-off-by: Paolo Bonzini --- hw/core/qdev-properties-system.c | 12 hw/core/qdev-properties.c| 18 +++--- 2 files chan

[Qemu-devel] [PULL 14/14] qapi: refine human printing of sizes

2014-02-08 Thread Paolo Bonzini
This fixes several bugs or shortcomings of the previous pretty-printer. In particular: * use PRIu64 instead of casting to long long * the exact value is included too * the correct unit of measure (MiB, GiB, etc.) is used. PiB and EiB are added too. * due to an off-by-one error, 512*2^30 was pr

[Qemu-devel] [PULL 05/14] qdev: legacy properties are just strings

2014-02-08 Thread Paolo Bonzini
prop->info->legacy_name is still used by "-device foo,?". Reviewed-by: Igor Mammedov Reviewed-by: Eric Blake Signed-off-by: Paolo Bonzini --- hw/core/qdev.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/hw/core/qdev.c b/hw/core/qdev.c index 7c1b732..482a978 100644

[Qemu-devel] [PATCH] qtest: include system headers before user headers

2014-02-08 Thread Stefan Hajnoczi
It is dangerous to include user headers before system headers since user macros can affect system headers. Signed-off-by: Stefan Hajnoczi --- tests/endianness-test.c | 2 +- tests/fw_cfg-test.c | 7 +++ tests/i440fx-test.c | 11 +-- tests/m48t59-test.c | 3 ++- tests/q

Re: [Qemu-devel] [PATCH qom-next 1/5] tests: Add e1000 qtest

2014-02-08 Thread Stefan Hajnoczi
On Fri, Feb 07, 2014 at 07:06:58PM +0100, Andreas Färber wrote: > Am 07.02.2014 16:48, schrieb Stefan Hajnoczi: > > On Wed, Feb 05, 2014 at 06:01:13PM +0100, Andreas Färber wrote: > >> +#include "libqtest.h" > >> + > >> +#include > >> +#include > >> +#include "qemu/osdep.h" > > > > Please put i

[Qemu-devel] [PULL 07/14] qapi: add human mode to StringOutputVisitor

2014-02-08 Thread Paolo Bonzini
This will be used by "info qtree". For numbers it prints both the decimal and hex values. For sizes it rounds to the nearest power of 2^10. For strings, it puts quotes around the string and separates NULL and empty string. Reviewed-by: Igor Mammedov Reviewed-by: Eric Blake Signed-off-by: Paol

Re: [Qemu-devel] [PATCH v2] blkdebug: Don't leak bs->file on failure

2014-02-08 Thread Laszlo Ersek
On 02/08/14 11:00, Kevin Wolf wrote: > Reported-by: Laszlo Ersek > Signed-off-by: Kevin Wolf > --- > block/blkdebug.c | 14 +- > 1 file changed, 9 insertions(+), 5 deletions(-) > > diff --git a/block/blkdebug.c b/block/blkdebug.c > index 56c4cd0..8eb0db0 100644 > --- a/block/blkdebu

[Qemu-devel] [Bug 1276879] Re: lots of dma command 10, 14 not supported

2014-02-08 Thread BALATON Zoltan
The other patch is for KVM. Here's a way to build a patched kvm module (I did not test it): http://www.contrib.andrew.cmu.edu/~somlo/OSXKVM/#sec_0_kvm_kmod_build A click in the window should be enough to grab the mouse. If it's not working it may be that NeXTSTEP is using a different driver than

Re: [Qemu-devel] timer issue on 1.7.0 and later

2014-02-08 Thread Alex Bligh
Rob, On 7 Feb 2014, at 18:15, Rob Herring wrote: > I've bisected a problem with system emulation and SMP kernels using > per cpu timers to this commit. I can reproduce this problem on ARM > emulation with both ARM generic timers (only in 1.7.0) and ARM MPCore > timers. Using a single broadcast ti

Re: [Qemu-devel] [PULL 0/3] Update seabios to 1.7.4

2014-02-08 Thread Peter Maydell
On 3 February 2014 14:45, Gerd Hoffmann wrote: > Hi, > > Sorry for the delay folks, totally forgot that one. > Here is the seabios update to 1.7.4 final. > > please pull, > Gerd > > The following changes since commit 2f61120c10da9128357510debc8e66880cd2bfdc: > > Merge remote-tracking branch

Re: [Qemu-devel] timer issue on 1.7.0 and later

2014-02-08 Thread Paolo Bonzini
Il 08/02/2014 12:48, Alex Bligh ha scritto: Rob, On 7 Feb 2014, at 18:15, Rob Herring wrote: I've bisected a problem with system emulation and SMP kernels using per cpu timers to this commit. I can reproduce this problem on ARM emulation with both ARM generic timers (only in 1.7.0) and ARM MPC

Re: [Qemu-devel] [PULL v2 0/8] migration queue

2014-02-08 Thread Peter Maydell
On 4 February 2014 15:55, Juan Quintela wrote: > Hi > > After sending the 1st version of this pull, I noticed that I > integrated the wrong version of Orit patches. Resubmitting with the > correct one. > > As a bonus, it includes the reviews-by from David O:-) > > Sorry for the inconveniences, Ju

Re: [Qemu-devel] [PATCH] zynq: Request qemu reset when PSS_RESET_CTRL triggered.

2014-02-08 Thread Peter Maydell
On 3 February 2014 04:33, Chris Johns wrote: > If 1 is written to the SLCR's PSS_RESET_CTRL register request a qemu > reset. > > The RTEMS BSPs use this bit and if -no-reboot is used qemu exits cleanly. > > Signed-off-by: Chris Johns > --- > hw/misc/zynq_slcr.c | 6 +- > 1 file changed, 5 in

Re: [Qemu-devel] [PATCH] zynq: Request qemu reset when PSS_RESET_CTRL triggered.

2014-02-08 Thread Peter Maydell
On 8 February 2014 14:04, Peter Maydell wrote: > On 3 February 2014 04:33, Chris Johns wrote: >> If 1 is written to the SLCR's PSS_RESET_CTRL register request a qemu >> reset. >> >> The RTEMS BSPs use this bit and if -no-reboot is used qemu exits cleanly. >> >> Signed-off-by: Chris Johns > > [re

Re: [Qemu-devel] [PATCH v2] arm/zynq: Add software reset

2014-02-08 Thread Peter Maydell
On 5 February 2014 07:31, Sebastian Huber wrote: > Signed-off-by: Sebastian Huber > Reviewed-by: Peter Crosthwaite > --- > hw/misc/zynq_slcr.c |5 + > 1 files changed, 5 insertions(+), 0 deletions(- Applied to target-arm.next; thanks. (I have tweaked the commit message, which is a bit

Re: [Qemu-devel] [PATCH v5 0/4] hw/arm: add ethernet support to Allwinner A10

2014-02-08 Thread Peter Maydell
On 30 January 2014 22:02, Beniamino Galvani wrote: > This patch series adds support for the EMAC Fast Ethernet controller > found on Allwinner SoCs to the Allwinner A10. Applied to target-arm.next; thanks for your patience in getting this through code review. -- PMM

Re: [Qemu-devel] [PATCH v19 11/11] module: Pass argv[0] along the module load path

2014-02-08 Thread Paolo Bonzini
Il 08/02/2014 05:40, Fam Zheng ha scritto: This adds parameter "argv0" in calling path from main() to module_call_init(). So that module loader knows the location of executable. Suggested-by: Paolo Bonzini Really? :) Reviewed-by: Paolo Bonzini Paolo Signed-off-by: Fam Zheng --- block.c

Re: [Qemu-devel] [PULL 00/14] Cleanup qdev legacy properties

2014-02-08 Thread Andreas Färber
Paolo, Am 08.02.2014 11:01, schrieb Paolo Bonzini: > Anthony, Peter, > > The following changes since commit 0169c511554cb0014a00290b0d3d26c31a49818f: > > Merge remote-tracking branch 'qemu-kvm/uq/master' into staging (2014-01-24 > 15:52:44 -0800) > > are available in the git repository at: >

Re: [Qemu-devel] [PATCH] qtest: Don't segfault with invalid -qtest option

2014-02-08 Thread Andreas Färber
Am 08.02.2014 10:28, schrieb Fam Zheng: > This prints an error message, instead of core dump, when "-qtest" > option value is invalid, e.g.: > > $ ./x86_64-softmmu/qemu-system-x86_64 -qtest unknown > qemu-system-x86_64: Failed to initialize device for qtest: "unknown" > > Signed-off-by: F

Re: [Qemu-devel] [PATCH v19 11/11] module: Pass argv[0] along the module load path

2014-02-08 Thread Fam Zheng
On Sat, Feb 8, 2014 at 10:12 PM, Paolo Bonzini wrote: > Il 08/02/2014 05:40, Fam Zheng ha scritto: > >> This adds parameter "argv0" in calling path from main() to >> module_call_init(). So that module loader knows the location of >> executable. >> >> Suggested-by: Paolo Bonzini > > > Really? :)

Re: [Qemu-devel] timer issue on 1.7.0 and later

2014-02-08 Thread Alex Bligh
Paolo, On 8 Feb 2014, at 13:26, Paolo Bonzini wrote: >> >> What I'd suggest you do is run qemu within gdb, and when you have >> seen the sluggish behaviour, set a breakpoint in timerlist_run_timers >> just before the line saying cb(opaque). If I'm right your breakpoint >> should immediately hit.

[Qemu-devel] [PATCH] qcow2: Set zero flag for discarded clusters

2014-02-08 Thread Kevin Wolf
Instead of making the backing file contents visible again after a discard request, set the zero flag if possible (i.e. on version >= 3). Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/block/qcow2-clu

[Qemu-devel] [PULL 12/29] target-arm: A64: Add 2-reg-misc REV* instructions

2014-02-08 Thread Peter Maydell
From: Alex Bennée Add the byte-reverse operations REV64, REV32 and REV16 from the two-reg-misc group. Signed-off-by: Alex Bennée Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 71 +- 1 file changed, 70

[Qemu-devel] [PULL 11/29] target-arm: A64: Add narrowing 2-reg-misc instructions

2014-02-08 Thread Peter Maydell
Add the narrowing integer instructions in the 2-reg-misc class. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 85 -- 1 file changed, 83 insertions(+), 2 deletions(-) diff --git a/target-arm/translate-a64

[Qemu-devel] [PULL 13/29] target-arm: A64: Add FNEG and FABS to the SIMD 2-reg-misc group

2014-02-08 Thread Peter Maydell
Add the SIMD FNEG and FABS instructions in the SIMD 2-reg-misc group. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 23 --- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/target-arm/translate-a64.c b/target-arm/t

[Qemu-devel] [PULL 29/29] arm/zynq: Add software system reset via SCLR

2014-02-08 Thread Peter Maydell
From: Sebastian Huber Support software-driven system reset via the register in the SCLR. Signed-off-by: Sebastian Huber Reviewed-by: Peter Crosthwaite Signed-off-by: Peter Maydell --- hw/misc/zynq_slcr.c | 5 + 1 file changed, 5 insertions(+) diff --git a/hw/misc/zynq_slcr.c b/hw/misc/z

[Qemu-devel] [PULL 06/29] target-arm: A64: Implement remaining integer scalar-3-same insns

2014-02-08 Thread Peter Maydell
Implement the remaining integer instructions in the scalar-three-reg-same group: SQADD, UQADD, SQSUB, UQSUB, SQSHL, UQSHL, SQRSHL, UQRSHL, SQDMULH, SQRDMULH. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 106 +---

[Qemu-devel] [PULL 25/29] util/fifo8: implement push/pop of multiple bytes

2014-02-08 Thread Peter Maydell
From: Beniamino Galvani The patch adds functions fifo8_push_all() and fifo8_pop_buf() which can be used respectively to push the content of a memory buffer to the fifo and to pop multiple bytes obtaining a pointer to the fifo backing buffer. In addition, it implements fifo8_num_free() and fifo8_

[Qemu-devel] [PULL 16/29] arm_gic: Keep track of SGI sources

2014-02-08 Thread Peter Maydell
From: Christoffer Dall Right now the arm gic emulation doesn't keep track of the source of an SGI (which apparently Linux guests don't use, or they're fine with assuming CPU 0 always). Add the necessary matrix on the GICState structure and maintain the data when setting and clearing the pending

[Qemu-devel] [PULL 03/29] target-arm: A64: Implement pairwise integer ops from 3-reg-same SIMD

2014-02-08 Thread Peter Maydell
Implement the pairwise integer operations in the 3-reg-same SIMD group: ADDP, SMAXP, SMINP, UMAXP and UMINP. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 124 - 1 file changed, 123 insertions(+), 1 delet

[Qemu-devel] [PULL 10/29] target-arm: A64: Implement 2-reg-misc CNT, NOT and RBIT

2014-02-08 Thread Peter Maydell
Implement the 2-reg-misc CNT, NOT and RBIT instructions. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/helper.h| 1 + target-arm/neon_helper.c | 12 target-arm/translate-a64.c | 34 -- 3 files changed, 41 inser

[Qemu-devel] [PULL 19/29] arm_gic: Add GICC_APRn state to the GICState

2014-02-08 Thread Peter Maydell
From: Christoffer Dall The GICC_APRn registers are not currently supported by the ARM GIC v2.0 emulation. This patch adds the missing state. Note that we also change the number of APRs to use a define GIC_NR_APRS based on the maximum number of preemption levels. This patch also adds RAZ/WI acc

[Qemu-devel] [PULL 07/29] target-arm: A64: Add SIMD simple 64 bit insns from scalar 2-reg misc

2014-02-08 Thread Peter Maydell
Implement the simple 64 bit integer operations from the SIMD scalar 2-register misc group (C3.6.12): the comparisons against zero, plus ABS and NEG. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 87 +- 1

[Qemu-devel] [PULL 18/29] vmstate: Add uint32 2D-array support

2014-02-08 Thread Peter Maydell
From: Christoffer Dall Add support for saving VMState of 2D arrays of uint32 values. Reviewed-by: Peter Maydell Signed-off-by: Christoffer Dall Signed-off-by: Peter Maydell --- include/migration/vmstate.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/migration/vmstate.h b

[Qemu-devel] [PULL 01/29] target-arm: A64: Implement SIMD 3-reg-same shift and saturate insns

2014-02-08 Thread Peter Maydell
Implement the SIMD 3-reg-same instructions SQADD, UQADD, SQSUB, UQSUB, SSHL, USHL, SQSHl, UQSHL, SRSHL, URSHL, SQRSHL, UQRSHL; these are all simple calls to existing Neon helpers. We also enable SSHL, USHL, SRSHL and URSHL for the 3-reg-same-scalar category (but not the others because they can have

[Qemu-devel] [PULL 26/29] util/fifo8: clear fifo head upon reset

2014-02-08 Thread Peter Maydell
From: Beniamino Galvani To improve the predictability of fifo8_pop_buf(), the fifo head is set to the start of data buffer upon a reset so that the first call to the function will be able to retrieve all data in the fifo. Signed-off-by: Beniamino Galvani Reviewed-by: Peter Crosthwaite Signed-o

[Qemu-devel] [PULL 28/29] hw/arm/allwinner-a10: initialize EMAC

2014-02-08 Thread Peter Maydell
From: Beniamino Galvani Signed-off-by: Beniamino Galvani Reviewed-by: Peter Crosthwaite Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/arm/allwinner-a10.c | 16 hw/arm/cubieboard.c| 11 +-- include/hw/arm/allwinner-a10.h | 3 +++

[Qemu-devel] [PULL 05/29] target-arm: A64: Implement scalar pairwise ops

2014-02-08 Thread Peter Maydell
Implement the instructions in the scalar pairwise group (C3.6.8). Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 114 - 1 file changed, 113 insertions(+), 1 deletion(-) diff --git a/target-arm/translate-a

[Qemu-devel] [PULL 08/29] target-arm: A64: Add skeleton decode for SIMD 2-reg misc group

2014-02-08 Thread Peter Maydell
Add a skeleton decode for the SIMD 2-reg misc group. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 110 - 1 file changed, 109 insertions(+), 1 deletion(-) diff --git a/target-arm/translate-a64.c b/target

[Qemu-devel] [PULL 09/29] target-arm: A64: Implement 2-register misc compares, ABS, NEG

2014-02-08 Thread Peter Maydell
Implement the simple 2-register-misc operations we can share with the scalar-two-register-misc code. (SUQADD, USQADD, SQABS, SQNEG also fall into this category, but aren't implemented in the scalar-2-register case yet either.) Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- targ

[Qemu-devel] [PULL 17/29] arm_gic: Support setting/getting binary point reg

2014-02-08 Thread Peter Maydell
From: Christoffer Dall Add a binary_point field to the gic emulation structure and support setting/getting this register now when we have it. We don't actually support interrupt grouping yet, oh well. Reviewed-by: Peter Maydell Signed-off-by: Christoffer Dall Signed-off-by: Peter Maydell ---

[Qemu-devel] [PULL 15/29] arm_gic: Fix GIC pending behavior

2014-02-08 Thread Peter Maydell
From: Christoffer Dall The existing implementation of the pending behavior in gic_set_irq, gic_complete_irq, and the distributor pending set/clear registers does not follow the semantics of the GICv2.0 specs, but may implement the 11MPCore support. Therefore, maintain the existing semantics for

[Qemu-devel] [PULL 02/29] target-arm: A64: Implement remaining non-pairwise int SIMD 3-reg-same insns

2014-02-08 Thread Peter Maydell
Implement the SIMD 3-reg-same instructions where the size == 3 case is reserved: SHADD, UHADD, SRHADD, URHADD, SHSUB, UHSUB, SMAX, UMAX, SMIN, UMIN, SABD, UABD, SABA, UABA, MLA, MLS, MUL, PMUL, SQRDMULH, SQDMULH. (None of these have scalar-3-same versions.) This completes the non-pairwise integer i

Re: [Qemu-devel] [PULL v5 00/12] target-lm32 updates

2014-02-08 Thread Peter Maydell
On 4 February 2014 18:58, Michael Walle wrote: > Hi Peter, > > this is a pull request for various updates and fixes for the LatticeMico32 > target. > > Please pull. > > changes since v4: > - rebased > - incorporated all fixes suggested by Peter Maydell during v4 review. > > changes since v3: >

[Qemu-devel] [PULL 23/29] disas/libvixl: Fix upstream libvixl compilation issues

2014-02-08 Thread Peter Maydell
Fix various minor issues with upstream libvixl so that it will compile successfully on the platforms QEMU cares about: * remove unused GBytes constant (it clashes with the glib headers) * fix suffixes on constants to use 'LL' for 64 bit constants so we can compile on 32 bit hosts Signed-off-b

[Qemu-devel] [PULL 27/29] hw/net: add support for Allwinner EMAC Fast Ethernet controller

2014-02-08 Thread Peter Maydell
From: Beniamino Galvani This patch adds support for the Fast Ethernet MAC found on Allwinner SoCs, together with a basic emulation of Realtek RTL8201CP PHY. Since there is no public documentation of the Allwinner controller, the implementation is based on Linux kernel driver. Signed-off-by: Ben

Re: [Qemu-devel] [PATCH] qcow2: Set zero flag for discarded clusters

2014-02-08 Thread Max Reitz
On 08.02.2014 16:28, Kevin Wolf wrote: Instead of making the backing file contents visible again after a discard request, set the zero flag if possible (i.e. on version >= 3). Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 22 -- 1 file changed, 20 insertions(+), 2

[Qemu-devel] [PULL 21/29] rules.mak: Link with C++ if we have a C++ compiler

2014-02-08 Thread Peter Maydell
If we have a C++ compiler available, link with it, because we might be linking some C++ files in. This allows us to include C++ object files in the QEMU binary proper. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- rules.mak | 8 ++-- 1 file changed, 6 insertions(+), 2 dele

[Qemu-devel] [PULL 20/29] rules.mak: Support .cc as a C++ source file suffix

2014-02-08 Thread Peter Maydell
The A64 disassembler libvixl uses .cc as its suffix for C++ source files, so add support for it (we already support .cpp). Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- rules.mak | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rules.mak b/rules.mak ind

[Qemu-devel] [PULL 14/29] target-arm: Add support for AArch32 64bit VCVTB and VCVTT

2014-02-08 Thread Peter Maydell
From: Will Newton Add support for the AArch32 floating-point half-precision to double- precision conversion VCVTB and VCVTT instructions. Signed-off-by: Will Newton [PMM: fixed a minor missing-braces style issue] Signed-off-by: Peter Maydell --- target-arm/translate.c | 83 +++

[Qemu-devel] [PULL 24/29] disas: Implement disassembly output for A64

2014-02-08 Thread Peter Maydell
From: Claudio Fontana Use libvixl to implement disassembly output in debug logs for A64, for use with both AArch64 hosts and targets. Signed-off-by: Claudio Fontana [PMM: * added support for target disassembly * switched to custom QEMUDisassembler so the output format matches what QEMU exp

Re: [Qemu-devel] [PATCH] qcow2: Set zero flag for discarded clusters

2014-02-08 Thread Max Reitz
On 08.02.2014 16:28, Kevin Wolf wrote: Instead of making the backing file contents visible again after a discard request, set the zero flag if possible (i.e. on version >= 3). Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 22 -- 1 file changed, 20 insertions(+), 2

Re: [Qemu-devel] [PATCH] qcow2: Set zero flag for discarded clusters

2014-02-08 Thread Kevin Wolf
Am 08.02.2014 um 17:17 hat Max Reitz geschrieben: > On 08.02.2014 16:28, Kevin Wolf wrote: > >Instead of making the backing file contents visible again after a discard > >request, set the zero flag if possible (i.e. on version >= 3). > > > >Signed-off-by: Kevin Wolf > >--- > > block/qcow2-cluster

[Qemu-devel] [PULL 04/29] tcg: Add TCGV_UNUSED_PTR, TCGV_IS_UNUSED_PTR, TCGV_EQUAL_PTR

2014-02-08 Thread Peter Maydell
We have macros for marking TCGv values as unused, checking if they are unused and comparing them to each other. However these only exist for TCGv_i32 and TCGv_i64; add them for TCGv_ptr as well. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- tcg/tcg.h | 3 +++ 1 file changed, 3

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

2014-02-08 Thread Peter Maydell
ository at: git://git.linaro.org/people/pmaydell/qemu-arm.git tags/pull-target-arm-20140208 for you to fetch changes up to 69991d7dcbcf7f3fe38274bc67fcba3cbbfda0cf: arm/zynq: Add software system reset via SCLR (2014-02-08 14:5

[Qemu-devel] [PATCHv2 2/2] sun4m: Add Sun CG3 framebuffer initialisation function

2014-02-08 Thread Mark Cave-Ayland
In order to allow the user to choose the framebuffer for sparc-softmmu, add -vga tcx and -vga cg3 options to the QEMU command line. If no option is specified, the default TCX framebuffer is used. Signed-off-by: Mark Cave-Ayland CC: Blue Swirl CC: Anthony Liguori CC: Peter Maydell CC: Bob Breue

[Qemu-devel] [PATCHv2 0/2] sun4m: Implement Sun CG3 framebuffer for QEMU

2014-02-08 Thread Mark Cave-Ayland
This patchset provides QEMU with an implementation of the Sun CG3 8-bit framebuffer. It is based upon Bob Breuer's original work which has been rebased onto git master, and is now capable of running with an OpenBIOS CG3 FCode ROM instead of requiring copies of proprietary Sun ROMs. The motivation

[Qemu-devel] [PATCHv2 1/2] sun4m: Add Sun CG3 framebuffer and corresponding OpenBIOS FCode ROM

2014-02-08 Thread Mark Cave-Ayland
The CG3 framebuffer is a simple 8-bit framebuffer for use with operating systems such as early Solaris that do not have drivers for TCX. Signed-off-by: Mark Cave-Ayland CC: Blue Swirl CC: Anthony Liguori CC: Peter Maydell CC: Bob Breuer CC: Artyom Tarasenko --- Makefile

[Qemu-devel] [PATCH v2] qcow2: Set zero flag for discarded clusters

2014-02-08 Thread Kevin Wolf
Instead of making the backing file contents visible again after a discard request, set the zero flag if possible (i.e. on version >= 3). Signed-off-by: Kevin Wolf Reviewed-by: Max Reitz --- block/qcow2-cluster.c | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff

Re: [Qemu-devel] [PATCH v19 11/11] module: Pass argv[0] along the module load path

2014-02-08 Thread Andreas Färber
Am 08.02.2014 05:40, schrieb Fam Zheng: > This adds parameter "argv0" in calling path from main() to > module_call_init(). So that module loader knows the location of > executable. > > Suggested-by: Paolo Bonzini > Signed-off-by: Fam Zheng [...] > diff --git a/bsd-user/main.c b/bsd-user/main.c >

Re: [Qemu-devel] [PATCH 00/11] I2C QOM'ification, part 1

2014-02-08 Thread Andreas Färber
Am 31.01.2014 15:34, schrieb Andreas Färber: > Hello, > > This series prepares for converting I2C to QOM realize. > > Didn't finish that so far, but I'd like to apply this to qom-next before it > starts to conflict. > > Regards, > Andreas > > Cc: Anthony Liguori > Cc: Peter Maydell > > Andre

Re: [Qemu-devel] [PATCH v19 11/11] module: Pass argv[0] along the module load path

2014-02-08 Thread Alexander Graf
On 08.02.2014, at 18:16, Andreas Färber wrote: > Am 08.02.2014 05:40, schrieb Fam Zheng: >> This adds parameter "argv0" in calling path from main() to >> module_call_init(). So that module loader knows the location of >> executable. >> >> Suggested-by: Paolo Bonzini >> Signed-off-by: Fam Zheng

Re: [Qemu-devel] [PULL 16/16] target-i386: Move KVM default-vendor hack to instance_init

2014-02-08 Thread Andreas Färber
Am 03.02.2014 17:39, schrieb Paolo Bonzini: > From: Eduardo Habkost > > As we will not have a cpu_x86_find_by_name() function anymore, > move the KVM default-vendor hack to instance_init. > > Unfortunately we can't move that code to class_init because it depends > on KVM being initialized. > >

Re: [Qemu-devel] [PATCH] nand: Don't use qdev_create() in nand_init()

2014-02-08 Thread Andreas Färber
Am 05.02.2014 15:56, schrieb Igor Mammedov: > On Wed, 5 Feb 2014 15:30:53 +0100 > Andreas Färber wrote: > >> Commit 7426aa72c36c908a7d0eae3e38568bb0a70de479 (nand: Don't inherit >> from Sysbus) changed the parent type of TYPE_NAND but continued to use >> qdev_create(), which handled a NULL BusSt

[Qemu-devel] [PATCH v2 0/8] block: Integrate bdrv_file_open() into bdrv_open()

2014-02-08 Thread Max Reitz
bdrv_file_open() is now nearly a subset of bdrv_open(), except for the fact that bdrv_file_open() is for protocols and bdrv_open() for block drivers. It is possible to use bdrv_file_open() with a block driver, but in that case that block driver must be explicitly specified. Due to these great simi

[Qemu-devel] [PATCH v2 1/8] block: Change BDS parameter of bdrv_open() to **

2014-02-08 Thread Max Reitz
Make bdrv_open() take a pointer to a BDS pointer, similarly to bdrv_file_open(). If a pointer to a NULL pointer is given, bdrv_open() will create a new BDS with an empty name; if the BDS pointer is not NULL, that existing BDS will be reused (in the same way as bdrv_open() already did). Signed-off-

[Qemu-devel] [PATCH v2 3/8] block: Make bdrv_file_open() static

2014-02-08 Thread Max Reitz
Add the bdrv_open() option BDRV_O_PROTOCOL which results in passing the call to bdrv_file_open(). Additionally, make bdrv_file_open() static and therefore bdrv_open() the only way to call it. Consequently, all existing calls to bdrv_file_open() have to be adjusted to use bdrv_open() with the BDRV_

[Qemu-devel] [PATCH v2 2/8] block: Add reference parameter to bdrv_open()

2014-02-08 Thread Max Reitz
Allow bdrv_open() to handle references to existing block devices just as bdrv_file_open() is already capable of. Signed-off-by: Max Reitz --- block.c | 41 ++--- block/qcow2.c | 4 ++-- block/vmdk.c | 3 ++- block/vvfat.c

[Qemu-devel] [PATCH v2 4/8] block: Reuse reference handling from bdrv_open()

2014-02-08 Thread Max Reitz
Remove the reference parameter and the related handling code from bdrv_file_open(), since it exists in bdrv_open() now as well. Signed-off-by: Max Reitz Reviewed-by: Benoit Canet --- block.c | 33 +++-- 1 file changed, 7 insertions(+), 26 deletions(-) diff --git a/b

[Qemu-devel] [PATCH v2 6/8] block: Handle bs->options in bdrv_open() only

2014-02-08 Thread Max Reitz
The fail paths of bdrv_file_open() and bdrv_open() naturally exhibit similarities, thus it is possible to reuse the one from bdrv_open() and shorten the one in bdrv_file_open() accordingly. Also, setting bs->options in bdrv_file_open() is not necessary if it is already done in bdrv_open(). Signed

[Qemu-devel] [PATCH v2 5/8] block: Remove bdrv_new() from bdrv_file_open()

2014-02-08 Thread Max Reitz
Change bdrv_file_open() to take a simple pointer to an already existing BDS instead of an indirect one. The BDS will be created in bdrv_open() if necessary. Signed-off-by: Max Reitz --- block.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/block.c

[Qemu-devel] [PATCH v2 7/8] block: Reuse success path from bdrv_open()

2014-02-08 Thread Max Reitz
The fail and success paths of bdrv_file_open() may be further shortened by reusing code already existent in bdrv_open(). This includes bdrv_file_open() not taking the reference to options which allows the removal of QDECREF(options) in that function. Signed-off-by: Max Reitz --- block.c | 68 +++

[Qemu-devel] [PATCH v2 8/8] block: Remove bdrv_open_image()'s force_raw option

2014-02-08 Thread Max Reitz
This option is now unnecessary since specifying BDRV_O_PROTOCOL as flag will do exactly the same. Signed-off-by: Max Reitz --- block.c | 28 block/blkdebug.c | 2 +- block/blkverify.c | 4 ++-- include/block/block.h | 2 +- 4 files changed,

Re: [Qemu-devel] [PATCH v19 11/11] module: Pass argv[0] along the module load path

2014-02-08 Thread Peter Maydell
On 8 February 2014 04:40, Fam Zheng wrote: > This adds parameter "argv0" in calling path from main() to > module_call_init(). So that module loader knows the location of > executable. This patch looks kind of odd to me. Why are there so many different places calling module_call_init() and passing

[Qemu-devel] [Bug 1276879] Re: lots of dma command 10, 14 not supported

2014-02-08 Thread tyler knosis
No luck with msmouse. NextStep assumes a PS/2 mouse, I believe, which is what QEMU emulates by default. In bochs, the mouse does work in NextStep. Do you know if bochs emulates the PS/2 mouse by default? -- You received this bug notification because you are a member of qemu- devel-ml, which is

[Qemu-devel] [Bug 1276879] Re: lots of dma command 10, 14 not supported

2014-02-08 Thread BALATON Zoltan
I don't know about Bochs but here's another page with resources on running OPENSTEP on a VM: http://www.zebpedersen.co.uk/?p=126 The VMWare drivers (both svga and mouse) should work with QEMU too but I don't know if they are compatible with NeXTSTEP. Now I remember there was some problem with mou

[Qemu-devel] [Bug 1276879] Re: lots of dma command 10, 14 not supported

2014-02-08 Thread tyler knosis
thank you. Will keep at 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/1276879 Title: lots of dma command 10, 14 not supported Status in QEMU: New Bug description: Trying to install NeXTS

Re: [Qemu-devel] [pve-devel] QEMU LIve Migration - swap_free: Bad swap file entry

2014-02-08 Thread Stefan Priebe
i could fix it by explicitly disable xbzrle - it seems its automatically on if i do not set the migration caps to false. So it seems to be a xbzrle bug. Stefan Am 07.02.2014 21:10, schrieb Stefan Priebe: Am 07.02.2014 21:02, schrieb Dr. David Alan Gilbert: * Stefan Priebe (s.pri...@profihost

  1   2   >