Re: [Qemu-devel] [PATCHv3 1/6] ui/vnc: introduce VNC_DIRTY_PIXELS_PER_BIT macro

2014-01-06 Thread Peter Lieven
On 06.01.2014 07:52, Wenchao Xia wrote: @@ -781,10 +784,10 @@ static void vnc_dpy_copy(DisplayChangeListener *dcl, if ((s = w - w_lim) == 0) break; } else if (!x) { -s = (16 - (dst_x % 16)); +s = (16 -

Re: [Qemu-devel] [PATCH] hw/misc/blob-loader: add a generic blob loader

2014-01-06 Thread Peter Maydell
On 6 January 2014 07:56, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: On Mon, Jan 6, 2014 at 5:41 PM, Peter Maydell peter.mayd...@linaro.org wrote: That raises some more general design questions: * how is this expected to interact with rom blob loading, -machine firmware=,

Re: [Qemu-devel] [PATCH v1 2/3] qcow2: fix offset overflow

2014-01-06 Thread Hu Tao
On Mon, Dec 30, 2013 at 01:29:08PM +0800, Hu Tao wrote: When cluster size is big enough it can lead offset overflow in qcow2_alloc_clusters_at(). This patch fixes it. ping. and be more descriptive: The allocation each time is stopped at L2 table boundary(see handle_alloc()), so the possible

Re: [Qemu-devel] [PATCH resend] linux-user: Support the accept4 socketcall

2014-01-06 Thread Laurent Vivier
Le 6 janvier 2014 à 02:57, André Hentschel n...@dawncrow.de a écrit : From: André Hentschel n...@dawncrow.de Cc: Riku Voipio riku.voi...@iki.fi Signed-off-by: André Hentschel n...@dawncrow.de [...] diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index cf08db5..b36f99c

Re: [Qemu-devel] [PULL 0/2] OpenRISC patch queue for 1.8

2014-01-06 Thread Jia Liu
ping~~ On Sat, Dec 21, 2013 at 9:47 AM, Jia Liu pro...@gmail.com wrote: Hi Anthony, This is my OpenRISC patch queue for 1.8, it have been well tested, please pull. Thanks to Richard Henderson, he made the LD/ST updated. Thanks to Stefan Weil, he fixed a typo. Regards, Jia The

Re: [Qemu-devel] [PATCH resend] linux-user: Support the accept4 socketcall

2014-01-06 Thread Peter Maydell
On 6 January 2014 08:45, Laurent Vivier laur...@vivier.eu wrote: Le 6 janvier 2014 à 02:57, André Hentschel n...@dawncrow.de a écrit : diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index cf08db5..b36f99c 100644 --- a/linux-user/syscall_defs.h +++

[Qemu-devel] [Bug 1265998] Re: vfio-pci passed Radeon 7870XT is unstable on first boot of a Windows 8.1 guest

2014-01-06 Thread Michał Węgrzynek
Sorry, I propably just was lucky. It doesn't work without hugepages also. The only thing I can do to make the 7870XT operate correclty under guest is to make it show qemu-system-x86_64: vfio_dma_map(0x7f01db7deec0, 0xc, 0xaff4, 0x2aaac00c) = -16 (Device or resource busy) errors on

Re: [Qemu-devel] [PATCH v3 3/3] qmp: full introspection support for QMP

2014-01-06 Thread Fam Zheng
On 2014年01月05日 20:02, Amos Kong wrote: This patch introduces a new monitor command to query QMP schema information, the return data is a range of schema structs, which contains the useful metadata to help management to check supported features, QMP commands detail, etc. It parses all json

Re: [Qemu-devel] vhost-net issue: does not survive reboot on ppc64

2014-01-06 Thread Alexey Kardashevskiy
On 12/27/2013 12:44 PM, Alexey Kardashevskiy wrote: On 12/27/2013 02:12 AM, Michael S. Tsirkin wrote: On Fri, Dec 27, 2013 at 01:59:19AM +1100, Alexey Kardashevskiy wrote: On 12/27/2013 12:48 AM, Michael S. Tsirkin wrote: On Thu, Dec 26, 2013 at 11:51:04PM +1100, Alexey Kardashevskiy wrote:

Re: [Qemu-devel] [PATCHv3 3/6] ui/vnc: optimize dirty bitmap tracking

2014-01-06 Thread Wenchao Xia
于 2014/1/6 2:02, Peter Lieven 写道: vnc_update_client currently scans the dirty bitmap of each client bitwise which is a very costly operation if only few bits are dirty. vnc_refresh_server_surface does almost the same. this patch optimizes both by utilizing the heavily optimized function

Re: [Qemu-devel] [PATCHv2 04/18] qemu-iotests: fix test 013 to work with any protocol

2014-01-06 Thread Fam Zheng
On 2014年01月06日 14:48, Peter Lieven wrote: On 06.01.2014 06:31, Fam Zheng wrote: On 2014年01月06日 01:21, Peter Lieven wrote: Signed-off-by: Peter Lieven p...@kamp.de --- tests/qemu-iotests/013 |9 - tests/qemu-iotests/013.out |2 +- 2 files changed, 5 insertions(+), 6

Re: [Qemu-devel] Communication between Windows 7 host and Linux guest

2014-01-06 Thread Gripon Sébastien
This is the command line: qemu-system-armw -M versatilepb -kernel ..\BaseQemu\zImage -hda ..\BaseQemu\rootfs.squashfs -hdb ..\BaseQemu\flash.ext3 -append root=/dev/sda r -net tap,ifname=TAP,script=no -net nic I talked with the developer here and it seems that the bad speed is mainly due to

Re: [Qemu-devel] [PATCH v3 2/3] qapi: change qapi to convert schema json

2014-01-06 Thread Fam Zheng
On 2014年01月05日 20:02, Amos Kong wrote: QMP schema is defined in a json file, it will be parsed by qapi scripts and generate C files. We want to return the schema information to management, this patch converts the json file to a string table in a C head file, then we can use the json content in

Re: [Qemu-devel] [PATCH target-arm v2 00/11] Cadence UART cleanups and Tx path fixes

2014-01-06 Thread Peter Maydell
On 2 January 2014 01:57, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: When using QEMU in some terminal environments, char back-ends for serial devices can return EAGAIN for non trivial periods. This coupled with use of qemu_chr_fe_write_all() is a leading cause of: main-loop:

Re: [Qemu-devel] [PATCH resend] linux-user: Support the accept4 socketcall

2014-01-06 Thread Laurent Vivier
Le 6 janvier 2014 à 10:14, Peter Maydell peter.mayd...@linaro.org a écrit : On 6 January 2014 08:45, Laurent Vivier laur...@vivier.eu wrote: Le 6 janvier 2014 à 02:57, André Hentschel n...@dawncrow.de a écrit : diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index

Re: [Qemu-devel] [RFC PATCH v4 0/8] Support arm-gic-kvm save/restore

2014-01-06 Thread Peter Maydell
On 21 December 2013 06:09, Christoffer Dall christoffer.d...@linaro.org wrote: Implement support to save/restore the ARM KVM VGIC state from the kernel. The basic appraoch is to transfer state from the in-kernel VGIC to the emulated arm-gic state representation and let the standard QEMU

Re: [Qemu-devel] [PATCH] spapr-pci: remove io ports workaround

2014-01-06 Thread Greg Kurz
On Fri, 03 Jan 2014 09:08:21 +1100 Alexey Kardashevskiy a...@ozlabs.ru wrote: Please read the rest of this thread. It does not visibly break things but with this patch QEMU starts calling unassigned_mem_accepts() (normally silent) which is not a good sign. Hmm... this is only because

[Qemu-devel] [PULL 15/52] target-arm: A64: Implement minimal set of EL0-visible sysregs

2014-01-06 Thread Peter Maydell
Implement an initial minimal set of EL0-visible system registers: * NZCV * FPCR * FPSR * CTR_EL0 * DCZID_EL0 Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Richard Henderson r...@twiddle.net Reviewed-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- target-arm/cpu.h

[Qemu-devel] [PULL 18/52] target-arm: A64: add support for conditional compare insns

2014-01-06 Thread Peter Maydell
From: Claudio Fontana claudio.font...@linaro.org this patch adds support for C3.5.4 - C3.5.5 Conditional compare (both immediate and register) Signed-off-by: Claudio Fontana claudio.font...@linaro.org Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Richard Henderson

[Qemu-devel] [PULL 49/52] arm/xilinx_zynq: Always instantiate the GEMs

2014-01-06 Thread Peter Maydell
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Don't conditionalise GEM instantiation on networking attachments. The device should always be present even if not attached to a network. This allows for probing of the device by expectant guests (such as OS's). This is needed because sysbus

[Qemu-devel] [PULL 51/52] arm_gic: Rename GIC_X_TRIGGER to GIC_X_EDGE_TRIGGER

2014-01-06 Thread Peter Maydell
From: Christoffer Dall christoffer.d...@linaro.org TRIGGER can really mean mean anything (e.g. was it triggered, is it level-triggered, is it edge-triggered, etc.). Rename to EDGE_TRIGGER to make the code comprehensible without looking up the data structure. Reviewed-by: Peter Maydell

[Qemu-devel] [PULL 46/52] char/cadence_uart: Implement Tx flow control

2014-01-06 Thread Peter Maydell
From: Peter Crosthwaite peter.crosthwa...@xilinx.com If the UART back-end blocks, buffer in the Tx FIFO to try again later. This stops the IO-thread busy waiting on char back-ends (which causes all sorts of performance problems). Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com

[Qemu-devel] [PULL 52/52] hw: arm_gic: Introduce gic_set_priority function

2014-01-06 Thread Peter Maydell
From: Christoffer Dall christoffer.d...@linaro.org To make the code slightly cleaner to look at and make the save/restore code easier to understand, introduce this function to set the priority of interrupts. Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Christoffer Dall

[Qemu-devel] [PULL 48/52] target-arm: remove raw_read|write duplication

2014-01-06 Thread Peter Maydell
From: Peter Crosthwaite peter.crosthwa...@xilinx.com There is an inline duplication of the raw_read and raw_write function bodies. Fix by just calling raw_read/raw_write instead. Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org

[Qemu-devel] [PULL 50/52] target-arm: fix build with gcc 4.8.2

2014-01-06 Thread Peter Maydell
From: Michael S. Tsirkin m...@redhat.com commit 5ce4f35781028ce1aee3341e6002f925fdc7aaf3 target-arm: A64: add set_pc cpu method introduces an array aarch64_cpus which is zero size if this code is built without CONFIG_USER_ONLY. In particular an attempt to iterate over this array produces a

[Qemu-devel] [PULL 45/52] char/cadence_uart: Delete redundant rx rst logic

2014-01-06 Thread Peter Maydell
From: Peter Crosthwaite peter.crosthwa...@xilinx.com uart_rx_reset() called immediately above already does this. Remove. Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com Message-id: 05e30826496cf2579084ed801ac0b2c0d0a3071f.1388626249.git.peter.crosthwa...@xilinx.com Signed-off-by:

[Qemu-devel] [PULL 31/52] target-arm: A64: Add fmov (scalar, immediate) instruction

2014-01-06 Thread Peter Maydell
From: Alexander Graf ag...@suse.de This patch adds emulation for the fmov instruction working on scalars with an immediate payload. Signed-off-by: Alexander Graf ag...@suse.de [WN: Commit message tweak, rebase and use new infrastructure.] Signed-off-by: Will Newton will.new...@linaro.org

[Qemu-devel] [PULL 44/52] char/cadence_uart: Use the TX fifo for transmission

2014-01-06 Thread Peter Maydell
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Populate the TxFIFO with the Tx data before sending. Prepares support for proper Tx flow control implementation. Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com Message-id:

[Qemu-devel] [PULL 30/52] target-arm: A64: Add Floating-point data-processing (3 source) insns

2014-01-06 Thread Peter Maydell
From: Alexander Graf ag...@suse.de This patch adds emulation for the Floating-point data-processing (3 source) group of instructions. Signed-off-by: Alexander Graf ag...@suse.de [WN: Commit message tweak, merged single and double precision patches. Implement using muladd as suggested by Richard

[Qemu-devel] [PULL 39/52] char/cadence_uart: s/r_fifo/rx_fifo

2014-01-06 Thread Peter Maydell
From: Peter Crosthwaite peter.crosthwa...@xilinx.com Rename this field to match the many other uses of rx. Xilinx docmentation (UG585) also refers to this as RxFIFO. Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com Message-id:

[Qemu-devel] [PULL 04/52] target-arm: A64: add support for ld/st with index

2014-01-06 Thread Peter Maydell
From: Alex Bennée alex.ben...@linaro.org This adds support for the pre/post-index ld/st forms with immediate offsets as well as the un-scaled immediate form (which are all variations on the same 9-bit immediate instruction form). Signed-off-by: Alex Bennée alex.ben...@linaro.org Signed-off-by:

[Qemu-devel] [PULL 26/52] target-arm: A64: Add support for dumping AArch64 VFP register state

2014-01-06 Thread Peter Maydell
From: Alexander Graf ag...@suse.de When dumping the current CPU state, we can also get a request to dump the FPU state along with the CPU's integer state. Add support to dump the VFP state when that flag is set, so that we can properly debug code that modifies floating point registers.

[Qemu-devel] [PULL 09/52] target-arm: A64: Add decoder skeleton for FP instructions

2014-01-06 Thread Peter Maydell
Add a top level decoder skeleton for FP instructions. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Richard Henderson r...@twiddle.net --- target-arm/translate-a64.c | 170 - 1 file changed, 169 insertions(+), 1 deletion(-) diff

[Qemu-devel] [PULL 47/52] target-arm: use c13_context field for CONTEXTIDR

2014-01-06 Thread Peter Maydell
From: Sergey Fedorov s.fedo...@samsung.com Use c13_context field instead of c13_fcse for CONTEXTIDR register definition. Signed-off-by: Sergey Fedorov s.fedo...@samsung.com Reviewed-by: Peter Crosthwaite peter.crosthwa...@xilinx.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org Message-id:

[Qemu-devel] [PULL 36/52] char/cadence_uart: Mark struct fields as public/private

2014-01-06 Thread Peter Maydell
From: Peter Crosthwaite peter.crosthwa...@xilinx.com As per current QOM conventions. Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com Message-id: a1e31bd62e9709ffb9b3efc6c120f83f30b7a660.1388626249.git.peter.crosthwa...@xilinx.com Signed-off-by: Peter Maydell

[Qemu-devel] [PULL 42/52] char/cadence_uart: Remove TX timer add TX FIFO state

2014-01-06 Thread Peter Maydell
From: Peter Crosthwaite peter.crosthwa...@xilinx.com This tx timer implementation is flawed. Despite the controller attempting to time the guest visable assertion of the TX-empty status bit (and corresponding interrupt) the controller is still transmitting characters instantaneously. There is

[Qemu-devel] [PULL 35/52] target-arm: Give the FPSCR rounding modes names

2014-01-06 Thread Peter Maydell
From: Alexander Graf ag...@suse.de When setting rounding modes we currently just hardcode the numeric values for rounding modes in a big switch statement. With AArch64 support coming, we will need to refer to these rounding modes at different places throughout the code though, so let's better

[Qemu-devel] [PULL 22/52] linux-user: AArch64: define TARGET_CLONE_BACKWARDS

2014-01-06 Thread Peter Maydell
From: Claudio Fontana claudio.font...@linaro.org The AArch64 linux-user support was written before but merged after commit 4ce6243dc621 which cleaned up the handling of the clone() syscall argument order, so we failed to notice that AArch64 also needs TARGET_CLONE_BACKWARDS to be defined. Add

[Qemu-devel] [PULL 34/52] target-arm: A64: Add support for floating point cond select

2014-01-06 Thread Peter Maydell
From: Claudio Fontana claudio.font...@linaro.org This adds decoding support for C3.6.24 FP conditional select. Signed-off-by: Claudio Fontana claudio.font...@linaro.org Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Richard Henderson r...@twiddle.net ---

[Qemu-devel] [PULL 08/52] target-arm: A64: implement SVC, BRK

2014-01-06 Thread Peter Maydell
From: Alexander Graf ag...@suse.de Add decoding for the exception generating instructions, and implement SVC (syscalls) and BRK (software breakpoint). Signed-off-by: Alexander Graf ag...@suse.de Signed-off-by: Alex Bennée alex.ben...@linaro.org Signed-off-by: Peter Maydell

[Qemu-devel] [PULL 14/52] target-arm: A64: Implement MRS/MSR/SYS/SYSL

2014-01-06 Thread Peter Maydell
The AArch64 equivalent of the traditional AArch32 cp15 coprocessor registers is the set of instructions MRS/MSR/SYS/SYSL, which cover between them both true system registers and the operations with side effects such as cache maintenance which in AArch32 are mixed in with other cp15 registers.

[Qemu-devel] [PULL 25/52] default-configs: Add config for aarch64-linux-user

2014-01-06 Thread Peter Maydell
Add a config for aarch64-linux-user, thereby enabling it as a valid target. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Alexander Graf ag...@suse.de Reviewed-by: Richard Henderson r...@twiddle.net --- default-configs/aarch64-linux-user.mak | 3 +++ 1 file changed, 3

[Qemu-devel] [PULL 33/52] target-arm: A64: Add support for floating point conditional compare

2014-01-06 Thread Peter Maydell
From: Claudio Fontana claudio.font...@linaro.org This adds decoding support for C3.6.23 FP Conditional Compare. Signed-off-by: Claudio Fontana claudio.font...@linaro.org Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Richard Henderson r...@twiddle.net ---

[Qemu-devel] [PULL 03/52] target-arm: A64: add support for ld/st with reg offset

2014-01-06 Thread Peter Maydell
From: Alex Bennée alex.ben...@linaro.org This adds support for the load/store forms using a register offset. Signed-off-by: Alex Bennée alex.ben...@linaro.org Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Richard Henderson r...@twiddle.net --- target-arm/translate-a64.c |

[Qemu-devel] [PULL 06/52] target-arm: A64: add support for move wide instructions

2014-01-06 Thread Peter Maydell
From: Alex Bennée alex.ben...@linaro.org This patch adds emulation for the mov wide instructions (MOVN, MOVZ, MOVK). Signed-off-by: Alex Bennée alex.ben...@linaro.org Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Richard Henderson r...@twiddle.net ---

[Qemu-devel] [PULL 20/52] target-arm: Widen exclusive-access support struct fields to 64 bits

2014-01-06 Thread Peter Maydell
In preparation for adding support for A64 load/store exclusive instructions, widen the fields in the CPU state struct that deal with address and data values for exclusives from 32 to 64 bits. Although in practice AArch64 and AArch32 exclusive accesses will be generally separate there are some odd

[Qemu-devel] [PULL 27/52] target-arm: A64: Fix vector register access on bigendian hosts

2014-01-06 Thread Peter Maydell
The A64 128 bit vector registers are stored as a pair of uint64_t values in the register array. This means that if we're directly loading or storing a value of size less than 64 bits we must adjust the offset appropriately to account for whether the host is bigendian or not. Provide utility

[Qemu-devel] [PULL 32/52] target-arm: A64: Add support for floating point compare

2014-01-06 Thread Peter Maydell
From: Claudio Fontana claudio.font...@linaro.org Add decoding support for C3.6.22 Floating-point compare. Signed-off-by: Claudio Fontana claudio.font...@linaro.org Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Richard Henderson r...@twiddle.net --- target-arm/helper-a64.c

Re: [Qemu-devel] [PATCH] acpi unit-test: resolved iasl crash

2014-01-06 Thread Michael S. Tsirkin
On Sun, Dec 29, 2013 at 02:32:50PM +0200, Marcel Apfelbaum wrote: It seems that iasl has an issue when disassembles some ACPI tables using the command line: iasl -e DSDT -e SSDT -d HPET I opened a bug on iasl project: https://github.com/acpica/acpica/issues/20 Modified the iasl command

[Qemu-devel] [PULL 19/52] target-arm: aarch64: add support for ld lit

2014-01-06 Thread Peter Maydell
From: Alexander Graf ag...@suse.de Adds support for Load Register (literal), both normal and SIMD/FP forms. Signed-off-by: Alexander Graf ag...@suse.de Signed-off-by: Alex Bennée alex.ben...@linaro.org Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Richard Henderson

Re: [Qemu-devel] [PATCH] hw/misc/blob-loader: add a generic blob loader

2014-01-06 Thread Paolo Bonzini
Il 06/01/2014 06:36, Li Guang ha scritto: dma_memory_write() work? what about cpu_physical_memory_write_rom ? Sorry, I missed that load_image_targphys is already doing the right thing on reset. Paolo

Re: [Qemu-devel] [PATCH] hw/misc/blob-loader: add a generic blob loader

2014-01-06 Thread Paolo Bonzini
Il 06/01/2014 08:56, Peter Crosthwaite ha scritto: What are the guidelines for when to use one or the other? -machine firmware= if you want to load a firmware blob in a board specific way. This if you want to place a blob in memory at an arbitrary location on reset. -machine firmware= is

Re: [Qemu-devel] [PATCHv2 04/18] qemu-iotests: fix test 013 to work with any protocol

2014-01-06 Thread Peter Lieven
On 06.01.2014 11:09, Fam Zheng wrote: On 2014年01月06日 14:48, Peter Lieven wrote: On 06.01.2014 06:31, Fam Zheng wrote: On 2014年01月06日 01:21, Peter Lieven wrote: Signed-off-by: Peter Lieven p...@kamp.de --- tests/qemu-iotests/013 |9 - tests/qemu-iotests/013.out |2 +- 2

[Qemu-devel] [PATCH] xenfb: map framebuffer read-only and handle unmap errors

2014-01-06 Thread Stefano Stabellini
The framebuffer is needlessly mapped (PROT_READ | PROT_WRITE), map it PROT_READ instead. The framebuffer is unmapped by replacing the framebuffer pages with anonymous shared memory, calling mmap. Check for return errors and print a warning. Signed-off-by: Stefano Stabellini

[Qemu-devel] [PULL 12/52] target-arm: Update generic cpreg code for AArch64

2014-01-06 Thread Peter Maydell
Update the generic cpreg support code to also handle AArch64: AArch64-visible registers coexist in the same hash table with AArch32-visible ones, with a bit in the hash key distinguishing them. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Peter Crosthwaite

[Qemu-devel] [PULL 21/52] target-arm: A64: support for ld/st/cl exclusive

2014-01-06 Thread Peter Maydell
From: Michael Matz m...@suse.de This implement exclusive loads/stores for aarch64 along the lines of arm32 and ppc implementations. The exclusive load remembers the address and loaded value. The exclusive store throws an an exception which uses those values to check for equality in a proper

[Qemu-devel] [PULL 05/52] target-arm: A64: add support for add, addi, sub, subi

2014-01-06 Thread Peter Maydell
From: Alex Bennée alex.ben...@linaro.org Implement the non-carry forms of addition and subtraction (immediate, extended register and shifted register). This includes the code to calculate NZCV if the instruction calls for setting the flags. Signed-off-by: Alex Bennée alex.ben...@linaro.org

Re: [Qemu-devel] [PATCHv2 04/18] qemu-iotests: fix test 013 to work with any protocol

2014-01-06 Thread Fam Zheng
On 2014年01月06日 20:21, Peter Lieven wrote: On 06.01.2014 11:09, Fam Zheng wrote: On 2014年01月06日 14:48, Peter Lieven wrote: On 06.01.2014 06:31, Fam Zheng wrote: On 2014年01月06日 01:21, Peter Lieven wrote: Signed-off-by: Peter Lieven p...@kamp.de --- tests/qemu-iotests/013 |9 -

[Qemu-devel] [PULL 29/52] target-arm: A64: Add Floating-point data-processing (2 source) insns

2014-01-06 Thread Peter Maydell
From: Alexander Graf ag...@suse.de This patch adds emulation for the Floating-point data-processing (2 source) group of instructions. Signed-off-by: Alexander Graf ag...@suse.de [WN: Commit message tweak, merge single and double precision patches. Rebase and update to new infrastructure.

[Qemu-devel] [PATCH] Makefile: properly install bios-256k.bin

2014-01-06 Thread Peter Lieven
Commit bcf2b7d introduced new 256k seabios files. However, they were not installed. Signed-off-by: Peter Lieven p...@kamp.de --- Makefile |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bdff4e4..807054b 100644 --- a/Makefile +++ b/Makefile @@

Re: [Qemu-devel] [V5 PATCH 02/22] softfloat: Add float32_to_uint64()

2014-01-06 Thread Peter Maydell
On 2 January 2014 22:21, Tom Musta tommu...@gmail.com wrote: This patch adds the float32_to_uint64() routine, which converts a 32-bit floating point number to an unsigned 64 bit number. This contribution can be licensed under either the softfloat-2a or -2b license. Signed-off-by: Tom Musta

[Qemu-devel] Project idea: make QEMU more flexible

2014-01-06 Thread Wei Liu
Hi all This idea is to modify QEMU's Makefiles, plus implementing some stubs to make it possible to tailor QEMU to a smaller binary. The current setup for Xen on X86 is to build i386-softmmu, and uses this single binary for two purposes: 1. serves as device emulator for HVM guest. 2. serves as

[Qemu-devel] [PULL 43/52] char/cadence_uart: Fix can_receive logic

2014-01-06 Thread Peter Maydell
From: Peter Crosthwaite peter.crosthwa...@xilinx.com The can_receive logic was only taking into account the RxFIFO occupancy. RxFIFO population is only used for the echo and normal modes however. Improve the logic to correctly return the true number of receivable characters based on the current

[Qemu-devel] [PULL 37/52] char/cadence_uart: Add missing uart_update_state

2014-01-06 Thread Peter Maydell
From: Peter Crosthwaite peter.crosthwa...@xilinx.com This should be rechecked on bus write accesses as such accesses may change the underlying state that generates the interrupt. Particular relevant for when the guest touches the interrupt status or mask. Signed-off-by: Peter Crosthwaite

[Qemu-devel] [PULL 24/52] .travis.yml: Add aarch64-* targets

2014-01-06 Thread Peter Maydell
From: Alex Bennée alex.ben...@linaro.org Now the AArch64 targets are in mainline we can include them in our Travis test matrix. Signed-off-by: Alex Bennée alex.ben...@linaro.org Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff

[Qemu-devel] [PATCH v2 15/24] softfloat: Refactor code handling various rounding modes

2014-01-06 Thread Peter Maydell
Refactor the code in various functions which calculates rounding increments given the current rounding mode, so that instead of a set of nested if statements we have a simple switch statement. This will give us a clean place to add the case for the new tiesAway rounding mode. Signed-off-by: Peter

Re: [Qemu-devel] [PATCH] Makefile: properly install bios-256k.bin

2014-01-06 Thread Peter Maydell
On 6 January 2014 12:54, Peter Lieven p...@kamp.de wrote: Commit bcf2b7d introduced new 256k seabios files. However, they were not installed. This is a dup of this patch by Eduardo from last month: http://patchwork.ozlabs.org/patch/299233/ thanks -- PMM

Re: [Qemu-devel] [PATCH] Add bios-256k.bin to BLOBS on Makefile

2014-01-06 Thread Peter Maydell
Ping -- who's going to take this patch? Maybe it should go via -trivial? thanks -- PMM On 9 December 2013 23:33, Eduardo Habkost ehabk...@redhat.com wrote: The default machine-type (pc-i440fx-2.0) now requires bios-256k.bin, but make install isn't installing it, so qemu-system-x86_64 won't run

Re: [Qemu-devel] [PATCH] docs: qcow2 compat=1.1 is now the default

2014-01-06 Thread Eric Blake
On 01/05/2014 09:39 PM, Stefan Hajnoczi wrote: Commit 9117b47717ad208b12786ce88eacb013f9b3dd1c (qcow2: Change default for new images to compat=1.1) changed the default qcow2 image format version but forgot to update qemu-doc.texi and qemu-img.texi. Signed-off-by: Stefan Hajnoczi

Re: [Qemu-devel] [PATCH] Makefile: properly install bios-256k.bin

2014-01-06 Thread Peter Maydell
On 6 January 2014 13:17, Peter Lieven p...@kamp.de wrote: On 06.01.2014 14:12, Peter Maydell wrote: On 6 January 2014 12:54, Peter Lieven p...@kamp.de wrote: Commit bcf2b7d introduced new 256k seabios files. However, they were not installed. This is a dup of this patch by Eduardo from last

Re: [Qemu-devel] [PATCH] Makefile: properly install bios-256k.bin

2014-01-06 Thread Peter Lieven
On 06.01.2014 14:17, Peter Maydell wrote: On 6 January 2014 13:17, Peter Lieven p...@kamp.de wrote: On 06.01.2014 14:12, Peter Maydell wrote: On 6 January 2014 12:54, Peter Lieven p...@kamp.de wrote: Commit bcf2b7d introduced new 256k seabios files. However, they were not installed. This is

Re: [Qemu-devel] [PATCH] acpi unit-test: resolved iasl crash

2014-01-06 Thread Marcel Apfelbaum
On Mon, 2014-01-06 at 13:43 +0200, Michael S. Tsirkin wrote: On Sun, Dec 29, 2013 at 02:32:50PM +0200, Marcel Apfelbaum wrote: It seems that iasl has an issue when disassembles some ACPI tables using the command line: iasl -e DSDT -e SSDT -d HPET I opened a bug on iasl project:

Re: [Qemu-devel] Project idea: make QEMU more flexible

2014-01-06 Thread Peter Crosthwaite
On Mon, Jan 6, 2014 at 10:54 PM, Wei Liu wei.l...@citrix.com wrote: Hi all This idea is to modify QEMU's Makefiles, plus implementing some stubs to make it possible to tailor QEMU to a smaller binary. The current setup for Xen on X86 is to build i386-softmmu, and uses this single binary for

Re: [Qemu-devel] [Xen-devel] Project idea: make QEMU more flexible

2014-01-06 Thread Frediano Ziglio
On Mon, 2014-01-06 at 12:54 +, Wei Liu wrote: Hi all This idea is to modify QEMU's Makefiles, plus implementing some stubs to make it possible to tailor QEMU to a smaller binary. The current setup for Xen on X86 is to build i386-softmmu, and uses this single binary for two purposes:

[Qemu-devel] [PULL 07/52] target-arm: A64: add support for 3 src data proc insns

2014-01-06 Thread Peter Maydell
From: Alexander Graf ag...@suse.de This patch adds emulation for the Data-processing (3 source) family of instructions, namely MADD, MSUB, SMADDL, SMSUBL, SMULH, UMADDL, UMSUBL, UMULH. Signed-off-by: Alexander Graf ag...@suse.de Signed-off-by: Alex Bennée alex.ben...@linaro.org Signed-off-by:

[Qemu-devel] [PATCH v2 22/24] target-arm: A64: Add floating-point-integer conversion instructions

2014-01-06 Thread Peter Maydell
From: Will Newton will.new...@linaro.org Add support for the AArch64 floating-point - integer conversion instructions to disas_fpintconv. In the process we can rearrange and simplify the detection of unallocated encodings a little. We also correct a typo in the instruction encoding diagram for

[Qemu-devel] [PATCH v2 23/24] target-arm: A64: Add 1-source 32-to-32 and 64-to-64 FP instructions

2014-01-06 Thread Peter Maydell
This patch adds support for those instructions in the Floating-point data-processing (1 source) group which are simple 32-bit-to-32-bit or 64-bit-to-64-bit operations (ie everything except FCVT between single/double/half precision). We put the new round-to-int helpers in helper.c because they

[Qemu-devel] [PULL 23/52] linux-user: AArch64: Use correct values for FPSR/FPCR in sigcontext

2014-01-06 Thread Peter Maydell
From: Will Newton will.new...@linaro.org Use the helpers provided for getting the correct FPSR and FPCR values for the signal context. Signed-off-by: Will Newton will.new...@linaro.org Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Richard Henderson r...@twiddle.net ---

[Qemu-devel] [PATCH v2 21/24] target-arm: A64: Add Floating-point-fixed-point instructions

2014-01-06 Thread Peter Maydell
From: Alexander Graf ag...@suse.de This patch adds emulation for the instruction group labeled Floating-point - fixed-point conversions in the ARM ARM. Namely this includes the instructions SCVTF, UCVTF, FCVTZS, FCVTZU (scalar, fixed-point). Signed-off-by: Alexander Graf ag...@suse.de [WN:

[Qemu-devel] [PATCH v2 03/24] softfloat: Add 16 bit integer to float conversions

2014-01-06 Thread Peter Maydell
Add the float to 16 bit integer conversion routines. These can be trivially implemented in terms of the int32_to_float* routines, but providing them makes our API more symmetrical and can simplify callers. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- include/fpu/softfloat.h | 21

[Qemu-devel] [PULL 02/52] target-arm: A64: add support for ld/st unsigned imm

2014-01-06 Thread Peter Maydell
From: Alex Bennée alex.ben...@linaro.org This adds support for the forms of ld/st with a 12 bit unsigned immediate offset. Signed-off-by: Alex Bennée alex.ben...@linaro.org Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Richard Henderson r...@twiddle.net ---

[Qemu-devel] [PATCH v2 20/24] target-arm: A64: Add extra VFP fixed point conversion helpers

2014-01-06 Thread Peter Maydell
From: Will Newton will.new...@linaro.org Define the full set of floating point to fixed point conversion helpers required to support AArch64. Signed-off-by: Will Newton will.new...@linaro.org Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Richard Henderson r...@twiddle.net

[Qemu-devel] [PATCH v2 08/24] softfloat: Add float32_to_uint64()

2014-01-06 Thread Peter Maydell
From: Tom Musta tommu...@gmail.com This patch adds the float32_to_uint64() routine, which converts a 32-bit floating point number to an unsigned 64 bit number. This contribution can be licensed under either the softfloat-2a or -2b license. Signed-off-by: Tom Musta tommu...@gmail.com

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

2014-01-06 Thread Peter Maydell
changes since commit f976b09ea2493fd41c98aaf6512908db0bae: PPC: Fix compilation with TCG debug (2013-12-22 19:15:55 +0100) are available in the git repository at: git://git.linaro.org/people/pmaydell/qemu-arm.git tags/pull-target-arm-20140106 for you to fetch changes up

[Qemu-devel] [PULL 16/52] target-arm: Widen thread-local register state fields to 64 bits

2014-01-06 Thread Peter Maydell
The common pattern for system registers in a 64-bit capable ARM CPU is that when in AArch32 the cp15 register is a view of the bottom 32 bits of the 64-bit AArch64 system register; writes in AArch32 leave the top half unchanged. The most natural way to model this is to have the state field in the

[Qemu-devel] [PATCH v2 10/24] softfloat: Fix float64_to_uint32

2014-01-06 Thread Peter Maydell
From: Tom Musta tommu...@gmail.com The float64_to_uint32 has several flaws: - for numbers between 2**32 and 2**64, the inexact exception flag may get incorrectly set. In this case, only the invalid flag should be set. test pattern: 425F81378DC0CD1F / 0x1.f81378dc0cd1fp+38 - for

[Qemu-devel] [PATCH v2 05/24] softfloat: Fix float64_to_uint64

2014-01-06 Thread Peter Maydell
From: Tom Musta tommu...@gmail.com The comment preceding the float64_to_uint64 routine suggests that the implementation is broken. And this is, indeed, the case. This patch properly implements the conversion of a 64-bit floating point number to an unsigned, 64 bit integer. This contribution

[Qemu-devel] [PATCH v2 13/24] softfloat: Factor out RoundAndPackFloat16 and NormalizeFloat16Subnormal

2014-01-06 Thread Peter Maydell
In preparation for adding conversions between float16 and float64, factor out code currently done inline in the float16=float32 conversion functions into functions RoundAndPackFloat16 and NormalizeFloat16Subnormal along the lines of the existing versions for the other float types. Note that we

[Qemu-devel] [PATCH v2 11/24] softfloat: Fix float64_to_uint32_round_to_zero

2014-01-06 Thread Peter Maydell
From: Tom Musta tommu...@gmail.com The float64_to_uint32_round_to_zero routine is incorrect. For example, the following test pattern: 425F81378DC0CD1F / 0x1.f81378dc0cd1fp+38 will erroneously set the inexact flag. This patch re-implements the routine to use the

[Qemu-devel] [PATCH v2 18/24] target-arm: Rename A32 VFP conversion helpers

2014-01-06 Thread Peter Maydell
From: Will Newton will.new...@linaro.org The VFP conversion helpers for A32 round to zero as this is the only rounding mode supported. Rename these helpers to make it clear that they round to zero and are not suitable for use in the AArch64 code. Signed-off-by: Will Newton will.new...@linaro.org

[Qemu-devel] [PATCH v2 24/24] target-arm: A64: Add support for FCVT between half, single and double

2014-01-06 Thread Peter Maydell
Add support for FCVT between half, single and double precision. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/helper.c| 20 + target-arm/helper.h| 2 ++ target-arm/translate-a64.c | 75 +- 3 files

[Qemu-devel] [PATCH v2 00/24] A64 decoder patchset 6: rest of floating point

2014-01-06 Thread Peter Maydell
This patchset completes the FP emulation, leaving us with only Neon (and CRC32) to go to complete the user-mode emulation. Most of this is fixing issues and adding new features to softfloat. (As usual, all Linaro authored softfloat patches are licensed under either softfloat-2a or softfloat-2b,

[Qemu-devel] [PATCH v2 14/24] softfloat: Add float16 = float64 conversion functions

2014-01-06 Thread Peter Maydell
Add the conversion functions float16_to_float64() and float64_to_float16(), which will be needed for the ARM A64 instruction set. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- fpu/softfloat.c | 75 + include/fpu/softfloat.h | 2

[Qemu-devel] [PATCH v2 04/24] softfloat: Make the int-to-float functions take exact-width types

2014-01-06 Thread Peter Maydell
Currently the int-to-float functions take types which are specified as at least X bits wide, rather than exactly X bits wide. This is confusing and unhelpful since it means that the callers have to include an explicit cast to [u]intXX_t to ensure the correct behaviour. Fix them all to take the

[Qemu-devel] [PATCH v2 16/24] softfloat: Add support for ties-away rounding

2014-01-06 Thread Peter Maydell
IEEE754-2008 specifies a new rounding mode: roundTiesToAway: the floating-point number nearest to the infinitely precise result shall be delivered; if the two nearest floating-point numbers bracketing an unrepresentable infinitely precise result are equally near, the one with larger magnitude

[Qemu-devel] [PATCH v2 02/24] softfloat: Add float to 16bit integer conversions.

2014-01-06 Thread Peter Maydell
From: Will Newton will.new...@linaro.org ARMv8 requires support for converting 32 and 64bit floating point values to signed and unsigned 16bit integers. Signed-off-by: Will Newton will.new...@linaro.org [PMM: updated not to incorrectly set Inexact for Invalid inputs] Signed-off-by: Peter Maydell

Re: [Qemu-devel] [PATCHv3 3/6] ui/vnc: optimize dirty bitmap tracking

2014-01-06 Thread Peter Lieven
On 06.01.2014 11:08, Wenchao Xia wrote: 于 2014/1/6 2:02, Peter Lieven 写道: vnc_update_client currently scans the dirty bitmap of each client bitwise which is a very costly operation if only few bits are dirty. vnc_refresh_server_surface does almost the same. this patch optimizes both by

Re: [Qemu-devel] Project idea: make QEMU more flexible

2014-01-06 Thread Peter Maydell
On 6 January 2014 12:54, Wei Liu wei.l...@citrix.com wrote: In fact I've already hacked a prototype during Christmas. What's I've done so far: 1. create target-null which only has some stubs to CPU emulation framework. 2. add a few lines to configure / Makefiles*, create

[Qemu-devel] [PULL 28/52] target-arm: Use VFP_BINOP macro for min, max, minnum, maxnum

2014-01-06 Thread Peter Maydell
Use the VFP_BINOP macro to provide helpers for min, max, minnum and maxnum, rather than hand-rolling them. (The float64 max version is not used by A32 but will be needed for A64.) Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Richard Henderson r...@twiddle.net ---

[Qemu-devel] [PULL 11/52] target-arm: Pull add one cpreg to hashtable into its own function

2014-01-06 Thread Peter Maydell
define_one_arm_cp_reg_with_opaque() has a set of nested loops which insert a cpreg entry into the hashtable for each of the possible opc/crn/crm values allowed by wildcard specifications. We're about to add an extra loop to this nesting, so pull the core of the loop (which adds a single entry to

  1   2   3   >