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 =

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 wrote: > On Mon, Jan 6, 2014 at 5:41 PM, Peter Maydell > wrote: >> That raises some more general design questions: >> * how is this expected to interact with rom blob loading, -machine >> firmware=, >>etc? > > I guess it's not. The behavior of "-m

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 m

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 a écrit : > > > From: André Hentschel > Cc: Riku Voipio > Signed-off-by: André Hentschel [...] > diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h > index cf08db5..b36f99c 100644 > --- a/linux-user/syscall_defs.h > +++ b/linux-user/

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 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 followin

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 wrote: > >> Le 6 janvier 2014 à 02:57, André Hentschel 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 >> +++ b/linux-user/syscall_defs.h >> @@ -27,6 +27,9 @

[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 sta

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 defini

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

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 f

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 --- tests/qemu-iotests/013 |9 - tests/qemu-iotests/013.out |2 +- 2 files changed, 5 insertions(+), 6 deletions(-) dif

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 Q

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 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: WARNING: I/O thread spun for

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 a écrit : > > > On 6 January 2014 08:45, Laurent Vivier wrote: > > > >> Le 6 janvier 2014 à 02:57, André Hentschel a écrit : > >> diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h > >> index cf08db5..b36f99c 100644 > >> --- a/linux-use

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 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 > vmstate save/restore handle s

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 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 this patc

[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 Reviewed-by: Richard Henderson Reviewed-by: Peter Crosthwaite --- target-arm/cpu.h | 3 ++- target-arm/helper.c| 61

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

2014-01-06 Thread Peter Maydell
From: Claudio Fontana this patch adds support for C3.5.4 - C3.5.5 Conditional compare (both immediate and register) Signed-off-by: Claudio Fontana Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 73 +- 1

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

2014-01-06 Thread Peter Maydell
From: Peter Crosthwaite 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 (or AXI in Xilinx's real hw ca

[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 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 Signed-off-by: Christoffer Dall Mes

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

2014-01-06 Thread Peter Maydell
From: Peter Crosthwaite 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 Message-id: 4bea048b3ab38425701d82ccc1ab92545c26b79c.1388626

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

2014-01-06 Thread Peter Maydell
From: Christoffer Dall 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 Signed-off-by: Christoffer Dall Message-id: 1387606179-22709-3-git-send-email-christoff

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

2014-01-06 Thread Peter Maydell
From: Peter Crosthwaite 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 Reviewed-by: Peter Maydell Message-id: e69281b7e1462b346cb313cf0b89eedc0568125f.1388649290.git.peter.crosthwa.

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

2014-01-06 Thread Peter Maydell
From: "Michael S. Tsirkin" 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 warning under

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

2014-01-06 Thread Peter Maydell
From: Peter Crosthwaite uart_rx_reset() called immediately above already does this. Remove. Signed-off-by: Peter Crosthwaite Message-id: 05e30826496cf2579084ed801ac0b2c0d0a3071f.1388626249.git.peter.crosthwa...@xilinx.com Signed-off-by: Peter Maydell --- hw/char/cadence_uart.c | 2 -- 1 file

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

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

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

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

[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 This patch adds emulation for the "Floating-point data-processing (3 source)" group of instructions. Signed-off-by: Alexander Graf [WN: Commit message tweak, merged single and double precision patches. Implement using muladd as suggested by Richard Henderson.] Signed-off-b

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

2014-01-06 Thread Peter Maydell
From: Peter Crosthwaite 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 Message-id: 7386d7cee0ea175f7e53ed5ff045265528d34e32.1388626249.git.peter.crosthwa...@xilinx.com Signed-off-by: Peter Ma

[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 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 Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson

[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 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. Signed-off-by: Alexand

[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 Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 170 - 1 file changed, 169 insertions(+), 1 deletion(-) diff --git a/target-arm/translate-a64.c b/targe

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

2014-01-06 Thread Peter Maydell
From: Sergey Fedorov Use c13_context field instead of c13_fcse for CONTEXTIDR register definition. Signed-off-by: Sergey Fedorov Reviewed-by: Peter Crosthwaite Reviewed-by: Peter Maydell Message-id: 1387521191-15350-1-git-send-email-s.fedo...@samsung.com Signed-off-by: Peter Maydell --- tar

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

2014-01-06 Thread Peter Maydell
From: Peter Crosthwaite As per current QOM conventions. Signed-off-by: Peter Crosthwaite Message-id: a1e31bd62e9709ffb9b3efc6c120f83f30b7a660.1388626249.git.peter.crosthwa...@xilinx.com Signed-off-by: Peter Maydell --- hw/char/cadence_uart.c | 2 ++ 1 file changed, 2 insertions(+) diff --gi

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

2014-01-06 Thread Peter Maydell
From: Peter Crosthwaite 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 also no sense of multiple charac

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

2014-01-06 Thread Peter Maydell
From: Alexander Graf 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 give them names

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

2014-01-06 Thread Peter Maydell
From: Claudio Fontana 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 this define so that clone and

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

2014-01-06 Thread Peter Maydell
From: Claudio Fontana This adds decoding support for C3.6.24 FP conditional select. Signed-off-by: Claudio Fontana Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 45 - 1 file changed, 44 insertions(+),

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

2014-01-06 Thread Peter Maydell
From: Alexander Graf Add decoding for the exception generating instructions, and implement SVC (syscalls) and BRK (software breakpoint). Signed-off-by: Alexander Graf Signed-off-by: Alex Bennée Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 51 +

[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. Imp

[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 Signed-off-by: Alexander Graf Reviewed-by: Richard Henderson --- default-configs/aarch64-linux-user.mak | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 default-configs/aarch64-

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

2014-01-06 Thread Peter Maydell
From: Claudio Fontana This adds decoding support for C3.6.23 FP Conditional Compare. Signed-off-by: Claudio Fontana Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 35 ++- 1 file changed, 34 insertions(+), 1 deletio

[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 This adds support for the load/store forms using a register offset. Signed-off-by: Alex Bennée Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 144 - 1 file changed, 143 insertions(+),

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

2014-01-06 Thread Peter Maydell
From: Alex Bennée This patch adds emulation for the mov wide instructions (MOVN, MOVZ, MOVK). Signed-off-by: Alex Bennée Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 51 -- 1 file changed, 49 insertio

[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 t

[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 functio

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

2014-01-06 Thread Peter Maydell
From: Claudio Fontana Add decoding support for C3.6.22 Floating-point compare. Signed-off-by: Claudio Fontana Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/helper-a64.c| 45 target-arm/helper-a64.h| 4 +++ target-arm/tran

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 comma

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

2014-01-06 Thread Peter Maydell
From: Alexander Graf Adds support for Load Register (literal), both normal and SIMD/FP forms. Signed-off-by: Alexander Graf Signed-off-by: Alex Bennée Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 47

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 firmwa

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 --- tests/qemu-iotests/013 |9 - tests/qemu-iotests/013.out |2 +- 2 files change

[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 CC: Gerd Hoffmann CC

[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 Reviewed-by: Peter Crosthwaite --- target-arm/cpu.h| 78 +++

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

2014-01-06 Thread Peter Maydell
From: Michael Matz 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 exclusive region.

[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 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 Signed-off-by: Peter Maydell Reviewed-by: Richard

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 --- tests/qemu-iotests/013 |9 - tests/qemu

[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 This patch adds emulation for the "Floating-point data-processing (2 source)" group of instructions. Signed-off-by: Alexander Graf [WN: Commit message tweak, merge single and double precision patches. Rebase and update to new infrastructure. Incorporate FMIN/FMAX support p

[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 --- Makefile |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bdff4e4..807054b 100644 --- a/Makefile +++ b/Makefile @@ -290,7 +290,7 @@

Re: [Qemu-devel] [V5 PATCH 01/22] softfloat: Fix float64_to_uint64

2014-01-06 Thread Peter Maydell
On 2 January 2014 22:21, Tom Musta wrote: > 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. > > Th

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 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 > Reviewed-

[Qemu-devel] [PULL 38/52] char/cadence_uart: Fix reset.

2014-01-06 Thread Peter Maydell
From: Peter Crosthwaite Don't reset the uart as an init step. Register the reset function as a proper reset fn instead. Signed-off-by: Peter Crosthwaite Message-id: d82cd2e65e5a6f8b6deeecb6cced61f0bf3f8c89.1388626249.git.peter.crosthwa...@xilinx.com Signed-off-by: Peter Maydell --- hw/char/c

[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 PV

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

2014-01-06 Thread Peter Maydell
From: Peter Crosthwaite 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 mode: Normal mode: RxFIFO vac

[Qemu-devel] [PULL 17/52] target-arm: A64: add support for add/sub with carry

2014-01-06 Thread Peter Maydell
From: Claudio Fontana This patch adds support for C3.5.3 Add/subtract (with carry): instructions ADC, ADCS, SBC, SBCS. Signed-off-by: Claudio Fontana Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 105 -

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

2014-01-06 Thread Peter Crosthwaite
On Mon, Jan 6, 2014 at 10:13 PM, Paolo Bonzini wrote: > 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 m

[Qemu-devel] [PULL 13/52] target-arm: Remove ARMCPU/CPUARMState from cpregs APIs used by decoder

2014-01-06 Thread Peter Maydell
The cpregs APIs used by the decoder (get_arm_cp_reginfo() and cp_access_ok()) currently take either a CPUARMState* or an ARMCPU*. This is problematic for the A64 decoder, which doesn't pass the environment pointer around everywhere the way the 32 bit decoder does. Adjust the parameters these functi

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

2014-01-06 Thread Peter Maydell
From: Peter Crosthwaite 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 Message-id: 1c250cd61b7b8de492fbc8

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

2014-01-06 Thread Peter Maydell
From: Alex Bennée Now the AArch64 targets are in mainline we can include them in our Travis test matrix. Signed-off-by: Alex Bennée Signed-off-by: Peter Maydell --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 90f1676..c7ff4da 100644 --- a/.t

[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

[Qemu-devel] [PATCH v2 06/24] softfloat: Only raise Invalid when conversions to int are out of range

2014-01-06 Thread Peter Maydell
We implement a number of float-to-integer conversions using conversion to an integer type with a wider range and then a check against the narrower range we are actually converting to. If we find the result to be out of range we correctly raise the Invalid exception, but we must also suppress other

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

2014-01-06 Thread Peter Maydell
On 6 January 2014 12:54, Peter Lieven 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 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 out > of the bo

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

2014-01-06 Thread Peter Lieven
On 06.01.2014 14:12, Peter Maydell wrote: On 6 January 2014 12:54, Peter Lieven 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 for the pointer.

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 wrote: > On 06.01.2014 14:12, Peter Maydell wrote: > > On 6 January 2014 12:54, Peter Lieven 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://

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 wrote: On 06.01.2014 14:12, Peter Maydell wrote: On 6 January 2014 12:54, Peter Lieven wrote: Commit bcf2b7d introduced new 256k seabios files. However, they were not installed. This is a dup of this patch by Ed

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 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

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 purpo

[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 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 Signed-off-by: Alex Bennée Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --

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

2014-01-06 Thread Peter Maydell
From: Will Newton 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 this instruction group:

[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 w

[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 Use the helpers provided for getting the correct FPSR and FPCR values for the signal context. Signed-off-by: Will Newton Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- linux-user/signal.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) dif

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

2014-01-06 Thread Peter Maydell
From: Alexander Graf 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 [WN: Commit message tweak, rebas

[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 --- include/fpu/softfloat.h | 21 + 1 fil

[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 This adds support for the forms of ld/st with a 12 bit unsigned immediate offset. Signed-off-by: Alex Bennée Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 89 +- 1 file changed, 88 in

[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 Define the full set of floating point to fixed point conversion helpers required to support AArch64. Signed-off-by: Will Newton Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/helper.c | 11 ++- target-arm/helper.h | 16 2

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

2014-01-06 Thread Peter Maydell
From: Tom Musta 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 Reviewed-by: Peter Maydell Signed-off-by: Peter

[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 to

[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 C

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

2014-01-06 Thread Peter Maydell
From: Tom Musta 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 numbers between 2*

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

2014-01-06 Thread Peter Maydell
From: Tom Musta 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 can be licensed under

[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 c

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

2014-01-06 Thread Peter Maydell
From: Tom Musta 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 float64_to_uint64_round_to_zero routine. If s

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

2014-01-06 Thread Peter Maydell
From: Will Newton 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 Signed-off-by: Peter Maydell Reviewed-by: R

[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 --- target-arm/helper.c| 20 + target-arm/helper.h| 2 ++ target-arm/translate-a64.c | 75 +- 3 files changed, 96 insertions(+), 1

[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, at

[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 --- fpu/softfloat.c | 75 + include/fpu/softfloat.h | 2 ++ 2 files changed, 77

  1   2   3   >