Re: [Qemu-devel] [PATCH] [qemu-img] CPU consuming optimization

2011-05-17 Thread Dmitry Konishchev
On Tue, May 17, 2011 at 7:35 PM, Stefan Hajnoczi wrote: > Please see http://wiki.qemu.org/Contribute/SubmitAPatch, which asks > that patches are sent inline (not as attachments) for easy review and > that you follow the coding style (see the CODING_STYLE file).  Patches > also need a Signed-off-by

[Qemu-devel] [PATCH] virtio: correctly initialize vm_running

2011-05-17 Thread Jason Wang
Current vm_running was not explicitly initialized and its value was changed by vm state notifier, this may confuse the virtio device being hotplugged such as virtio-net with vhost backend as it may think the vm was not running. Solve this by initialize this value explicitly in virtio_common_init().

Re: [Qemu-devel] [PATCH 3/3] powerpc-virtio: virtio support introduced (block, network, serial, balloon, 9p-fs), both fullemu and power-kvm

2011-05-17 Thread David Gibson
On Tue, May 17, 2011 at 09:06:41AM +0200, Alexander Graf wrote: > On 17.05.2011, at 08:47, David Gibson wrote: > > From: Alexey Kardashevskiy > > > > The recently added pseries machine does not currently support PCI > > emulation. For the (upcoming) kvm case, this is quite difficult to do > > be

Re: [Qemu-devel] [PATCH] ignore new compiled vscclient tool

2011-05-17 Thread Alon Levy
On Tue, May 17, 2011 at 06:03:39PM -0400, Mike Frysinger wrote: Reviewed-by: Alon Levy > Signed-off-by: Mike Frysinger > --- > .gitignore |1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/.gitignore b/.gitignore > index 306baee..e5a51f3 100644 > --- a/.gitignore >

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

2011-05-17 Thread Isaku Yamahata
On Tue, May 17, 2011 at 04:21:11PM +0200, Jan Kiszka wrote: > I also succeeded with passing through a PCIe host device. Nicely, the > full set capabilities showed up on the guest side this way. But GPU > pass-through did not improve this way (it rather regressed, yet unclear > why). Interesting.

Re: [Qemu-devel] [PATCH v2 00/38] pci: initialize ids in pci common code

2011-05-17 Thread Isaku Yamahata
Here is the prog_interface part. You were unsure about prog_interface, so I split it out. Thus you can determine if prog_interface conversion is wanted or not. >From abaf67175190c2f4d0c222c2ae8010e9de38bf59 Mon Sep 17 00:00:00 2001 Message-Id: From: Isaku Yamahata Date: Wed, 18 May 2011 09:58:2

Re: [Qemu-devel] [PATCH V4 01/10] Support for TPM command line options

2011-05-17 Thread Serge E. Hallyn
Quoting Stefan Berger (stef...@linux.vnet.ibm.com): > On 05/17/2011 04:58 PM, Serge E. Hallyn wrote: > >Quoting Stefan Berger (stef...@linux.vnet.ibm.com): > >>This patch adds support for TPM command line options. > >>The command line supported here (considering the libtpms based > >>backend) are >

[Qemu-devel] Unsubscription Confirmation

2011-05-17 Thread RealEstateMalaysian.com
Thank you for subscribing. You have now unsubscribed and no more messages will be sent.

[Qemu-devel] [PATCH v1][ 18/23] qapi: add base declaration/types for QMP

2011-05-17 Thread Michael Roth
Signed-off-by: Michael Roth --- qapi/qmp-core.h | 90 +++ 1 files changed, 90 insertions(+), 0 deletions(-) create mode 100644 qapi/qmp-core.h diff --git a/qapi/qmp-core.h b/qapi/qmp-core.h new file mode 100644 index 000..c4a20a8 --- /d

[Qemu-devel] [PATCH v1][ 21/23] qapi: Makefile changes to build test-visiter

2011-05-17 Thread Michael Roth
Signed-off-by: Michael Roth --- Makefile | 13 + Makefile.objs |7 +++ 2 files changed, 20 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index 5d39363..55ae073 100644 --- a/Makefile +++ b/Makefile @@ -145,6 +145,19 @@ check-qlist: check-qlist.o qlist.

[Qemu-devel] [PATCH v1][ 20/23] qapi: add test-visiter, tests for gen. visiter code

2011-05-17 Thread Michael Roth
Signed-off-by: Michael Roth --- test-visiter.c | 214 1 files changed, 214 insertions(+), 0 deletions(-) create mode 100644 test-visiter.c diff --git a/test-visiter.c b/test-visiter.c new file mode 100644 index 000..31596a0 --- /dev

[Qemu-devel] [PATCH v1][ 19/23] qapi: test schema used for unit tests

2011-05-17 Thread Michael Roth
This is how QMP commands/parameters/types would be defined. We use a subset of that functionality here to implement functions/types for unit testing. Signed-off-by: Michael Roth --- qapi-schema-test.json | 16 1 files changed, 16 insertions(+), 0 deletions(-) create mode 1006

[Qemu-devel] [PATCH v1][ 17/23] qapi: add QMP dispatch functions

