Re: [Qemu-devel] [PATCH][v7] megasas: LSI Megaraid SAS emulation

2011-07-19 Thread Hannes Reinecke
On 07/19/2011 06:08 PM, Christoph Hellwig wrote: I've mentioned this a few times before, but just to make sure it's not lost: This is a really bad idea for adding to qemu. It's not a controller that actually speaks a plain SCSI protocol to disks, but a RAID controller, that has it's own command

[Qemu-devel] [PATCH] virtio-9p: Fix syntax error in debug code

2011-07-19 Thread Stefan Weil
This error was reported by cppcheck: qemu/hw/9pfs/virtio-9p-debug.c:342: error: Invalid number of character ({) when these macros are defined: 'DEBUG_DATA'. Cc: Aneesh Kumar K.V Signed-off-by: Stefan Weil --- hw/9pfs/virtio-9p-debug.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-)

Re: [Qemu-devel] [RFC v4 00/58] Memory API

2011-07-19 Thread Sasha Levin
On Tue, 2011-07-19 at 21:53 -0500, Anthony Liguori wrote: > QEMU does use it and it's quite important. Coalesced MMIO is really > about write caching MMIO exits. It only works with devices that have > registers where writing has no side effects. Moreover, it only really > works well when ther

Re: [Qemu-devel] [PATCH 05/21] scsi: Add 'hba_private' to SCSIRequest

2011-07-19 Thread David Gibson
On Tue, Jul 19, 2011 at 11:20:22PM +1000, Benjamin Herrenschmidt wrote: > On Tue, 2011-07-19 at 07:43 -0500, Anthony Liguori wrote: > > > > This breaks the build: > > > > make[1]: Nothing to be done for `all'. > >CCppc64-softmmu/spapr_vscsi.o > > /home/anthony/git/qemu/hw/spapr_vscsi.c: I

[Qemu-devel] [RFC PATCH 1/2] Signals: fix race condition with aio-compat

2011-07-19 Thread Alexandre Raymond
There appears to be a race condition when SIGUSR2 is not handled synchronously by the signalfd thread. This caused random freezes/segfaults under OS X. This fix also appears to fix most of the I/O errors that occur when the io-thread is enabled on OS X. Signed-off-by: Alexandre Raymond --- cpu

[Qemu-devel] [RFC PATCH 2/2] Signals: rework initial signal setup

2011-07-19 Thread Alexandre Raymond
-Restructure the signal setup by creating two groups: * blocked_set, which contains signals that are ignored by QEMU or caught directly by a specific thread (e.g.: SIG_IPI). * handled_set, which contains signals handled synchronously via signalfd. Signed-off-by: Alexandre Raym

[Qemu-devel] [RFC PATCH 0/2] Signal fixes for OSX

2011-07-19 Thread Alexandre Raymond
This series fixes a race condition that occurs under OS X. It also reworks the signal initialization to make it simpler for later maintenance/additions. Note that although it _appears_ to fix this race condition, I have not been able to pinpoint exactly how it is triggered. Does anyone know if t

[Qemu-devel] [RFC 3/4] A separate thread for the VM migration

2011-07-19 Thread Umesh Deshpande
This patch creates a separate thread for the guest migration on the source side. The migration routine is called from the migration clock. Signed-off-by: Umesh Deshpande --- arch_init.c |8 +++ buffered_file.c | 10 - migration-tcp.c | 18 - migration-

[Qemu-devel] [RFC 4/4] A separate thread for the VM migration

2011-07-19 Thread Umesh Deshpande
This patch creates a separate thread for the guest migration on the target side. Signed-off-by: Umesh Deshpande --- migration-exec.c |7 +++ migration-fd.c |4 ++-- migration-tcp.c |9 + migration-unix.c | 10 ++ migration.c | 32 +

[Qemu-devel] [RFC 2/4] A separate thread for the VM migration

2011-07-19 Thread Umesh Deshpande
This patch implements a migration clock, whose implementation is similar to the existing rt_clock. This allows the migration timer to run in parallel to other timers in the rt_clock. In the next patch, this clock is used to create a new timer from the migration thread that calls the VM migration

[Qemu-devel] [RFC 1/4] A separate thread for the VM migration

2011-07-19 Thread Umesh Deshpande
This patch creates a migration bitmap, which is periodically kept in sync with the qemu bitmap. This allows us to have a separate thread for VM migration. A separate copy of the dirty bitmap for the migration avoids concurrent access to the qemu bitmap from iohandlers and migration thread. Sign

[Qemu-devel] [PATCH] Makefile: Minor cscope fixups

2011-07-19 Thread Alexandre Raymond
-Create cscope symbols for assembly files in addition to .c/.h files. -Create cscope database with full path instead of relative path so cscope can be used with CSCOPE_DB in any directory. Signed-off-by: Alexandre Raymond --- Makefile |2 +- 1 files changed, 1 insertions(+), 1 deletions(-)

Re: [Qemu-devel] [RFC v4 00/58] Memory API

2011-07-19 Thread Anthony Liguori
On 07/19/2011 04:03 PM, Sasha Levin wrote: On Tue, Jul 19, 2011 at 11:51 PM, Anthony Liguori wrote: The e1000 is not performance competitive with virtio-net though so it certainly is reasonable to assume that noone would notice if we removed coalesced I/O from the e1000. The point is, it's so

Re: [Qemu-devel] [PATCH] Remove debugging messages.

2011-07-19 Thread Anthony Liguori
On 07/19/2011 03:59 PM, Richard W.M. Jones wrote: On Tue, Jul 19, 2011 at 03:04:22PM -0500, Anthony Liguori wrote: On 07/19/2011 02:23 PM, Richard W.M. Jones wrote: From: "Richard W.M. Jones" When using qemu -machine accel=kvm:tcg, if KVM is not available you get a load of debugging output:

[Qemu-devel] [PATCH] pci: Length-align config space accesses

2011-07-19 Thread Jan Kiszka
From: Jan Kiszka Introduce pci_config_read/write helpers to split up config space accesses that are not length-aligned. This particularly avoids that each and every device needs to check for config space overruns. Also move the access length assertion to the new helpers. Signed-off-by: Jan Kiszk

Re: [Qemu-devel] [PATCH] do not call monitor_resume() from migrate_fd_put_buffer() error path

2011-07-19 Thread Jan Kiszka
On 2011-07-19 13:46, Michael Tokarev wrote: > If we do, it results in double monitor_resume() (second being called > from migrate_fd_cleanup() anyway) and monitor suspend count becoming > negative. > > Cc'ing people from `git blame' list for the lines in question: the > change fixes the problem bu

