[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 --- linux-user/signal.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-

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

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

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

[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 --- hw/vhost.c | 26 ++- hw/vhost.h |1 hw/vhost_net.c |

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 wrote on 04/20/2011 02:03:07 PM: > Jason Wang > 04/20/2011 02:03 PM > > To > > Krishna Kumar2/India/IBM@IBMIN, k...@vger.kernel.org, m

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

2011-04-20 Thread Aurelien Jarno
On Tue, Apr 19, 2011 at 11:53:50AM +0100, Peter Maydell wrote: > On 18 April 2011 21:59, Aurelien Jarno 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 sho

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

2011-04-20 Thread Stefan Weil
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. Cheers, Stefan Weil The following changes since commit 8d5192ee15bc519f83741f5e413ebba5d57a6abd

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

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 wrote: > > +#define float64_pi make_float32(0x400921fb54442d18LL) > > This doesn't look quite right :-) > Good catch, fixed. -- Aurelien Jarno GPG: 1024D/F1BCDB73

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 wrote: > > Add floatx80 constants similarly to float32 or float64. > > > > Signed-off-by: Aurelien Jarno > > Reviewed-by: Peter Maydell > > NB: I didn't actually check you got the ln2 value

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 wrote: > > > @@ -511,4 +530,11 @@ int floatx80_is_quiet_nan( floatx80 a1 ) > >     return ( ( u.i.high & 0x7FFF ) == 0x7FFF ) && (uint64_t) ( u.i.low<<1 ); > >  } > > > > +int floatx80_is_any_n

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 wrote: > > > @@ -6349,6 +6352,12 @@ float32 float32_scalbn( float32 a, int n > > STATUS_PARAM ) > >     else if ( aSig == 0 ) > >         return a; > > > > +    if (n > 0x80) { > > +        n

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

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 wrote: > > +#include > > 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 one? Because softloa

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 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, CPU86_LDouble b) > >

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

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

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

[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 --- fpu/softfloat.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) v1 -> v2: fix typo creating a float64 constant with make_floa

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

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

[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 --- 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 +++ b/target-i386/op

[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 Signed-off-by: Aurelien Jarno --- fpu/softfloat.c | 46 ++ fpu/softfloat.h |2 ++ 2 files changed, 48 insertions(+), 0 d

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

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

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

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

[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 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 f18c573..6a536e2 100644 --- a/targe

[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 --- configure |9 + 1 files changed, 1 insertions(+), 8 deletions(-) v1 -> v2: remove case. diff --git a

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

2011-04-20 Thread Aurelien Jarno
Reviewed-by: Peter Maydell 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 ++

[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 Signed-off-by: Aurelien Jarno --- target-i386/exec.h |4 target-i386/op_helper.c |7 ++- 2 files

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

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

[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 --- target-i386/op_helper.c | 52 +++--- 1 files changed, 26 insertions(+), 26 deletions(-) v1

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

[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 Signed-off-b

[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 Signed-off-by: Aurelien Jarno --- target-i386/op_helper.c | 22 ++ 1 fi

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

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

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

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 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( 0x8000 )

Re: [Qemu-devel] [PATCH 11/17] s390x: helper functions for system emulation

2011-04-20 Thread Aurelien Jarno
On Fri, Apr 15, 2011 at 05:32:52PM +0200, Alexander Graf wrote: > When running system emulation, we need to transverse through the MMU and > deliver interrupts according to the specification. > > This patch implements those two pieces and in addition adjusts the CPU > initialization code to accoun

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 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 > --- >  fpu/softfloat.h |    3 +++ >  1 files changed, 3 insertions(+), 0 deletions(-) >

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 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. > - NaN or infinite va

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 wrote: > Signed-off-by: Aurelien Jarno > --- >  target-i386/op_helper.c |    7 --- >  1 files changed, 4 insertions(+), 3 deletions(-) > > v1 -> v2: fix handling of -0 Reviewed-by: Peter Maydell -- PMM

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 wrote: > 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 +++--

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 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 > --- >  configure |    9 + >  1 files changed, 1 inser

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 fu

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

2011-04-20 Thread Peter Maydell
On 20 April 2011 11:53, Aurelien Jarno 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, so I don't

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

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

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

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 > --- > target-arm/helper.c |9 + >

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

[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 --- 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 @@ -533,10 +533,11

[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 --- hw/ide/atapi.c | 837 +++- 1 files changed, 459 insertions(+), 378 deletions(-) diff --git a/hw

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

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 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 be used if it is

[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 --- hw/ide/atapi.c | 21 ++--- 1 files changed, 6 insertions(+), 15 deletions(-) diff --git a/hw/ide/atapi.c b/hw/ide/

[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 Signed-off-by: Aurelien Jarno --- target-ppc/op_helper.c | 20 ++-- 1 files changed, 2 insertions(+), 18 deletions(-) diff --git a/target-ppc/op_helper.c

[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 Signed-off-by: Aurelien Jarno ---

[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 Signed-off-by: Aurelien Jarno --- target-ppc/helper.h|2 -- target-ppc/op_helper.c | 11 --- target-ppc/translate.c |2 -- 3 file

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 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 code to do that. >

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 > > xen-upstream-qemu: get vncpassword through xenstore, enable VNC_AUTH_VNC > This patch is for upstream qemu, right? In that case you always need to CC qemu-devel@

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

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

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 The

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 kil

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 --- This patch is inspired by one from the meego tree: http://git.linaro.org/gitweb?p=qemu/qemu-li

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 > > > > The virtio serial specification requres that the values in the config > > space are encoded in native endian of the guest. > > > > The qemu vir

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

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 wrote: > On 19 April 2011 21:36, Blue Swirl 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 tar

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

2011-04-20 Thread anthony.perard
From: Anthony PERARD 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 changes in the xen init

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

2011-04-20 Thread anthony.perard
From: Anthony PERARD xen_domainbuild and xen_machine_pv are built only for i386 targets. Signed-off-by: Anthony PERARD --- Makefile.target |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile.target b/Makefile.target index d5761b7..6ce6987 100644 --- a/Makefile.ta

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

2011-04-20 Thread anthony.perard
From: Anthony PERARD 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. Signed-off-by: Anthony PERARD

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

2011-04-20 Thread anthony.perard
From: Anthony PERARD The xenpv machine use the common init function. Signed-off-by: Anthony PERARD Acked-by: Alexander Graf --- Makefile.target |9 + hw/xen.h| 13 + hw/xen_backend.c|3 +-- hw/xen_machine_pv.c |1 + vl.c|

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

2011-04-20 Thread anthony.perard
From: Anthony PERARD 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 Signed-off-by: Stefano Stabellini Acked-by: Alexander Graf --- hw/pc.h |1 + hw/pc_piix.c |6 +- hw/

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

2011-04-20 Thread anthony.perard
From: Anthony PERARD 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 --- hw/pc_piix.c | 41 +++-- hw/xen.h |6 ++ xen-all.c| 24

[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 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 Acked-by: Alexander Graf --- configure |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/configure

[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 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 Signed-off-by: Stefano Stabellini Acked-by: Alexander Graf --- sysemu.h |2 ++ vl.c | 1

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

2011-04-20 Thread anthony.perard
From: Anthony PERARD 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 PERARD Signed-off-by: St

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

2011-04-20 Thread anthony.perard
From: Anthony PERARD Every set_irq call makes a Xen hypercall. Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini --- hw/pc_piix.c |8 ++-- hw/xen.h |2 ++ xen-all.c| 12 xen-stub.c |5 + 4 files changed, 25 insertions(+), 2 deletions(

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

2011-04-20 Thread anthony.perard
From: Anthony PERARD This tells to the xen management tool that the machine can begin run. Signed-off-by: Anthony PERARD Acked-by: Alexander Graf --- xen-all.c | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/xen-all.c b/xen-all.c index e849a38..

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

2011-04-20 Thread anthony.perard
From: Anthony PERARD 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 Acked-by: Alexander Graf --- cpu-common.h |1 + exec.c | 38 ++

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

2011-04-20 Thread anthony.perard
From: Arun Sharma Open and bind event channels; map ioreq and buffered ioreq rings. Signed-off-by: Arun Sharma Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini Acked-by: Alexander Graf --- hw/xen_common.h |2 + xen-all.c | 417 ++

[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 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 Signed-off-by: Anthony PERARD --- xen-mapcache.c | 37 +++-

[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 Signed-off-by: Anthony PERARD --- 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 b/hw/pc_piix.c index 72864fc..4ff4a55 100644 --- a/hw/p

[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 Prevent a deadlock caused by leaving a map cache bucket locked by the preceding qemu_get_ram_ptr() call. Signed-off-By: John Baboval Signed-off-by: Anthony PERARD --- hw/pci.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/pci.c b/hw/pci.c inde

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

2011-04-20 Thread anthony.perard
From: Jun Nakajima 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 physical address space. The at

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 wrote: > Signed-off-by: Kevin Wolf > --- >  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 100

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

[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 ‘target_phys_addr_t

[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 Cc: Igor V. Kovalenko --- hw/rtl8139.c |9 ++--- 1 files changed, 6 insertions

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

2011-04-20 Thread Adnan Khaleel
Something is still wrong, I get the following errors now: : error: cannot unpack fffd440d2ca664a03ee83eabc00107eaf74d7af4 from /users/akhaleel/akhaleel/MergeSpace/qemu_0.14_q35/qemu/.git/objects/pack/pack-c0c6d1b7fc8ae79abf99bfb6a402b50e2ec98557.pack error: Unable to find ad620c29c2da573e3a5f

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

2011-04-20 Thread Isaku Yamahata
Okay. Can you please try git clone again? On Wed, Apr 20, 2011 at 06:41:56PM -0500, Adnan Khaleel wrote: > Something is still wrong, > > I get the following errors now: > > : > error: cannot unpack fffd440d2ca664a03ee83eabc00107eaf74d7af4 from /users/ > akhaleel/akhaleel/MergeSpace/qemu_0.14_q35

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

2011-04-20 Thread Lai Jiangshan
Hi, Anthony Liguori Any suggestion? Although all command line interfaces will be converted to to use QMP interfaces in 0.16, I hope inject-nmi come into QAPI earlier, 0.15. Thanks, Lai

  1   2   >