Re: [Qemu-devel] [Qemu-ppc] [PATCH 0/2] tcg-ppc: use new return-argument ld/st helpers

2013-09-05 Thread Alexander Graf
time before posting. But the impact of the new helpers is huge, and AIUI Richard wants to get rid of GETPC_LDST so here are these. Reviewed-by: Alexander Graf ag...@suse.de Alex Paolo Bonzini (2): tcg-ppc: fix qemu_ld/qemu_st for AIX ABI tcg-ppc: use new return-argument ld/st helpers

Re: [Qemu-devel] [RFC PATCH] spapr: support time base offset migration

2013-09-05 Thread Alexander Graf
On 05.09.2013, at 11:48, Alexey Kardashevskiy wrote: On 09/05/2013 07:16 PM, Alexander Graf wrote: On 05.09.2013, at 06:54, Alexey Kardashevskiy wrote: On 09/05/2013 02:30 PM, David Gibson wrote: [...] #endif /* TARGET_PPC64 */ } @@ -1082,6 +1102,9 @@ int

Re: [Qemu-devel] [RFC PATCH] spapr: add initial ibm, client-architecture-support rtas call support

2013-09-05 Thread Alexander Graf
On 05.09.2013, at 12:16, Paul Mackerras wrote: On Wed, Sep 04, 2013 at 04:32:20PM -0500, Anthony Liguori wrote: On Wed, Sep 4, 2013 at 8:37 AM, Alexander Graf ag...@suse.de wrote: So IMHO this whole thing should be orthogonal to -cpu. Well, since we cannot change CPU class on the fly

Re: [Qemu-devel] [PATCH] spapr-rtas: reset top 4 bits in parameters address

2013-09-05 Thread Alexander Graf
On 05.09.2013, at 12:17, Alexey Kardashevskiy wrote: On 09/05/2013 07:27 PM, Alexander Graf wrote: On 05.09.2013, at 09:40, Alexey Kardashevskiy wrote: On 09/05/2013 05:08 PM, Alexander Graf wrote: Am 05.09.2013 um 07:58 schrieb Alexey Kardashevskiy a...@ozlabs.ru: On the real

Re: [Qemu-devel] [PATCH 1/8] [PATCH RFC v3] s390-qemu: cpu hotplug - Define New SCLP Codes

2013-09-05 Thread Alexander Graf
On 01.08.2013, at 16:12, Jason J. Herne wrote: From: Jason J. Herne jjhe...@us.ibm.com Define new SCLP codes to improve code readability. Signed-off-by: Jason J. Herne jjhe...@us.ibm.com --- hw/s390x/sclp.c |2 +- include/hw/s390x/sclp.h |8 2 files changed, 9

Re: [Qemu-devel] [PATCH] spapr-rtas: reset top 4 bits in parameters address

2013-09-05 Thread Alexander Graf
On 05.09.2013, at 14:04, Alexey Kardashevskiy wrote: On 09/05/2013 08:21 PM, Alexander Graf wrote: On 05.09.2013, at 12:17, Alexey Kardashevskiy wrote: On 09/05/2013 07:27 PM, Alexander Graf wrote: On 05.09.2013, at 09:40, Alexey Kardashevskiy wrote: On 09/05/2013 05:08 PM

Re: [Qemu-devel] [RFC PATCH] spapr: support time base offset migration

2013-09-05 Thread Alexander Graf
On 05.09.2013, at 13:44, Benjamin Herrenschmidt wrote: On Thu, 2013-09-05 at 11:58 +0200, Alexander Graf wrote: Yes. I do not really understand the problem here (and I am not playing dump). Do you suggest sending just the guest timebase and do not send the host timebase and the offset

Re: [Qemu-devel] [PATCH 4/8] [PATCH RFC v3] s390-qemu: cpu hotplug - Storage key global access

2013-09-05 Thread Alexander Graf
On 01.08.2013, at 16:12, Jason J. Herne wrote: From: Jason J. Herne jjhe...@us.ibm.com Introduces global access to storage key data so we can set it for each cpu in the S390 cpu initialization routine. Signed-off-by: Jason J. Herne jjhe...@us.ibm.com --- hw/s390x/s390-virtio-ccw.c |

Re: [Qemu-devel] [PATCH 5/8] [PATCH RFC v3] s390-qemu: cpu hotplug - ipi_states enhancements

2013-09-05 Thread Alexander Graf
On 01.08.2013, at 16:12, Jason J. Herne wrote: From: Jason J. Herne jjhe...@us.ibm.com Modify s390_cpu_addr2state to allow fetching state information for cpu addresses above smp_cpus. Hotplug requires this capability. Also add s390_cpu_set_state function to allow modification of

Re: [Qemu-devel] [PATCH 6/8] [PATCH RFC v3] s390-qemu: cpu hotplug - s390 cpu init improvements for hotplug

