[Qemu-devel] [PATCH 0/7] esp: add AMD PCscsi emulation

2012-06-03 Thread Hervé Poussineau
This patchset adds a PCI connection to the 53c9x emulation already present in QEMU. The emulated card is the AMD PCscsi adapter, and has been tested on multiple Microsoft operating systems. Hervé Poussineau (7): esp: implement Disable selection command esp: implement Reset ATN command esp:

[Qemu-devel] [PATCH 1/7] esp: implement Disable selection command

2012-06-03 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/esp.c |6 ++ trace-events |1 + 2 files changed, 7 insertions(+) diff --git a/hw/esp.c b/hw/esp.c index 8d73e56..51b2d5f 100644 --- a/hw/esp.c +++ b/hw/esp.c @@ -117,6 +117,7 @@ struct ESPState { #define CMD_SELATN 0x42 #define CMD_SELA

[Qemu-devel] [PATCH 3/7] esp: support future change of chip_id

2012-06-03 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/esp.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/esp.c b/hw/esp.c index e726e11..9a57938 100644 --- a/hw/esp.c +++ b/hw/esp.c @@ -50,6 +50,7 @@ struct ESPState { uint8_t wregs[ESP_REGS]; qemu_irq irq; uint32_

[Qemu-devel] [PATCH 7/7] esp: add AMD PCscsi emulation (PCI SCSI adapter)

2012-06-03 Thread Hervé Poussineau
The PCI version is supported in lots of Operating Systems, and has been successfully tested on: - MS DOS 6.22 with MS Windows 3.11 - MS Windows 98 SE - MS Windows NT 4.0 Signed-off-by: Hervé Poussineau --- default-configs/i386-softmmu.mak |1 + hw/esp.c | 340 +++

Re: [Qemu-devel] [PATCH 7/7] esp: add AMD PCscsi emulation (PCI SCSI adapter)

2012-06-03 Thread Michael S. Tsirkin
On Sun, Jun 03, 2012 at 12:38:09PM +0200, Hervé Poussineau wrote: > The PCI version is supported in lots of Operating Systems, > and has been successfully tested on: > - MS DOS 6.22 with MS Windows 3.11 > - MS Windows 98 SE > - MS Windows NT 4.0 > > Signed-off-by: Hervé Poussineau I'm not sure w

[Qemu-devel] [PATCH 6/7] esp: use error_report()/hw_error() instead of stderr output

2012-06-03 Thread Hervé Poussineau
Use error_report() for guest errors, hw_error() for unimplemented parts. Signed-off-by: Hervé Poussineau --- hw/esp.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/hw/esp.c b/hw/esp.c index 714069b..e3425bb 100644 --- a/hw/esp.c +++ b/hw/esp.c @@ -35,9 +35,6

[Qemu-devel] [PATCH 4/7] esp: use hba_private field instead of a complex cast

2012-06-03 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/esp.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/esp.c b/hw/esp.c index 9a57938..1b5403c 100644 --- a/hw/esp.c +++ b/hw/esp.c @@ -186,7 +186,7 @@ static void esp_dma_enable(void *opaque, int irq, int level) static v

Re: [Qemu-devel] [PATCH 7/7] esp: add AMD PCscsi emulation (PCI SCSI adapter)

2012-06-03 Thread Hervé Poussineau
Michael S. Tsirkin a écrit : On Sun, Jun 03, 2012 at 12:38:09PM +0200, Hervé Poussineau wrote: The PCI version is supported in lots of Operating Systems, and has been successfully tested on: - MS DOS 6.22 with MS Windows 3.11 - MS Windows 98 SE - MS Windows NT 4.0 Signed-off-by: Hervé Poussinea

Re: [Qemu-devel] [Qemu-ppc] [PATCH] e500-pci: Factor into distinct mpc8540 and p4080 PCI Hosts

2012-06-03 Thread Alexander Graf
On 03.06.2012, at 13:10, Ben Collins wrote: > > On May 31, 2012, at 2:20 PM, Scott Wood wrote: > >> On 05/30/2012 06:25 PM, Ben Collins wrote: >>> In order to provide a closer virtualization, factor out e500-pci into >>> seperate >>> PCI hosts, namely fsl,mpc8540-pci and fsl,p4080-pcie (to mat

[Qemu-devel] [PATCH 5/7] esp: split esp code into generic chip emulation and sysbus layer

2012-06-03 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/esp.c | 162 -- 1 file changed, 95 insertions(+), 67 deletions(-) diff --git a/hw/esp.c b/hw/esp.c index 1b5403c..714069b 100644 --- a/hw/esp.c +++ b/hw/esp.c @@ -44,12 +44,9 @@ typedef struct E

Re: [Qemu-devel] [PATCH 7/7] esp: add AMD PCscsi emulation (PCI SCSI adapter)

2012-06-03 Thread Michael S. Tsirkin
On Sun, Jun 03, 2012 at 01:17:57PM +0200, Hervé Poussineau wrote: > >It is better to prefix all global scope symbols with > >esp_ consistently. Reduces the chance of a conflict. > > All these functions are local to the file. I'll change that to > pci_esp_... like other PCI-related functions in thi

[Qemu-devel] [PATCH 2/7] esp: implement Reset ATN command

2012-06-03 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/esp.c |4 trace-events |1 + 2 files changed, 5 insertions(+) diff --git a/hw/esp.c b/hw/esp.c index 51b2d5f..e726e11 100644 --- a/hw/esp.c +++ b/hw/esp.c @@ -113,6 +113,7 @@ struct ESPState { #define CMD_MSGACC 0x12 #define CMD_PAD

[Qemu-devel] [PATCH 00/24] per-directory Makefile snippets, limit vpath abuse

2012-06-03 Thread Paolo Bonzini
One source of complexity in the QEMU source is that we have a very shallow tree for a source code of over 750,000 lines of code. In fact, one third of these lines alone is in one directory, hw/. As a prerequisite to cleaning up the structure, but as a worthwhile step on its own, this patchset cle

[Qemu-devel] [PATCH 01/24] remove trace-nested-y

2012-06-03 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- Makefile.objs | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Makefile.objs b/Makefile.objs index 70c5c79..1daa92c 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -425,16 +425,11 @@ ifneq ($(TRACE_BACKEND),dtrace) trace-obj-y

[Qemu-devel] [PATCH 13/24] move ui/ objects to nested Makefile

2012-06-03 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- Makefile.objs | 21 ++--- ui/Makefile | 18 ++ 2 files changed, 20 insertions(+), 19 deletions(-) create mode 100644 ui/Makefile diff --git a/Makefile.objs b/Makefile.objs index 383d4cc..b0fa446 100644 --- a/Makefile.objs ++

[Qemu-devel] [PATCH 15/24] move slirp/ objects to nested Makefile

2012-06-03 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- Makefile.objs |5 + slirp/Makefile |4 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 slirp/Makefile diff --git a/Makefile.objs b/Makefile.objs index f1be02a..6a3ff49 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -118,1

[Qemu-devel] [PATCH 20/24] move per-target hw/ objects to nested Makefiles

2012-06-03 Thread Paolo Bonzini
This completes the move to nested Makefiles for virtio and a few other files that were not part of obj-TARGET-y, but still were compiled separately for each target. Signed-off-by: Paolo Bonzini --- Makefile.hw |5 +++-- Makefile.target | 22 +- configure|

[Qemu-devel] [PATCH 11/24] move net/ objects to nested Makefile

2012-06-03 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- Makefile.objs | 17 + net/Makefile | 13 + 2 files changed, 14 insertions(+), 16 deletions(-) create mode 100644 net/Makefile diff --git a/Makefile.objs b/Makefile.objs index 7c8a997..8433fad 100644 --- a/Makefile.objs +++ b/Make

[Qemu-devel] [PATCH 10/24] move block/ objects to nested Makefile

2012-06-03 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- Makefile.objs | 16 ++-- block/Makefile | 11 +++ 2 files changed, 13 insertions(+), 14 deletions(-) create mode 100644 block/Makefile diff --git a/Makefile.objs b/Makefile.objs index d823968..7c8a997 100644 --- a/Makefile.objs +++ b/Mak

[Qemu-devel] [PATCH 04/24] move *-user/ objects to nested Makefile

2012-06-03 Thread Paolo Bonzini
Conversion to nested Makefile snippets starts at the user-mode emulators. Signed-off-by: Paolo Bonzini --- Makefile.target | 32 ++-- bsd-user/Makefile |3 +++ configure |8 +++- linux-user/Makefile

[Qemu-devel] [PATCH 05/24] move obj-TARGET-y variables to nested Makefile

2012-06-03 Thread Paolo Bonzini
The contents of obj-TARGET-y are moved to either target-TARGET/Makefile or hw/TARGET/Makefile. In the future, a lot of source code could also move from hw to hw/TARGET. Signed-off-by: Paolo Bonzini --- Makefile.target | 186 ++ configure

[Qemu-devel] [PATCH 06/24] move libobj-y variable to nested Makefile

2012-06-03 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- Makefile.target| 42 -- configure |6 -- target-alpha/Makefile |3 ++- target-arm/Makefile|2 ++ target-cris/Makefile |3 ++- target-i386/Makefile |

[Qemu-devel] [PATCH 24/24] compile oslib-obj-y once

2012-06-03 Thread Paolo Bonzini
There is no difference in oslib-obj-y between user-mode and system targets. There used to be when user-mode could optionally be compiled with PIE. Signed-off-by: Paolo Bonzini --- Makefile.objs |3 ++- Makefile.target |2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git

[Qemu-devel] [PATCH 09/24] use nested Makefile rules for qom/ objects

2012-06-03 Thread Paolo Bonzini
qom/ already used a separate makefile. Convert it to use relative paths, and make it declare both common-obj-y and user-obj-y. This way, the upper makefiles do not need to know that some QOM files are compiled twice. Signed-off-by: Paolo Bonzini --- Makefile.objs | 13 +++-- qom/Make

[Qemu-devel] [PATCH 17/24] move qga/ objects to nested Makefile

2012-06-03 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- Makefile.objs |7 ++- qga/Makefile |4 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 qga/Makefile diff --git a/Makefile.objs b/Makefile.objs index 54ab6e6..73e07b0 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -383,11

[Qemu-devel] [PATCH 03/24] add rules for nesting

2012-06-03 Thread Paolo Bonzini
This adds the 'magic' rules that take care of subdirectories. The subdirectory makefiles in the source tree are not complete; they only define some variables (listed in nested-vars) according to the configuration. The magic rules descend into subdirectory makefiles and gather the evaluated values

[Qemu-devel] [PATCH 02/24] do not sprinkle around GENERATED_HEADERS dependencies

2012-06-03 Thread Paolo Bonzini
Keeping GENERATED_HEADERS dependencies up-to-date everywhere is complex. We can simply make the Makefile depend on them, and they will be built before all other targets. Signed-off-by: Paolo Bonzini --- Makefile| 18 +- Makefile.target | 14 -- tests/Makef

[Qemu-devel] [PATCH 12/24] move fsdev/ objects to nested Makefile

2012-06-03 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- Makefile.objs |6 +- fsdev/Makefile |6 ++ 2 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 fsdev/Makefile diff --git a/Makefile.objs b/Makefile.objs index 8433fad..383d4cc 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -51

[Qemu-devel] [PATCH 19/24] convert libhw to nested Makefiles

2012-06-03 Thread Paolo Bonzini
After this patch, the libhw* directories will have a hierarchy that mimics the source tree. This is useful because we do have a couple of files there that are in the top source directory. Signed-off-by: Paolo Bonzini --- Makefile.hw |6 +-- Makefile.objs| 145 ++---

Re: [Qemu-devel] [PATCH 00/24] per-directory Makefile snippets, limit vpath abuse

2012-06-03 Thread Blue Swirl
On Sun, Jun 3, 2012 at 12:25 PM, Paolo Bonzini wrote: > One source of complexity in the QEMU source is that we have a very > shallow tree for a source code of over 750,000 lines of code.  In > fact, one third of these lines alone is in one directory, hw/. > > As a prerequisite to cleaning up the s

[Qemu-devel] [PATCH 16/24] move qapi/ objects to nested Makefile

2012-06-03 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- Makefile.objs |6 ++ qapi/Makefile |3 +++ 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 qapi/Makefile diff --git a/Makefile.objs b/Makefile.objs index 6a3ff49..54ab6e6 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -373,10 +

[Qemu-devel] [PATCH 22/24] libcacard Makefile cleanups

2012-06-03 Thread Paolo Bonzini
Build vscclient from toplevel Makefile, limit usage of vpath. Signed-off-by: Paolo Bonzini --- Makefile |4 Makefile.objs |8 +++- Makefile.target|6 -- configure | 12 +--- libcacard/Makefile | 17 ++--- 5 files change

Re: [Qemu-devel] [PATCH 12/24] move fsdev/ objects to nested Makefile

2012-06-03 Thread Blue Swirl
On Sun, Jun 3, 2012 at 12:25 PM, Paolo Bonzini wrote: > Signed-off-by: Paolo Bonzini > --- >  Makefile.objs  |    6 +- >  fsdev/Makefile |    6 ++ >  2 files changed, 7 insertions(+), 5 deletions(-) >  create mode 100644 fsdev/Makefile > > diff --git a/Makefile.objs b/Makefile.objs > inde

Re: [Qemu-devel] [PATCH 14/24] move audio/ objects to nested Makefile

2012-06-03 Thread Blue Swirl
On Sun, Jun 3, 2012 at 12:25 PM, Paolo Bonzini wrote: > Signed-off-by: Paolo Bonzini > --- >  Makefile.objs  |   18 ++ >  audio/Makefile |   15 +++ >  2 files changed, 17 insertions(+), 16 deletions(-) >  create mode 100644 audio/Makefile > > diff --git a/Makefile.objs

[Qemu-devel] [PATCH 18/24] move target-independent hw/ objects to nested Makefiles

2012-06-03 Thread Paolo Bonzini
This patch starts converting the hw/ directory. Some files in hw/ are compiled once, some twice (32-/64-bit), some once per target. Each category is moved in a separate patch. After this patch, the files that are compiled once will show the same hierarchy in the build tree as they do in the sourc

[Qemu-devel] [PATCH 08/24] move rules for nesting to Makefile.objs

2012-06-03 Thread Paolo Bonzini
At this point we will start adding nesting behavior to other files than Makefile.target. Because Makefile.objs is included by Makefile.target, it is simpler to move the processing of subdirectories there. To enable this, only add per-target files to obj-y. Use a separate variable for the linker

[Qemu-devel] [PATCH 23/24] limit usage of vpath

2012-06-03 Thread Paolo Bonzini
All paths are now explicitly given, and the object tree mimics the source tree, so there is no need to apply special vpaths. Signed-off-by: Paolo Bonzini --- Makefile|2 +- Makefile.target |5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefil

[Qemu-devel] [PATCH 14/24] move audio/ objects to nested Makefile

2012-06-03 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- Makefile.objs | 18 ++ audio/Makefile | 15 +++ 2 files changed, 17 insertions(+), 16 deletions(-) create mode 100644 audio/Makefile diff --git a/Makefile.objs b/Makefile.objs index b0fa446..f1be02a 100644 --- a/Makefile.objs +++

[Qemu-devel] [PATCH 21/24] move device tree to per-target Makefile

2012-06-03 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- Makefile.target|7 --- hw/arm/Makefile|1 + hw/microblaze/Makefile |1 + hw/ppc/Makefile|1 + 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Makefile.target b/Makefile.target index 1770901..5bd5538 100644

Re: [Qemu-devel] [PATCH 06/24] move libobj-y variable to nested Makefile

2012-06-03 Thread Blue Swirl
On Sun, Jun 3, 2012 at 12:25 PM, Paolo Bonzini wrote: > Signed-off-by: Paolo Bonzini > --- >  Makefile.target            |   42 -- >  configure                  |    6 -- >  target-alpha/Makefile      |    3 ++- >  target-arm/Makefile        |    2 ++ >

Re: [Qemu-devel] [PATCH 11/24] move net/ objects to nested Makefile

2012-06-03 Thread Blue Swirl
On Sun, Jun 3, 2012 at 12:25 PM, Paolo Bonzini wrote: > Signed-off-by: Paolo Bonzini > --- >  Makefile.objs |   17 + >  net/Makefile  |   13 + >  2 files changed, 14 insertions(+), 16 deletions(-) >  create mode 100644 net/Makefile > > diff --git a/Makefile.objs b/Make

[Qemu-devel] [PATCH 07/24] move other target-*/ objects to nested Makefiles

2012-06-03 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- Makefile.target|6 +++--- target-alpha/Makefile |3 ++- target-arm/Makefile|3 ++- target-cris/Makefile |4 ++-- target-i386/Makefile |4 +++- target-lm32/Makefile |3 ++- target-m68k/Makefile

[Qemu-devel] [PATCH v2 00/25] x86 AREG0 conversion

2012-06-03 Thread Blue Swirl
v1: I only sent the tree URL. v2: Rebased. Updated 07/25: removed confused comment and split sse_op_table3 so that void pointers are avoided there too, adjusted 08/25 accordingly. The patch series most probably need to rebased after QOM patches. URL git://repo.or.cz/qemu/blueswirl.git

[Qemu-devel] [PATCH 03/25] x86: split off exception handlers

2012-06-03 Thread Blue Swirl
Move exception handlers from op_helper.c to excp_helper.c. Signed-off-by: Blue Swirl --- Makefile.target |3 ++ target-i386/cpu.h | 10 ++-- target-i386/excp_helper.c | 132 + target-i386/op_helper.c | 113 --

[Qemu-devel] [PATCH 09/25] x86: fix coding style in helper_template.h

2012-06-03 Thread Blue Swirl
Fix coding style in helper_template.h before next commit. Signed-off-by: Blue Swirl --- target-i386/helper_template.h | 25 ++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/target-i386/helper_template.h b/target-i386/helper_template.h index afc41fb..8b2d

[Qemu-devel] [PATCH 14/25] x86: split off integer helpers

2012-06-03 Thread Blue Swirl
Move integer and bit field helpers to int_helper.c. Signed-off-by: Blue Swirl --- Makefile.target |3 +- target-i386/int_helper.c | 500 ++ target-i386/op_helper.c | 478 3 files changed, 502

[Qemu-devel] [PATCH 21/25] x86: avoid AREG0 for misc helpers

2012-06-03 Thread Blue Swirl
Add an explicit CPUX86State parameter instead of relying on AREG0. Signed-off-by: Blue Swirl --- Makefile.target |1 - target-i386/helper.h | 40 +- target-i386/misc_helper.c | 69 ++--- target-i386/translate.

Re: [Qemu-devel] [PATCH v2] net: add the support for -netdev socket, listen

2012-06-03 Thread Zhi Yong Wu
On Sun, Feb 26, 2012 at 10:48 PM, Stefan Hajnoczi wrote: > On Sat, Feb 18, 2012 at 9:19 AM,   wrote: >> From: Zhi Yong Wu >> >> The -net socket,listen option does not work with the newer -netdev >> syntax: >> http://lists.gnu.org/archive/html/qemu-devel/2011-11/msg01508.html >> >> This patch make

[Qemu-devel] [PATCH 11/25] x86: prepare eflags helpers for general use

2012-06-03 Thread Blue Swirl
Adjust function names and add an explicit CPUX86State parameter instead of relying on AREG0. Signed-off-by: Blue Swirl --- target-i386/op_helper.c | 68 ++- 1 file changed, 37 insertions(+), 31 deletions(-) diff --git a/target-i386/op_helper.c b/tar

[Qemu-devel] [PATCH 10/25] x86: split condition code and shift templates

2012-06-03 Thread Blue Swirl
Move shift templates from helper_template.h to shift_helper_template.h and the condition code helpers to cc_helper_template.h. Signed-off-by: Blue Swirl --- .../{helper_template.h => cc_helper_template.h}| 78 +- target-i386/op_helper.c| 26 -

[Qemu-devel] [PATCH 19/25] x86: avoid AREG0 for SMM helpers

2012-06-03 Thread Blue Swirl
Add an explicit CPUX86State parameter instead of relying on AREG0. Signed-off-by: Blue Swirl --- Makefile.target |1 - target-i386/helper.h |2 +- target-i386/smm_helper.c | 14 -- target-i386/translate.c |2 +- 4 files changed, 6 insertions(+), 13 deletio

[Qemu-devel] [PATCH 23/25] x86: use wrappers for memory access helpers

2012-06-03 Thread Blue Swirl
Switch to wrapped versions of memory access functions. Signed-off-by: Blue Swirl --- target-i386/cpu.h|9 ++ target-i386/mem_helper.c |8 ++ target-i386/op_helper.c | 209 +++--- 3 files changed, 123 insertions(+), 103 deletions(-) diff

[Qemu-devel] [PATCH 22/25] x86: split off memory access helpers

2012-06-03 Thread Blue Swirl
Move memory access helpers to mem_helper.c. Signed-off-by: Blue Swirl --- Makefile.target |3 +- target-i386/mem_helper.c | 212 ++ target-i386/op_helper.c | 189 + 3 files changed, 216 insertions

[Qemu-devel] [PATCH 17/25] x86: avoid AREG0 for SVM helpers

2012-06-03 Thread Blue Swirl
Add an explicit CPUX86State parameter instead of relying on AREG0. Signed-off-by: Blue Swirl --- Makefile.target |1 - target-i386/helper.h | 22 +++--- target-i386/svm_helper.c | 181 ++ target-i386/translate.c | 21 +++--- 4 fi

[Qemu-devel] [PATCH 12/25] x86: split off condition code helpers

2012-06-03 Thread Blue Swirl
Move condition code helpers to cc_helper.c. Move the shared inline functions lshift(), cpu_load_eflags() and cpu_cc_compute_all() to cpu.h. Signed-off-by: Blue Swirl --- Makefile.target |3 +- target-i386/cc_helper.c | 387 + target-i386/

[Qemu-devel] [PATCH 18/25] x86: split off SMM helpers

2012-06-03 Thread Blue Swirl
Move SMM helpers to smm_helper.c. Signed-off-by: Blue Swirl --- Makefile.target |3 +- target-i386/op_helper.c | 285 -- target-i386/smm_helper.c | 307 ++ 3 files changed, 309 insertions(+), 286

[Qemu-devel] [PATCH 07/25] x86: improve SSE table type safety

2012-06-03 Thread Blue Swirl
SSE function tables could easily be corrupted because of use of void pointers. Introduce function pointer types and helper variables in order to improve type safety. Split sse_op_table3 according to types used. Signed-off-by: Blue Swirl --- target-i386/translate.c | 134 ++

[Qemu-devel] [PATCH 15/25] x86: avoid AREG0 for integer helpers

2012-06-03 Thread Blue Swirl
Add an explicit CPUX86State parameter instead of relying on AREG0. Signed-off-by: Blue Swirl --- Makefile.target |1 - target-i386/helper.h| 50 +- target-i386/int_helper.c| 36 +-- target-i386/shift_

[Qemu-devel] [PATCH 04/25] x86: avoid an extern declaration

2012-06-03 Thread Blue Swirl
After the previous patch, we can use the proper declaration in a common header file. Signed-off-by: Blue Swirl --- target-i386/excp_helper.c |5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/target-i386/excp_helper.c b/target-i386/excp_helper.c index 72bd46d..aaa5ca2 100

Re: [Qemu-devel] The development tree is now open!

2012-06-03 Thread Jan Kiszka
On 2012-06-02 11:53, Anthony Liguori wrote: > Let your PATCHes, PULLs, RFCs, and RFTs start flowing. I'll start > applying pull requests on Monday or perhaps earlier if I can find the time. > > For submaintainers, if you have a very large queue (> 50 patches), > please split your pulls into multi

Re: [Qemu-devel] [PATCH 06/24] move libobj-y variable to nested Makefile

2012-06-03 Thread Paolo Bonzini
Il 03/06/2012 15:42, Blue Swirl ha scritto: >> > # HELPER_CFLAGS is used for all the legacy code compiled with static >> > register >> > # variables >> > -ifneq ($(TARGET_BASE_ARCH), sparc) >> > -op_helper.o: QEMU_CFLAGS += $(HELPER_CFLAGS) >> > -endif >> > +%/op_helper.o: QEMU_CFLAGS += $(HELPE

Re: [Qemu-devel] [PATCH 00/24] per-directory Makefile snippets, limit vpath abuse

2012-06-03 Thread Paolo Bonzini
Il 03/06/2012 15:31, Blue Swirl ha scritto: >> > The series is entirely bisectable, and mostly consists of boring patches. >> > If the concept is accepted, I would like to get it in as soon as possible. >> > I have a few other cleanups on top (I stopped once I undid the diffstat >> > of this series

[Qemu-devel] [PATCH 0/6] Log unimplemented functionality

2012-06-03 Thread Blue Swirl
Add a new logging category LOG_UNIMP, use it in a few CPU cases and for FDC. Now that FDC does not spam the console, add the fuzzing test to FDC qtest. Blue Swirl (6): qemu-log: move logging to qemu-log.c qemu-log: cleanup qemu-log: add log category for unimplemented functionality qemu-lo

[Qemu-devel] [PATCH 1/6] qemu-log: move logging to qemu-log.c

2012-06-03 Thread Blue Swirl
Move logging functions from exec.c to qemu-log.c, compile it only once. Signed-off-by: Blue Swirl --- Makefile.objs |1 + cpu-all.h | 24 -- exec.c| 122 --- qemu-log.c| 146 ++

[Qemu-devel] [PATCH 3/6] qemu-log: add log category for unimplemented functionality

2012-06-03 Thread Blue Swirl
Add new log category (LOG_UNIMP) for unimplemented functionality. Signed-off-by: Blue Swirl --- qemu-log.c |2 ++ qemu-log.h |1 + 2 files changed, 3 insertions(+) diff --git a/qemu-log.c b/qemu-log.c index 1dd3de4..1ec70e7 100644 --- a/qemu-log.c +++ b/qemu-log.c @@ -120,6 +120,8 @@ co

[Qemu-devel] [PATCH 2/6] qemu-log: cleanup

2012-06-03 Thread Blue Swirl
Don't use global variables directly but via accessor functions. Rename globals. Convert macros to functions, add GCC format attributes. Signed-off-by: Blue Swirl --- linux-user/main.c|3 +- linux-user/signal.c | 12 ++ qemu-log.c | 54 --- qemu-log

[Qemu-devel] [PATCH 5/6] fdc: use LOG_UNIMP logging

2012-06-03 Thread Blue Swirl
Convert uses of FLOPPY_ERROR to either FLOPPY_DPRINTF (for implemented cases) or to use LOG_UNIMP (unimplemented). Signed-off-by: Blue Swirl --- hw/fdc.c | 27 ++- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/hw/fdc.c b/hw/fdc.c index 30d34e3..48803ec

[Qemu-devel] [PATCH 6/6] qtest: add a fuzz test to fdc-test

2012-06-03 Thread Blue Swirl
Add a simple register fuzzing test to floppy controller tests. Signed-off-by: Blue Swirl --- tests/fdc-test.c | 17 + 1 file changed, 17 insertions(+) diff --git a/tests/fdc-test.c b/tests/fdc-test.c index 22d24ac..676b215 100644 --- a/tests/fdc-test.c +++ b/tests/fdc-test.c @

[Qemu-devel] [PATCH 4/6] qemu-log: use LOG_UNIMP for some target CPU cases

2012-06-03 Thread Blue Swirl
Use LOG_UNIMP for some target CPU cases. Signed-off-by: Blue Swirl --- target-i386/op_helper.c |1 + target-microblaze/translate.c | 11 +++--- target-ppc/helper.c |2 +- target-s390x/translate.c |2 +- target-sparc/ldst_helper.c| 80 +

Re: [Qemu-devel] [Qemu-ppc] [PATCH] e500-pci: Factor into distinct mpc8540 and p4080 PCI Hosts

2012-06-03 Thread Ben Collins
On May 31, 2012, at 2:20 PM, Scott Wood wrote: > On 05/30/2012 06:25 PM, Ben Collins wrote: >> In order to provide a closer virtualization, factor out e500-pci into >> seperate >> PCI hosts, namely fsl,mpc8540-pci and fsl,p4080-pcie (to match the >> device-tree >> node naming). >> >> Make use

[Qemu-devel] [Bug 1008136] [NEW] Cannot compile 1.1.0

2012-06-03 Thread Jorge Bastos
Public bug reported: Howdy, Testing QEMU 1.1.0 but doesn't compile: CCfsdev/virtfs-proxy-helper.o In file included from /usr/include/i386-linux-gnu/bits/sigcontext.h:28:0, from /usr/include/signal.h:339, from ./qemu-common.h:38, from fsde

[Qemu-devel] tcg_qemu_tb_exec...

2012-06-03 Thread Davide Ferraretto
I'm in qemu-arm. tcg_qemu_tb_exec function is a macro: #define tcg_qemu_tb_exec(env, tb_ptr)\ ((long REGPARM (*)(void *, void *))code_gen_prologue)(env, tb_ptr) #endif I don't understand what function calls. where is code of code_gen_prologue???

Re: [Qemu-devel] Any approach to log the file read/write (I/O data flow) like the "-d in_asm" option?

2012-06-03 Thread Yue Chen
I'm doing something like a *simple and lightweight* REPLAY program out of QEMU, only including CPU, MEMORY, and DISK. I'm implementing it with a shadow CPU (register state), shadow memory(from *"pmemsave"*) and shadow * ".img"* file (disk). When I get the *"log exec,op"*(preferred) or *"log exec,i

[Qemu-devel] [PATCH 0/2] target-xtensa: AREG0 conversion

2012-06-03 Thread Max Filippov
Max Filippov (2): target-xtensa: add attributes to helper functions target-xtensa: switch to AREG0-free mode configure |2 +- target-xtensa/helper.h| 58 +++--- target-xtensa/op_helper.c | 185 ++--- target-xtensa/tran

[Qemu-devel] [PATCH 1/2] target-xtensa: add attributes to helper functions

2012-06-03 Thread Max Filippov
Mark exception generating functions 'noreturn' and pure constant functions as such. Signed-off-by: Max Filippov --- target-xtensa/helper.h | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/target-xtensa/helper.h b/target-xtensa/helper.h index 48a741e..9dd6f8

[Qemu-devel] [PATCH 2/2] target-xtensa: switch to AREG0-free mode

2012-06-03 Thread Max Filippov
Add env parameter to every helper function that needs it, update 'configure' script. Signed-off-by: Max Filippov --- configure |2 +- target-xtensa/helper.h| 54 +++--- target-xtensa/op_helper.c | 185 ++--- target-xtensa

Re: [Qemu-devel] [PATCH 00/24] per-directory Makefile snippets, limit vpath abuse

2012-06-03 Thread Andreas Färber
Am 03.06.2012 14:25, schrieb Paolo Bonzini: > One source of complexity in the QEMU source is that we have a very > shallow tree for a source code of over 750,000 lines of code. In > fact, one third of these lines alone is in one directory, hw/. > > As a prerequisite to cleaning up the structure,

Re: [Qemu-devel] [PATCH 00/24] per-directory Makefile snippets, limit vpath abuse

2012-06-03 Thread Anthony Liguori
On 06/03/2012 08:25 PM, Paolo Bonzini wrote: One source of complexity in the QEMU source is that we have a very shallow tree for a source code of over 750,000 lines of code. In fact, one third of these lines alone is in one directory, hw/. As a prerequisite to cleaning up the structure, but as

Re: [Qemu-devel] [PATCH 00/24] per-directory Makefile snippets, limit vpath abuse

2012-06-03 Thread Anthony Liguori
On 06/04/2012 06:40 AM, Andreas Färber wrote: Am 03.06.2012 14:25, schrieb Paolo Bonzini: One source of complexity in the QEMU source is that we have a very shallow tree for a source code of over 750,000 lines of code. In fact, one third of these lines alone is in one directory, hw/. As a prer

[Qemu-devel] [PULL 1.2 00/16] hub-based networking patches

2012-06-03 Thread zwu . kernel
From: Zhi Yong Wu All comments from other guys were addressed. The following changes since commit a854972f8cdec0148087789d62777d8f7176933d: Update version to open the 1.2 development branch (Fri Jun 1 16:56:16 2012 +0800) are available in the git repository at: g...@github.com:wuzhy/qemu.g

[Qemu-devel] [Bug] Segmentation fault with QEMU v1.1.0 running Sheepdog block driver

2012-06-03 Thread Liu Yuan
Hi list, This segfault is met when installing RHEL 6 with Sheepdog cluster. Program terminated with signal 11, Segmentation fault. #0 0x7f777fc30359 in send_pending_req (s=0x7f77818a2160, oid=71271095331718270, id=1858) at block/sheepdog.c:629 629 QLIST_FOREACH_SAFE(aio_req, &s->ou

Re: [Qemu-devel] [PATCH v3 00/16] net: hub-based networking

2012-06-03 Thread Anthony Liguori
On 05/29/2012 04:14 PM, Markus Armbruster wrote: Luiz Capitulino writes: On Mon, 28 May 2012 12:17:04 +0100 Stefan Hajnoczi wrote: What we need to decide is whether it's okay to drop QEMU "VLANs" completely and change dump command-line syntax? I'd vote for dropping it. I think vlan-hub

Re: [Qemu-devel] [PULL 1.2 00/16] hub-based networking patches

2012-06-03 Thread Anthony Liguori
On 06/04/2012 10:46 AM, zwu.ker...@gmail.com wrote: From: Zhi Yong Wu All comments from other guys were addressed. v3 had review comments from Paolo that you acknowledged. I don't see a v4 on the list. You cannot do a pull request of unposted patches. Stefan, can I assume you Reviewed-by

Re: [Qemu-devel] [PATCH v3 00/16] net: hub-based networking

2012-06-03 Thread Anthony Liguori
On 05/25/2012 08:53 PM, Luiz Capitulino wrote: On Fri, 25 May 2012 13:01:37 +0100 Stefan Hajnoczi wrote: I agree it would be nice to drop entirely but I don't feel happy doing that to users who might have QEMU buried in scripts somewhere. One day they upgrade packages and suddenly their stuff

Re: [Qemu-devel] [PATCH v2 00/25] x86 AREG0 conversion

2012-06-03 Thread Anthony Liguori
On 06/03/2012 10:29 PM, Blue Swirl wrote: v1: I only sent the tree URL. v2: Rebased. Updated 07/25: removed confused comment and split sse_op_table3 so that void pointers are avoided there too, adjusted 08/25 accordingly. The patch series most probably need to rebased after QOM patches. Pleas

Re: [Qemu-devel] [PULL 1.2 00/16] hub-based networking patches

2012-06-03 Thread Zhi Yong Wu
On Mon, Jun 4, 2012 at 12:51 PM, Anthony Liguori wrote: > On 06/04/2012 10:46 AM, zwu.ker...@gmail.com wrote: >> >> From: Zhi Yong Wu >> >> All comments from other guys were addressed. > > > v3 had review comments from Paolo that you acknowledged.  I don't see a v4 > on the list.  You cannot do a

Re: [Qemu-devel] [PATCH v2 1/6] qerror: add QERR_OVERFLOW

2012-06-03 Thread Anthony Liguori
On 06/02/2012 06:54 AM, Amos Kong wrote: Signed-off-by: Amos Kong I think QERR_INVALID_PARAMETER_VALUE is a more logical choice for the error you're generating. Regards, Anthony Liguori --- qerror.c |4 qerror.h |3 +++ 2 files changed, 7 insertions(+), 0 deletions(-) di

[Qemu-devel] [PATCH v4 00/16] hub-based networking patches

2012-06-03 Thread zwu . kernel
From: Zhi Yong Wu All comments from other guys were addressed. The following changes since commit a854972f8cdec0148087789d62777d8f7176933d: Update version to open the 1.2 development branch (Fri Jun 1 16:56:16 2012 +0800) are available in the git repository at: g...@github.com:wuzhy/qemu.g

[Qemu-devel] [PATCH v4 02/16] net: Use hubs for the vlan feature

2012-06-03 Thread zwu . kernel
From: Stefan Hajnoczi Stop using the special-case vlan code in net.c. Instead use the hub net client to implement the vlan feature. The next patch will remove vlan code from net.c completely. Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- net.c | 46 ++

[Qemu-devel] VirtIO Net driver for Ubuntu 11.10

2012-06-03 Thread Charles . Tsai-蔡清海-研究發展部
We recently ran an Ubuntu 11.10 VM which was installed with VirtIO NIC driver. The VirtIO net driver came from the Ubuntu's default package. The VM we installed was configured as a bridge mode. When we ran the Iperf test against the VM, the network interface of the VM was fairly unstable. Someti

[Qemu-devel] [PATCH v4 03/16] net: Look up 'vlan' net clients using hubs

2012-06-03 Thread zwu . kernel
From: Stefan Hajnoczi Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- net.c | 28 +--- net/hub.c | 24 net/hub.h |2 ++ net/slirp.c |5 +++-- 4 files changed, 30 insertions(+), 29 deletions(-) diff --git a/ne

Re: [Qemu-devel] [Bug 1008136] [NEW] Cannot compile 1.1.0

2012-06-03 Thread Dunrong Huang
Jorge Bastos writes: > Public bug reported: > > Howdy, > > Testing QEMU 1.1.0 but doesn't compile: > > > CCfsdev/virtfs-proxy-helper.o > In file included from /usr/include/i386-linux-gnu/bits/sigcontext.h:28:0, > from /usr/include/signal.h:339, > from ./qem

[Qemu-devel] [PATCH v4 05/16] net: Drop vlan argument to qemu_new_net_client()

2012-06-03 Thread zwu . kernel
From: Stefan Hajnoczi Since hubs are now used to implement the 'vlan' feature and the vlan argument is always NULL, remove the argument entirely and update all net clients that use qemu_new_net_client(). Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu --- net.c | 27

Re: [Qemu-devel] [PULL 00/20 1.2] kvm updates

2012-06-03 Thread Anthony Liguori
On 05/22/2012 12:37 AM, Avi Kivity wrote: Please pull from: git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git uq/master Pulled. Thanks. Regards, Anthony Liguori This is mostly Jan's MSI for KVM patches. Avi Kivity (1):

Re: [Qemu-devel] [PULL 0/5] Block patches for 1.1

2012-06-03 Thread Anthony Liguori
On 05/30/2012 09:37 PM, Kevin Wolf wrote: The following changes since commit e78bd5ab07d65fec77fcae468b2836c79a836d49: xhci: add usage info to docs (2012-05-30 10:28:44 +0800) Pulled. Thanks. Regards, Anthony Liguori are available in the git repository at: git://repo.or.cz/qemu/kev

[Qemu-devel] [PATCH v4 15/16] net: determine if packets can be sent before net queue deliver packets

2012-06-03 Thread zwu . kernel
From: Zhi Yong Wu Reviewed-by: Paolo Bonzini Signed-off-by: Zhi Yong Wu --- net/queue.c |8 net/slirp.c |7 --- slirp/if.c |5 - slirp/libslirp.h |1 - 4 files changed, 4 insertions(+), 17 deletions(-) diff --git a/net/queue.c b/net/queue.c i

Re: [Qemu-devel] [PATCH] Revert "rtl8139: do the network/host communication only in normal operating mode"

2012-06-03 Thread Anthony Liguori
On 05/10/2012 04:37 PM, Jason Wang wrote: This reverts commit ff71f2e8cacefae99179993204172bc65e4303df. This is because the linux 8139cp driver would leave the card in "Config Register Write Enable" mode after the eeprom were read or write ( which is unexpected in the spec ). Also a physical 8139

[Qemu-devel] [Bug 1008136] Re: Cannot compile 1.1.0

2012-06-03 Thread Anthony Liguori
What distro/architecture is this? What's the configure command and output from the command? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1008136 Title: Cannot compile 1.1.0 Status in QEMU: New

[Qemu-devel] [PATCH v4 01/16] net: Add a hub net client

2012-06-03 Thread zwu . kernel
From: Stefan Hajnoczi The vlan feature can be implemented in terms of hubs. By introducing a hub net client it becomes possible to remove the special case vlan code from net.c and push the vlan feature out of generic networking code. Signed-off-by: Stefan Hajnoczi Signed-off-by: Zhi Yong Wu -

[Qemu-devel] [PATCH v4 04/16] hub: Check that hubs are configured correctly

2012-06-03 Thread zwu . kernel
From: Stefan Hajnoczi Checks can be performed to make sure that hubs have at least one NIC and one host device, warning the user if this is not the case. Configurations which do not meet this rule tend to be broken but just emit a warning. This patch preserves compatibility with the checks perfo

  1   2   >