Re: [Qemu-devel] [RFC v4 00/58] Memory API

2011-07-19 Thread Sasha Levin
On Tue, Jul 19, 2011 at 11:51 PM, Anthony Liguori wrote: > On 07/19/2011 11:10 AM, Avi Kivity wrote: >> >> On 07/19/2011 07:05 PM, Avi Kivity wrote: >>> >>> On 07/19/2011 05:50 PM, Anthony Liguori wrote: >> >> There's bits I don't like about the interface > > Which bits are th

Re: [Qemu-devel] [PATCH] Remove debugging messages.

2011-07-19 Thread Richard W.M. Jones
On Tue, Jul 19, 2011 at 03:04:22PM -0500, Anthony Liguori wrote: > On 07/19/2011 02:23 PM, Richard W.M. Jones wrote: > >From: "Richard W.M. Jones" > > > >When using qemu -machine accel=kvm:tcg, if KVM is not available you > >get a load of debugging output: > > > > Could not access KVM kernel modu

[Qemu-devel] [PATCH v8 4/4] guest agent: add guest agent RPCs/commands

2011-07-19 Thread Michael Roth
This adds the initial set of QMP/QAPI commands provided by the guest agent: guest-sync guest-ping guest-info guest-shutdown guest-file-open guest-file-read guest-file-write guest-file-seek guest-file-flush guest-file-close guest-fsfreeze-freeze guest-fsfreeze-thaw guest-fsfreeze-status The input/

Re: [Qemu-devel] [PATCH] Remove debugging messages.

2011-07-19 Thread Richard W.M. Jones
On Tue, Jul 19, 2011 at 11:49:22PM +0400, Michael Tokarev wrote: > 19.07.2011 23:23, Richard W.M. Jones wrote: > > From: "Richard W.M. Jones" > > > > When using qemu -machine accel=kvm:tcg, if KVM is not available you > > get a load of debugging output: > > > > Could not access KVM kernel modu

[Qemu-devel] [PATCH v8 3/4] guest agent: qemu-ga daemon

2011-07-19 Thread Michael Roth
This is the actual guest daemon, it listens for requests over a virtio-serial/isa-serial/unix socket channel and routes them through to dispatch routines, and writes the results back to the channel in a manner similar to QMP. A shorthand invocation: qemu-ga -d Is equivalent to: qemu-ga -m v

[Qemu-devel] [PATCH v8 2/4] guest agent: command state class

2011-07-19 Thread Michael Roth
Signed-off-by: Michael Roth --- Makefile|4 ++- configure |1 + qga/guest-agent-command-state.c | 73 +++ qga/guest-agent-core.h | 25 + 4 files changed, 102 insertions(+), 1 deleti

Re: [Qemu-devel] [PATCH] Remove debugging messages.

2011-07-19 Thread Anthony Liguori
On 07/19/2011 02:23 PM, Richard W.M. Jones wrote: From: "Richard W.M. Jones" When using qemu -machine accel=kvm:tcg, if KVM is not available you get a load of debugging output: Could not access KVM kernel module: No such file or directory failed to initialize KVM: No such file or director

[Qemu-devel] [QAPI+QGA 3/3] QEMU Guest Agent (virtagent) v8

2011-07-19 Thread Michael Roth
This is Set 3/3 of the QAPI+QGA patchsets. These patches apply on top of qapi-backport-set2-v7, and can also be obtained from: git://repo.or.cz/qemu/mdroth.git qapi-backport-set3-v8 (Set1+2 are a backport of some of the QAPI-related work from Anthony's glib tree. The main goal is to get the basi

[Qemu-devel] [PATCH v7 16/18] qapi: add test-visitor, tests for gen. visitor code