2013-09-05 Thread Alexander Graf
On 01.08.2013, at 16:12, Jason J. Herne wrote: From: Jason J. Herne jjhe...@us.ibm.com s390_new_cpu is created to encapsulate the creation of a new QOM S390CPU object given a cpuid and a model string. All actual cpu initialization code is moved from boot time specific

Re: [Qemu-devel] [PATCH 0/8] [PATCH RFC v3] s390 cpu hotplug

2013-09-05 Thread Alexander Graf
/cpu/devices/cpuN/online Hot unplugging is currently not implemented by this code. Very simple and clean patch set. I don't think it deserves the RFC tag. Apart from the minor comments I had consider it Reviewed-by: Alexander Graf ag...@suse.de Alex

Re: [Qemu-devel] [Qemu-ppc] [PATCH 16/16] target-ppc: Convert to new ldst opcodes

2013-09-05 Thread Alexander Graf
On 05.09.2013, at 13:40, Benjamin Herrenschmidt wrote: On Thu, 2013-09-05 at 11:08 +0200, Alexander Graf wrote: On 04.09.2013, at 23:05, Richard Henderson wrote: This lets us change le_mode to end_mode and fold away nearly all of the tests for the current cpu endianness, and removing all

Re: [Qemu-devel] [RFC PATCH] spapr: add initial ibm, client-architecture-support rtas call support

2013-09-05 Thread Alexander Graf
On 05.09.2013, at 13:55, Paul Mackerras wrote: On Thu, Sep 05, 2013 at 12:19:09PM +0200, Alexander Graf wrote: On 05.09.2013, at 12:16, Paul Mackerras wrote: On Wed, Sep 04, 2013 at 04:32:20PM -0500, Anthony Liguori wrote: On Wed, Sep 4, 2013 at 8:37 AM, Alexander Graf ag...@suse.de

Re: [Qemu-devel] [PATCH] spapr-rtas: reset top 4 bits in parameters address

2013-09-05 Thread Alexander Graf
On 05.09.2013, at 14:49, Alexey Kardashevskiy wrote: On 09/05/2013 10:16 PM, Alexander Graf wrote: On 05.09.2013, at 14:04, Alexey Kardashevskiy wrote: On 09/05/2013 08:21 PM, Alexander Graf wrote: On 05.09.2013, at 12:17, Alexey Kardashevskiy wrote: On 09/05/2013 07:27 PM

Re: [Qemu-devel] [PATCH 0/8] [PATCH RFC v3] s390 cpu hotplug

2013-09-05 Thread Alexander Graf
On 05.09.2013, at 15:05, Andreas Färber wrote: Am 05.09.2013 14:54, schrieb Alexander Graf: On 01.08.2013, at 16:12, Jason J. Herne wrote: From: Jason J. Herne jjhe...@us.ibm.com Latest code for cpu Hotplug on S390 architecture. This one is vastly simpler than v2 as we have

[Qemu-devel] [PATCH] linux-user: Implement sendmmsg syscall

2013-09-05 Thread Alexander Graf
Glibc when built for newer kernels assumes that the sendmmsg syscall is available. Without it, dns resolution simply fails to work. Wrap the syscall with existing infrastructure so that we don't have a host dependency on sendmmsg. Signed-off-by: Alexander Graf ag...@suse.de --- linux-user

Re: [Qemu-devel] [RFC PATCH] spapr: support time base offset migration

2013-09-05 Thread Alexander Graf
On 05.09.2013, at 15:36, Benjamin Herrenschmidt wrote: On Thu, 2013-09-05 at 14:37 +0200, Alexander Graf wrote: Hrm, I think I'm starting to understand what this is about. So what we want is - timebase in guest - timebase frequency in guest - wall clock time in host That way

Re: [Qemu-devel] [RFC PATCH] spapr: support time base offset migration

2013-09-05 Thread Alexander Graf
On 05.09.2013, at 16:26, Benjamin Herrenschmidt wrote: On Thu, 2013-09-05 at 16:14 +0200, Andreas Färber wrote: Are you thinking of POWER8 having a different frequency than POWER8 in compat mode? Because migration from one -cpu to another is not supported elsewhere. Even if we want to

Re: [Qemu-devel] [PATCH v6] kvm irqfd: support direct msimessage to irq translation

2013-09-05 Thread Alexander Graf
On 05.09.2013, at 18:01, Paolo Bonzini wrote: Il 03/09/2013 10:17, Michael S. Tsirkin ha scritto: On PPC64 systems MSI Messages are translated to system IRQ in a PCI host bridge. This is already supported for emulated MSI/MSIX but not for irqfd where the current QEMU allocates IRQ numbers

Re: [Qemu-devel] [PATCH] spapr-rtas: reset top 4 bits in parameters address

