[Qemu-devel] [RFC PATCH 0/3 V8] QAPI: add inject-nmi qmp command

2011-04-20 Thread Lai Jiangshan
These patches are applied for http://repo.or.cz/r/qemu/aliguori.git glib. These patches add QAPI inject-nmi. They are passed checkpatch.pl and the build. But the result qemu executable file is not tested, because the result qemu of http://repo.or.cz/r/qemu/aliguori.git glib can't work in my

[Qemu-devel] [RFC PATCH 1/3 V8] QError: Introduce QERR_UNSUPPORTED

2011-04-20 Thread Lai Jiangshan
New QERR_UNSUPPORTED for unsupported commands or requests. Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com --- qerror.c |4 qerror.h |3 +++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/qerror.c b/qerror.c index c76257f..bafe520 100644 --- a/qerror.c +++

[Qemu-devel] [RFC PATCH 3/3 V8] qapi-hmp: Convert HMP nmi to use QMP

2011-04-20 Thread Lai Jiangshan
Convert the name of HMP nmi to inject-nmi, and use QMP inject-nmi. The behavier is also changed, it injects NMI to all CPUs of the guest. When the guest is non-x86, it reports Unsupported error. Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com --- hmp-commands.hx | 18 --

[Qemu-devel] [RFC PATCH 2/3 V8] qapi, nmi: add inject-nmi qmp command

2011-04-20 Thread Lai Jiangshan
inject-nmi command injects an NMI on all CPUs of guest. It is only supported for x86 guest currently, it will returns Unsupported error for non-x86 guest. Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com --- qapi-schema.json | 12 qmp.c| 17 + 2

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

2011-04-20 Thread David Gibson
On Tue, Apr 19, 2011 at 05:02:21PM +0200, Alexander Graf wrote: On 04/19/2011 02:44 PM, David Gibson wrote: On Tue, Apr 19, 2011 at 09:38:58AM +0200, Alexander Graf wrote: On 19.04.2011, at 03:54, David Gibson wrote: From: Anton Blanchardan...@au1.ibm.com The original pSeries machine was

Re: [Qemu-devel] [PATCH] configure: Make epoll_create1 test work around SPARC glibc bug

2011-04-20 Thread Peter Maydell
On 19 April 2011 21:36, Blue Swirl blauwir...@gmail.com wrote: Sorry, I just picked a define without much thought. A more specific one would be flags parameter of epoll_create1(), like EPOLL_CLOEXEC or EPOLL_NONBLOCK. We don't use them now since the target system call argument is passed

[Qemu-devel] [PATCH] Don't translate pointer when in restore_sigcontext

2011-04-20 Thread Mike McCormack
Fixes crash in i386 when user emulation base address is non-zero. 21797 rt_sigreturn(8,1082124603,1,0,1082126048,1082126248)Exit reason and status: signal 11 Signed-off-by: Mike McCormack mj.mccorm...@samsung.com --- linux-user/signal.c |4 ++-- 1 files changed, 2 insertions(+), 2

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

2011-04-20 Thread Alexander Graf
On 20.04.2011, at 08:31, David Gibson wrote: On Tue, Apr 19, 2011 at 05:02:21PM +0200, Alexander Graf wrote: On 04/19/2011 02:44 PM, David Gibson wrote: On Tue, Apr 19, 2011 at 09:38:58AM +0200, Alexander Graf wrote: On 19.04.2011, at 03:54, David Gibson wrote: From: Anton

[Qemu-devel] [RFC PATCH 0/2] Multiqueue support for qemu(virtio-net)

2011-04-20 Thread Jason Wang
Inspired by Krishna's patch (http://www.spinics.net/lists/kvm/msg52098.html) and Michael's suggestions. The following series adds the multiqueue support for qemu and enable it for virtio-net (both userspace and vhost). The aim for this series is to simplified the management and achieve the same

[Qemu-devel] [RFC PATCH 1/2] net: Add multiqueue support

2011-04-20 Thread Jason Wang
This patch adds the multiqueues support for emulated nics. Each VLANClientState pairs are now abstract as a queue instead of a nic, and multiple VLANClientState pointers were stored in the NICState and treated as the multiple queues of a single nic. The netdev options of qdev were now expanded to

[Qemu-devel] [RFC PATCH 2/2] virtio-net: add multiqueue support

