Re: [Qemu-devel] [PATCH] spapr-pci: remove io ports workaround

2014-01-02 Thread Alexey Kardashevskiy
On 03.01.2014 9:09, Alexander Graf wrote: > > On 02.01.2014, at 23:08, Alexey Kardashevskiy wrote: > >> On 01/03/2014 08:04 AM, Alexander Graf wrote: >>> >>> On 11.12.2013, at 07:47, Alexey Kardashevskiy wrote: >>> On 12/10/2013 06:47 PM, Greg Kurz wrote: > On Tue, 10 Dec 2013 13:43:05

[Qemu-devel] [RFC PATCH V2 5/5] qapi event: convert RTC_CHANGE

2014-01-02 Thread Wenchao Xia
This is just an example of how to use qapi event API, and it bypassed the event throttle queue. A complete convert should be first define all events in qapi-schema.json, use qapi event types in monitor functions, then change calller one by one. Signed-off-by: Wenchao Xia --- monitor.c|

[Qemu-devel] [RFC PATCH V2 0/5] add direct support of event in qapi schema

2014-01-02 Thread Wenchao Xia
This series add support for tag/keyword 'event' in qapi-schema. A new file was created to store some helper functions in patch 2, patch 4 is the test case, patch 5 is a convert example. The implemention is done by generate API and a batch of parameters for each event define, it doesn't generate a

[Qemu-devel] [RFC PATCH V2 4/5] test: add test cases for qapi event

2014-01-02 Thread Wenchao Xia
These cases will verify whether the expected qdict is built. Signed-off-by: Wenchao Xia --- tests/Makefile | 14 ++- tests/qapi-schema/qapi-schema-test.json | 12 ++ tests/qapi-schema/qapi-schema-test.out | 10 +- tests/test-qmp-event.c | 254 +++

[Qemu-devel] [RFC PATCH V2 3/5] qapi script: add event support by qapi-event.py

2014-01-02 Thread Wenchao Xia
qapi-event.py will parse the schema and generate qapi-event.c, then the API in qapi-event.c can be used to handle event in qemu code. All API have prefix "qapi_event", all types have prefix "QAPIEvent". Examples can be found in following patches. The script mainly include three parts: generate API

[Qemu-devel] [RFC PATCH V2 1/5] os-posix: include sys/time.h

2014-01-02 Thread Wenchao Xia
Since gettimeofday() is used in this header file as a macro define, include the function's define header file, to avoid compile warning when other file include os-posix.h. Signed-off-by: Wenchao Xia Reviewed-by: Eric Blake --- include/sysemu/os-posix.h |2 ++ 1 files changed, 2 insertions(+

[Qemu-devel] [RFC PATCH V2 2/5] qapi: add event helper functions

2014-01-02 Thread Wenchao Xia
This file hold some functions that do not need to be generated. Signed-off-by: Wenchao Xia --- include/qapi/qmp-event.h | 22 ++ qapi/Makefile.objs |1 + qapi/qmp-event.c | 56 ++ 3 files changed, 79 insertions(+),

[Qemu-devel] [PATCH target-arm v1 1/1] arm/xilinx_zynq: Always instantiate the GEMs