2011-07-19 Thread Michael Roth
Signed-off-by: Michael Roth --- Makefile | 19 +++- test-visitor.c | 306 2 files changed, 323 insertions(+), 2 deletions(-) create mode 100644 test-visitor.c diff --git a/Makefile b/Makefile index 42ae4e5..5d2cf5b 100644 --- a/

Re: [Qemu-devel] [RFC v4 00/58] Memory API

2011-07-19 Thread Anthony Liguori
On 07/19/2011 11:10 AM, Avi Kivity wrote: On 07/19/2011 07:05 PM, Avi Kivity wrote: On 07/19/2011 05:50 PM, Anthony Liguori wrote: There's bits I don't like about the interface Which bits are these? Nothing I haven't already commented on. I think there's too much in the generic level. I

[Qemu-devel] [PATCH v7 02/18] qlist: add qlist_first()/qlist_next()

2011-07-19 Thread Michael Roth
Signed-off-by: Michael Roth --- qlist.h | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/qlist.h b/qlist.h index dbe7b92..d426bd4 100644 --- a/qlist.h +++ b/qlist.h @@ -16,6 +16,7 @@ #include "qobject.h" #include "qemu-queue.h" #include "qemu-common.h" +#inc

[Qemu-devel] [PATCH v8 1/4] qerror: add QERR_JSON_PARSE_ERROR to qerror.c

2011-07-19 Thread Michael Roth
Missing from previous addition of error to qerror.h. Needed for qerror_format() and friends. Signed-off-by: Michael Roth --- qerror.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/qerror.c b/qerror.c index d7fcd93..c92adfc 100644 --- a/qerror.c +++ b/qerror.c @@ -1

[Qemu-devel] [PATCH v7 12/18] qapi: add qapi-types.py code generator

2011-07-19 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 v7 18/18] qapi: add QAPI code generation documentation

2011-07-19 Thread Michael Roth
Signed-off-by: Michael Roth --- docs/qapi-code-gen.txt | 316 1 files changed, 316 insertions(+), 0 deletions(-) create mode 100644 docs/qapi-code-gen.txt diff --git a/docs/qapi-code-gen.txt b/docs/qapi-code-gen.txt new file mode 100644 index 0

[Qemu-devel] [PATCH v7 10/18] qapi: add ordereddict.py helper library

2011-07-19 Thread Michael Roth
We need this to parse dictionaries with schema ordering intact so that C prototypes can be generated deterministically. Signed-off-by: Michael Roth --- scripts/ordereddict.py | 128 1 files changed, 128 insertions(+), 0 deletions(-) create mode

[Qemu-devel] [PATCH v7 17/18] qapi: add test-qmp-commands, tests for gen. marshalling/dispatch code

2011-07-19 Thread Michael Roth
Signed-off-by: Michael Roth --- Makefile|8 +++- test-qmp-commands.c | 113 +++ 2 files changed, 120 insertions(+), 1 deletions(-) create mode 100644 test-qmp-commands.c diff --git a/Makefile b/Makefile index 5d2cf5b..d7c8567 100

[Qemu-devel] [PATCH v7 14/18] qapi: add qapi-commands.py code generator

2011-07-19 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 v7 13/18] qapi: add qapi-visit.py code generator

2011-07-19 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-visit.c: visiter function for a particular c type, used to automagically convert qobjects into the

[Qemu-devel] [PATCH v7 08/18] qapi: add QMP command registration/lookup functions

2011-07-19 Thread Michael Roth
Registration/lookup functions for that provide a lookup table for dispatching QMP commands. Signed-off-by: Michael Roth --- Makefile.objs |1 + qapi/qmp-core.h | 40 qapi/qmp-registry.c | 40 3 fi

[Qemu-devel] [PATCH v7 15/18] qapi: test schema used for unit tests

2011-07-19 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 | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) create mod

[Qemu-devel] [PATCH v7 07/18] qapi: add QAPI dealloc visitor

2011-07-19 Thread Michael Roth
Type of Visitor class that can be passed into a qapi-generated C type's visitor function to free() any heap-allocated data types. Signed-off-by: Michael Roth --- Makefile.objs |2 +- qapi/qapi-dealloc-visitor.c | 147 +++ qapi/qapi-deall

[Qemu-devel] [PATCH v7 11/18] qapi: add qapi.py helper libraries

2011-07-19 Thread Michael Roth
Signed-off-by: Michael Roth --- scripts/qapi.py | 203 +++ 1 files changed, 203 insertions(+), 0 deletions(-) create mode 100644 scripts/qapi.py diff --git a/scripts/qapi.py b/scripts/qapi.py new file mode 100644 index 000..56af232 --- /

[Qemu-devel] [PATCH v7 05/18] qapi: add QMP input visitor

2011-07-19 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 v7 09/18] qapi: add QMP dispatch functions

2011-07-19 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 v7 06/18] qapi: add QMP output visitor

2011-07-19 Thread Michael Roth
Type of Visiter class that serves as the inverse of the input visitor: 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 v7 04/18] qapi: add QAPI visitor core

2011-07-19 Thread Michael Roth
Base definitions/includes for Visiter interface used by generated visiter/marshalling code. Includes a GenericList type. Our lists require an embedded element. Since these types are generated, if you want to use them in a different type of data structure, there's no easy way to add another embedde