2013-09-06 Thread Alexander Graf
Am 06.09.2013 um 07:04 schrieb Alexey Kardashevskiy a...@ozlabs.ru: On 09/06/2013 12:24 AM, Alexey Kardashevskiy wrote: On 09/05/2013 11:08 PM, Alexander Graf wrote: On 05.09.2013, at 14:49, Alexey Kardashevskiy wrote: On 09/05/2013 10:16 PM, Alexander Graf wrote: On 05.09.2013

Re: [Qemu-devel] [PATCH v2] spapr-rtas: use softmmu for accessing rtas call parameters

2013-09-06 Thread Alexander Graf
On 06.09.2013, at 10:10, Alexey Kardashevskiy wrote: On the real hardware, RTAS is called in real mode and therefore ignores top 4 bits of the address passed in the call. This fixes QEMU to use softmmu which can chop top 4 bits if MSR DR is not set. Signed-off-by: Alexey Kardashevskiy

Re: [Qemu-devel] [RFC PATCH] spapr: support time base offset migration

2013-09-08 Thread Alexander Graf
Am 09.09.2013 um 04:40 schrieb Alexey Kardashevskiy a...@ozlabs.ru: On 09/06/2013 01:11 AM, Alexander Graf wrote: On 05.09.2013, at 16:26, Benjamin Herrenschmidt wrote: On Thu, 2013-09-05 at 16:14 +0200, Andreas Färber wrote: Are you thinking of POWER8 having a different frequency

Re: [Qemu-devel] [RFC PATCH] spapr: support time base offset migration

2013-09-09 Thread Alexander Graf
Am 09.09.2013 um 07:58 schrieb Alexey Kardashevskiy a...@ozlabs.ru: On 09/09/2013 03:50 PM, Alexander Graf wrote: Am 09.09.2013 um 04:40 schrieb Alexey Kardashevskiy a...@ozlabs.ru: On 09/06/2013 01:11 AM, Alexander Graf wrote: On 05.09.2013, at 16:26, Benjamin Herrenschmidt wrote

Re: [Qemu-devel] [RFC PATCH] spapr: support time base offset migration

2013-09-09 Thread Alexander Graf
On 09.09.2013, at 11:29, Benjamin Herrenschmidt wrote: On Mon, 2013-09-09 at 08:06 +0200, Alexander Graf wrote: I think it's ok to restrict live migration to machines with the same tb frequency when kvm is enabled. Whether you implement it through a hardcoded 512Mhz or through a timebase

Re: [Qemu-devel] [RFC PATCH] spapr: support time base offset migration

2013-09-09 Thread Alexander Graf
On 09.09.2013, at 11:38, Benjamin Herrenschmidt wrote: On Mon, 2013-09-09 at 11:32 +0200, Alexander Graf wrote: On 09.09.2013, at 11:29, Benjamin Herrenschmidt wrote: On Mon, 2013-09-09 at 08:06 +0200, Alexander Graf wrote: I think it's ok to restrict live migration to machines

Re: [Qemu-devel] [PATCH] device_tree.c: Terminate the empty reservemap in create_device_tree()

2013-09-10 Thread Alexander Graf
. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Acked-by: Alexander Graf ag...@suse.de Peter C, will you take this into your tree? Alex

Re: [Qemu-devel] vfio for platform devices - 9/5/2012 - minutes

2013-09-12 Thread Alexander Graf
; Sethi Varun-B16395; Bhushan Bharat-R65777; 'Peter Maydell'; 'Santosh Shukla'; 'Alexander Graf'; 'Antonios Motakis'; 'Christoffer Dall'; 'kim.phill...@linaro.org'; kvm...@lists.cs.columbia.edu; kvm- p...@vger.kernel.org; qemu-devel@nongnu.org Subject: Re: vfio for platform devices - 9/5/2012

Re: [Qemu-devel] vfio for platform devices - 9/5/2012 - minutes

2013-09-12 Thread Alexander Graf
On 12.09.2013, at 16:45, Scott Wood wrote: On Thu, 2013-09-12 at 16:23 -0500, Alexander Graf wrote: On 12.09.2013, at 13:10, Scott Wood wrote: On Thu, 2013-09-12 at 04:18 -0500, Bhushan Bharat-R65777 wrote: and device disabling is not a standard like PCI. Do you think that we might need

Re: [Qemu-devel] [RFC PATCH] spapr: support time base offset migration

2013-09-13 Thread Alexander Graf
On 13.09.2013, at 00:20, David Gibson wrote: On Mon, Sep 09, 2013 at 08:06:53AM +0200, Alexander Graf wrote: Am 09.09.2013 um 07:58 schrieb Alexey Kardashevskiy a...@ozlabs.ru: On 09/09/2013 03:50 PM, Alexander Graf wrote: Am 09.09.2013 um 04:40 schrieb Alexey Kardashevskiy

Re: [Qemu-devel] cpufreq and QEMU guests