2011-04-20 Thread Jason Wang
This patch add the multiqueue ability to virtio-net for both userapce and vhost. With this patch the kernel side vhost could be reused without modification to support multiqueue virtio-net nics. Signed-off-by: Jason Wang jasow...@redhat.com --- hw/vhost.c | 26 ++- hw/vhost.h |1

Re: [Qemu-devel] [RFC PATCH 0/2] Multiqueue support for qemu(virtio-net)

2011-04-20 Thread Krishna Kumar2
Thanks Jason! So I can use my virtio-net guest driver and test with this patch? Please provide the script you use to start MQ guest. Regards, - KK Jason Wang jasow...@redhat.com wrote on 04/20/2011 02:03:07 PM: Jason Wang jasow...@redhat.com 04/20/2011 02:03 PM To Krishna

Re: [Qemu-devel] [PATCH 00/24] Alpha system emulation, v2

2011-04-20 Thread Tristan Gingold
On Apr 19, 2011, at 5:04 PM, Richard Henderson wrote: Changes from v1 to v2: - Split patch 5 up into little pieces. These pieces were compile tested by applying patch 23 (Enable alpha-softmmu) out of sequence so that both softmmu and linux-user targets were built. But in the end

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

2011-04-20 Thread Aurelien Jarno
On Tue, Apr 19, 2011 at 12:10:48PM +0100, Peter Maydell wrote: On 18 April 2011 21:59, Aurelien Jarno aurel...@aurel32.net wrote: +#define float64_pi make_float32(0x400921fb54442d18LL) This doesn't look quite right :-) Good catch, fixed. -- Aurelien Jarno GPG:

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

2011-04-20 Thread Aurelien Jarno
On Tue, Apr 19, 2011 at 12:07:26PM +0100, Peter Maydell wrote: On 18 April 2011 21:59, Aurelien Jarno aurel...@aurel32.net wrote: Add floatx80 constants similarly to float32 or float64. Signed-off-by: Aurelien Jarno aurel...@aurel32.net Reviewed-by: Peter Maydell peter.mayd...@linaro.org

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

2011-04-20 Thread Aurelien Jarno
On Tue, Apr 19, 2011 at 01:42:00PM +0100, Peter Maydell wrote: On 18 April 2011 22:00, Aurelien Jarno aurel...@aurel32.net wrote: @@ -511,4 +530,11 @@ int floatx80_is_quiet_nan( floatx80 a1 )     return ( ( u.i.high 0x7FFF ) == 0x7FFF ) (uint64_t) ( u.i.low1 );  } +int

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

2011-04-20 Thread Aurelien Jarno
On Tue, Apr 19, 2011 at 12:57:23PM +0100, Peter Maydell wrote: On 18 April 2011 21:59, Aurelien Jarno aurel...@aurel32.net wrote: @@ -6349,6 +6352,12 @@ float32 float32_scalbn( float32 a, int n STATUS_PARAM )     else if ( aSig == 0 )         return a; +    if (n 0x80) { +      

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

2011-04-20 Thread Aurelien Jarno
On Tue, Apr 19, 2011 at 06:06:57PM +0100, Peter Maydell wrote: On 18 April 2011 22:00, Aurelien Jarno aurel...@aurel32.net wrote: Signed-off-by: Aurelien Jarno aurel...@aurel32.net ---  target-i386/op_helper.c |    7 ---  1 files changed, 4 insertions(+), 3 deletions(-) diff --git

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

2011-04-20 Thread Aurelien Jarno
On Tue, Apr 19, 2011 at 06:37:14PM +0100, Peter Maydell wrote: On 18 April 2011 22:00, Aurelien Jarno aurel...@aurel32.net wrote: +#include math.h Why does this patch need this? I couldn't see anywhere where the patch added calls to math functions we weren't calling before, or did I miss

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

2011-04-20 Thread Aurelien Jarno
On Tue, Apr 19, 2011 at 06:11:37PM +0100, Peter Maydell wrote: On 18 April 2011 22:00, Aurelien Jarno aurel...@aurel32.net wrote: +++ b/target-i386/op_helper.c @@ -3440,9 +3440,10 @@ static void fpu_set_exception(int mask)  static inline CPU86_LDouble helper_fdiv(CPU86_LDouble a,

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

2011-04-20 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

[Qemu-devel] [PATCH v2 00/20] *** SUBJECT HERE ***

2011-04-20 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

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

2011-04-20 Thread Aurelien Jarno
With floatx80, the explicit bit is set for infinity. Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- fpu/softfloat.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fpu/softfloat.h b/fpu/softfloat.h index

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

2011-04-20 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 aurel...@aurel32.net --- fpu/softfloat.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) v1 - v2: fix typo creating a float64

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

2011-04-20 Thread Aurelien Jarno
Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- 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

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

2011-04-20 Thread Aurelien Jarno
Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- target-i386/op_helper.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) v1 - v2: fix handling of -0 diff --git a/target-i386/op_helper.c b/target-i386/op_helper.c index f614893..22cb549 100644 --- a/target-i386/op_helper.c

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