[Qemu-devel] [PATCH v7 01/18] Add hard build dependency on glib

2011-07-19 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] [QAPI+QGA 2/3] QAPI code generation infrastructure v7

2011-07-19 Thread Michael Roth
This is Set 2/3 of the QAPI+QGA patchsets. These patches apply on top of master (set1 merged), and can also be obtained from: git://repo.or.cz/qemu/mdroth.git qapi-backport-set2-v7 (Set1+2 are a backport of some of the QAPI-related work from Anthony's glib tree. The main goal is to get the basic

[Qemu-devel] [PATCH v7 03/18] qapi: add module init types for qapi

2011-07-19 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_

Re: [Qemu-devel] [PATCH] Remove debugging messages.

2011-07-19 Thread Michael Tokarev
19.07.2011 23:23, Richard W.M. Jones wrote: > From: "Richard W.M. Jones" > > When using qemu -machine accel=kvm:tcg, if KVM is not available you > get a load of debugging output: > > Could not access KVM kernel module: No such file or directory > failed to initialize KVM: No such file or dir

Re: [Qemu-devel] [PATCH] Remove debugging messages.

2011-07-19 Thread Jan Kiszka
On 2011-07-19 21:23, Richard W.M. Jones wrote: > From: "Richard W.M. Jones" > > When using qemu -machine accel=kvm:tcg, if KVM is not available you > get a load of debugging output: > > Could not access KVM kernel module: No such file or directory > failed to initialize KVM: No such file or

[Qemu-devel] [PATCH] Remove debugging messages.

2011-07-19 Thread Richard W.M. Jones
From: "Richard W.M. Jones" When using qemu -machine accel=kvm:tcg, if KVM is not available you get a load of debugging output: Could not access KVM kernel module: No such file or directory failed to initialize KVM: No such file or directory Back to tcg accelerator. Signed-off-by: Richard

[Qemu-devel] [PATCH 1/1] Remove debugging messages.

2011-07-19 Thread Richard W.M. Jones
qemu probably needs some sort of --verbose or --debug option for when you really want to see everything that's going on. In the meantime, this patch removes some debugging messages when KVM is not available. Rich.

Re: [Qemu-devel] qemu FreeBSD/sparc64 host - a bit of debugging