2013-09-16 Thread Alexander Graf
Am 16.09.2013 um 07:15 schrieb Benoît Canet benoit.ca...@irqsave.net: Hello, I know a cloud provider worried about the fact that the /proc/cpuinfo of his guests give a bogus frequency to his customer. QEMU and the guests kernel currently have no way to reflect the host frequency

Re: [Qemu-devel] [PATCH 1/8] [PATCH RFC v3] s390-qemu: cpu hotplug - Define New SCLP Codes

2013-09-16 Thread Alexander Graf
Am 16.09.2013 um 09:29 schrieb Jason J. Herne jjhe...@linux.vnet.ibm.com: On 09/16/2013 09:53 AM, Christian Borntraeger wrote: On 05/09/13 13:25, Alexander Graf wrote: On 01.08.2013, at 16:12, Jason J. Herne wrote: From: Jason J. Herne jjhe...@us.ibm.com Define new SCLP codes

Re: [Qemu-devel] [PATCH 02/11] s390/sclpconsole: Add code to support live migration for sclpconsole

2013-09-19 Thread Alexander Graf
On 18.09.2013, at 05:19, Christian Borntraeger wrote: From: Heinz Graalfs graa...@linux.vnet.ibm.com This patch adds the necessary life migration pieces to the sclp code by using vmstate_register. Signed-off-by: Heinz Graalfs graa...@linux.vnet.ibm.com Signed-off-by: Christian

Re: [Qemu-devel] [PATCH 03/11] s390/sclpquiesce: Add code to support live migration

2013-09-19 Thread Alexander Graf
On 18.09.2013, at 05:19, Christian Borntraeger wrote: From: Heinz Graalfs graa...@linux.vnet.ibm.com This patch adds the necessary life migration pieces to sclpquiesce by using the vmstate_register. Signed-off-by: Heinz Graalfs graa...@linux.vnet.ibm.com Signed-off-by: Christian

Re: [Qemu-devel] [PATCH 10/11] s390/ebcdic: Move conversion tables to header file

2013-09-19 Thread Alexander Graf
(c) 2011 Alexander Graf + * Copyright IBM, Corp. 2013 + * + * This work is licensed under the terms of the GNU GPL, version 2 or (at your + * option) any later version. See the COPYING file in the top-level directory. + * + */ + +#ifndef EBCDIC_H_ +#define EBCDIC_H_ + +#ifndef

Re: [Qemu-devel] [PATCH 11/11] s390/sclplmconsole: Add support for SCLP line-mode console

2013-09-19 Thread Alexander Graf
On 18.09.2013, at 05:19, Christian Borntraeger wrote: From: Heinz Graalfs graa...@linux.vnet.ibm.com Add simple support for SCLP line-mode also known as operating system messages. This can be added in addition to or instead of the SCLP full screen console with -device sclplmconsole.

Re: [Qemu-devel] [PATCH 00/11] sclp related fixes and sclp line mode console

2013-09-19 Thread Alexander Graf
On 18.09.2013, at 05:19, Christian Borntraeger wrote: Alex, here is a bunch of fixes/changes for sclp/eventfacility followed by a move of the ebcdic conversion into a stand-alone header file and the sclp line mode console. Reviewed-by: Alexander Graf ag...@suse.de Alex

Re: [Qemu-devel] [PATCH] sPAPR: implement route_intx_to_irq to get gsi of pci device.

2013-09-22 Thread Alexander Graf
Am 22.09.2013 um 13:47 schrieb Liu Ping Fan qemul...@gmail.com: This is useful when pci assignment happens on sPAPR. This patch doesn't sound useful on its own to me, thus probably belongs in a greater patch set. And without even a clear commit message that explains why exactly this is going

[Qemu-devel] [PATCH] vnc: Add support for color map

2013-09-24 Thread Alexander Graf
In order to support these 2 use cases, let's just create a fake color map that covers exactly our normal true color 8 bit color space. That way we don't lose anything over a client that wants true color. Reported-by: Sascha Wehnert swehn...@suse.com Signed-off-by: Alexander Graf ag...@suse.de --- ui

Re: [Qemu-devel] [PATCH] ppc: Add CFAR, DAR and DSISR to the dictionary of printable registers

2013-09-25 Thread Alexander Graf
On 25.09.2013, at 09:41, Anton Blanchard wrote: From: Tom Musta tommu...@gmail.com The CFAR, DAR and DSISR registers are currently missing from the dictionary of registers that may be printed in the QEMU console. These are interesting registers when debugging. With this patch, the

Re: [Qemu-devel] [PATCH] target-ppc: Little Endian Correction to Load/Store Vector Element

2013-09-25 Thread Alexander Graf
On 25.09.2013, at 09:42, Anton Blanchard wrote: From: Tom Musta tommu...@gmail.com The Load Vector Element (lve*x) and Store Vector Element (stve*x) instructions not only byte-swap in Little Endian mode, they also invert the element that is accessed. For example, the RTL for lvehx