2011-05-17 Thread Michael Roth
Given an object recieved via QMP, this code uses the dispatch table provided by qmp_registry.c to call the corresponding marshalling/dispatch function and format return values/errors for delivery to the QMP. Currently only synchronous QMP functions are supported, but this will also be used for asyn

[Qemu-devel] [PATCH v1][ 16/23] qapi: add command registration/lookup functions

2011-05-17 Thread Michael Roth
Registration/lookup functions for that provide a lookup table for dispatching QMP commands. Signed-off-by: Michael Roth --- qapi/qmp-registry.c | 38 ++ 1 files changed, 38 insertions(+), 0 deletions(-) create mode 100644 qapi/qmp-registry.c diff --git a/q

[Qemu-devel] [PATCH v1][ 13/23] qapi: add QMP input visiter

2011-05-17 Thread Michael Roth
A type of Visiter class that is used to walk a qobject's structure and assign each entry to the corresponding native C type. Command marshaling function will use this to pull out QMP command parameters recieved over the wire and pass them as native arguments to the corresponding C functions. Signe

[Qemu-devel] [PATCH v1][ 14/23] qapi: add QMP output visiter

2011-05-17 Thread Michael Roth
Type of Visiter class that serves as the inverse of the input visiter: it takes a series of native C types and uses their values to construct a corresponding QObject. The command marshaling/dispatcher functions will use this to convert the output of QMP functions into a QObject that can be sent ove

[Qemu-devel] [PATCH v1][ 15/23] qapi: add QAPI dealloc visiter

2011-05-17 Thread Michael Roth
Type of Visiter class that can be passed into a qapi-generated C type's visiter function to free() any heap-allocated data types. Signed-off-by: Michael Roth --- qapi/qapi-dealloc-visiter.c | 125 +++ qapi/qapi-dealloc-visiter.h | 13 + 2 files chan

[Qemu-devel] [PATCH v1][ 12/23] qapi: add qapi-visit-core.h

2011-05-17 Thread Michael Roth
Base definitions/includes for Visiter interface used by generated visiter/marshalling code. Signed-off-by: Michael Roth --- qapi/qapi-visit-core.h | 175 1 files changed, 175 insertions(+), 0 deletions(-) create mode 100644 qapi/qapi-visit-core.

[Qemu-devel] [PATCH v1][ 11/23] qapi: add qapi-types-core.h

2011-05-17 Thread Michael Roth
Base declarations and includes for qapi types generator. Signed-off-by: Michael Roth --- qapi/qapi-types-core.h | 12 1 files changed, 12 insertions(+), 0 deletions(-) create mode 100644 qapi/qapi-types-core.h diff --git a/qapi/qapi-types-core.h b/qapi/qapi-types-core.h new file

[Qemu-devel] [PATCH v1][ 10/23] qapi: add qapi-commands.py code generator

2011-05-17 Thread Michael Roth
This is the code generator for qapi command marshaling/dispatch. Currently only generators for synchronous qapi/qmp functions are supported. This script generates the following files: $(prefix)qmp-marshal.c: command marshal/dispatch functions for each QMP command define

[Qemu-devel] [PATCH v1][ 23/23] qapi: Makefile changes to build test-qmp-commands

2011-05-17 Thread Michael Roth
Signed-off-by: Michael Roth --- Makefile |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 55ae073..39b2936 100644 --- a/Makefile +++ b/Makefile @@ -146,7 +146,7 @@ check-qfloat: check-qfloat.o qfloat.o $(CHECK_PROG_DEPS) check-qjson: chec

[Qemu-devel] [PATCH v1][ 06/23] qapi: add module init types for qapi