2011-07-19 Thread Juergen Lock
On Mon, Jul 18, 2011 at 10:58:58PM -0400, Super Bisquit wrote: > On Mon, Jul 18, 2011 at 2:22 PM, Juergen Lock wrote: > > > Hi! > > > > I'm the FreeBSD qemu port maintainer and don't have a sparc64 box > > myself, but Jashank Jeremy (Cc'd) now was so kind to test qemu 0.14.1 > > on a FreeBSD/spar

Re: [Qemu-devel] [PATCH 0/2] netdev fixes

2011-07-19 Thread Jan Kiszka
On 2011-07-19 14:10, Michael S. Tsirkin wrote: > On Thu, Jun 16, 2011 at 06:45:35PM +0200, Markus Armbruster wrote: >> Markus Armbruster (2): >> Fix automatically assigned network names for netdev >> Fix netdev name lookup in -device, device_add, netdev_del >> >> net.c | 19 +++--

Re: [Qemu-devel] Updated 0.15 release schedule

2011-07-19 Thread Jan Kiszka
On 2011-07-19 16:20, Anthony Liguori wrote: > Here's my proposal for an updated 0.15 schedule. Please not that > stable-0.15 will fork off this Friday. > > | 2011-02-01 > | Begin of 0.15 development phase > |- > | 2011-05-16 > | Soft feature freeze. Major features should have initial code > comm

Re: [Qemu-devel] [RFC v4 00/58] Memory API

2011-07-19 Thread Avi Kivity
On 07/19/2011 08:01 PM, Jan Kiszka wrote: On 2011-07-19 15:56, Michael S. Tsirkin wrote: > On Sun, Jul 17, 2011 at 02:13:27PM +0300, Avi Kivity wrote: >> New in this version: >>MemoryRegionOps gained .old_mmio and .old_portio members, which allow >>reusing old-style callbacks with the n

Re: [Qemu-devel] [RFC v4 00/58] Memory API

2011-07-19 Thread Jan Kiszka
On 2011-07-19 19:14, Avi Kivity wrote: > On 07/19/2011 08:01 PM, Jan Kiszka wrote: >> On 2011-07-19 15:56, Michael S. Tsirkin wrote: >>> On Sun, Jul 17, 2011 at 02:13:27PM +0300, Avi Kivity wrote: New in this version: MemoryRegionOps gained .old_mmio and .old_portio members, which al

Re: [Qemu-devel] [RFC v4 00/58] Memory API

2011-07-19 Thread Jan Kiszka
On 2011-07-19 15:56, Michael S. Tsirkin wrote: > On Sun, Jul 17, 2011 at 02:13:27PM +0300, Avi Kivity wrote: >> New in this version: >> MemoryRegionOps gained .old_mmio and .old_portio members, which allow >> reusing old-style callbacks with the new API. All uses were converted, >> except fo

Re: [Qemu-devel] [PATCH][v7] megasas: LSI Megaraid SAS emulation

2011-07-19 Thread Alexander Graf
On 19.07.2011, at 18:08, Christoph Hellwig wrote: > I've mentioned this a few times before, but just to make sure it's not > lost: > > This is a really bad idea for adding to qemu. It's not a controller that > actually speaks a plain SCSI protocol to disks, but a RAID controller, that > has it'

Re: [Qemu-devel] live snapshot wiki updated

2011-07-19 Thread Daniel P. Berrange
On Tue, Jul 19, 2011 at 04:30:19PM +0200, Jes Sorensen wrote: > On 07/19/11 16:24, Eric Blake wrote: > > [adding the libvir-list] > > On 07/19/2011 08:09 AM, Jes Sorensen wrote: > >> Urgh, libvirt parsing image files is really unfortunate, it really > >> doesn't give me warm fuzzy feelings :( libvi

Re: [Qemu-devel] live snapshot wiki updated

2011-07-19 Thread Daniel P. Berrange
On Tue, Jul 19, 2011 at 04:14:27PM +0100, Stefan Hajnoczi wrote: > On Tue, Jul 19, 2011 at 3:30 PM, Jes Sorensen wrote: > > On 07/19/11 16:24, Eric Blake wrote: > >> [adding the libvir-list] > >> On 07/19/2011 08:09 AM, Jes Sorensen wrote: > >>> Urgh, libvirt parsing image files is really unfortun

Re: [Qemu-devel] [PATCH][v7] megasas: LSI Megaraid SAS emulation

2011-07-19 Thread Christoph Hellwig
I've mentioned this a few times before, but just to make sure it's not lost: This is a really bad idea for adding to qemu. It's not a controller that actually speaks a plain SCSI protocol to disks, but a RAID controller, that has it's own command set for data plan operation, and minimal support f

Re: [Qemu-devel] [RFC v4 00/58] Memory API

2011-07-19 Thread Avi Kivity
On 07/19/2011 07:05 PM, Avi Kivity wrote: On 07/19/2011 05:50 PM, Anthony Liguori wrote: There's bits I don't like about the interface Which bits are these? Nothing I haven't already commented on. I think there's too much in the generic level. I don't think coalesced I/O belongs here.

Re: [Qemu-devel] [PATCH 3/3] qemu-x86: Set tsc_khz in kvm when supported

2011-07-19 Thread Jan Kiszka
On 2011-07-19 13:48, Marcelo Tosatti wrote: > On Thu, Jul 07, 2011 at 04:13:13PM +0200, Joerg Roedel wrote: >> Make use of the KVM_TSC_CONTROL feature if available. >> >> Signed-off-by: Joerg Roedel >> --- >> target-i386/kvm.c | 18 +- >> 1 files changed, 17 insertions(+), 1 del

Re: [Qemu-devel] [RFC v4 00/58] Memory API

2011-07-19 Thread Avi Kivity
On 07/19/2011 05:50 PM, Anthony Liguori wrote: There's bits I don't like about the interface Which bits are these? Nothing I haven't already commented on. I think there's too much in the generic level. I don't think coalesced I/O belongs here. It's a concept that doesn't fit. I think

Re: [Qemu-devel] [PULL] spice patch queue

2011-07-19 Thread Anthony Liguori
On 07/04/2011 10:14 AM, Gerd Hoffmann wrote: Hi, Here is the spice patch queue with a bunch of small fixes and improvements collected over time. No major changes. please pull, Gerd Pulled. Thanks. Regards, Anthony Liguori Alon Levy (5): qxl: set mm_time in vga update qxl: i

Re: [Qemu-devel] [PULL] usb patch queue

2011-07-19 Thread Anthony Liguori
On 07/08/2011 04:50 AM, Gerd Hoffmann wrote: Hi, Here is the current usb patch queue. Most noteworthy is the usb companion controller support added. There are also a bunch of bug fixes, some from Hans which he found while doing the companion controller work and some have been found in patch

Re: [Qemu-devel] live snapshot wiki updated

2011-07-19 Thread Anthony Liguori
On 07/19/2011 09:30 AM, Jes Sorensen wrote: On 07/19/11 16:24, Eric Blake wrote: [adding the libvir-list] On 07/19/2011 08:09 AM, Jes Sorensen wrote: Urgh, libvirt parsing image files is really unfortunate, it really doesn't give me warm fuzzy feelings :( libvirt really should not know about in

Re: [Qemu-devel] [PULL] virtio-serial: trace events, trivial fix

2011-07-19 Thread Anthony Liguori
On 07/07/2011 08:13 AM, Amit Shah wrote: Hello, This series adds some trace events to virtio-serial-bus.c and virtio-console.c. There's also one trivial patch to remove a trailing \n from an error_report() string. Note: some mirrors may not yet have received the update. Pulled. Thanks. Reg

Re: [Qemu-devel] [PATCH 0/3][uq/master] Basic TSC-Scaling support v2

2011-07-19 Thread Marcelo Tosatti
On Thu, Jul 07, 2011 at 04:13:10PM +0200, Joerg Roedel wrote: > Hi Avi, Marcelo, > > here is v2 of the patches to support setting the guests tsc-frequency > from the qemu command line. This version addresses the comment from Avi > on the first version. To reflect that units can be given to the > f

Re: [Qemu-devel] [PULL] pci, vhost

2011-07-19 Thread Anthony Liguori
On 07/04/2011 12:01 PM, Michael S. Tsirkin wrote: The following changes since commit 1dfdcaa83f9ce34aded8bc0669e81753d94f1b7d: user: Fix -d debug logging for usermode emulation (2011-06-28 20:57:09 +0200) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/gi

Re: [Qemu-devel] [PATCH 2/3] qemu-x86: Add tsc_freq option to -cpu

2011-07-19 Thread Avi Kivity
On 07/19/2011 05:14 PM, Joerg Roedel wrote: On Tue, Jul 19, 2011 at 04:55:53PM +0300, Avi Kivity wrote: > On 07/19/2011 04:54 PM, Avi Kivity wrote: >> On 07/19/2011 04:30 PM, Joerg Roedel wrote: >>> Hmm, I planned to do the VMSTATE thing in a follow-on patch-set. The >>> plan is to read the

Re: [Qemu-devel] [PULL 00/12] Xen patch queue 2011-07-05

2011-07-19 Thread Anthony Liguori
On 07/05/2011 11:51 AM, Alexander Graf wrote: Hi Anthony, This is my current patch queue for Xen stuff that accumulated over the past few weeks. Please pull. Pulled. Thanks. Regards, Anthony Liguori Alex The following changes since commit 9312805d33e8b106bae356d13a8071fb37d75554: Va

[Qemu-devel] [RFC] QEMU Object Model

2011-07-19 Thread Anthony Liguori
Hi, I've started an effort to introduce a consistent object model to QEMU. Today, every subsystem implements an ad-hoc object model. These object models all have the same basic properties but do things in arbitrarily different ways: 1) Factory interface for object creation - Objects usuall

Re: [Qemu-devel] live snapshot wiki updated

2011-07-19 Thread Stefan Hajnoczi
On Tue, Jul 19, 2011 at 3:30 PM, Jes Sorensen wrote: > On 07/19/11 16:24, Eric Blake wrote: >> [adding the libvir-list] >> On 07/19/2011 08:09 AM, Jes Sorensen wrote: >>> Urgh, libvirt parsing image files is really unfortunate, it really >>> doesn't give me warm fuzzy feelings :( libvirt really sh

Re: [Qemu-devel] [RFC v4 00/58] Memory API

2011-07-19 Thread Anthony Liguori
On 07/19/2011 08:27 AM, Avi Kivity wrote: On 07/19/2011 04:09 PM, Anthony Liguori wrote: On 07/17/2011 06:13 AM, Avi Kivity wrote: New in this version: MemoryRegionOps gained .old_mmio and .old_portio members, which allow reusing old-style callbacks with the new API. All uses were converted, ex

Re: [Qemu-devel] External COW format for raw images

2011-07-19 Thread Frediano Ziglio
2011/7/19 Robert Wang : > As you known, raw image is very popular,but the raw image format does > NOT support Copy-On-Write,a raw image file can NOT be used as a copy > destination, then image streaming/Live Block Copy will NOT work. > > To fix this, we need to add a new block driver raw-cow to QEM

Re: [Qemu-devel] live snapshot wiki updated

2011-07-19 Thread Eric Blake
[adding the libvir-list] On 07/19/2011 08:09 AM, Jes Sorensen wrote: On 07/19/11 15:58, Eric Blake wrote: On 07/19/2011 07:27 AM, Jes Sorensen wrote: Eric, what happens if libvirt in an selinux environment tells QEMU to launch using an image file that is backed by backing file(s)? Before sta

Re: [Qemu-devel] [PATCH 2/3] qemu-x86: Add tsc_freq option to -cpu

2011-07-19 Thread Joerg Roedel
On Tue, Jul 19, 2011 at 04:55:53PM +0300, Avi Kivity wrote: > On 07/19/2011 04:54 PM, Avi Kivity wrote: >> On 07/19/2011 04:30 PM, Joerg Roedel wrote: >>> Hmm, I planned to do the VMSTATE thing in a follow-on patch-set. The >>> plan is to read the VCPU tsc_freq at guest start time on !tsc-scale >>

[Qemu-devel] Updated 0.15 release schedule

2011-07-19 Thread Anthony Liguori
Here's my proposal for an updated 0.15 schedule. Please not that stable-0.15 will fork off this Friday. | 2011-02-01 | Begin of 0.15 development phase |- | 2011-05-16 | Soft feature freeze. Major features should have initial code committed by this date. |- | 2011-06-15; Now 2011-07-22 | Fork

Re: [Qemu-devel] live snapshot wiki updated

2011-07-19 Thread Jes Sorensen
On 07/19/11 16:24, Eric Blake wrote: > [adding the libvir-list] > On 07/19/2011 08:09 AM, Jes Sorensen wrote: >> Urgh, libvirt parsing image files is really unfortunate, it really >> doesn't give me warm fuzzy feelings :( libvirt really should not know >> about internals of image formats. > > But

Re: [Qemu-devel] [RFC v4 00/58] Memory API

2011-07-19 Thread Michael S. Tsirkin
On Sun, Jul 17, 2011 at 02:13:27PM +0300, Avi Kivity wrote: > New in this version: > MemoryRegionOps gained .old_mmio and .old_portio members, which allow > reusing old-style callbacks with the new API. All uses were converted, > except for eepro100.c, which uses the same MemoryRegionOps for

Re: [Qemu-devel] [RFC v4 00/58] Memory API

2011-07-19 Thread Avi Kivity
On 07/19/2011 04:56 PM, Michael S. Tsirkin wrote: On Sun, Jul 17, 2011 at 02:13:27PM +0300, Avi Kivity wrote: > New in this version: >MemoryRegionOps gained .old_mmio and .old_portio members, which allow >reusing old-style callbacks with the new API. All uses were converted, >except

Re: [Qemu-devel] [PATCH 2/3] qemu-x86: Add tsc_freq option to -cpu

2011-07-19 Thread Avi Kivity
On 07/19/2011 04:54 PM, Avi Kivity wrote: On 07/19/2011 04:30 PM, Joerg Roedel wrote: > > (although we've been talking about starting a naked qemu and pushing all > of the configuration from the source). Hmm, I planned to do the VMSTATE thing in a follow-on patch-set. The plan is to read th

Re: [Qemu-devel] live snapshot wiki updated

2011-07-19 Thread Jes Sorensen
On 07/19/11 15:58, Eric Blake wrote: > On 07/19/2011 07:27 AM, Jes Sorensen wrote: >> Eric, what happens if libvirt in an selinux environment tells QEMU to >> launch using an image file that is backed by backing file(s)? > > Before starting qemu, libvirt first parses all the image files, to see >

Re: [Qemu-devel] [PATCH 2/3] qemu-x86: Add tsc_freq option to -cpu

2011-07-19 Thread Avi Kivity
On 07/19/2011 04:30 PM, Joerg Roedel wrote: > > (although we've been talking about starting a naked qemu and pushing all > of the configuration from the source). Hmm, I planned to do the VMSTATE thing in a follow-on patch-set. The plan is to read the VCPU tsc_freq at guest start time on !tsc-s

Re: [Qemu-devel] live snapshot wiki updated

2011-07-19 Thread Eric Blake
On 07/19/2011 07:27 AM, Jes Sorensen wrote: On 07/19/11 15:23, Stefan Hajnoczi wrote: On Tue, Jul 19, 2011 at 8:24 AM, Jes Sorensen wrote: On 07/18/11 16:08, Stefan Hajnoczi wrote: On Fri, Jul 15, 2011 at 3:58 PM, Jes Sorensen wrote: I have been updating the live snapshot wiki for qemu to t

Re: [Qemu-devel] [PATCH V3] e1000: Handle IO Port.

2011-07-19 Thread Juan Quintela
Anthony PERARD wrote: > This patch introduces the two IOPorts on e1000, IOADDR and IODATA. The > IOADDR is used to specify which register we want to access when we read > or write on IODATA. > > This patch fixes some weird behavior that I see when I use e1000 with > QEMU/Xen, the guest memory can

Re: [Qemu-devel] [PATCH 05/21] scsi: Add 'hba_private' to SCSIRequest

2011-07-19 Thread Kevin Wolf
Am 19.07.2011 15:26, schrieb Hannes Reinecke: > On 07/19/2011 03:06 PM, Kevin Wolf wrote: >> Am 19.07.2011 14:43, schrieb Anthony Liguori: >>> On 07/19/2011 05:15 AM, Kevin Wolf wrote: From: Hannes Reinecke 'tag' is just an abstraction to identify the command from the driver. So

Re: [Qemu-devel] [PATCH 2/3] qemu-x86: Add tsc_freq option to -cpu

2011-07-19 Thread Joerg Roedel
On Tue, Jul 19, 2011 at 03:20:37PM +0300, Avi Kivity wrote: > On 07/19/2011 02:46 PM, Marcelo Tosatti wrote: >> On Thu, Jul 07, 2011 at 04:13:12PM +0200, Joerg Roedel wrote: >> > To let the user configure the desired tsc frequency for the >> > guest if running in KVM. >> > >> > Signed-off-by: Jo

Re: [Qemu-devel] [RFC v4 00/58] Memory API

2011-07-19 Thread Avi Kivity
On 07/19/2011 04:09 PM, Anthony Liguori wrote: On 07/17/2011 06:13 AM, Avi Kivity wrote: New in this version: MemoryRegionOps gained .old_mmio and .old_portio members, which allow reusing old-style callbacks with the new API. All uses were converted, except for eepro100.c, which uses

Re: [Qemu-devel] External COW format for raw images

2011-07-19 Thread Anthony Liguori
On 07/19/2011 04:25 AM, Robert Wang wrote: > As you known, raw image is very popular,but the raw image format does > NOT support Copy-On-Write,a raw image file can NOT be used as a copy > destination, then image streaming/Live Block Copy will NOT work. > > To fix this, we need to add a new block d

Re: [Qemu-devel] live snapshot wiki updated

2011-07-19 Thread Jes Sorensen
On 07/19/11 15:23, Stefan Hajnoczi wrote: > On Tue, Jul 19, 2011 at 8:24 AM, Jes Sorensen wrote: >> On 07/18/11 16:08, Stefan Hajnoczi wrote: >>> On Fri, Jul 15, 2011 at 3:58 PM, Jes Sorensen >>> wrote: I have been updating the live snapshot wiki for qemu to try and cover the commands

Re: [Qemu-devel] [PATCH 05/21] scsi: Add 'hba_private' to SCSIRequest

2011-07-19 Thread Benjamin Herrenschmidt
On Tue, 2011-07-19 at 07:43 -0500, Anthony Liguori wrote: > > This breaks the build: > > make[1]: Nothing to be done for `all'. >CCppc64-softmmu/spapr_vscsi.o > /home/anthony/git/qemu/hw/spapr_vscsi.c: In function > ‘vscsi_command_complete’: > /home/anthony/git/qemu/hw/spapr_vscsi.c:535:

Re: [Qemu-devel] live snapshot wiki updated

2011-07-19 Thread Stefan Hajnoczi
On Tue, Jul 19, 2011 at 8:24 AM, Jes Sorensen wrote: > On 07/18/11 16:08, Stefan Hajnoczi wrote: >> On Fri, Jul 15, 2011 at 3:58 PM, Jes Sorensen >> wrote: >>> I have been updating the live snapshot wiki for qemu to try and cover >>> the commands we will want for async snapshot handling too. >>>

Re: [Qemu-devel] [PATCH 05/21] scsi: Add 'hba_private' to SCSIRequest

2011-07-19 Thread Hannes Reinecke
On 07/19/2011 03:06 PM, Kevin Wolf wrote: Am 19.07.2011 14:43, schrieb Anthony Liguori: On 07/19/2011 05:15 AM, Kevin Wolf wrote: From: Hannes Reinecke 'tag' is just an abstraction to identify the command from the driver. So we should make that explicit by replacing 'tag' with a driver-defined

Re: [Qemu-devel] coroutines and block I/O considerations

2011-07-19 Thread Anthony Liguori
On 07/19/2011 05:10 AM, Kevin Wolf wrote: Am 19.07.2011 10:06, schrieb Frediano Ziglio: They are still all running in the same thread. 2- memory considerations on coroutines. Beside coroutines allow more readable code I wonder if somebody considered memory. For every coroutines a different stac

Re: [Qemu-devel] [PATCH 05/21] scsi: Add 'hba_private' to SCSIRequest

2011-07-19 Thread Benjamin Herrenschmidt
On Tue, 2011-07-19 at 15:06 +0200, Kevin Wolf wrote: > Am 19.07.2011 14:43, schrieb Anthony Liguori: > > On 07/19/2011 05:15 AM, Kevin Wolf wrote: > >> From: Hannes Reinecke > >> > >> 'tag' is just an abstraction to identify the command > >> from the driver. So we should make that explicit by > >>

Re: [Qemu-devel] [PULL] pci, virtio, vhost, xen

2011-07-19 Thread Anthony Liguori
On 07/17/2011 11:29 AM, Michael S. Tsirkin wrote: The following changes since commit 89b9ba661bd2d6155308f895ec075d813f0e129b: Fix signal handling of SIG_IPI when io-thread is enabled (2011-07-16 19:43:00 +) are available in the git repository at: git://git.kernel.org/pub/scm/linux/k

Re: [Qemu-devel] [RFC v4 00/58] Memory API

2011-07-19 Thread Anthony Liguori
On 07/17/2011 06:13 AM, Avi Kivity wrote: New in this version: MemoryRegionOps gained .old_mmio and .old_portio members, which allow reusing old-style callbacks with the new API. All uses were converted, except for eepro100.c, which uses the same MemoryRegionOps for both portio and m

Re: [Qemu-devel] [PULL] virtio-serial: Fixes, trace points

2011-07-19 Thread Anthony Liguori
On 07/19/2011 03:00 AM, Amit Shah wrote: Hi Anthony, Please pull for trace points for virtio-serial/console code and a fix for a host process closing chardev connection causing an abort(). The following changes since commit 89b9ba661bd2d6155308f895ec075d813f0e129b: Fix signal handling of SI

Re: [Qemu-devel] [PULL] v2: pending linux-user patches

2011-07-19 Thread Anthony Liguori
On 07/18/2011 02:37 AM, Riku Voipio wrote: The following changes since commit 89b9ba661bd2d6155308f895ec075d813f0e129b: Fix signal handling of SIG_IPI when io-thread is enabled (2011-07-16 19:43:00 +) Pulled. Thanks. Regards, Anthony Liguori are available in the git repository at

Re: [Qemu-devel] [PATCH 05/21] scsi: Add 'hba_private' to SCSIRequest

2011-07-19 Thread Kevin Wolf
Am 19.07.2011 14:43, schrieb Anthony Liguori: > On 07/19/2011 05:15 AM, Kevin Wolf wrote: >> From: Hannes Reinecke >> >> 'tag' is just an abstraction to identify the command >> from the driver. So we should make that explicit by >> replacing 'tag' with a driver-defined pointer 'hba_private'. >> Thi

  1   2   >