Re: [Qemu-devel] [PATCH] pseries: Fix loading of little endian kernels

2013-09-25 Thread Alexander Graf
On 25.09.2013, at 09:40, Anton Blanchard wrote: From: Benjamin Herrenschmidt b...@kernel.crashing.org Try loading the kernel as little endian if it fails big endian. Signed-off-by: Benjamin Herrenschmidt b...@kernel.crashing.org Reviewed-by: Anton Blanchard an...@samba.org Thanks,

Re: [Qemu-devel] [PATCH 32/32] PPC: Ignore writes to L2CR

2013-09-25 Thread Alexander Graf
On 06.09.2013, at 14:54, Julio Guerra wrote: 2013/6/30 Alexander Graf ag...@suse.de: The L2CR register contains a number of bits that either impose configuration which we can't deal with or mean something is in progress until the bit is 0 again. Since we don't model the former and we do

[Qemu-devel] [PATCH] PPC: Fix L2CR write accesses

2013-09-25 Thread Alexander Graf
-by: Alexander Graf ag...@suse.de Tested-by: Julio Guerra gu...@julio.in --- target-ppc/translate_init.c | 29 + 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index d2645ba..fd45093 100644

Re: [Qemu-devel] [Qemu-ppc] [PATCH 0/7] Stage 1 VSX Support

2013-09-25 Thread Alexander Graf
On 24.09.2013, at 16:52, Tom Musta wrote: This patch sequence provides the first release of support for the Vector Scalar Extension (VSX) instructions that were introduced in PowerISA V2.06. Initially, three instructions are supported (lxvd2x, stxvd2x and xxpermdi) -- these are required

Re: [Qemu-devel] [PATCH] spapr: increase temporary fdt buffer size

2013-09-25 Thread Alexander Graf
On 24.09.2013, at 12:05, mike wrote: On 09/24/2013 01:59 PM, Alexey Kardashevskiy wrote: At the moment the size of the buffer is set to 64K which is enough for approximately 150 VCPUs which is not the limit. This increases the buffer up to 256K which allows having a tree for approximately

Re: [Qemu-devel] [PATCH] spapr: increase temporary fdt buffer size

2013-09-25 Thread Alexander Graf
On 24.09.2013, at 07:59, Alexey Kardashevskiy wrote: At the moment the size of the buffer is set to 64K which is enough for approximately 150 VCPUs which is not the limit. This increases the buffer up to 256K which allows having a tree for approximately 600 VCPUs which is way beyond the

Re: [Qemu-devel] [PULL 00/17] s390 patches

2013-09-25 Thread Alexander Graf
/borntraeger/qemu.git tags/s390-next-20130924 for you to fetch changes up to 6a444f8507514b3707c8807ed11c176d3fbc5860: s390/sclplmconsole: Add support for SCLP line-mode console (2013-09-20 13:55:30 +0200) Acked-by: Alexander Graf ag...@suse.de Alex

Re: [Qemu-devel] [PATCH] spapr: Add support for hwrng when available

2013-09-26 Thread Alexander Graf
On 26.09.2013, at 08:37, Michael Ellerman wrote: Some powerpc systems have support for a hardware random number generator (hwrng). If such a hwrng is present the host kernel can provide access to it via the H_RANDOM hcall. The kernel advertises the presence of a hwrng with the

[Qemu-devel] [PATCH 13/60] AArch64: Add stubs for a64 specific helpers

2013-09-26 Thread Alexander Graf
We will need helpers that only make sense with AArch64. Add helper-a64.{c,h} files as stubs that we can fill with these helpers in the following patches. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/Makefile.objs | 2 +- target-arm/helper-a64.c | 26

[Qemu-devel] [PATCH 14/60] AArch64: Add orr instruction emulation

2013-09-26 Thread Alexander Graf
This patch adds emulation support for the orr instruction. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/helper-a64.c| 28 +++ target-arm/helper-a64.h| 1 + target-arm/translate-a64.c | 120 + 3 files changed, 149

[Qemu-devel] [PATCH 01/60] arm: Use symbolic device names for vfp cmp

2013-09-26 Thread Alexander Graf
The VFP cmp and cmpe helpers are quite cryptic to understand. This is mostly thanks to the fact that they hardcode values rather than use their symbolic counterparts. Make them use names instead. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/helper.c | 50

[Qemu-devel] [PATCH 02/60] arm: Give the fpscr rounding modes names

2013-09-26 Thread Alexander Graf
confused by accident. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/cpu.h| 5 + target-arm/helper.c | 8 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index ce835ef..e69bb74 100644 --- a/target-arm/cpu.h +++ b/target-arm