2011-05-17 Thread Michael Roth
Signed-off-by: Michael Roth --- module.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/module.h b/module.h index 9263f1c..ef66730 100644 --- a/module.h +++ b/module.h @@ -24,12 +24,14 @@ typedef enum { MODULE_INIT_BLOCK, MODULE_INIT_DEVICE, MODULE_INIT_

[Qemu-devel] [PATCH v1][ 22/23] qapi: add test-qmp-commands, tests for gen. marshalling/dispatch code

2011-05-17 Thread Michael Roth
Signed-off-by: Michael Roth --- test-qmp-commands.c | 113 +++ 1 files changed, 113 insertions(+), 0 deletions(-) create mode 100644 test-qmp-commands.c diff --git a/test-qmp-commands.c b/test-qmp-commands.c new file mode 100644 index 000..8

[Qemu-devel] [PATCH v1][ 09/23] qapi: add qapi-visit.py code generator

2011-05-17 Thread Michael Roth
This is the code generator for qapi visiter functions used to marshal/unmarshal/dealloc qapi types. It generates the following 2 files: $(prefix)qapi-types.c: visiter function for a particular c type, used to automagically convert qobjects into the

[Qemu-devel] [PATCH v1][ 08/23] qapi: add qapi-types.py code generator

2011-05-17 Thread Michael Roth
This is the code generator for qapi types. It will generation the following files: $(prefix)qapi-types.h - C types corresponding to types defined in the schema you pass in $(prefix)qapi-types.c - Cleanup functions for the above C types The $(prefix) is used to as a n

[Qemu-devel] [PATCH v1][ 05/23] qlist: add qlist_first()/qlist_next()

2011-05-17 Thread Michael Roth
Signed-off-by: Michael Roth --- qlist.h | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/qlist.h b/qlist.h index dbe7b92..13f22eb 100644 --- a/qlist.h +++ b/qlist.h @@ -50,4 +50,14 @@ QObject *qlist_peek(QList *qlist); int qlist_empty(const QList *qlist); QLis

[Qemu-devel] [PATCH v1][ 01/23] Add hard build dependency on glib

2011-05-17 Thread Michael Roth
From: Anthony Liguori GLib is an extremely common library that has a portable thread implementation along with tons of other goodies. GLib and GObject have a fantastic amount of infrastructure we can leverage in QEMU including an object oriented programming infrastructure. Short term, it has a

[Qemu-devel] [PATCH v1][ 07/23] qapi: add ordereddict/qapi.py helper libraries

2011-05-17 Thread Michael Roth
Signed-off-by: Michael Roth --- scripts/ordereddict.py | 128 ++ scripts/qapi.py| 181 2 files changed, 309 insertions(+), 0 deletions(-) create mode 100644 scripts/ordereddict.py create mode 100644 scri

[Qemu-devel] [PATCH v1][ 03/23] error-propagation: build qemu with with error-propagation bits

2011-05-17 Thread Michael Roth
Signed-off-by: Michael Roth --- Makefile.objs |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/Makefile.objs b/Makefile.objs index c49e44c..0803297 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -15,6 +15,7 @@ oslib-obj-$(CONFIG_POSIX) += oslib-posix.o qemu-thread-posi

[Qemu-devel] [PATCH v1][ 04/23] qerror: refactor error to make the human message reusable

2011-05-17 Thread Michael Roth
From: Anthony Liguori Signed-off-by: Michael Roth --- Makefile.objs |2 +- error.c |1 + qerror-report.c | 139 +++ qerror.c| 178 +++--- qerror.h|7 ++ 5 files chang

[Qemu-devel] [PATCH v1][ 02/23] error-propagation: base code for error propagation

2011-05-17 Thread Michael Roth
Signed-off-by: Michael Roth --- error.c | 131 +++ error.h | 70 +++ error_int.h | 27 3 files changed, 228 insertions(+), 0 deletions(-) create mode 100644 error.c create mode 100644

[Qemu-devel] [PATCH v1 00/23] QAPI Infrastructure Round 1

2011-05-17 Thread Michael Roth
These apply on top of master, and can also be obtained from: git://repo.or.cz/qemu/mdroth.git qapi_round1_v1 These patches are a backport of some of the QAPI-related work from Anthony's glib tree. The main goal is to get the basic code generation infrastructure in place so that it can be used by t

Re: [Qemu-devel] [PATCH] ignore patch related files

2011-05-17 Thread Mike Frysinger
On Tue, May 17, 2011 at 18:17, Peter Maydell wrote: > On 17 May 2011 22:10, Mike Frysinger wrote: >> --- a/.gitignore >> +++ b/.gitignore >> @@ -58,6 +58,10 @@ QMP/qmp-commands.txt >>  *.orig >>  .pc >>  patches >> +*.diff >> +*.patch >> +*.rej >> +*.orig >>  pc-bios/bios-pq/status >>  pc-bios/vgab

[Qemu-devel] [PATCH v2] ignore patch related files

2011-05-17 Thread Mike Frysinger
Signed-off-by: Mike Frysinger --- v2 - drop *.orig as it has been merged already .gitignore |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index 08013fc..790dc12 100644 --- a/.gitignore +++ b/.gitignore @@ -58,6 +58,9 @@ QMP/qmp-command

[Qemu-devel] [PATCH] linux-user: add pselect6 syscall support

2011-05-17 Thread Mike Frysinger
Some architectures (like Blackfin) only implement pselect6 (and skip select/newselect). So add support for it using existing newselect code. Signed-off-by: Mike Frysinger --- linux-user/syscall.c | 145 +++--- 1 files changed, 126 insertions(+), 19 d

Re: [Qemu-devel] [PATCH V4 01/10] Support for TPM command line options

2011-05-17 Thread Stefan Berger
On 05/17/2011 04:58 PM, Serge E. Hallyn wrote: Quoting Stefan Berger (stef...@linux.vnet.ibm.com): This patch adds support for TPM command line options. The command line supported here (considering the libtpms based backend) are ./qemu-... -tpm type=,path=, Hm, I did kvm -tpm type=builtin,pat

Re: [Qemu-devel] [PATCH V4 01/10] Support for TPM command line options

2011-05-17 Thread Stefan Berger
On 05/17/2011 04:58 PM, Serge E. Hallyn wrote: Quoting Stefan Berger (stef...@linux.vnet.ibm.com): This patch adds support for TPM command line options. The command line supported here (considering the libtpms based backend) are ./qemu-... -tpm type=,path=, Hm, I did kvm -tpm type=builtin,pat

Re: [Qemu-devel] [RFC] live snapshot, live merge, live block migration

2011-05-17 Thread Dor Laor
On 05/16/2011 11:23 AM, Jagane Sundar wrote: Hello Dor, Let me see if I understand live snapshot correctly: If I want to configure a VM for daily backup, then I would do the following: - Create a snapshot s1. s0 is marked read-only. - Do a full backup of s0 on day 0. - On day 1, I would create a

[Qemu-devel] [PATCH 26/26] target-xtensa: implement relocatable vectors

2011-05-17 Thread Max Filippov
See ISA, 4.4.3 for details. Vector addresses recorded in core configuration are absolute values that correspond to default VECBASE value. Signed-off-by: Max Filippov --- target-xtensa/cpu.h |2 ++ target-xtensa/helper.c| 18 -- target-xtensa/translate.c |1 +

[Qemu-devel] [PATCH 21/26] target-xtensa: implement unaligned exception option

2011-05-17 Thread Max Filippov
See ISA, 4.4.4 for details. Correct (aligned as per ISA) address for unaligned access is generated in case this option is not enabled. Signed-off-by: Max Filippov --- target-xtensa/translate.c | 33 +++-- 1 files changed, 31 insertions(+), 2 deletions(-) diff --gi

[Qemu-devel] [PATCH 16/26] target-xtensa: implement exceptions

2011-05-17 Thread Max Filippov
- mark privileged opcodes with ring check; - make debug exception on exception handler entry. Signed-off-by: Max Filippov --- RFC -> PATCH changes: - make privilege_check based on mem_index; --- cpu-exec.c|6 +++ target-xtensa/cpu.h | 103 ++

[Qemu-devel] [PATCH 14/26] target-xtensa: implement SYNC group

2011-05-17 Thread Max Filippov
All operations in this group are no-ops, because there are no delayed side effects. Signed-off-by: Max Filippov --- target-xtensa/translate.c | 31 ++- 1 files changed, 30 insertions(+), 1 deletions(-) diff --git a/target-xtensa/translate.c b/target-xtensa/translat

[Qemu-devel] [PATCH 25/26] target-xtensa: implement CPENABLE and PRID SRs

2011-05-17 Thread Max Filippov
Signed-off-by: Max Filippov --- hw/xtensa_sample.c|1 + target-xtensa/cpu.h |2 ++ target-xtensa/translate.c |7 +++ 3 files changed, 10 insertions(+), 0 deletions(-) diff --git a/hw/xtensa_sample.c b/hw/xtensa_sample.c index b818fed..0657b65 100644 --- a/hw/xtensa_

[Qemu-devel] [PATCH 12/26] target-xtensa: implement LSAI group

2011-05-17 Thread Max Filippov
- base + offset load/store operations for 1/2/4 byte values; - cache operations (not implemented); - multiprocessor synchronization operations. Signed-off-by: Max Filippov --- target-xtensa/cpu.h |1 + target-xtensa/translate.c | 88 + 2 fi

[Qemu-devel] [PATCH 24/26] target-xtensa: implement accurate window check

2011-05-17 Thread Max Filippov
See ISA, 4.7.1.3 for details. Window check is inserted before commands that push "used register watermark" beyond its current level. Used register watermark is reset on instructions that change WINDOW_BASE/WINDOW_START SRs. Signed-off-by: Max Filippov --- target-xtensa/translate.c | 105 ++

[Qemu-devel] [PATCH 23/26] target-xtensa: implement interrupt option

2011-05-17 Thread Max Filippov
See ISA, 4.4.6 (interrupt option), 4.4.7 (high priority interrupt option) and 4.4.8 (timer interrupt option) for details. Signed-off-by: Max Filippov --- RFC -> PATCH changes: - halt CPU on waiti, use qemu timer to wake up on CCOMPARE match; - advance CCOUNT on TB exit, on exception and on RSR.CC

[Qemu-devel] [PATCH 09/26] target-xtensa: add special and user registers

2011-05-17 Thread Max Filippov
Special Registers hold the majority of the state added to the processor by the options. See ISA, 5.3 for details. User Registers hold state added in support of designer's TIE and in some cases of options that Tensilica provides. See ISA, 5.4 for details. Only registers mapped in sregnames or ureg

[Qemu-devel] [PATCH 20/26] target-xtensa: implement extended L32R

2011-05-17 Thread Max Filippov
See ISA, 4.3.3 for details. TB flag XTENSA_TBFLAG_LITBASE is used to track enable bit of LITBASE SR. Signed-off-by: Max Filippov --- RFC -> PATCH changes: - add XTENSA_TBFLAG_LITBASE, use it in L32R; --- target-xtensa/cpu.h |6 ++ target-xtensa/helper.c|1 + target-xtensa/

[Qemu-devel] [PATCH 22/26] target-xtensa: implement SIMCALL

2011-05-17 Thread Max Filippov
Tensilica iss provides support for applications running in freestanding environment through SIMCALL command. It is used by Tensilica libc to access argc/argv, for file I/O, etc. Signed-off-by: Max Filippov --- RFC -> PATCH changes: - use -semihosting to implement SIMCALL; - fix user memory manipu

[Qemu-devel] [PATCH 08/26] target-xtensa: implement JX/RET0/CALLX

2011-05-17 Thread Max Filippov
Group SNM0 (indirect jumps and calls). Signed-off-by: Max Filippov --- target-xtensa/translate.c | 43 +++ 1 files changed, 43 insertions(+), 0 deletions(-) diff --git a/target-xtensa/translate.c b/target-xtensa/translate.c index 3b9ce91..0a43ec0 100644

[Qemu-devel] [PATCH 17/26] target-xtensa: implement RST2 group (32 bit mul/div/rem)

2011-05-17 Thread Max Filippov
Signed-off-by: Max Filippov --- target-xtensa/translate.c | 60 - 1 files changed, 59 insertions(+), 1 deletions(-) diff --git a/target-xtensa/translate.c b/target-xtensa/translate.c index 7deda1b..8933e5a 100644 --- a/target-xtensa/translate.c +++ b

[Qemu-devel] [PATCH 19/26] target-xtensa: implement loop option

2011-05-17 Thread Max Filippov
See ISA, 4.3.2 for details. Operations that change LEND SR value invalidate TBs at the old and at the new LEND. LEND value at TB compilation time is considered constant and loop instruction is generated based on this value. Invalidation may be avoided for the TB at the old LEND address, since loo

[Qemu-devel] [PATCH 07/26] target-xtensa: implement conditional jumps

2011-05-17 Thread Max Filippov
- BZ (comparison to zero); - BI0 (comparison to signed immediate); - BI1 (comparison to unsigned immediate); - B (two registers comparison, bit sets comparison); - BEQZ.N/BNEZ.N (narrow comparison to zero). Signed-off-by: Max Filippov --- RFC -> PATCH changes: - extract common branching code into

[Qemu-devel] [PATCH 11/26] target-xtensa: implement shifts (ST1 and RST1 groups)

2011-05-17 Thread Max Filippov
- ST1: SAR (shift amount special register) manipulation, NSA(U); - RST1: shifts, 16-bit multiplication. Signed-off-by: Max Filippov --- RFC -> PATCH changes: - make NSA/NSAU helpers; - optimize shifts for 5 bit wide SAR; --- target-xtensa/cpu.h |4 + target-xtensa/helpers.h |2 +

[Qemu-devel] [PATCH 15/26] target-xtensa: implement CACHE group

2011-05-17 Thread Max Filippov
All operations in this group are no-ops, because cache ought to be transparent to applications. However cache may be abused, then we'll need to actually implement these opcodes. Signed-off-by: Max Filippov --- target-xtensa/translate.c | 95 - 1 file

[Qemu-devel] [PATCH 05/26] target-xtensa: implement RT0 group

2011-05-17 Thread Max Filippov
NEG and ABS are the only members of RT0 group. Signed-off-by: Max Filippov --- target-xtensa/translate.c | 19 +++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/target-xtensa/translate.c b/target-xtensa/translate.c index d27a47c..41ac4f2 100644 --- a/target-xt

[Qemu-devel] [PATCH 18/26] target-xtensa: implement windowed registers

2011-05-17 Thread Max Filippov
See ISA, 4.7.1 for details. Physical registers and currently visible window are separate fields in CPUEnv. Only current window is accessible to TCG. On operations that change window base helpers copy current window to and from physical registers. Window overflow check described in 4.7.1.3 is in s

[Qemu-devel] [PATCH 10/26] target-xtensa: implement RST3 group

2011-05-17 Thread Max Filippov
- access to Special Registers (wsr, rsr); - access to User Registers (wur, rur); - misc. operations option (value clamp, sign extension, min, max); - conditional moves. Signed-off-by: Max Filippov --- RFC -> PATCH changes: - optimize SEXT from bits 7 and 15; --- target-xtensa/translate.c | 161

[Qemu-devel] [PATCH 03/26] target-xtensa: implement disas_xtensa_insn

2011-05-17 Thread Max Filippov
Set up disas_xtensa_insn switch structure, mark required options on high level groups. Implement arithmetic/bit logic/jump/call0. Implement code generation loop with single step/breakpoint checking. Signed-off-by: Max Filippov --- RFC -> PATCH changes: - put gen_exit_tb into else clause in gen_j

[Qemu-devel] [PATCH 04/26] target-xtensa: implement narrow instructions

2011-05-17 Thread Max Filippov
Instructions with op0 >= 8 are 2 bytes long, others are 3 bytes long. Signed-off-by: Max Filippov --- target-xtensa/translate.c | 54 + 1 files changed, 54 insertions(+), 0 deletions(-) diff --git a/target-xtensa/translate.c b/target-xtensa/translat

[Qemu-devel] [PATCH 13/26] target-xtensa: mark reserved and TBD opcodes

2011-05-17 Thread Max Filippov
Reserved opcodes must generate illegal instruction exception. Usually they signal emulation quality problems. Not implemented opcodes are good to see. Signed-off-by: Max Filippov --- target-xtensa/translate.c | 110 - 1 files changed, 109 insertions(+

[Qemu-devel] [PATCH 06/26] target-xtensa: add sample board

2011-05-17 Thread Max Filippov
Sample board and sample CPU core are used for debug and may be used for development of custom SoC emulators. This board has two fixed size memory regions for DTCM and ITCM and variable length SRAM region. Signed-off-by: Max Filippov --- Makefile.target|1 + hw/xtensa_sample.c | 99 +++

[Qemu-devel] [PATCH 01/26] target-xtensa: add target stubs

2011-05-17 Thread Max Filippov
Signed-off-by: Max Filippov --- RFC -> PATCH changes: - remove cpu_reset from cpu_xtensa_init; --- Makefile.target |2 + arch_init.c |2 + arch_init.h |1 + cpu-exec.c|4 ++ elf.h |2 + hw/xtensa_pic.c

[Qemu-devel] [PATCH 02/26] target-xtensa: add target to the configure script

2011-05-17 Thread Max Filippov
Signed-off-by: Max Filippov --- configure| 12 +++- default-configs/xtensa-softmmu.mak |1 + default-configs/xtensaeb-softmmu.mak |1 + 3 files changed, 13 insertions(+), 1 deletions(-) create mode 100644 default-configs/xtensa-softmmu.mak create

[Qemu-devel] [PATCH 00/26] target-xtensa: introduce new target architecture

2011-05-17 Thread Max Filippov
This series adds support for Tensilica Xtensa target. Overall RFC -> PATCH changes: - implement TB chaining; - replace stray printfs with qemu_logs; - consolidate big endianness support with corresponding little endianness counterparts; - removed gdbstub patch from this series, will post a separa

Re: [Qemu-devel] [PATCH] ignore patch related files

2011-05-17 Thread Peter Maydell
On 17 May 2011 22:10, Mike Frysinger wrote: > --- a/.gitignore > +++ b/.gitignore > @@ -58,6 +58,10 @@ QMP/qmp-commands.txt >  *.orig >  .pc >  patches > +*.diff > +*.patch > +*.rej > +*.orig >  pc-bios/bios-pq/status >  pc-bios/vgabios-pq/status >  pc-bios/optionrom/linuxboot.bin Er, *.orig is a

[Qemu-devel] [PATCH] ignore new compiled vscclient tool

2011-05-17 Thread Mike Frysinger
Signed-off-by: Mike Frysinger --- .gitignore |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index 306baee..e5a51f3 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ trace-dtrace.dtrace *-darwin-user *-linux-user *-bsd-user +libcacard/v

[Qemu-devel] [PATCH] ignore more gdb related files

2011-05-17 Thread Mike Frysinger
Signed-off-by: Mike Frysinger --- .gitignore |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index e6557c3..306baee 100644 --- a/.gitignore +++ b/.gitignore @@ -35,6 +35,8 @@ qemu-io qemu-monitor.texi QMP/qmp-commands.txt .gdbinit +.gdb_history

[Qemu-devel] [PATCH] ignore patch related files

2011-05-17 Thread Mike Frysinger
Signed-off-by: Mike Frysinger --- .gitignore |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index 08013fc..e6557c3 100644 --- a/.gitignore +++ b/.gitignore @@ -58,6 +58,10 @@ QMP/qmp-commands.txt *.orig .pc patches +*.diff +*.patch +*.rej +*

[Qemu-devel] [PATCH] configure: check for -Wendif-labels support

2011-05-17 Thread Mike Frysinger
Older gcc compilers do not support -Wendif-labels, so move it from the hardcoded list to the dynamically detected list. Signed-off-by: Mike Frysinger --- configure |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 019bc8d..8b775a4 100755 ---

Re: [Qemu-devel] [PATCH V4 01/10] Support for TPM command line options

2011-05-17 Thread Serge E. Hallyn
Quoting Stefan Berger (stef...@linux.vnet.ibm.com): > This patch adds support for TPM command line options. > The command line supported here (considering the libtpms based > backend) are > > ./qemu-... -tpm type=,path=, Hm, I did kvm -tpm type=builtin,path=tpm.img -m 1G disk.img -vnc :1 with d

Re: [Qemu-devel] [PATCH 18/18] usb: add ehci adapter

2011-05-17 Thread David Ahern
On 05/17/11 14:39, Blue Swirl wrote: > The development history (implement a feature, fix bugs, implement > another, fix bugs etc) is not interesting and pulling it would make > bisection and other bugfixing more difficult. The patches should not > add known broken features and fix them next. > >

Re: [Qemu-devel] [Bug 723871] Re: qemu-kvm-0.14.0 Aborts with -vga qxl

2011-05-17 Thread Blue Swirl
On Tue, May 17, 2011 at 8:32 PM, Boris Derzhavets <723...@bugs.launchpad.net> wrote: > Also in meantime git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git This is not QEMU tree, but qemu-kvm. They are not the same.

Re: [Qemu-devel] [PATCH 18/18] usb: add ehci adapter

2011-05-17 Thread Blue Swirl
On Tue, May 17, 2011 at 5:47 AM, David Ahern wrote: > > > On 05/16/11 13:56, Gerd Hoffmann wrote: >> This patch finally merges the EHCI host adapter aka USB 2.0 support. >> >> Based on git://git.kiszka.org/qemu.git ehci >> >> Changes: >>   - Adapt to recent changes in the usb subsystem. >>   - Don

Re: [Qemu-devel] [PATCH 06/11] TCG/x86: use stack for TCG temps

2011-05-17 Thread Blue Swirl
On Tue, May 17, 2011 at 9:46 PM, Aurelien Jarno wrote: > On Sat, May 14, 2011 at 10:38:40PM +0300, Blue Swirl wrote: >> Use stack instead of temp_buf array in CPUState for TCG >> temps. >> >> Signed-off-by: Blue Swirl >> --- >>  tcg/i386/tcg-target.c |   19 ++- >>  1 files changed

[Qemu-devel] [RFC] Per-vCPU virtual time scale

2011-05-17 Thread Lluís
Continuing with my set of patches I sent long time ago to get traces from guest code [1], the next (and almost final) step is to be able to set a different CPI (cycles per instruction) value for each vCPU. The first and simplest question is to know if icount could be easily enabled on non-softmmu

Re: [Qemu-devel] [PATCH 2/2][SPARC] Fix TA0_Shutdown feature

2011-05-17 Thread Blue Swirl
On Tue, May 17, 2011 at 6:32 PM, Julien Grall wrote: > Fix TA0_SHUTDOWN feature But what would be the bug? > Signed-off-by: Julien Grall > --- >  target-sparc/op_helper.c |   13 +++-- >  target-sparc/translate.c |    9 + >  2 files changed, 12 insertions(+), 10 deletions(-) > >

Re: [Qemu-devel] [PATCH 01/11] Move user emulator stuff from cpu-exec.c to user-exec.c

2011-05-17 Thread Blue Swirl
On Tue, May 17, 2011 at 5:52 PM, Peter Maydell wrote: > On 14 May 2011 20:36, Blue Swirl wrote: > >> +#if defined(__i386__) > >> +#elif defined(__x86_64__) > >> +#elif defined(_ARCH_PPC) > >> +#elif defined(__alpha__) > >> +#elif defined(__sparc__) > >> +#elif defined(__arm__) > >> +#elif defined

[Qemu-devel] [V2 24/25] [virtio-9p] clean up v9fs_remove.

2011-05-17 Thread Venkateswararao Jujjuri (JV)
Rearrange the code so that we can avoid V9fsRemoveState and additional malloc()s. Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/virtio-9p.c | 25 ++--- hw/9pfs/virtio-9p.h |6 -- 2 files changed, 10 insertions(+), 21 deletions(-) diff --git a/hw/9pfs/virtio-9

Re: [Qemu-devel] [PATCH] Clean up virtio-9p error handling code

2011-05-17 Thread Venkateswararao Jujjuri
On 05/15/2011 09:43 AM, Sassan Panahinejad wrote: In a lot of cases, the handling of errors was quite ugly. This patch moves reading of errno to immediately after the system calls and passes it up through the system more cleanly. Also, in the case of the xattr functions (and possibly others), co

[Qemu-devel] [V2 01/25] [virtio-9p] Add infrastructure to support glib threads and coroutines.

2011-05-17 Thread Venkateswararao Jujjuri (JV)
This patch is originally made by Arun Bharadwaj for glib support. Later Harsh Prateek Bora added coroutines support. This version implemented with suggestions from Stefan Hajnoczi . Signed-off-by: Arun R Bharadwaj Signed-off-by: Harsh Prateek Bora Signed-off-by: Venkateswararao Jujjuri " --- Ma

[Qemu-devel] [V2 20/25] hw/9pfs: Add yield support to mknod coroutine

2011-05-17 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/cofs.c | 21 + hw/9pfs/virtio-9p-coth.h |2 ++ 2 files changed, 23 insertions(+), 0 deletions(-) diff --git a/hw/9pfs/cofs.c b/hw/9pfs/cofs.c index 42

[Qemu-devel] [V2 23/25] [virtio-9p] Remove post functions for v9fs_remove

2011-05-17 Thread Venkateswararao Jujjuri (JV)
Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/virtio-9p.c | 26 +++--- 1 files changed, 7 insertions(+), 19 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index 89fe652..a79ec72 100644 --- a/hw/9pfs/virtio-9p.c +++ b/hw/9pfs/virtio-9p.c @@ -2577,2

[Qemu-devel] [V2 25/25] [virtio-9p] coroutine and threading for remove/unlink

2011-05-17 Thread Venkateswararao Jujjuri (JV)
Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/cofs.c | 14 ++ hw/9pfs/virtio-9p-coth.h |1 + hw/9pfs/virtio-9p.c | 11 ++- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/hw/9pfs/cofs.c b/hw/9pfs/cofs.c index af7b78e..af17077 100644

[Qemu-devel] [V2 21/25] hw/9pfs: Update v9fs_mknod to use coroutines

2011-05-17 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/virtio-9p.c | 88 +- 1 files changed, 30 insertions(+), 58 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index 465

[Qemu-devel] [V2 04/25] [virtio-9p] clean up v9fs_readlink.

2011-05-17 Thread Venkateswararao Jujjuri (JV)
Rearrange the code so that we can avoid V9fsReadLinkState. Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/virtio-9p.c | 25 ++--- hw/9pfs/virtio-9p.h |7 --- 2 files changed, 10 insertions(+), 22 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9

[Qemu-devel] [V2 22/25] [virtio-9p] coroutine and threading for mkdir

2011-05-17 Thread Venkateswararao Jujjuri (JV)
Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/codir.c | 19 +++ hw/9pfs/virtio-9p-coth.h |1 + hw/9pfs/virtio-9p.c | 28 ++-- 3 files changed, 26 insertions(+), 22 deletions(-) diff --git a/hw/9pfs/codir.c b/hw/9pfs/codir.c inde

[Qemu-devel] [V2 15/25] hw/9pfs: Add yield support to setattr related coroutines

2011-05-17 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V This include chmod, utimensat, chown and truncate. Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/cofs.c | 64 ++ hw/9pfs/virtio-9p-coth.h |4 +++ 2 files changed, 68 insert

[Qemu-devel] [V2 17/25] hw/9pfs: Add yield support to xattr related coroutine

2011-05-17 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V This include llistxattr and lgetxattr. Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri " --- Makefile.objs|1 + hw/9pfs/coxattr.c| 50 ++ hw/9pfs/virtio-9p-coth.h |3 ++ 3 fi

[Qemu-devel] [V2 06/25] [virtio-9p] coroutines for readlink

2011-05-17 Thread Venkateswararao Jujjuri (JV)
Signed-off-by: Venkateswararao Jujjuri " --- Makefile.objs|2 +- hw/9pfs/cofs.c | 42 ++ hw/9pfs/virtio-9p-coth.h |1 + hw/9pfs/virtio-9p.c | 27 --- hw/9pfs/virtio-9p.h |3 ++- 5 files

[Qemu-devel] [V2 16/25] hw/9pfs: Update v9fs_setattr to use coroutines

2011-05-17 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/virtio-9p.c | 163 +-- hw/9pfs/virtio-9p.h |8 --- 2 files changed, 54 insertions(+), 117 deletions(-) diff --git a/hw/9pfs/virtio-9p

[Qemu-devel] [V2 02/25] [virtio-9p] Change all pdu handlers to coroutines.

2011-05-17 Thread Venkateswararao Jujjuri (JV)
This patch changes the top level handlers to coroutines and sets the base. It will be followed up with series of patches to convert all filesystem calls to threaded coroutines pushing all blocking clals in VirtFS out of vcpu threads. Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/virtio-9p-

[Qemu-devel] [V2 07/25] [virtio-9p] Remove post functions for v9fs_mkdir.

2011-05-17 Thread Venkateswararao Jujjuri (JV)
Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/virtio-9p.c | 52 -- 1 files changed, 13 insertions(+), 39 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index 25831c3..82e5490 100644 --- a/hw/9pfs/virtio-9p.c +++ b/hw/9p

[Qemu-devel] [V2 11/25] hw/9pfs: Add yield support to statfs coroutine

2011-05-17 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/cofs.c | 14 ++ hw/9pfs/virtio-9p-coth.h |1 + 2 files changed, 15 insertions(+), 0 deletions(-) diff --git a/hw/9pfs/cofs.c b/hw/9pfs/cofs.c index 6d94673..f

[Qemu-devel] [V2 19/25] hw/9pfs: Update v9fs_xattrcreate to use coroutines

2011-05-17 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/virtio-9p.c | 53 +-- hw/9pfs/virtio-9p.h | 11 -- 2 files changed, 26 insertions(+), 38 deletions(-) diff --git a/hw/9pfs/vir

[Qemu-devel] [V2 18/25] hw/9pfs: Update v9fs_xattrwalk to coroutines

2011-05-17 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/virtio-9p.c | 198 --- 1 files changed, 63 insertions(+), 135 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index f

[Qemu-devel] [V2 08/25] [virtio-9p] clean up v9fs_mkdir.

2011-05-17 Thread Venkateswararao Jujjuri (JV)
Rearrange the code so that we can avoid V9fsMkState and additional malloc()s. Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/virtio-9p.c | 38 +- 1 files changed, 17 insertions(+), 21 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c

[Qemu-devel] [V2 13/25] hw/9pfs: Add yield support to lstat coroutine

2011-05-17 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri " --- Makefile.objs|2 +- hw/9pfs/cofile.c | 32 hw/9pfs/virtio-9p-coth.h |1 + 3 files changed, 34 insertions(+), 1 deletions(-) create

[Qemu-devel] [V2 10/25] hw/9pfs: Update v9fs_readdir to use coroutines

2011-05-17 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/virtio-9p.c | 170 +-- 1 files changed, 69 insertions(+), 101 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index 4

[Qemu-devel] [V2 0/25] Async threading for VirtFS using glib threads & coroutines.

2011-05-17 Thread Venkateswararao Jujjuri (JV)
VirtFS (fileserver base on 9P) performs many blocking system calls in the vCPU context. This effort is to move the blocking calls out of vCPU/IO thread context, into asynchronous threads. Anthony's " Add hard build dependency on glib" patch and Kevin/Stefan's coroutine effort is a prerequisite.

  1   2   3   >