2014-01-02 Thread Peter Crosthwaite
Don't conditionalise GEM instantiation on networking attachments. The device should always be present even if not attached to a network. This allows for probing of the device by expectant guests (such as OS's). This is needed because sysbus (or AXI in Xilinx's real hw case) is not self identifyin

Re: [Qemu-devel] [PATCH v2 1/1] qtest: Fix the bug about disabling vnc causes "make check" hang

2014-01-02 Thread Peter Crosthwaite
On Fri, Jan 3, 2014 at 1:01 PM, Kewei Yu wrote: > > 2014/1/2 Andreas Färber >> >> Am 01.01.2014 05:40, schrieb Peter Crosthwaite: >> > On Tue, Dec 31, 2013 at 11:29 PM, Kewei Yu wrote: >> >> 2013/12/31 Peter Crosthwaite >> >>> On Tue, Dec 31, 2013 at 2:42 PM, Kewei Yu wrote: >> When we di

Re: [Qemu-devel] [PATCH v2 1/1] qtest: Fix the bug about disabling vnc causes "make check" hang

2014-01-02 Thread Kewei Yu
2014/1/2 Andreas Färber > Am 01.01.2014 05:40, schrieb Peter Crosthwaite: > > On Tue, Dec 31, 2013 at 11:29 PM, Kewei Yu wrote: > >> 2013/12/31 Peter Crosthwaite > >>> On Tue, Dec 31, 2013 at 2:42 PM, Kewei Yu wrote: > When we disabling vnc from "./configure", the qemu can't use the vnc >

[Qemu-devel] [BUGFIX][PATCH v2] configure: Disable libtool if -fPIE does not work with it (bug #1257099)

2014-01-02 Thread Don Slutz
Adjust TMPO and added TMPB, TMPL, and TMPA. libtool needs the names to be fixed (TMPB). Add new functions do_libtool and libtool_prog. Add check for broken gcc and libtool. Signed-off-by: Don Slutz --- Was posted as an attachment. https://lists.gnu.org/archive/html/qemu-devel/2013-12/msg02678

[Qemu-devel] [RFC v1 2/2] util/fifo: Generalise for common integer widths

2014-01-02 Thread Peter Crosthwaite
Add support for 16, 32 and 64 bit width FIFOs. The push and pop functions are patched to accept uint64_t always to support up to 64bit integer elements. The element width is set at creation time. The backing storage for all element types is still uint8_t regardless of element width so some save-lo

[Qemu-devel] [RFC v1 1/2] util/fifo: s/fifo8/fifo globally

2014-01-02 Thread Peter Crosthwaite
This prepares support for generalising FIFO support to more integer widths. Signed-off-by: Peter Crosthwaite --- hw/char/serial.c | 30 +- hw/ssi/xilinx_spi.c | 42 - hw/ssi/xilinx_spips.c| 66 -

[Qemu-devel] [RFC v1 0/2] Generalise FIFO to more integer types

2014-01-02 Thread Peter Crosthwaite
There is a utility helper for dealing with 8 bit fifos. This should be applicable to other integer widths as well. These two patches generalise this FIFO to work for 16, 32 and 64 bit ints. Peter Crosthwaite (2): util/fifo: s/fifo8/fifo globally util/fifo: Generalise for common integer width

Re: [Qemu-devel] [PATCH] migration: qmp_migrate(): keep working after syntax error

2014-01-02 Thread Michael R. Hines
On 01/03/2014 12:17 AM, Luiz Capitulino wrote: If a user or QMP client enter a bad syntax for the migrate command in QMP/HMP, then the migrate command will never succeed from that point on. For example, if you enter: (qemu) migrate tcp;0: migrate: Parameter 'uri' expects a valid migration p

Re: [Qemu-devel] [PATCH 1/2] hw/net: add support for Allwinner EMAC Fast Ethernet controller

2014-01-02 Thread Peter Crosthwaite
On Fri, Jan 3, 2014 at 12:58 AM, Beniamino Galvani wrote: > On Thu, Jan 02, 2014 at 08:25:10PM +1000, Peter Crosthwaite wrote: >> > +#undef AW_EMAC_DEBUG >> > + >> > +#ifdef AW_EMAC_DEBUG >> > +#define debug(...) \ >> > +do {

[Qemu-devel] [V5 PATCH 16/22] target-ppc: Add VSX ISA2.06 Multiply Add Instructions

2014-01-02 Thread Tom Musta
This patch adds the VSX floating point multiply/add instructions defined by V2.06 of the PowerPC ISA: - xsmaddadp, xvmaddadp, xvmaddasp - xsmaddmdp, xvmaddmdp, xvmaddmsp - xsmsubadp, xvmsubadp, xvmsubasp - xsmsubmdp, xvmsubmdp, xvmsubmsp - xsnmaddadp, xvnmaddadp, xvnmaddasp - x

[Qemu-devel] [V5 PATCH 07/22] target-ppc: General Support for VSX Helpers

2014-01-02 Thread Tom Musta
This patch adds general support that will be used by the VSX helper routines: - a union describing the various VSR subfields. - access routines to get and set VSRs - VSX decoders - a general routine to generate a handler that invokes a VSX helper. Signed-off-by: Tom Musta Reviewed-by

[Qemu-devel] [V5 PATCH 14/22] target-ppc: Add VSX ISA2.06 xtdiv Instructions

2014-01-02 Thread Tom Musta
This patch adds the VSX floating point test for software divide instructions defined by V2.06 of the PowerPC ISA: xstdivdp, xvtdivdp, and xvtdivsp. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson --- V2: added ppc_float*_get_unbiased_exp() routines (pulled back from softfloat). Eliminat

[Qemu-devel] [V5 PATCH 19/22] target-ppc: Add VSX Vector Compare Instructions

2014-01-02 Thread Tom Musta
This patch adds the VSX floating point compare vector instructions: - xvcmpeqdp[.], xvcmpgedp[.], xvcmpgtdp[.] - xvcmpeqsp[.], xvcmpgesp[.], xvcmpgtsp[.] Signed-off-by: Tom Musta Reviewed-by: Richard Henderson --- target-ppc/fpu_helper.c | 58 +

Re: [Qemu-devel] [PATCH 2/2] hw/arm/allwinner-a10: initialize EMAC

2014-01-02 Thread Peter Crosthwaite
On Fri, Jan 3, 2014 at 3:19 AM, Beniamino Galvani wrote: > On Thu, Jan 02, 2014 at 08:20:12PM +1000, Peter Crosthwaite wrote: >> On Thu, Jan 2, 2014 at 7:18 PM, Beniamino Galvani >> wrote: >> > Signed-off-by: Beniamino Galvani >> > --- >> > hw/arm/allwinner-a10.c | 20 +++

[Qemu-devel] [V5 PATCH 20/22] target-ppc: Add VSX Floating Point to Floating Point Conversion Instructions

2014-01-02 Thread Tom Musta
This patch adds the VSX instructions that convert between floating point formats: xscvdpsp, xscvspdp, xvcvdpsp, xvcvspdp. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson --- target-ppc/fpu_helper.c | 45 + target-ppc/helper.h |4

[Qemu-devel] [V5 PATCH 17/22] target-ppc: Add VSX xscmp*dp Instructions

2014-01-02 Thread Tom Musta
This patch adds the VSX scalar floating point compare ordered and unordered instructions. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson --- target-ppc/fpu_helper.c | 39 +++ target-ppc/helper.h |2 ++ target-ppc/translate.c |4 3

[Qemu-devel] [V5 PATCH 21/22] target-ppc: Add VSX ISA2.06 Integer Conversion Instructions

2014-01-02 Thread Tom Musta
This patch adds the VSX Integer Conversion instructions defined by V2.06 of the PowerPC ISA: - xscvdpsxds, xscvdpsxws, xscvdpuxds, xscvdpuxws - xvcvdpsxds, xvcvdpsxws, xvcvdpuxds, xvcvdpuxws - xvcvspsxds, xvcvspsxws, xvcvspuxds, xvcvspuxws - xscvsxddp, xscvuxddp - xvcvsxddp, xscvsxwdp, x

[Qemu-devel] [V5 PATCH 15/22] target-ppc: Add VSX ISA2.06 xtsqrt Instructions

2014-01-02 Thread Tom Musta
This patch adds the VSX floating point test for software square root instructions defined by V2.06 of the PowerPC ISA: xstsqrtdp, xvtsqrtdp, xvtsqrtsp. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson --- V2: (a) using locally implemented ppc_float*_get_unbiased_exp routines (b) eliminat

[Qemu-devel] [V5 PATCH 22/22] target-ppc: Add VSX Rounding Instructions

2014-01-02 Thread Tom Musta
This patch adds the VSX Round to Floating Point Integer instructions: - xsrdpi, xsrdpic, xsrdpim, xsrdpip, xsrdpiz - xvrdpi, xvrdpic, xvrdpim, xvrdpip, xvrdpiz - xvrspi, xvrspic, xvrspim, xvrspip, xvrspiz Signed-off-by: Tom Musta Reviewed-by: Richard Henderson --- target-ppc/fpu_helper.c

[Qemu-devel] [V5 PATCH 18/22] target-ppc: Add VSX xmax/xmin Instructions

2014-01-02 Thread Tom Musta
This patch adds the VSX floating point maximum and minimum instructions: - xsmaxdp, xvmaxdp, xvmaxsp - xsmindp, xvmindp, xvminsp Because of the Power ISA definitions of maximum and minimum on various boundary cases, the standard softfloat comparison routines (e.g. float64_lt) do not work as w

[Qemu-devel] [V5 PATCH 13/22] target-ppc: Add VSX ISA2.06 xrsqrte Instructions

2014-01-02 Thread Tom Musta
This patch adds the VSX floating point reciprocal square root estimate instructions defined by V2.06 of the PowerPC ISA: xsrsqrtedp, xvrsqrtedp, xvrsqrtesp. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson --- V2: re-implemented VSX_RSQRTE macro. target-ppc/fpu_helper.c | 45 +

[Qemu-devel] [V5 PATCH 09/22] target-ppc: Add VSX ISA2.06 xmul Instructions

2014-01-02 Thread Tom Musta
This patch adds the VSX floating point multiply instructions defined by V2.06 of the PowerPC ISA: xsmuldp, xvmuldp, xvmulsp. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson --- V2: re-implemented VSX_MUL macro. target-ppc/fpu_helper.c | 46

[Qemu-devel] [V5 PATCH 10/22] target-ppc: Add VSX ISA2.06 xdiv Instructions

2014-01-02 Thread Tom Musta
This patch adds the VSX floating point divide instructions defined by V2.06 of the PowerPC ISA: xsdivdp, xvdivdp, xvdivsp. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson --- V2: re-implemented the VSX_DIV macro. target-ppc/fpu_helper.c | 49 ++

[Qemu-devel] [V5 PATCH 06/22] target-ppc: Add set_fprf Argument to fload_invalid_op_excp()

2014-01-02 Thread Tom Musta
The fload_invalid_op_excp() function sets assorted invalid operation status bits. However, it also implicitly modifies the FPRF field of the PowerPC FPSCR. Many VSX instructions set invalid operation bits but do not alter FPRF. Thus the function is more generally useful if the setting of the FPR

[Qemu-devel] [V5 PATCH 11/22] target-ppc: Add VSX ISA2.06 xre Instructions

2014-01-02 Thread Tom Musta
This patch adds the VSX floating point reciprocal estimate instructions defined by V2.06 of the PowerPC ISA: xsredp, xvredp, xvresp. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson --- target-ppc/fpu_helper.c | 35 +++ target-ppc/helper.h |3 +++

[Qemu-devel] [V5 PATCH 08/22] target-ppc: Add VSX ISA2.06 xadd/xsub Instructions

2014-01-02 Thread Tom Musta
This patch adds the floating point addition and subtraction instructions defined by V2.06 of the PowerPC ISA: xssubdp, xvsubdp and xvsubsp. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson --- V2: re-implemented helper macro and combined add and substract. target-ppc/fpu_helper.c | 51

[Qemu-devel] [V5 PATCH 04/22] softfloat: Fix float64_to_uint32

2014-01-02 Thread Tom Musta
The float64_to_uint32 has several flaws: - for numbers between 2**32 and 2**64, the inexact exception flag may get incorrectly set. In this case, only the invalid flag should be set. test pattern: 425F81378DC0CD1F / 0x1.f81378dc0cd1fp+38 - for numbers between 2**63 and 2**64, inc

[Qemu-devel] [V5 PATCH 12/22] target-ppc: Add VSX ISA2.06 xsqrt Instructions

2014-01-02 Thread Tom Musta
This patch adds the VSX floating point square root instructions defined by V2.06 of the PowerPC ISA: xssqrtdp, xvsqrtdp, xvsqrtsp. Signed-off-by: Tom Musta Reviewed-by: Richard Henderson --- V2: re-implemented the VSX_SQRT macro. target-ppc/fpu_helper.c | 44 +

[Qemu-devel] [V5 PATCH 03/22] softfloat: Fix float64_to_uint64_round_to_zero

2014-01-02 Thread Tom Musta
The float64_to_uint64_round_to_zero routine is incorrect. For example, the following test pattern: 46697351FF4AEC29 / 0x1.97351ff4aec29p+103 currently produces 8000 instead of . This patch re-implements the routine to temporarily force the rounding mode and use t

[Qemu-devel] [V5 PATCH 00/22] target-ppc: PowerPC VSX Stage 3

2014-01-02 Thread Tom Musta
This is the third series of patches to add PowerPC VSX emulation support to QEMU. This series adds the floating point arithmetic, compare, conversion and rounding instructions. Instructions are implemented using helpers and wherever practical, existing floating point code such as the softfloat li

[Qemu-devel] [V5 PATCH 02/22] softfloat: Add float32_to_uint64()

2014-01-02 Thread Tom Musta
This patch adds the float32_to_uint64() routine, which converts a 32-bit floating point number to an unsigned 64 bit number. This contribution can be licensed under either the softfloat-2a or -2b license. Signed-off-by: Tom Musta --- V2: Reduced patch to just this single routine per feedback fro

[Qemu-devel] [V5 PATCH 05/22] softfloat: Fix float64_to_uint32_round_to_zero

2014-01-02 Thread Tom Musta
The float64_to_uint32_round_to_zero routine is incorrect. For example, the following test pattern: 425F81378DC0CD1F / 0x1.f81378dc0cd1fp+38 will erroneously set the inexact flag. This patch re-implements the routine to use the float64_to_uint64_round_to_zero routine. If saturation occurs t

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

2014-01-02 Thread Tom Musta
The comment preceding the float64_to_uint64 routine suggests that the implementation is broken. And this is, indeed, the case. This patch properly implements the conversion of a 64-bit floating point number to an unsigned, 64 bit integer. This contribution can be licensed under either the softfl

Re: [Qemu-devel] [PATCH] spapr-pci: remove io ports workaround

2014-01-02 Thread Alexander Graf
On 02.01.2014, at 23:08, Alexey Kardashevskiy wrote: > On 01/03/2014 08:04 AM, Alexander Graf wrote: >> >> On 11.12.2013, at 07:47, Alexey Kardashevskiy wrote: >> >>> On 12/10/2013 06:47 PM, Greg Kurz wrote: On Tue, 10 Dec 2013 13:43:05 +1100 Alexey Kardashevskiy wrote: > On 12

Re: [Qemu-devel] [PATCH] spapr-pci: remove io ports workaround

2014-01-02 Thread Alexey Kardashevskiy
On 01/03/2014 08:04 AM, Alexander Graf wrote: > > On 11.12.2013, at 07:47, Alexey Kardashevskiy wrote: > >> On 12/10/2013 06:47 PM, Greg Kurz wrote: >>> On Tue, 10 Dec 2013 13:43:05 +1100 >>> Alexey Kardashevskiy wrote: On 12/10/2013 03:33 AM, Greg Kurz wrote: > In the past, IO space c

Re: [Qemu-devel] [Qemu-ppc] [PATCH] spapr_vscsi: Fix REPORT_LUNS handling

2014-01-02 Thread Paolo Bonzini
Il 02/01/2014 19:14, Nathan Whitehorn ha scritto: >> > He should do something like : >> > resp_data[i] |= dev->id & 0x3f; >> > here to avoid a dev->id > 63 from spilling into the address method field. >> > >> > Or probably should have a check for >> > if dev->id > 3 then fail > OK. No need fo

Re: [Qemu-devel] [PATCH] spapr-pci: remove io ports workaround

2014-01-02 Thread Alexander Graf
On 11.12.2013, at 07:47, Alexey Kardashevskiy wrote: > On 12/10/2013 06:47 PM, Greg Kurz wrote: >> On Tue, 10 Dec 2013 13:43:05 +1100 >> Alexey Kardashevskiy wrote: >>> On 12/10/2013 03:33 AM, Greg Kurz wrote: In the past, IO space could not be mapped into the memory address space so

Re: [Qemu-devel] [PATCH 00/22] A64 decoder patchset 6: rest of floating point

2014-01-02 Thread Tom Musta
On 12/31/2013 7:35 AM, Peter Maydell wrote: > We need Tom Musta's softfloat patches too, so I have included them > here. Note that two of these still have outstanding issues identified > in code review : see the notes in their commit messages (and I haven't > applied my signed-off-by line to them).

Re: [Qemu-devel] [PATCH] spapr_vscsi: Fix REPORT_LUNS handling

2014-01-02 Thread Nathan Whitehorn
On 01/02/14 10:31, Alexander Graf wrote: > On 18.10.2013, at 14:33, Nathan Whitehorn wrote: > >> Intercept REPORT_LUNS commands addressed either to SRP LUN 0 or the >> well-known >> LUN for REPORT_LUNS commands. This is required to implement the SAM and SPC >> specifications. >> >> Since SRP impl

Re: [Qemu-devel] [Qemu-ppc] [PATCH] spapr_vscsi: Fix REPORT_LUNS handling

2014-01-02 Thread Nathan Whitehorn
On 01/02/14 10:41, Alexander Graf wrote: > On 02.01.2014, at 16:31, Alexander Graf wrote: > >> On 18.10.2013, at 14:33, Nathan Whitehorn wrote: >> >>> Intercept REPORT_LUNS commands addressed either to SRP LUN 0 or the >>> well-known >>> LUN for REPORT_LUNS commands. This is required to implemen

Re: [Qemu-devel] [Qemu-ppc] [PATCH] spapr_vscsi: Fix REPORT_LUNS handling

2014-01-02 Thread Nathan Whitehorn
On 01/02/14 10:56, ronnie sahlberg wrote: > On Thu, Jan 2, 2014 at 7:41 AM, Alexander Graf wrote: >> On 02.01.2014, at 16:31, Alexander Graf wrote: >> >>> On 18.10.2013, at 14:33, Nathan Whitehorn wrote: >>> Intercept REPORT_LUNS commands addressed either to SRP LUN 0 or the well-know

Re: [Qemu-devel] [PATCH 2/2] hw/arm/allwinner-a10: initialize EMAC

2014-01-02 Thread Beniamino Galvani
On Thu, Jan 02, 2014 at 08:20:12PM +1000, Peter Crosthwaite wrote: > On Thu, Jan 2, 2014 at 7:18 PM, Beniamino Galvani wrote: > > Signed-off-by: Beniamino Galvani > > --- > > hw/arm/allwinner-a10.c | 20 > > include/hw/arm/allwinner-a10.h |4 > > 2 files c

[Qemu-devel] [PATCH] migration: qmp_migrate(): keep working after syntax error

2014-01-02 Thread Luiz Capitulino
If a user or QMP client enter a bad syntax for the migrate command in QMP/HMP, then the migrate command will never succeed from that point on. For example, if you enter: (qemu) migrate tcp;0: migrate: Parameter 'uri' expects a valid migration protocol Then the migrate command will always fai

Re: [Qemu-devel] TRIM/DISCARD/UNMAP support on qemu-nbd

2014-01-02 Thread Richard W.M. Jones
On Mon, Dec 30, 2013 at 07:58:29PM +0800, Teng-Feng Yang wrote: > I have been studying QCOW2 file format for a couple of days, and I am > a little bit confused about whether QCOW2 supports UNMAP or not. > As I surf through internet, some mailing list discussion had mentioned > that qemu-nbd and nbd

Re: [Qemu-devel] [Qemu-ppc] [PATCH] spapr_vscsi: Fix REPORT_LUNS handling

2014-01-02 Thread ronnie sahlberg
On Thu, Jan 2, 2014 at 7:41 AM, Alexander Graf wrote: > > On 02.01.2014, at 16:31, Alexander Graf wrote: > >> >> On 18.10.2013, at 14:33, Nathan Whitehorn wrote: >> >>> Intercept REPORT_LUNS commands addressed either to SRP LUN 0 or the >>> well-known >>> LUN for REPORT_LUNS commands. This is r

[Qemu-devel] Query on Qemu 1.7.0 GDB Server version

2014-01-02 Thread shabarish s
Hi All, Which version of gdbserver is implemented in the QEMU 1.7.0 ? We tried to connect ARM-DS5 debugger to Qemu with -s & -S option enabled, but it did not work. I am getting following error when i try to connect from ARM DS-5 and run gdb command *continue* : ERROR(CMD441-TAD8-NAL60): ! Con

Re: [Qemu-devel] [Qemu-ppc] [PATCH] spapr_vscsi: Fix REPORT_LUNS handling

2014-01-02 Thread Alexander Graf
On 02.01.2014, at 16:31, Alexander Graf wrote: > > On 18.10.2013, at 14:33, Nathan Whitehorn wrote: > >> Intercept REPORT_LUNS commands addressed either to SRP LUN 0 or the >> well-known >> LUN for REPORT_LUNS commands. This is required to implement the SAM and SPC >> specifications. >> >>

Re: [Qemu-devel] [PATCH] spapr_vscsi: Fix REPORT_LUNS handling

2014-01-02 Thread Alexander Graf
On 18.10.2013, at 14:33, Nathan Whitehorn wrote: > Intercept REPORT_LUNS commands addressed either to SRP LUN 0 or the well-known > LUN for REPORT_LUNS commands. This is required to implement the SAM and SPC > specifications. > > Since SRP implements only a single SCSI target port per connectio

[Qemu-devel] [PATCH] Add the ability to vary Spice playback and record rates, to facilitate Opus support.

2014-01-02 Thread Jeremy White
Signed-off-by: Jeremy White --- audio/spiceaudio.c | 27 +-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/audio/spiceaudio.c b/audio/spiceaudio.c index 5af436c..fceee50 100644 --- a/audio/spiceaudio.c +++ b/audio/spiceaudio.c @@ -25,8 +25,17 @@ #inclu

Re: [Qemu-devel] [PATCH] spapr_vscsi: Fix REPORT_LUNS handling

2014-01-02 Thread Nathan Whitehorn
On 12/02/13 12:58, Paolo Bonzini wrote: > Il 02/12/2013 18:51, Nathan Whitehorn ha scritto: >> Any news on this? FreeBSD is unbootable from CDROM devices in >> QEMU/pseries without this patch. >> -Nathan > Acked-by: Paolo Bonzini > > Alex, can you pick it up? Any updates? -Nathan

Re: [Qemu-devel] [PATCH 1/2] hw/net: add support for Allwinner EMAC Fast Ethernet controller

2014-01-02 Thread Beniamino Galvani
On Thu, Jan 02, 2014 at 08:25:10PM +1000, Peter Crosthwaite wrote: > > +#undef AW_EMAC_DEBUG > > + > > +#ifdef AW_EMAC_DEBUG > > +#define debug(...) \ > > +do {\ > > +fprintf(stderr, "a

Re: [Qemu-devel] [PATCH v2 1/1] qtest: Fix the bug about disabling vnc causes "make check" hang

2014-01-02 Thread Andreas Färber
Am 01.01.2014 05:40, schrieb Peter Crosthwaite: > On Tue, Dec 31, 2013 at 11:29 PM, Kewei Yu wrote: >> 2013/12/31 Peter Crosthwaite >>> On Tue, Dec 31, 2013 at 2:42 PM, Kewei Yu wrote: When we disabling vnc from "./configure", the qemu can't use the vnc option. [...] So qtest can'

Re: [Qemu-devel] [PATCH v2 1/1] qtest: Fix the bug about disabling vnc causes "make check" hang

2014-01-02 Thread Andreas Färber
Am 02.01.2014 09:15, schrieb Paolo Bonzini: > Il 31/12/2013 05:42, Kewei Yu ha scritto: >> When we disabling vnc from "./configure", the qemu can't use the vnc option. >> So qtest can't use the "vnc -none ", otherwise "make check" will hang. >> >> Signed-off-by: Kewei Yu >> --- >> v2: Consolidate

Re: [Qemu-devel] Vhost and vhost-net support for userspace based backends

2014-01-02 Thread Qin Chuanyu
Hi I had saw that user-space vhost is being developed, It is really a great job, I had tried to do same work but failed. I want to do same test for estimating benefit of it. Is there any vhost-api that demo-thread could call? Or Is there any test result that could see?

[Qemu-devel] ignore plz, for test

2014-01-02 Thread Qin Chuanyu
RT

Re: [Qemu-devel] [PATCH] HMP: snapshot_blkdev can not consider //root/sn1 and /root/sn1 as the same file

2014-01-02 Thread Eric Blake
On 01/02/2014 01:55 AM, Stefan Hajnoczi wrote: > Okay, I think we got side-tracked worrying about identifying identical > files. The problem in your example is more fundamental. > > Here is what should have happened: > > (qemu) snapshot_blkdev drive-scsi0-0-0 /mnt/dir2/sn1 > Could not crea

Re: [Qemu-devel] Query on Qemu 1.7.0 GDB server version

2014-01-02 Thread Peter Maydell
On 2 January 2014 12:13, shabarish s wrote: > Which version of gdbserver is implemented in the QEMU 1.7.0 ? It's a custom implementation of the gdbstub protocol. There is no "version number" specified by the gdbstub protocol. The protocol design is that it is always backwards compatible, so olde

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

2014-01-02 Thread Paolo Bonzini
Il 02/01/2014 11:51, Peter Crosthwaite ha scritto: >> > No, please use "realize" and avoid init. This way you can use an Error* >> > to report the error. >> > >> > Also, the actual load_image_targphys call probably should be done in a >> > reset handler, not at realize time. >> > > Ok I think that

[Qemu-devel] Query on Qemu 1.7.0 GDB server version

2014-01-02 Thread shabarish s
Hi All, Which version of gdbserver is implemented in the QEMU 1.7.0 ? We tried to connect ARM-DS5 debugger to Qemu with -s & -S option enabled, but it did not work. I am getting following error when i try to connect from ARM DS-5 and run gdb command *continue* : ERROR(CMD441-TAD8-NAL60): ! Con

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

2014-01-02 Thread Peter Crosthwaite
On Thu, Jan 2, 2014 at 6:21 PM, Paolo Bonzini wrote: > Il 02/01/2014 06:50, Peter Crosthwaite ha scritto: >> On Thu, Jan 2, 2014 at 3:35 PM, Li Guang wrote: >>> this blob loader will be used to load a specified >>> blob into a specified RAM address. >>> >> >> Suggested-by: Peter Crosthwaite >> >

Re: [Qemu-devel] [PATCH target-arm v1 1/1] target-arm/helper: remove raw_read|write duplication

2014-01-02 Thread Peter Maydell
On 2 January 2014 07:58, Peter Crosthwaite wrote: > There is an inline duplication of the raw_read and raw_write function > bodies. Fix by just calling raw_read/raw_write instead. > > Signed-off-by: Peter Crosthwaite Reviewed-by: Peter Maydell thanks -- PMM

Re: [Qemu-devel] [PATCH 1/2] hw/net: add support for Allwinner EMAC Fast Ethernet controller

2014-01-02 Thread Peter Crosthwaite
Hi Beniamino, On Thu, Jan 2, 2014 at 7:18 PM, Beniamino Galvani wrote: > This patch adds support for the Fast Ethernet MAC found on Allwinner > SoCs, together with a basic emulation of Realtek RTL8201CP PHY. > More a comment for net in general, but I think sooner or later we need to move towards

Re: [Qemu-devel] [PATCH v2 12/25] target-arm: Update generic cpreg code for AArch64

2014-01-02 Thread Peter Maydell
On 2 January 2014 01:51, Peter Crosthwaite wrote: > On Mon, Dec 23, 2013 at 8:49 AM, Peter Maydell > wrote: >> +/* Valid values for ARMCPRegInfo state field, indicating which of >> + * the AArch32 and AArch64 execution states this register is visible in. >> + * If the reginfo doesn't explicitly

Re: [Qemu-devel] [PATCH 2/2] hw/arm/allwinner-a10: initialize EMAC

2014-01-02 Thread Peter Crosthwaite
On Thu, Jan 2, 2014 at 8:20 PM, Peter Crosthwaite wrote: > On Thu, Jan 2, 2014 at 7:18 PM, Beniamino Galvani wrote: >> Signed-off-by: Beniamino Galvani >> --- >> hw/arm/allwinner-a10.c | 20 >> include/hw/arm/allwinner-a10.h |4 >> 2 files changed, 24 ins

Re: [Qemu-devel] [PATCH 2/2] hw/arm/allwinner-a10: initialize EMAC

2014-01-02 Thread Peter Crosthwaite
On Thu, Jan 2, 2014 at 7:18 PM, Beniamino Galvani wrote: > Signed-off-by: Beniamino Galvani > --- > hw/arm/allwinner-a10.c | 20 > include/hw/arm/allwinner-a10.h |4 > 2 files changed, 24 insertions(+) > > diff --git a/hw/arm/allwinner-a10.c b/hw/arm/allwi

Re: [Qemu-devel] [PATCH v2 1/1] qtest: Fix the bug about disabling vnc causes "make check" hang

2014-01-02 Thread Kewei Yu
The fail is caused by "-vnc none", we can't use it when disable vnc from "./configure". Faithfully yours Kewei Yu 2014/1/2 Paolo Bonzini > Il 31/12/2013 05:42, Kewei Yu ha scritto: > > When we disabling vnc from "./configure", the qemu can't use the vnc > option. > > So qtest can't use the "v

Re: [Qemu-devel] [PATCH 0/3] qemu-iotests: Improvements for vmdk

2014-01-02 Thread Stefan Hajnoczi
On Tue, Nov 26, 2013 at 02:40:31PM +0800, Fam Zheng wrote: > Patch 1 and 2 add _unsupported_imgopts declaration for vmdk subformats, so the > cases can be skipped if the subformat is not supported. > > Patch 3 adds clean up for vmdk extents. > > Fam Zheng (3): > qemu-iotests: Introduce _unsuppo

Re: [Qemu-devel] [PATCH 3/3] qemu-iotests: Clean up all extents for vmdk

2014-01-02 Thread Stefan Hajnoczi
On Tue, Nov 26, 2013 at 02:40:34PM +0800, Fam Zheng wrote: > This modifies _cleanup_test_img to remove all the extent files listed by > "qemu-img info"'s format specific information. > > Signed-off-by: Fam Zheng > --- > tests/qemu-iotests/common.rc | 17 ++--- > 1 file changed, 14 in

[Qemu-devel] [PATCH 1/2] hw/net: add support for Allwinner EMAC Fast Ethernet controller

2014-01-02 Thread Beniamino Galvani
This patch adds support for the Fast Ethernet MAC found on Allwinner SoCs, together with a basic emulation of Realtek RTL8201CP PHY. Since there is no public documentation of the Allwinner controller, the implementation is based on Linux kernel driver. Signed-off-by: Beniamino Galvani --- defau

[Qemu-devel] [PATCH 2/2] hw/arm/allwinner-a10: initialize EMAC

2014-01-02 Thread Beniamino Galvani
Signed-off-by: Beniamino Galvani --- hw/arm/allwinner-a10.c | 20 include/hw/arm/allwinner-a10.h |4 2 files changed, 24 insertions(+) diff --git a/hw/arm/allwinner-a10.c b/hw/arm/allwinner-a10.c index 4658e19..155e026 100644 --- a/hw/arm/allwinner-a10.c +

[Qemu-devel] [PATCH 0/2] hw/arm: add ethernet support to Allwinner A10

2014-01-02 Thread Beniamino Galvani
This patch series adds support for the EMAC Fast Ethernet controller found on Allwinner SoCs to the Allwinner A10. Beniamino Galvani (2): hw/net: add support for Allwinner EMAC Fast Ethernet controller hw/arm/allwinner-a10: initialize EMAC default-configs/arm-softmmu.mak |1 + hw/arm/all

Re: [Qemu-devel] [PATCH] HMP: snapshot_blkdev can not consider //root/sn1 and /root/sn1 as the same file

2014-01-02 Thread Stefan Hajnoczi
On Tue, Dec 10, 2013 at 09:58:44PM +0800, lijun wrote: > On 12/09/2013 08:17 PM, Stefan Hajnoczi wrote: > >On Mon, Dec 09, 2013 at 02:06:21PM +0800, jun muzi wrote: > >My question was about the bug. What is the problem you are seeing and > >how do you reproduce it (including the HMP commands)? > N

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

2014-01-02 Thread Paolo Bonzini
Il 02/01/2014 06:50, Peter Crosthwaite ha scritto: > On Thu, Jan 2, 2014 at 3:35 PM, Li Guang wrote: >> this blob loader will be used to load a specified >> blob into a specified RAM address. >> > > Suggested-by: Peter Crosthwaite > >> Signed-off-by: Li Guang >> --- >> it can be used now for a

Re: [Qemu-devel] [PATCH v2 1/1] qtest: Fix the bug about disabling vnc causes "make check" hang

2014-01-02 Thread Paolo Bonzini
Il 31/12/2013 05:42, Kewei Yu ha scritto: > When we disabling vnc from "./configure", the qemu can't use the vnc option. > So qtest can't use the "vnc -none ", otherwise "make check" will hang. > > Signed-off-by: Kewei Yu > --- > v2: Consolidate VNC macro's #ifdef'ery to one central point > (te

[Qemu-devel] [PATCH target-arm v1 1/1] target-arm/helper: remove raw_read|write duplication

2014-01-02 Thread Peter Crosthwaite
There is an inline duplication of the raw_read and raw_write function bodies. Fix by just calling raw_read/raw_write instead. Signed-off-by: Peter Crosthwaite --- target-arm/helper.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/target-arm/helper.c b/target-a