[Qemu-devel] [PATCH 08/60] AArch64: Add support to print VFP registers in CPU

2013-09-26 Thread 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: Alexander Graf ag...@suse.de

[Qemu-devel] [PATCH 20/60] AArch64: Add SIMD ORR family instruction emulation

2013-09-26 Thread Alexander Graf
This patch adds emulation support for SIMD ORR instructions (and, or, xor). Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 66 ++ 1 file changed, 66 insertions(+) diff --git a/target-arm/translate-a64.c b/target-arm

[Qemu-devel] [PATCH 06/60] AArch64: Add set_pc cpu method

2013-09-26 Thread Alexander Graf
When executing translation blocks we need to be able to recover our program counter. Add a method to set it for AArch64 CPUs. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/cpu64.c | 8 1 file changed, 8 insertions(+) diff --git a/target-arm/cpu64.c b/target-arm/cpu64.c

[Qemu-devel] [PATCH 09/60] AArch64: Add b and bl handling

2013-09-26 Thread Alexander Graf
This adds handling for the b and bl instructions. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 61 ++ 1 file changed, 61 insertions(+) diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c index 73ccade

[Qemu-devel] [PATCH 00/60] AArch64 TCG emulation support

2013-09-26 Thread Alexander Graf
as in the AArch64 instruction emulator. But this series is already quite big, so let's get this one through first. If you need a rootfs to try this out on, I recommend using our openSUSE 12.3 tarball: http://download.opensuse.org/repositories/devel:/ARM:/AArch64:/12.3/images/ Alex Alexander

[Qemu-devel] [PATCH 10/60] AArch64: Add handling for br instructions

2013-09-26 Thread Alexander Graf
This patch adds support for branch instructions that act on registers rather than immediates (jmp, call, ret). Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 29 + 1 file changed, 29 insertions(+) diff --git a/target-arm/translate-a64.c

[Qemu-devel] [PATCH 04/60] arm: Add AArch64 disassembler stub

2013-09-26 Thread Alexander Graf
. Signed-off-by: Alexander Graf ag...@suse.de --- disas.c | 6 +- disas/Makefile.objs | 1 + disas/aarch64.c | 31 +++ include/disas/bfd.h | 1 + 4 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 disas/aarch64.c diff --git a/disas.c b

[Qemu-devel] [PATCH 12/60] AArch64: Add ldarx style instruction emulation

2013-09-26 Thread Alexander Graf
This patch adds emulation for load and store instructions with register offset. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 38 +- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/target-arm/translate-a64.c b

[Qemu-devel] [PATCH 15/60] AArch64: Add add instruction family emulation

2013-09-26 Thread Alexander Graf
This patch adds support for add and friends. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/helper-a64.c| 85 + target-arm/helper-a64.h| 3 + target-arm/translate-a64.c | 150 + 3 files changed, 238

[Qemu-devel] [PATCH 22/60] AArch64: Add AdvSIMD scalar three same group handling

2013-09-26 Thread Alexander Graf
This patch adds decoding for the AdvSIMD scalar three same group with U == 0. While at it, it also adds support for the ADD / SUB operations in this group. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 53 ++ 1 file

[Qemu-devel] [PATCH 27/60] AArch64: Add addi instruction emulation

2013-09-26 Thread Alexander Graf
This patch adds emulation support for the add immediate instruction. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 50 ++ 1 file changed, 50 insertions(+) diff --git a/target-arm/translate-a64.c b/target-arm/translate

[Qemu-devel] [PATCH 17/60] AArch64: Add dup GPR-Vec instruction emulation

2013-09-26 Thread Alexander Graf
This patch adds emulation for the DUP instruction flavor that copies GPR contents into vector register parts. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 55 ++ 1 file changed, 55 insertions(+) diff --git a/target-arm

[Qemu-devel] [PATCH 25/60] AArch64: Add SIMD shl instruction emulation

2013-09-26 Thread Alexander Graf
This patch adds emulation support for the SIMD shl instruction. It belongs to the same instruction group as ushll and can probably be handled in a shared function with that one eventually. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 50

[Qemu-devel] [PATCH 19/60] AArch64: Add ins GPR-Vec instruction emulation

2013-09-26 Thread Alexander Graf
This patch adds emulation for the INS instruction flavor that copies GPR contents into vector register parts. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/target-arm

[Qemu-devel] [PATCH 11/60] AArch64: Add STP instruction emulation

2013-09-26 Thread Alexander Graf
This patch adds support for the STP instruction. It spans pretty much all store possibilities, so the patch also adds handling for load/store of integer as well as vector registers. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 263

[Qemu-devel] [PATCH 30/60] AArch64: Add extr instruction emulation

2013-09-26 Thread Alexander Graf
This patch adds emulation support for the extr instruction. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c index 63eca24

[Qemu-devel] [PATCH 07/60] ARM: Add 64bit VFP handling