2011-04-20 Thread Aurelien Jarno
Add floatx80_compare() and floatx80_compare_quiet() functions to match the softfloat-native ones. Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- fpu/softfloat.c | 46 ++ fpu/softfloat.h |

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

2011-04-20 Thread Aurelien Jarno
Add floatx80 constants similarly to float32 or float64. Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- fpu/softfloat.h |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/fpu/softfloat.h b/fpu/softfloat.h

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

2011-04-20 Thread Aurelien Jarno
Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- target-i386/op_helper.c | 10 -- target-i386/ops_sse.h | 36 2 files changed, 24 insertions(+), 22 deletions(-) diff --git

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

2011-04-20 Thread Aurelien Jarno
Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- 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

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

2011-04-20 Thread Aurelien Jarno
Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- target-i386/op_helper.c | 48 +++--- 1 files changed, 28 insertions(+), 20 deletions(-) diff --git a/target-i386/op_helper.c

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

2011-04-20 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 v2 20/20] target-i386: switch to softfloat

2011-04-20 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 aurel...@aurel32.net --- configure |9 + 1 files changed, 1 insertions(+), 8 deletions(-) v1 - v2: remove

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

2011-04-20 Thread Aurelien Jarno
Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- 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

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

2011-04-20 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. Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- target-i386/exec.h |4

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

2011-04-20 Thread Aurelien Jarno
Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- 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

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

2011-04-20 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 aurel...@aurel32.net --- target-i386/op_helper.c | 52 +++--- 1 files changed, 26 insertions(+),

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

2011-04-20 Thread Aurelien Jarno
Add float*_is_any_nan() functions to match the softfloat API. Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- fpu/softfloat-native.c | 26 ++ fpu/softfloat-native.h |3 +++ 2 files changed, 29 insertions(+),

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

2011-04-20 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. Reviewed-by: Peter Maydell

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

2011-04-20 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. Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Aurelien Jarno aurel...@aurel32.net ---

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

2011-04-20 Thread Aurelien Jarno
float*_scalbn() should be able to take a status parameter. Fix that. Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- fpu/softfloat-native.h |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git

[Qemu-devel] [PATCH] linux-user/arm/nwfpe: rename REG_PC to ARM_REG_PC

2011-04-20 Thread Peter Maydell
The REG_PC constant used in the ARM nwfpe code is fine in the kernel but when used in qemu can clash with a definition in the host system include files (in particular on Ubuntu Lucid SPARC, including signal.h will define a REG_PC). Rename the constant to avoid this issue. Signed-off-by: Peter

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

2011-04-20 Thread Aurelien Jarno
On Mon, Apr 18, 2011 at 11:03:59PM +0200, Alexander Graf wrote: 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

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

