Re: [Qemu-devel] [PATCH 1/2] Implement basic part of SA-1110/SA-1100

2011-04-18 Thread Aurelien Jarno
On Thu, Apr 14, 2011 at 10:18:02AM +0400, Dmitry Eremin-Solenikov wrote: > Basic implementation of DEC/Intel SA-1100/SA-1110 chips emulation. > Implemented: > - IRQs > - GPIO > - PPC > - RTC > - UARTs (no IrDA/etc.) > - OST reused from pxa25x > > Everything else is TODO (esp. PM/idle/sleep!)

[Qemu-devel] [PATCH 1/2] target-arm: Handle UNDEFs for Neon single element load/stores

2011-04-18 Thread Peter Maydell
Handle the UNDEF and UNPREDICTABLE cases for Neon "single element to one lane" VLD and "single element from one lane" VST. Signed-off-by: Peter Maydell --- target-arm/translate.c | 34 ++ 1 files changed, 34 insertions(+), 0 deletions(-) diff --git a/target-arm

[Qemu-devel] [PATCH 2/2] target-arm: Handle UNDEF cases for Neon VLD/VST multiple-structures

2011-04-18 Thread Peter Maydell
Correctly UNDEF for Neon VLD/VST "multiple structures" forms where the align field is not valid. Signed-off-by: Peter Maydell --- target-arm/translate.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/target-arm/translate.c b/target-arm/translate.c index 5

[Qemu-devel] [PATCH 0/2] target-arm: Handle UNDEF cases for Neon load/stores

2011-04-18 Thread Peter Maydell
These two simple patches make qemu correctly UNDEF where required in the Neon load/store space. We also catch and UNDEF on an UNPREDICTABLE rather than indexing off the end of the register file. Tested in the usual way with random instruction sequences. Peter Maydell (2): target-arm: Handle UND

Re: [Qemu-devel] [PATCH 05/17] kvm: add kvm stub for arch specific stuff

2011-04-18 Thread Aurelien Jarno
On Fri, Apr 15, 2011 at 05:32:46PM +0200, Alexander Graf wrote: > We have a generic stub architecture for kvm calls, but some architectures > are different from others. So we do want to be able to have stubs for > architecture specific functionality as well. > > This patch adds kvm stubs for all a

Re: [Qemu-devel] [PATCH 01/17] tcg: extend max tcg opcodes on 32bit

2011-04-18 Thread Aurelien Jarno
On Fri, Apr 15, 2011 at 05:32:42PM +0200, Alexander Graf wrote: > When running on a 32 bit host, we tend to use more TCG ops than on > a 64 bit host. Reflect that in the reserved opcode amount constant. > > Signed-off-by: Alexander Graf > --- > exec-all.h |4 > 1 files changed, 4 insert

Re: [Qemu-devel] [PATCH 06/17] s390x: Prepare cpu.h for emulation

2011-04-18 Thread Aurelien Jarno
On Fri, Apr 15, 2011 at 05:32:47PM +0200, Alexander Graf wrote: > We need to add some more logic to the CPU description to leverage emulation > of an s390x CPU. This patch adds all the required helpers, fields in CPUState > and constant definitions required for user and system emulation. > > Signe

Re: [Qemu-devel] [PATCH 07/17] s390x: Enable s390x-softmmu target

2011-04-18 Thread Aurelien Jarno
On Fri, Apr 15, 2011 at 05:32:48PM +0200, Alexander Graf wrote: > This patch adds some code paths for running s390x guest OSs without the > need for KVM. > > Signed-off-by: Alexander Graf > > --- > > v3 -> v4: > > - declare non-working when EXT is masked > - remove obsolete cpu_halted > --

Re: [Qemu-devel] [PATCH 08/17] s390x: Dispatch interrupts to KVM or the real CPU

2011-04-18 Thread Aurelien Jarno
On Fri, Apr 15, 2011 at 05:32:49PM +0200, Alexander Graf wrote: > The KVM interrupt injection path is non-generic for now. So we need to push > knowledge of how to inject a device interrupt using KVM into the actual device > code. > > Signed-off-by: Alexander Graf > --- > hw/s390-virtio-bus.c |

Re: [Qemu-devel] [PATCH 09/17] s390x: virtio machine storage keys

2011-04-18 Thread Aurelien Jarno
On Fri, Apr 15, 2011 at 05:32:50PM +0200, Alexander Graf wrote: > For emulation (and migration) we need to know about the guest's storage keys. > These are separate from actual RAM contents, so we need to allocate them in > parallel to RAM. > > While touching the file, this patch also adjusts the