2013-09-26 Thread Alexander Graf
With AArch64 VFP can now handle 64bit wide VFP float-int conversions. Add handlers for them. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/helper.c | 40 +--- target-arm/helper.h | 8 2 files changed, 33 insertions(+), 15 deletions

[Qemu-devel] [PATCH 24/60] AArch64: Add SIMD ushll instruction emulation

2013-09-26 Thread Alexander Graf
This patch adds emulation support for the ushll instruction. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 52 ++ 1 file changed, 52 insertions(+) diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c

[Qemu-devel] [PATCH 21/60] AArch64: Convert SIMD load/store to common function

2013-09-26 Thread Alexander Graf
We currently dulplicate load/store logic for simd operations throughout the place. Fortunately they follow a pretty clear pattern, so let's create common code to handle them. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 99

[Qemu-devel] [PATCH 26/60] AArch64: Add ADR instruction emulation

2013-09-26 Thread Alexander Graf
This patch adds emulation support for the adr instruction. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 24 1 file changed, 24 insertions(+) diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c index bc91324..00eda0f

[Qemu-devel] [PATCH 38/60] AArch64: Add stub barrier instruction emulation

2013-09-26 Thread Alexander Graf
This patch adds handling for barrier instructions as noops. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c index cbfc449..cfad24f 100644 --- a/target-arm

[Qemu-devel] [PATCH 29/60] AArch64: Add orri instruction emulation

2013-09-26 Thread Alexander Graf
This patch adds emulation support for the orr immediate instruction family with all its implementations (and, or, xor). Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 96 +- 1 file changed, 95 insertions(+), 1 deletion

[Qemu-devel] [PATCH 35/60] AArch64: Add mrs instruction emulation

2013-09-26 Thread Alexander Graf
This patch adds emulation for the mrs instruction. It is very incomplete though and will need major rework to become as dynamic and good as the cp15 handling. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 33 + 1 file changed, 33

[Qemu-devel] [PATCH 40/60] AArch64: Add tbz instruction emulation

2013-09-26 Thread Alexander Graf
This patch adds emulation for the tbz/tbnz instructions. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 40 1 file changed, 40 insertions(+) diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c index 2c2adb8

[Qemu-devel] [PATCH 18/60] AArch64: Add umov instruction emulation

2013-09-26 Thread Alexander Graf
This patch adds emulation for the umov instruction that copies vector register contents into GPRs. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 45 + 1 file changed, 45 insertions(+) diff --git a/target-arm/translate

[Qemu-devel] [PATCH 36/60] AArch64: Add msr instruction emulation

2013-09-26 Thread Alexander Graf
This patch adds emulation for the msr instruction. It suffers from the same shortcomings as mrs emulation and should be combined with it. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 27 +++ 1 file changed, 27 insertions(+) diff --git