2011-04-20 Thread Peter Maydell
On 20 April 2011 11:11, Aurelien Jarno aurel...@aurel32.net wrote: @@ -624,10 +630,11 @@ static floatx80 commonNaNToFloatx80( commonNaNT a STATUS_PARAM)         return z;     } -    if (a.high) -        z.low = a.high; -    else +    if (a.high 1) { +        z.low = LIT64(

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

2011-04-20 Thread Peter Maydell
On 20 April 2011 11:11, Aurelien Jarno aurel...@aurel32.net wrote: 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 aurel...@aurel32.net ---  fpu/softfloat.h |    3 +++  1 files changed,

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

2011-04-20 Thread Peter Maydell
On 20 April 2011 11:11, Aurelien Jarno aurel...@aurel32.net wrote: 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. -

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

2011-04-20 Thread Peter Maydell
On 20 April 2011 11:12, Aurelien Jarno aurel...@aurel32.net wrote: Signed-off-by: Aurelien Jarno aurel...@aurel32.net ---  target-i386/op_helper.c |    7 ---  1 files changed, 4 insertions(+), 3 deletions(-) v1 - v2: fix handling of -0 Reviewed-by: Peter Maydell peter.mayd...@linaro.org

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

2011-04-20 Thread Peter Maydell
On 20 April 2011 11:12, Aurelien Jarno aurel...@aurel32.net wrote: Use the new CPU86_LDouble - double conversion functions to make logarithmic and trigonometric helpers working with softfloat. Signed-off-by: Aurelien Jarno aurel...@aurel32.net ---  target-i386/op_helper.c |   52

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

2011-04-20 Thread Peter Maydell
On 20 April 2011 11:12, Aurelien Jarno aurel...@aurel32.net wrote: 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 aurel...@aurel32.net ---  configure |    9

Re: [Qemu-devel] [PULL] Remove unused function parameters

2011-04-20 Thread Aurelien Jarno
On Wed, Apr 20, 2011 at 11:03:36AM +0200, Stefan Weil wrote: Hello, I updated the first patch as suggested by Peter Maydell (Fix [] typo, fix copy+paste error with SHA1 object name in commit message). The rest is identical, so I don't resend it to qemu-devel. Thanks, pulled. In the future

Re: [Qemu-devel] [PULL] Remove unused function parameters

2011-04-20 Thread Peter Maydell
On 20 April 2011 11:53, Aurelien Jarno aurel...@aurel32.net wrote: On Wed, Apr 20, 2011 at 11:03:36AM +0200, Stefan Weil wrote: Hello, I updated the first patch as suggested by Peter Maydell (Fix [] typo, fix copy+paste error with SHA1 object name in commit message). The rest is identical,

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

2011-04-20 Thread Aurelien Jarno
On Tue, Apr 19, 2011 at 06:56:45PM +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!) - see

Re: [Qemu-devel] [PATCH 2/2] Basic implementation of Sharp Zaurus SL-5500 collie PDA

2011-04-20 Thread Aurelien Jarno
On Tue, Apr 19, 2011 at 06:56:46PM +0400, Dmitry Eremin-Solenikov wrote: Add very basic implementation of collie PDA emulation. The system lacks LoCoMo and graphics/sound emulation. Linux kernel boots up to mounting rootfs (theoretically it can be provided in pflash images). Signed-off-by:

Re: [Qemu-devel] [PATCH] hw/arm_boot.c: move initrd load address up to accommodate large kernels

2011-04-20 Thread Aurelien Jarno
On Tue, Apr 19, 2011 at 04:32:34PM +0100, Peter Maydell wrote: Newer kernels are large enough that they can overlap the address where qemu places the initrd. Move the initrd up so that there is enough space for the kernel again. Unfortunately it's not possible to automatically determine the

Re: [Qemu-devel] [PATCH] target-arm: Set Invalid flag for NaN in float-to-int conversions

2011-04-20 Thread Aurelien Jarno
On Tue, Apr 19, 2011 at 05:30:55PM +0100, Peter Maydell wrote: When we catch the special case of an input NaN in ARM float to int helper functions, set the Invalid flag as well as returning the correct result. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/helper.c |

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

2011-04-20 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

[Qemu-devel] [PATCH v2 0/5] atapi: Some code restructuring

2011-04-20 Thread Kevin Wolf
v2: - Fixed commit messages - Added a comment in cmd_test_unit_ready Kevin Wolf (5): ide: Split atapi.c out ide/atapi: Factor commands out ide/atapi: Use table instead of switch for commands ide/atapi: Replace bdrv_get_geometry calls by s-nb_sectors ide/atapi: Introduce CHECK_READY flag

[Qemu-devel] [PATCH v2 3/5] ide/atapi: Use table instead of switch for commands

2011-04-20 Thread Kevin Wolf
Signed-off-by: Kevin Wolf kw...@redhat.com --- hw/ide/atapi.c | 115 +++ 1 files changed, 48 insertions(+), 67 deletions(-) diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c index d161bf7..d0bf7fd 100644 --- a/hw/ide/atapi.c +++ b/hw/ide/atapi.c @@

[Qemu-devel] [PATCH v2 2/5] ide/atapi: Factor commands out

2011-04-20 Thread Kevin Wolf
In preparation for a table of function pointers, factor each command out from ide_atapi_cmd() into its own function. Signed-off-by: Kevin Wolf kw...@redhat.com --- hw/ide/atapi.c | 837 +++- 1 files changed, 459 insertions(+), 378 deletions(-)

[Qemu-devel] [PATCH v2 5/5] ide/atapi: Introduce CHECK_READY flag for commands

2011-04-20 Thread Kevin Wolf
Some commands are supposed to report a Not Ready Conmdition (i.e. they require a medium to be present in order to execute successfully). Instead of duplicating the check in each command implementation, let's add a flag and check it before calling the command. This patch only converts existing

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

2011-04-20 Thread Peter Maydell
On 20 April 2011 12:24, Aurelien Jarno aurel...@aurel32.net wrote: 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

[Qemu-devel] [PATCH v2 4/5] ide/atapi: Replace bdrv_get_geometry calls by s-nb_sectors

2011-04-20 Thread Kevin Wolf
The disk size can only change when the medium is changed, and the change callback takes care of updating s-nb_sectors in this case. Signed-off-by: Kevin Wolf kw...@redhat.com --- hw/ide/atapi.c | 21 ++--- 1 files changed, 6 insertions(+), 15 deletions(-) diff --git

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

2011-04-20 Thread Aurelien Jarno
Use the new softfloat float32_min() and float32_max() to implement the vminfp and vmaxfp instructions. Cc: Alexander Graf ag...@suse.de Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- target-ppc/op_helper.c | 20 ++-- 1 files changed, 2 insertions(+), 18 deletions(-)

[Qemu-devel] [PATCH v2 1/3] target-ppc: simplify NaN propagation for vector functions

2011-04-20 Thread Aurelien Jarno
Commit e024e881bb1a8b5085026589360d26ed97acdd64 provided a pickNaN() function for PowerPC, implementing the correct NaN propagation rules. Therefore there is no need to test the operands manually, we can rely on the softfloat code to do that. Cc: Alexander Graf ag...@suse.de Signed-off-by:

[Qemu-devel] [PATCH v2 3/3] target-ppc: remove old CONFIG_SOFTFLOAT #ifdef

2011-04-20 Thread Aurelien Jarno
target-ppc has been switched to softfloat only long ago, but a few #ifdef CONFIG_SOFTFLOAT have been forgotten. Remove them. Cc: Alexander Graf ag...@suse.de Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- target-ppc/helper.h|2 -- target-ppc/op_helper.c | 11 ---

Re: [Qemu-devel] [PATCH v2 1/3] target-ppc: simplify NaN propagation for vector functions

2011-04-20 Thread Peter Maydell
On 20 April 2011 12:32, Aurelien Jarno aurel...@aurel32.net wrote: Commit e024e881bb1a8b5085026589360d26ed97acdd64 provided a pickNaN() function for PowerPC, implementing the correct NaN propagation rules. Therefore there is no need to test the operands manually, we can rely on the softfloat

Re: [Qemu-devel] [PATCH] xen-upstream-qemu: get vncpassword through xenstore, enable VNC_AUTH_VNC

2011-04-20 Thread Stefano Stabellini
On Wed, 20 Apr 2011, ZhouPeng wrote: This pacth allows you to use vncpasswd for xen-upstream-qemu Signed-off-by: Zhou Peng zhoup...@nfs.iscas.ac.cn xen-upstream-qemu: get vncpassword through xenstore, enable VNC_AUTH_VNC This patch is for upstream qemu, right? In that case you always

Re: [Qemu-devel] [PATCH v2] Improve accuracy of block migration bandwidth calculation

2011-04-20 Thread Kevin Wolf
Am 03.04.2011 10:31, schrieb Avishay Traeger: Revised patch for improving the accuracy of the block migration bandwidth calculation. Thanks a lot to Michael Roth for the input. For those that missed the original patch, here is the description: block_mig_state.total_time is currently the

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

2011-04-20 Thread Amit Shah
On (Tue) 19 Apr 2011 [12:03:46], David Gibson wrote: From: Alexey Kardashevskiy a...@ozlabs.ru 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

Re: [Qemu-devel] [PATCH v2 1/3] target-ppc: simplify NaN propagation for vector functions

2011-04-20 Thread Nathan Froyd
On Wed, Apr 20, 2011 at 01:04:48PM +0100, Peter Maydell wrote: I need to add ARM support for fused multiply-accumulate (vfma,vfms), so perhaps in the long run it would be better to make them softfloat primitives? (they are after all in the new IEEE spec, so they're in softfloat's domain in

Re: [Qemu-devel] [PATCH 00/24] Alpha system emulation, v2

2011-04-20 Thread Brian Wheeler
I'd like to second Tristan in saying that I'm glad someone is working on alpha system emulation -- its long overdue! Brian On Wed, 2011-04-20 at 11:06 +0200, Tristan Gingold wrote: On Apr 19, 2011, at 5:04 PM, Richard Henderson wrote: Changes from v1 to v2: - Split patch 5 up into

[Qemu-devel] [PULL] qemu-timer: Add and use new function qemu_timer_expired_ns and other patches

2011-04-20 Thread Stefan Weil
Hello, the four qemu-timer related patches which I sent to qemu-devel can now be pulled. Maybe this makes the commit to git master easier. There was no feedback for the first three patches. The fourth patch changes windows code only and is needed for native windows. Cheers, Stefan Weil

Re: [Qemu-devel] QEMU-KVM and hardened (GRSEC/PaX) kernel

2011-04-20 Thread Avi Kivity
On 04/17/2011 01:45 AM, Антон Кочков wrote: Good day! I'm trying to make working qemu-kvm with hardened gentoo on hardened kernel. When i'm using CONFIG_PAX_KERNPAGEXEC and CONFIG_PAX_MEM_UNDEREF qemu just start and go to infinite loop and take 100% of one of my CPU core. adn it even can't be

Re: [Qemu-devel] [PATCH 00/24] Alpha system emulation, v2

2011-04-20 Thread Richard Henderson
On 04/20/2011 02:06 AM, Tristan Gingold wrote: * sx164 is ev56 based, isn't it ? It would be nice if cpu version specific code is clearly marked. Yes, but most importantly it is the most evolved of the single hose systems. QEMU is nowhere near ready to deal with multiple PCI host controllers,

[Qemu-devel] [PATCH] target-arm: Move VLD/VST multiple into helper functions

2011-04-20 Thread Peter Maydell
Move VLD/VST multiple into helper functions, as some cases can generate more TCG ops than the maximum per-instruction limit and certainly more than the recommended 20. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- This patch is inspired by one from the meego tree:

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

2011-04-20 Thread David Gibson
On Wed, Apr 20, 2011 at 06:06:45PM +0530, Amit Shah wrote: On (Tue) 19 Apr 2011 [12:03:46], David Gibson wrote: From: Alexey Kardashevskiy a...@ozlabs.ru The virtio serial specification requres that the values in the config space are encoded in native endian of the guest. The qemu

Re: [Qemu-devel] [PATCH 00/24] Alpha system emulation, v2

2011-04-20 Thread Tristan Gingold
On Apr 20, 2011, at 4:46 PM, Richard Henderson wrote: On 04/20/2011 02:06 AM, Tristan Gingold wrote: * sx164 is ev56 based, isn't it ? It would be nice if cpu version specific code is clearly marked. Yes, but most importantly it is the most evolved of the single hose systems. QEMU is

Re: [Qemu-devel] [PATCH 00/24] Alpha system emulation, v2

2011-04-20 Thread Richard Henderson
On 04/20/2011 08:46 AM, Tristan Gingold wrote: Right, but you could create an ev67 machine with a single PCI controller (or put all the devices on the same PCI controller). Even the lowly ds10 has two hoses. I'll admit I hadn't considered engineering the second hose to be present but always

Re: [Qemu-devel] [PATCH] configure: Make epoll_create1 test work around SPARC glibc bug

2011-04-20 Thread Blue Swirl
On Wed, Apr 20, 2011 at 9:53 AM, Peter Maydell peter.mayd...@linaro.org wrote: On 19 April 2011 21:36, Blue Swirl blauwir...@gmail.com wrote: Sorry, I just picked a define without much thought. A more specific one would be flags parameter of epoll_create1(), like EPOLL_CLOEXEC or

[Qemu-devel] [PATCH V14 00/17] Xen device model support

2011-04-20 Thread anthony.perard
From: Anthony PERARD anthony.per...@citrix.com Hi all, Update of the patch series that address comment from Jan Kiszka. The change v13-v14: - Remove of ram_size parameter from pc_memory_init - set both below/above_4g_mem_size at the same place in the code. Change v12-v13: - There are few

[Qemu-devel] [PATCH V14 02/17] xen: Make Xen build once.

2011-04-20 Thread anthony.perard
From: Anthony PERARD anthony.per...@citrix.com xen_domainbuild and xen_machine_pv are built only for i386 targets. Signed-off-by: Anthony PERARD anthony.per...@citrix.com --- Makefile.target |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile.target

[Qemu-devel] [PATCH V14 05/17] pc_memory_init: Move memory calculation to the caller.

2011-04-20 Thread anthony.perard
From: Anthony PERARD anthony.per...@citrix.com This patch moves above_4g_mem_size and below_4g_mem_size calculation in the caller of pc_memory_init (pc_init1). And the prototype of pc_memory_init is changed because there is no need anymore to have variable pointer and the ram_size parameter.

[Qemu-devel] [PATCH V14 04/17] xen: Add initialisation of Xen

2011-04-20 Thread anthony.perard
From: Anthony PERARD anthony.per...@citrix.com The xenpv machine use the common init function. Signed-off-by: Anthony PERARD anthony.per...@citrix.com Acked-by: Alexander Graf ag...@suse.de --- Makefile.target |9 + hw/xen.h| 13 + hw/xen_backend.c|

[Qemu-devel] [PATCH V14 07/17] piix_pci: Introduces Xen specific call for irq.

2011-04-20 Thread anthony.perard
From: Anthony PERARD anthony.per...@citrix.com This patch introduces Xen specific call in piix_pci. The specific part for Xen is in write_config, set_irq and get_pirq. Signed-off-by: Anthony PERARD anthony.per...@citrix.com Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com

[Qemu-devel] [PATCH V14 06/17] xen: Add xenfv machine

2011-04-20 Thread anthony.perard
From: Anthony PERARD anthony.per...@citrix.com Introduce the Xen FV (Fully Virtualized) machine to Qemu, some more Xen specific call will be added in further patches. Signed-off-by: Anthony PERARD anthony.per...@citrix.com --- hw/pc_piix.c | 41 +++--

[Qemu-devel] [PATCH V14 12/17] configure: Always use 64bits target physical addresses with xen enabled.

2011-04-20 Thread anthony.perard
From: Anthony PERARD anthony.per...@citrix.com With MapCache, we can handle a 64b target, even with a 32b host/qemu. So, we need to have target_phys_addr_t to 64bits. Signed-off-by: Anthony PERARD anthony.per...@citrix.com Acked-by: Alexander Graf ag...@suse.de --- configure |1 + 1 files

[Qemu-devel] [PATCH V14 14/17] vl.c: Introduce getter for shutdown_requested and reset_requested.

2011-04-20 Thread anthony.perard
From: Anthony PERARD anthony.per...@citrix.com Introduce two functions qemu_shutdown_requested_get and qemu_reset_requested_get to get the value of shutdown/reset_requested without reset it. Signed-off-by: Anthony PERARD anthony.per...@citrix.com Signed-off-by: Stefano Stabellini

[Qemu-devel] [PATCH V14 03/17] xen: Support new libxc calls from xen unstable.

2011-04-20 Thread anthony.perard
From: Anthony PERARD anthony.per...@citrix.com This patch updates the libxenctrl calls in Qemu to use the new interface, otherwise Qemu wouldn't be able to build against new versions of the library. We check libxenctrl version in configure, from Xen 3.3.0 to Xen unstable. Signed-off-by: Anthony

[Qemu-devel] [PATCH V14 08/17] xen: Introduce Xen Interrupt Controller

2011-04-20 Thread anthony.perard
From: Anthony PERARD anthony.per...@citrix.com Every set_irq call makes a Xen hypercall. Signed-off-by: Anthony PERARD anthony.per...@citrix.com Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com --- hw/pc_piix.c |8 ++-- hw/xen.h |2 ++ xen-all.c| 12

[Qemu-devel] [PATCH V14 16/17] xen: Set running state in xenstore.

2011-04-20 Thread anthony.perard
From: Anthony PERARD anthony.per...@citrix.com This tells to the xen management tool that the machine can begin run. Signed-off-by: Anthony PERARD anthony.per...@citrix.com Acked-by: Alexander Graf ag...@suse.de --- xen-all.c | 23 +++ 1 files changed, 23 insertions(+), 0

[Qemu-devel] [PATCH V14 11/17] Introduce qemu_put_ram_ptr

2011-04-20 Thread anthony.perard
From: Anthony PERARD anthony.per...@citrix.com This function allows to unlock a ram_ptr give by qemu_get_ram_ptr. After a call to qemu_put_ram_ptr, the pointer may be unmap from QEMU when used with Xen. Signed-off-by: Anthony PERARD anthony.per...@citrix.com Acked-by: Alexander Graf

[Qemu-devel] [PATCH V14 15/17] xen: Initialize event channels and io rings

2011-04-20 Thread anthony.perard
From: Arun Sharma arun.sha...@intel.com Open and bind event channels; map ioreq and buffered ioreq rings. Signed-off-by: Arun Sharma arun.sha...@intel.com Signed-off-by: Anthony PERARD anthony.per...@citrix.com Signed-off-by: Stefano Stabellini stefano.stabell...@eu.citrix.com Acked-by:

[Qemu-devel] [PATCH V14 10/17] xen: Adds a cap to the number of map cache entries.

2011-04-20 Thread anthony.perard
From: John Baboval john.babo...@virtualcomputer.com Adds a cap to the number of map cache entries. This prevents the map cache from overwhelming system memory. I also removed the bitmap macros and #included bitmap.h instead. Signed-off-By: John Baboval john.babo...@virtualcomputer.com

[Qemu-devel] [PATCH V14 17/17] xen: Add Xen hypercall for sleep state in the cmos_s3 callback.

2011-04-20 Thread anthony.perard
From: Anthony PERARD anthony.per...@citrix.com Signed-off-by: Anthony PERARD anthony.per...@citrix.com --- hw/pc_piix.c |6 +- hw/xen.h |1 + xen-all.c|9 + xen-stub.c |4 4 files changed, 19 insertions(+), 1 deletions(-) diff --git a/hw/pc_piix.c

[Qemu-devel] [PATCH V14 13/17] pci: Use of qemu_put_ram_ptr in pci_add_option_rom.

2011-04-20 Thread anthony.perard
From: John Baboval john.babo...@virtualcomputer.com Prevent a deadlock caused by leaving a map cache bucket locked by the preceding qemu_get_ram_ptr() call. Signed-off-By: John Baboval john.babo...@virtualcomputer.com Signed-off-by: Anthony PERARD anthony.per...@citrix.com --- hw/pci.c |2

[Qemu-devel] [PATCH V14 09/17] xen: Introduce the Xen mapcache

2011-04-20 Thread anthony.perard
From: Jun Nakajima jun.nakaj...@intel.com On IA32 host or IA32 PAE host, at present, generally, we can't create an HVM guest with more than 2G memory, because generally it's almost impossible for Qemu to find a large enough and consecutive virtual address space to map an HVM guest's whole

Re: [Qemu-devel] [PATCH v2 3/5] ide/atapi: Use table instead of switch for commands

2011-04-20 Thread Blue Swirl
On Wed, Apr 20, 2011 at 2:30 PM, Kevin Wolf kw...@redhat.com wrote: Signed-off-by: Kevin Wolf kw...@redhat.com ---  hw/ide/atapi.c |  115 +++  1 files changed, 48 insertions(+), 67 deletions(-) diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c

Re: [Qemu-devel] [PATCH 00/26] q35 chipset support for native pci express support

2011-04-20 Thread Isaku Yamahata
I forgot to changet its HEAD. Now it's fixed. So please change the branch manually or clone the repo again. On Tue, Apr 19, 2011 at 04:58:32PM +0800, Hu Tao wrote: On Tue, Apr 19, 2011 at 05:51:27PM +0900, Isaku Yamahata wrote: On Tue, Apr 19, 2011 at 04:28:01PM +0800, Hu Tao wrote: On Wed,

[Qemu-devel] [PATCH 1/3] rtl8139: use TARGET_FMT_plx in debug messages

2011-04-20 Thread Benjamin Poirier
Prevents a compilation failure when DEBUG_RTL8139 is defined: CClibhw32/rtl8139.o cc1: warnings being treated as errors hw/rtl8139.c: In function ‘rtl8139_cplus_transmit_one’: hw/rtl8139.c:1960: error: format ‘%8lx’ expects type ‘long unsigned int’, but argument 5 has type

[Qemu-devel] [PATCH 3/3] rtl8139: add format attribute to DPRINTF

2011-04-20 Thread Benjamin Poirier
gcc can check the format string for correctness even when debugging output is not enabled. Have to make sure arguments are always available. They are optimized out if unneeded. Signed-off-by: Benjamin Poirier benjamin.poir...@gmail.com Cc: Igor V. Kovalenko igor.v.kovale...@gmail.com ---

  1   2   >