Re: [Qemu-devel] [PATCH 10/17] s390x: keep hint on virtio managing size

2011-04-18 Thread Aurelien Jarno
On Fri, Apr 15, 2011 at 05:32:51PM +0200, Alexander Graf wrote: > The s390x virtio bus keeps management information on virtio after the top > of the guest's RAM. We need to be able to tell the guest the size of its > RAM (without virtio stuff), but also be able to trap when the guest accesses > RAM

Re: [Qemu-devel] [PATCH] libcacard: fix opposite usage of isspace

2011-04-18 Thread Aurelien Jarno
On Wed, Apr 13, 2011 at 02:42:00PM +0300, Alon Levy wrote: > Signed-off-by: Alon Levy > --- > libcacard/vcard_emul_nss.c |4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) Thanks, applied. > diff --git a/libcacard/vcard_emul_nss.c b/libcacard/vcard_emul_nss.c > index 71f2ba3..baada

Re: [Qemu-devel] [PATCH 2/4] [arm] move helpers.h to helper.h

2011-04-18 Thread Aurelien Jarno
On Wed, Apr 13, 2011 at 06:38:24PM +0200, Lluís wrote: > This provides a consistent naming scheme across all targets. > > Signed-off-by: Lluís Vilanova > --- > target-arm/helper.c|2 > target-arm/helper.h| 475 > > target-arm/he

[Qemu-devel] [PATCH] target-ppc: use softfloat min/max functions

2011-04-18 Thread Aurelien Jarno
Use the new softfloat float32_min() and float32_max() to implement the vminfp and vmaxfp instructions. Cc: Alexander Graf Signed-off-by: Aurelien Jarno --- target-ppc/op_helper.c | 16 +--- 1 files changed, 5 insertions(+), 11 deletions(-) diff --git a/target-ppc/op_helper.c b/ta

Re: [Qemu-devel] [PATCH] target-ppc: use softfloat min/max functions

2011-04-18 Thread Peter Maydell
On 18 April 2011 20:23, Aurelien Jarno wrote: > diff --git a/target-ppc/op_helper.c b/target-ppc/op_helper.c > index 9aa108e..9058d78 100644 > --- a/target-ppc/op_helper.c > +++ b/target-ppc/op_helper.c > @@ -2369,22 +2369,16 @@ VMINMAX(uw, u32) >  #undef VMINMAX_DO >  #undef VMINMAX > > -#define

Re: [Qemu-devel] [PATCH v2 0/3] pc-bios: Use iPXE ROMs

2011-04-18 Thread Stefan Weil
Am 18.04.2011 19:34, schrieb Anthony Liguori: On 04/18/2011 12:25 PM, Alex Williamson wrote: On Mon, 2011-04-11 at 13:57 -0600, Alex Williamson wrote: On Mon, 2011-04-11 at 14:48 -0500, Anthony Liguori wrote: On 04/11/2011 02:35 PM, Alex Williamson wrote: This series replaces our current gPXE

[Qemu-devel] [PATCH 02/20] softfloat: fix floatx80_is_infinity()

2011-04-18 Thread Aurelien Jarno
With floatx80, the explicit bit is set for infinity. Signed-off-by: Aurelien Jarno --- fpu/softfloat.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fpu/softfloat.h b/fpu/softfloat.h index 340f0a9..3363128 100644 --- a/fpu/softfloat.h +++ b/fpu/softfloat.h @@ -566,7 +

[Qemu-devel] [PATCH 03/20] softfloat: add floatx80 constants

2011-04-18 Thread Aurelien Jarno
Add floatx80 constants similarly to float32 or float64. Signed-off-by: Aurelien Jarno --- fpu/softfloat.h |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/fpu/softfloat.h b/fpu/softfloat.h index 3363128..90e0c41 100644 --- a/fpu/softfloat.h +++ b/fpu/softfloat.h @@

[Qemu-devel] [PATCH 11/20] target-i386: fix helper_flbd_ST0() wrt softfloat

2011-04-18 Thread Aurelien Jarno
Signed-off-by: Aurelien Jarno --- target-i386/op_helper.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/target-i386/op_helper.c b/target-i386/op_helper.c index f614893..737 100644 --- a/target-i386/op_helper.c +++ b/target-i386/op_helper.c @@ -3920,9 +3920,10

[Qemu-devel] [PATCH 13/20] target-i386: fix helper_fdiv() wrt softfloat