[Qemu-devel] [PATCH 56/60] AArch64: Add Floating-point data-processing (2

2013-09-26 Thread Alexander Graf
This patch adds emulation for the Floating-point data-processing (2 source) group of instructions in their 32 bit flavors. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 57 ++ 1 file changed, 57 insertions(+) diff --git

[Qemu-devel] [PATCH 03/60] arm: Split VFP cmp from FPSCR setting

2013-09-26 Thread Alexander Graf
The VFP cmp operations do a comparison and then store the result in FPSCR. For AArch64, we need to compare but store the result in normal PSTATE instead. So split the comparison from FPSCR modifications. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/helper.c| 14

[Qemu-devel] [PATCH 32/60] AArch64: Add svc instruction emulation

2013-09-26 Thread Alexander Graf
This patch adds emulation for the syscall (svc) instruction. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 13 + target-arm/translate.c | 5 - target-arm/translate.h | 5 + 3 files changed, 18 insertions(+), 5 deletions(-) diff --git

[Qemu-devel] [PATCH 60/60] AArch64: Add Floating-point data-processing (3

2013-09-26 Thread Alexander Graf
This patch adds emulation for the Floating-point data-processing (3 source) group of instructions in their 64 bit flavors. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 46 ++ 1 file changed, 46 insertions(+) diff --git

[Qemu-devel] [PATCH 28/60] AArch64: Add movi instruction emulation

2013-09-26 Thread Alexander Graf
This patch adds emulation for the movi instruction. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 45 + 1 file changed, 45 insertions(+) diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c index c5d0def

[Qemu-devel] [PATCH 34/60] AArch64: Add b.cond instruction emulation

2013-09-26 Thread Alexander Graf
This patch adds emulation for the conditional branch (b.cond) instruction. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/helper-a64.c| 41 + target-arm/helper-a64.h| 1 + target-arm/translate-a64.c | 28 3

[Qemu-devel] [PATCH 39/60] AArch64: Add stub sys instruction emulation

2013-09-26 Thread Alexander Graf
This patch adds handling for the sys instruction as noop. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c index cfad24f..2c2adb8 100644 --- a/target

[Qemu-devel] [PATCH 16/60] AArch64: Add emulation for SIMD ld/st multiple

2013-09-26 Thread Alexander Graf
This patch adds support for the SIMD load/store multiple (post-indexed) category of instructions. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 91 ++ 1 file changed, 91 insertions(+) diff --git a/target-arm/translate

[Qemu-devel] [PATCH 43/60] AArch64: Add cinc instruction emulation

2013-09-26 Thread Alexander Graf
This patch adds emulation for the conditional increment (cinc) instruction. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/helper-a64.c| 34 ++ target-arm/helper-a64.h| 1 + target-arm/translate-a64.c | 17 + 3 files changed

[Qemu-devel] [PATCH 51/60] AArch64: Add fmov (scalar, immediate) instruction

2013-09-26 Thread Alexander Graf
This patch adds emulation for the fmov instruction working on scalars with an immediate payload. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 36 1 file changed, 36 insertions(+) diff --git a/target-arm/translate-a64.c b

[Qemu-devel] [PATCH 45/60] AArch64: Add shift instruction family emulation

2013-09-26 Thread Alexander Graf
This patch adds emulation support for variable (register based) shift instructions such as ASRV, LSLV, LSRV, RORV. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 20 1 file changed, 20 insertions(+) diff --git a/target-arm/translate-a64.c b

[Qemu-devel] [PATCH 58/60] AArch64: Add ADD (vector) instruction emulation

2013-09-26 Thread Alexander Graf
This patch adds support for the ADD (vector) instruction which is part of the AdvSIMD scalar three same group. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/target-arm/translate

[Qemu-devel] [PATCH 23/60] AArch64: Add AdvSIMD modified immediate group handling

2013-09-26 Thread Alexander Graf
This patch adds support for the AdvSIMD modified immediate group with all its suboperations (movi, orr, fmov, mvni, bic). Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 129 + 1 file changed, 129 insertions(+) diff --git

[Qemu-devel] [PATCH 37/60] AArch64: Add hint instruction emulation

2013-09-26 Thread Alexander Graf
This patch adds handling for HINT instructions as noops. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c index a2d5942..cbfc449 100644 --- a/target-arm

[Qemu-devel] [PATCH 31/60] AArch64: Add bfm family instruction emulation

2013-09-26 Thread Alexander Graf
This patch adds emulation support for BFM and friends (SBFM, UBFM). Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/helper-a64.c| 9 + target-arm/helper-a64.h| 1 + target-arm/translate-a64.c | 86 +- 3 files changed, 95

[Qemu-devel] [PATCH 48/60] AArch64: Add 0x1a encoding of add instructions

2013-09-26 Thread Alexander Graf
The Add/subtract (with carry) instructions can also be handled by our generic add instruction decoder, so get them handled by that one too. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target-arm/translate-a64.c

[Qemu-devel] [PATCH 50/60] AArch64: Add Floating-point-fixed-point

2013-09-26 Thread 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 ag...@suse.de --- target-arm/helper-a64.c| 22

[Qemu-devel] [PATCH 41/60] AArch64: Add ldr/str instruction family emulation

2013-09-26 Thread Alexander Graf
This patch adds emulation support for various versions of ldr and str instructions. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 124 + 1 file changed, 124 insertions(+) diff --git a/target-arm/translate-a64.c b/target

[Qemu-devel] [PATCH 33/60] AArch64: Add bc instruction emulation

2013-09-26 Thread Alexander Graf
This patch adds emulation for compare and branch instructions (cbz, cbnz) Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/translate-a64.c | 44 1 file changed, 44 insertions(+) diff --git a/target-arm/translate-a64.c b/target-arm/translate

[Qemu-devel] [PATCH 47/60] AArch64: Add clz instruction emulation

2013-09-26 Thread Alexander Graf
This patch adds emlulation support for the clz instruction. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/helper-a64.c| 5 + target-arm/helper-a64.h| 1 + target-arm/translate-a64.c | 31 +++ 3 files changed, 37 insertions(+) diff --git

[Qemu-devel] [PATCH 49/60] AArch64: Add Data-processing (3 source) instruction

2013-09-26 Thread Alexander Graf
This patch adds emulation for most of 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 --- target-arm/helper-a64.c| 14 target-arm/helper-a64.h| 2 ++ target-arm

[Qemu-devel] [PATCH 46/60] AArch64: Add rev instruction family emulation

2013-09-26 Thread Alexander Graf
This patch adds emlulation support for rev and rbit instructions. Signed-off-by: Alexander Graf ag...@suse.de --- target-arm/helper-a64.c| 19 +++ target-arm/helper-a64.h| 1 + target-arm/translate-a64.c | 38 ++ 3 files changed, 58

<    1   2   3   4   5   6   7   8   9   10   >