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

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

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

[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

[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

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

[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][ 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][ 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][ 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][ 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][ 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][ 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][ 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][ 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][ 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][ 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][ 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][ 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][ 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][ 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][ 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][ 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][ 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][ 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][ 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][ 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][ 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][ 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] Unsubscription Confirmation

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

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 >

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

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

<    1   2   3