2011-04-18 Thread Aurelien Jarno
Signed-off-by: Aurelien Jarno --- target-i386/exec.h |4 target-i386/op_helper.c |5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/target-i386/exec.h b/target-i386/exec.h index 211cc8c..b2af894 100644 --- a/target-i386/exec.h +++ b/target-i386/exec.h @@ -1

[Qemu-devel] [PATCH 00/20] target-i386 conversion to softfloat

2011-04-18 Thread Aurelien Jarno
The i386 target is the last one still using softfloat-native. Compared to softfloat, it is faster but lacks exception handling, float80 (except on x86 hosts) and float128, as well as correctness (use NaN propagation from the host, different corner cases, etc.). It's API has also diverged from so

[Qemu-devel] [PATCH 01/20] softfloat: fix floatx80 handling of NaN

2011-04-18 Thread Aurelien Jarno
The floatx80 format uses an explicit bit that should be taken into account when converting to and from commonNaN format. When converting to commonNaN, the explicit bit should be removed if it is a 1, and a default NaN should be used if it is 0. When converting from commonNan, the explicit bit sho

[Qemu-devel] [PATCH 05/20] softfloat-native: add a few constant values

2011-04-18 Thread Aurelien Jarno
Signed-off-by: Aurelien Jarno --- fpu/softfloat-native.h | 27 +++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/fpu/softfloat-native.h b/fpu/softfloat-native.h index ea7a15e..97fb3c7 100644 --- a/fpu/softfloat-native.h +++ b/fpu/softfloat-native.h @@ -

[Qemu-devel] [PATCH 09/20] softfloat-native: add float*_is_any_nan() functions

2011-04-18 Thread Aurelien Jarno
Add float*_is_any_nan() functions to match the softfloat API. Signed-off-by: Aurelien Jarno --- fpu/softfloat-native.c | 26 ++ fpu/softfloat-native.h |3 +++ 2 files changed, 29 insertions(+), 0 deletions(-) diff --git a/fpu/softfloat-native.c b/fpu/softfloat-nati

[Qemu-devel] [PATCH 07/20] softfloat: fix float*_scalnb() corner cases

2011-04-18 Thread Aurelien Jarno
float*_scalnb() were not taking into account all cases. This patch fixes some corner cases: - NaN values in input were not properly propagated and the invalid flag not correctly raised. Use propagateFloat*NaN() for that. - NaN or infinite values in input of floatx80_scalnb() were not correctly

[Qemu-devel] [PATCH 16/20] target-i386: add CPU86_LDouble <-> double conversion functions

2011-04-18 Thread Aurelien Jarno
Add functions to convert CPU86_LDouble to double and vice versa. They are going to be used to implement logarithmic and trigonometric function until softfloat implement them. Signed-off-by: Aurelien Jarno --- target-i386/op_helper.c | 22 ++ 1 files changed, 22 insertions(+

[Qemu-devel] [PATCH 12/20] target-i386: fix helper_fxtract() wrt softfloat

2011-04-18 Thread Aurelien Jarno
With softfloat it's not possible to play with the overflow of an unsigned value to get the 0 case partially correct. Use a special case for that. Using a division to generate an infinity is the easiest way that works for both softfloat and softfloat-native. Signed-off-by: Aurelien Jarno --- targ

[Qemu-devel] [PATCH 04/20] softfloat: add pi constants

2011-04-18 Thread Aurelien Jarno
Add a pi constant for float32, float64, floatx80. It will be used by target-i386 and later by the trigonometric functions. Signed-off-by: Aurelien Jarno --- fpu/softfloat.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/fpu/softfloat.h b/fpu/softfloat.h index 90e0c41.

[Qemu-devel] [PATCH 08/20] softfloat-native: fix float*_scalbn() functions

2011-04-18 Thread Aurelien Jarno
float*_scalbn() should be able to take a status parameter. Fix that. Signed-off-by: Aurelien Jarno --- fpu/softfloat-native.h |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fpu/softfloat-native.h b/fpu/softfloat-native.h index 97fb3c7..f497e64 100644 --- a/fpu/soft

[Qemu-devel] [PATCH 10/20] target-i386: fix helper_fscale() wrt softfloat

2011-04-18 Thread Aurelien Jarno
Use the scalbn softfloat function to implement helper_fscale(). This fixes corner cases (e.g. NaN) and makes a few more GNU libc math tests to pass. Signed-off-by: Aurelien Jarno --- target-i386/exec.h |4 target-i386/op_helper.c |7 ++- 2 files changed, 10 insertions(+), 1

[Qemu-devel] [PATCH 06/20] softfloat: add floatx80_compare*() functions

2011-04-18 Thread Aurelien Jarno
Add floatx80_compare() and floatx80_compare_quiet() functions to match the softfloat-native ones. Signed-off-by: Aurelien Jarno --- fpu/softfloat.c | 46 ++ fpu/softfloat.h |2 ++ 2 files changed, 48 insertions(+), 0 deletions(-) diff --git a/fp

[Qemu-devel] [PATCH 15/20] target-i386: replace approx_rsqrt and approx_rcp by softfloat ops

2011-04-18 Thread Aurelien Jarno
Signed-off-by: Aurelien Jarno --- target-i386/op_helper.c | 10 -- target-i386/ops_sse.h | 36 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/target-i386/op_helper.c b/target-i386/op_helper.c index d935488..9628d27 100644 --- a/

[Qemu-devel] [PATCH 18/20] target-i386: fix helper_fprem() and helper_fprem1() wrt softfloat

2011-04-18 Thread Aurelien Jarno
Signed-off-by: Aurelien Jarno --- target-i386/op_helper.c | 48 +++--- 1 files changed, 28 insertions(+), 20 deletions(-) diff --git a/target-i386/op_helper.c b/target-i386/op_helper.c index 4671a96..0c4f0da 100644 --- a/target-i386/op_helper.c +++ b/tar

[Qemu-devel] [PATCH 20/20] target-i386: switch to softfloat

2011-04-18 Thread Aurelien Jarno
This increase the correctness (precision, NaN values, corner cases) on non-x86 machines, and add the possibility to handle the exception correctly. Signed-off-by: Aurelien Jarno --- configure |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/configure b/configure index d

[Qemu-devel] [PATCH 17/20] target-i386: fix logarithmic and trigonometric helpers wrt softfloat

2011-04-18 Thread Aurelien Jarno
Use the new CPU86_LDouble <-> double conversion functions to make logarithmic and trigonometric helpers working with softfloat. Signed-off-by: Aurelien Jarno --- target-i386/op_helper.c | 52 +++--- 1 files changed, 26 insertions(+), 26 deletions(-) dif

[Qemu-devel] [PATCH 19/20] target-i386: fix constants wrt softfloat

2011-04-18 Thread Aurelien Jarno
Signed-off-by: Aurelien Jarno --- target-i386/exec.h |8 target-i386/op_helper.c | 24 +--- 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/target-i386/exec.h b/target-i386/exec.h index 292e0de..ee36a71 100644 --- a/target-i386/exec.h +++ b/

Re: [Qemu-devel] [PATCH 10/17] s390x: keep hint on virtio managing size

2011-04-18 Thread Alexander Graf
On 18.04.2011, at 21:06, Aurelien Jarno wrote: > On Fri, Apr 15, 2011 at 05:32:51PM +0200, Alexander Graf wrote: >> The s390x virtio bus keeps management information on virtio after the top >> of the guest's RAM. We need to be able to tell the guest the size of its >> RAM (without virtio stuff),

[Qemu-devel] [PATCH 14/20] target-i386: fix helper_fsqrt() wrt softfloat

2011-04-18 Thread Aurelien Jarno
Signed-off-by: Aurelien Jarno --- target-i386/exec.h |4 target-i386/op_helper.c |7 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/target-i386/exec.h b/target-i386/exec.h index b2af894..292e0de 100644 --- a/target-i386/exec.h +++ b/target-i386/exec.h @@

[Qemu-devel] [PATCH] multiboot: Support commas in module parameters

2011-04-18 Thread Adam Lackorzynski
Support commas in the parameter list of modules, by using double commas (via get_opt_value()). Signed-off-by: Adam Lackorzynski --- hw/multiboot.c | 18 +- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/hw/multiboot.c b/hw/multiboot.c index 394ed01..7d5cb22 1006

Re: [Qemu-devel] [PATCH 03/17] linux-user: define a couple of syscalls for non-uid16 targets

2011-04-18 Thread Alexander Graf
On 18.04.2011, at 18:32, Riku Voipio wrote: > On Fri, Apr 15, 2011 at 05:32:44PM +0200, Alexander Graf wrote: >> From: Ulrich Hecht >> >> Quite a number of syscalls are only defined on systems with USE_UID16 >> defined; this patch defines them on other systems as well. >> >> Fixes a large numb

Re: [Qemu-devel] [PATCH] target-ppc: use softfloat min/max functions

2011-04-18 Thread Alexander Graf
On 18.04.2011, at 21:23, Aurelien Jarno wrote: > Use the new softfloat float32_min() and float32_max() to implement the > vminfp and vmaxfp instructions. > > Cc: Alexander Graf > Signed-off-by: Aurelien Jarno > --- > target-ppc/op_helper.c | 16 +--- > 1 files changed, 5 insertion

[Qemu-devel] [PATCH 1/2] KVM: PPC: booke: save/restore VRSAVE (a.k.a. USPRG0)

2011-04-18 Thread Scott Wood
Linux doesn't use USPRG0 (now renamed VRSAVE in the architecture, even when Altivec isn't involved), but a guest might. Signed-off-by: Scott Wood --- arch/powerpc/include/asm/kvm_host.h |1 + arch/powerpc/kernel/asm-offsets.c |1 + arch/powerpc/kvm/booke_interrupts.S |5 - 3 fi

[Qemu-devel] [PATCH 2/2] KVM: PPC: booke: add sregs support

2011-04-18 Thread Scott Wood
Signed-off-by: Scott Wood --- Documentation/kvm/api.txt |6 +- arch/powerpc/include/asm/kvm.h | 184 +++ arch/powerpc/include/asm/kvm_44x.h |1 - arch/powerpc/include/asm/kvm_e500.h |1 + arch/powerpc/include/asm/kvm_host.h |3 + ar

Re: [Qemu-devel] [PATCH 1/2] KVM: PPC: booke: save/restore VRSAVE (a.k.a. USPRG0)

2011-04-18 Thread Scott Wood
On Mon, Apr 18, 2011 at 05:25:48PM -0500, Scott Wood wrote: > Linux doesn't use USPRG0 (now renamed VRSAVE in the architecture, even > when Altivec isn't involved), but a guest might. > > Signed-off-by: Scott Wood > --- > arch/powerpc/include/asm/kvm_host.h |1 + > arch/powerpc/kernel/asm-of

[Qemu-devel] [0/3] More pSeries machine tweaks

2011-04-18 Thread David Gibson
Hi Alex, Here are several more minor tweaks/improvements to the pseries machine emulation.

[Qemu-devel] [PATCH 2/3] Make pSeries 'model' property more closely resemble real hardware

2011-04-18 Thread David Gibson
Currently, the qemu emulated pseries machine puts "qemu,emulated-pSeries-LPAR" in the device tree's root level 'model' property. Unfortunately this confuses some installers and ybin, which expect this to start with "IBM" on pSeries machines. This patch addresses this problem, making the property

[Qemu-devel] [PATCH 3/3] Place pseries vty devices at addresses more similar to existing machines

2011-04-18 Thread David Gibson
Currently the qemu pseries machine numbers its virtual serial devices from 0. However, existing pSeries machines running pHyp number them from 0x3000. In theory these indices are arbitrary, since everything necessary for the kernel to find them is advertised in the device tree. However the d

[Qemu-devel] [PATCH 1/3] pseries: Increase maximum CPUs to 256

2011-04-18 Thread David Gibson
From: Anton Blanchard The original pSeries machine was limited to 32 CPUs, more or less arbitrarily. Particularly when we get SMT KVM guests it will be pretty easy to exceed this. Therefore, raise the max number of CPUs in a pseries machine guest to 256. Signed-off-by: Anton Blanchard Signed-

[Qemu-devel] [PATCH] virtio-serial: Fix endianness bug in the config space

2011-04-18 Thread David Gibson
From: Alexey Kardashevskiy The virtio serial specification requres that the values in the config space are encoded in native endian of the guest. The qemu virtio-serial code did not do conversion to the guest endian format what caused problems when host and guest use different format. This patc

[Qemu-devel] [PATCH 1/2] Fix buffer overrun in sched_getaffinity

2011-04-18 Thread Mike McCormack
Zeroing of the cpu array should start from &cpus[kernel_ret] not &cpus[num_zeros_to_fill]. This fixes a crash in EFL's edje_cc running under qemu-arm. Signed-off-by: Mike McCormack Reviewed-by: Stefan Hajnoczi Acked-by: Mike Frysinger --- linux-user/syscall.c |2 +- 1 files changed, 1 ins

[Qemu-devel] [PATCH 2/2] Don't zero out buffer in sched_getaffinity

2011-04-18 Thread Mike McCormack
The kernel doesn't fill the buffer provided to sched_getaffinity with zero bytes, so neither should QEMU. Signed-off-by: Mike McCormack Reviewed-by: Stefan Hajnoczi --- linux-user/syscall.c | 13 + 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/linux-user/syscall.

<    1   2