[Qemu-devel] job offer for you

2011-10-27 Thread jennifergates48
Hello, new job offer for you http://www.universfreeads.com/job.php?job=41264 ..

Re: [Qemu-devel] [PATCH v3 5/6] target-mips: Adding support for Cavium specific instructions

2011-10-27 Thread Khansa Butt
On Sat, Oct 22, 2011 at 4:36 PM, Andreas Färber wrote: > Am 22.10.2011 12:11, schrieb kha...@kics.edu.pk: > > From: Khansa Butt > > Commit message should mention here at least that new registers are > introduced and that load/save format is being changed. > > > Signed-off-by: Khansa Butt > > Sig

[Qemu-devel] [PATCH] Add qapi related generated files to .gitignore

2011-10-27 Thread David Gibson
.gitignore already lists the qapi-generated subdirectory which includes a number of files generated during build. However, there are some additional files generated by the qapi build which go in the top level directory. This patch adds them to .gitignore, removing the irritating noise from diffs

[Qemu-devel] Traduction professionnelle Anglais <> Français

2011-10-27 Thread interl...@live.fr
Traductrice professionnelle Anglais <> Français Bonjour, Je viens vers vous car dans le cadre de mon activité: Traduction Anglais - Français - Anglais, j'aimerais collaborer avec vous et vous proposer mes services. TRADUCTION Sites Internet CV norme anglophone Menus, Plaquettes com

Re: [Qemu-devel] qemu/qemu-kvm floppy regression brought by 212ec7baa28cc9d819234fed1541fc1423cfe3d8

2011-10-27 Thread Lucas Meneghel Rodrigues
On Thu 27 Oct 2011 11:17:48 PM BRST, Zhi Yong Wu wrote: On Fri, Oct 28, 2011 at 2:57 AM, Lucas Meneghel Rodrigues wrote: On 10/27/2011 05:17 AM, Stefan Hajnoczi wrote: On Wed, Oct 26, 2011 at 03:19:17PM -0200, Lucas Meneghel Rodrigues wrote: On 10/26/2011 01:47 PM, Kevin Wolf wrote: Am 2

[Qemu-devel] [PATCH 3/3] pseries: Add partial support for PCI

2011-10-27 Thread David Gibson
From: Alexey Kardashevskiy This patch adds a PCI bus to the pseries machine. This instantiates the qemu generic PCI bus code, advertises a PCI host bridge in the guest's device tree and implements the RTAS methods specified by PAPR to access PCI config space. It also sets up the memory regions

[Qemu-devel] [PATCH 1/3] ppc: Correctly handle errors reading ibm, vmx and ibm, dfp properties

2011-10-27 Thread David Gibson
kvmppc_read_int_cpu_dt() returns -1 on errors. However kvmppc_host_cpu_def() assumes that it can use the return value directly for setting the corresponding instruction support bits. This will give invalid results when kvmppc_read_int_cpu_dt() returns -1 (i.e. 0x). In fact, it gets worse:

[Qemu-devel] [PATCH 2/3] pseries: Allow writes to KVM accelerated TCE table

2011-10-27 Thread David Gibson
Sufficiently recent kernels include a KVM call to accelerate use of PAPR TCE tables (IOMMU), which are used by PAPR virtual IO devices. This involves qemu mapping the TCE table in from a kernel obtained fd, which currently we do with PROT_READ only. This is a hangover from early (never released) v

[Qemu-devel] [0/3] Bugfixes and updates for pseries

2011-10-27 Thread David Gibson
This series contains several updates for the pseries platform. The first two are trivial bugfixes and should certainly go in ASAP. The third patch is rather more substantial - it adds PCI support to pseries, however without IOMMU support in qemu it's fairly crippled - only PCI devices which don't

Re: [Qemu-devel] qemu/qemu-kvm floppy regression brought by 212ec7baa28cc9d819234fed1541fc1423cfe3d8

2011-10-27 Thread Zhi Yong Wu
On Fri, Oct 28, 2011 at 2:57 AM, Lucas Meneghel Rodrigues wrote: > On 10/27/2011 05:17 AM, Stefan Hajnoczi wrote: >> >> On Wed, Oct 26, 2011 at 03:19:17PM -0200, Lucas Meneghel Rodrigues wrote: >>> >>> On 10/26/2011 01:47 PM, Kevin Wolf wrote: Am 26.10.2011 16:41, schrieb Lucas Meneghel

[Qemu-devel] buildbot failure in qemu on default_x86_64_fedora16

2011-10-27 Thread qemu
The Buildbot has detected a new failure on builder default_x86_64_fedora16 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/default_x86_64_fedora16/builds/68 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: kraxel_fedora

[Qemu-devel] [PATCH] MAINTAINERS: update wiki URL and machine names for target-xtensa

2011-10-27 Thread Max Filippov
Signed-off-by: Max Filippov --- MAINTAINERS | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 2b4c5d7..4535eeb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -118,7 +118,7 @@ F: target-i386/ Xtensa M: Max Filippov -W: http://kkv

[Qemu-devel] [PATCH] opencores_eth: fix RX path: FCS, padding and TL

2011-10-27 Thread Max Filippov
OpenCores 10/100 Mbps Ethernet MAC specification doesn't clearly state whether FCS is counted in the RX frame length or not. Looks like it is. Append zero FCS to the received frames. Get rid of big static buffer for RX frame padding, optimize it for the most common MINFL value range. Set RXD_TL f

Re: [Qemu-devel] [PATCH 0/4] add "make check"

2011-10-27 Thread Michael Roth
On Thu, 27 Oct 2011 12:58:32 -0500, Anthony Liguori wrote: > On 10/27/2011 03:20 AM, Kevin Wolf wrote: > > Am 26.10.2011 22:49, schrieb Anthony Liguori: > >> On 10/25/2011 10:22 AM, Kevin Wolf wrote: > >>> Am 25.10.2011 17:03, schrieb Eduardo Habkost: > >>> I think qemu-iotests could be considere

[Qemu-devel] [PATCH] tcg: Optimize some forms of deposit.

2011-10-27 Thread Richard Henderson
If the deposit replaces the entire word, optimize to a move. If we're inserting to the top of the word, avoid the mask of arg2 as we'll be shifting out all of the garbage and shifting in zeros. If the host is 32-bit, reduce a 64-bit deposit to a 32-bit deposit when possible. Signed-off-by: Richa

Re: [Qemu-devel] [PATCH v2 00/16] Sparc FPU/VIS improvements

2011-10-27 Thread Blue Swirl
On Wed, Oct 26, 2011 at 21:18, Richard Henderson wrote: > On 10/26/2011 02:15 PM, Richard Henderson wrote: >> Changes v1->v2: >>   * sparc-linux-user and unrelated tcg patches removed, >>   * fabsd env/constification folded into patch 5 >>   * always_inline hack and fallout in patch 6 mitigated by

Re: [Qemu-devel] [PATCH] tcg: Optimize some forms of deposit.

2011-10-27 Thread Blue Swirl
On Tue, Oct 25, 2011 at 17:25, Richard Henderson wrote: > If the deposit replaces the entire word, optimize to a move. > > If we're inserting to the top of the word, avoid the mask of arg2 > as we'll be shifting out all of the garbage and shifting in zeros. > > If the host is 32-bit, reduce a 64-b

Re: [Qemu-devel] [PATCH 1/1] Introduce a new bus "ICC" to connect APIC

2011-10-27 Thread Blue Swirl
On Thu, Oct 27, 2011 at 08:41, liu ping fan wrote: > Hi, > > I want to rework on it according to your comments. Before that, just want to > make clear that I understand your meanings exactly :) > > According to the previous discussion, I will model the system according the > rule -- if there is

[Qemu-devel] [PATCH 10/19] qapi: Convert query-block

2011-10-27 Thread Luiz Capitulino
Signed-off-by: Anthony Liguori Signed-off-by: Luiz Capitulino --- block.c | 112 ++--- block.h |5 -- block_int.h |3 +- hmp.c| 42 hmp.h|1 + monitor.c| 1

[Qemu-devel] [PATCH 07/19] qapi: Convert query-cpus

2011-10-27 Thread Luiz Capitulino
Signed-off-by: Anthony Liguori Signed-off-by: Luiz Capitulino --- cpus.c | 45 hmp.c| 39 + hmp.h|1 + monitor.c| 101 +- qapi-schema.json | 46 ++

[Qemu-devel] [PATCH 12/19] qerror: Add a user string for QERR_FEATURE_DISABLED

2011-10-27 Thread Luiz Capitulino
Missing from commit 821601ea5b. Signed-off-by: Luiz Capitulino --- qerror.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/qerror.c b/qerror.c index 68998d4..4b48b39 100644 --- a/qerror.c +++ b/qerror.c @@ -117,6 +117,10 @@ static const QErrorStringTable qerror_table

[Qemu-devel] [PATCH 19/19] Drop qemu-objects.h from modules that don't require it

2011-10-27 Thread Luiz Capitulino
Previous commits dropped most qobjects usage from qemu modules (now they are a low level interface used by the QAPI). However, some modules still include the qemu-objects.h header file. This commit drops qemu-objects.h from some of those modules and includes qjson.h instead, which is what they act

[Qemu-devel] [PATCH 11/19] qapi: Convert query-blockstats

2011-10-27 Thread Luiz Capitulino
Signed-off-by: Anthony Liguori Signed-off-by: Luiz Capitulino --- block.c | 111 ++ hmp.c| 34 hmp.h|1 + monitor.c| 11 +- qapi-schema.json | 67 +

[Qemu-devel] [PATCH 13/19] qapi: Convert query-vnc

2011-10-27 Thread Luiz Capitulino
There are three important remarks in relation to the non-qapi command: 1. This commit also fixes the behavior of the 'query-vnc' and 'info vnc' commands to return an error when qemu is built without VNC support (ie. --disable-vnc). The non-qapi command would return the OK response in

[Qemu-devel] [PATCH 17/19] QMP: Drop the query commands dispatch table

2011-10-27 Thread Luiz Capitulino
Because QMP development originated in the monitor, it has inherited the monitor's distinction between query- and non-query commands. However, previous commits unified both commands and the distinction is gone. This commit drops the query commands dispatch table and does some simplifications along

[Qemu-devel] [PATCH 14/19] qapi: Convert query-spice

2011-10-27 Thread Luiz Capitulino
Signed-off-by: Anthony Liguori Signed-off-by: Luiz Capitulino --- hmp.c| 43 + hmp.h|1 + monitor.c| 13 +- qapi-schema.json | 74 + qmp-commands.hx |8 +++ qmp.c| 12 + ui/spice-core

[Qemu-devel] [PATCH 05/19] Monitor: Introduce monitor_get_cpu_index()

2011-10-27 Thread Luiz Capitulino
Returns 'cur_mons's CPU index. A future commit will use it. Signed-off-by: Luiz Capitulino --- monitor.c |5 + monitor.h |1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/monitor.c b/monitor.c index 3f99ea0..3e1cd33 100644 --- a/monitor.c +++ b/monitor.c @@ -794,6

[Qemu-devel] [PULL 00/19]: QMP queue

2011-10-27 Thread Luiz Capitulino
Anthony, This pull request contains only my "QAPI conversions round 2" series (which got no review comments... last chance!). The changes (since 9f60639b848944200c3d33a89233d808de0b5a43) are available in the following repository: git://repo.or.cz/qemu/qmp-unstable.git queue/qmp Luiz Capitul

[Qemu-devel] [PATCH 04/19] Monitor: Make mon_set_cpu() public

2011-10-27 Thread Luiz Capitulino
Also rename it to monitor_set_cpu(). Signed-off-by: Luiz Capitulino --- monitor.c | 11 +-- monitor.h |1 + 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/monitor.c b/monitor.c index ea5ccd8..3f99ea0 100644 --- a/monitor.c +++ b/monitor.c @@ -514,7 +514,6 @@ static

[Qemu-devel] [PATCH 09/13] virtio-balloon: convert save/load to visitors

2011-10-27 Thread Michael Roth
Signed-off-by: Michael Roth --- hw/virtio-balloon.c | 32 1 files changed, 28 insertions(+), 4 deletions(-) diff --git a/hw/virtio-balloon.c b/hw/virtio-balloon.c index 5f8f4bd..242c58d 100644 --- a/hw/virtio-balloon.c +++ b/hw/virtio-balloon.c @@ -246,24 +246

[Qemu-devel] [PATCH 18/19] Monitor: do_info(): Drop QMP command handling code

2011-10-27 Thread Luiz Capitulino
Previous commits converted all existing QMP commands to the QAPI, now each info command does its own QMP call. Let's then drop all QMP command handling code from do_info(). Signed-off-by: Luiz Capitulino --- monitor.c | 32 +--- 1 files changed, 1 insertions(+), 31

[Qemu-devel] [PATCH 08/19] block: iostatus: Drop BDRV_IOS_INVAL

2011-10-27 Thread Luiz Capitulino
A future commit will convert bdrv_info() to the QAPI and it won't provide IOS_INVAL. Luckily all we have to do is to add a new 'iostatus_enabled' member to BlockDriverState and use it instead. Signed-off-by: Luiz Capitulino --- block.c |5 +++-- block.h |3 +-- block_int.h |

[Qemu-devel] [PATCH 15/19] qapi: Convert query-balloon

2011-10-27 Thread Luiz Capitulino
Please, note that some of the code supporting memory statistics is still around (eg. virtio_balloon_receive_stats() and reset_stats()). Also, the qmp_query_balloon() function is synchronous and thus doesn't make any use of the (not fully working) monitor's asynchronous command support (the old non

[Qemu-devel] [PATCH 07/13] pci: convert pci_device_(save|load) interfaces to accept Visitors

2011-10-27 Thread Michael Roth
With all callers converted to Visitors, we can change the interface to accept a Visitor directly, along with an Error** for error propagation. Signed-off-by: Michael Roth --- hw/ivshmem.c|4 ++-- hw/openpic.c|4 ++-- hw/pci.c|9 + hw/pci.h|6 --

[Qemu-devel] [PATCH 03/19] qapi: Convert query-migrate

2011-10-27 Thread Luiz Capitulino
Signed-off-by: Anthony Liguori Signed-off-by: Luiz Capitulino --- hmp.c| 31 hmp.h|1 + migration.c | 82 +++-- monitor.c| 11 +-- qapi-schema.json | 50 +

[Qemu-devel] [PATCH 00/13] Convert slirp/ivshmem/virtio save/load to Visitors

2011-10-27 Thread Michael Roth
These patches apply on top of version 2 of: "do savevm/migration save/load via Visitor interface" and can also be obtained from: git://repo.or.cz/qemu/mdroth.git migration-visitor-conversions-set1-v1 OVERVIEW These patches are the first conversions beyond the catch-all vmstate conversion in th

[Qemu-devel] [PATCH 16/19] qapi: Convert query-pci

2011-10-27 Thread Luiz Capitulino
This also fixes a bug with the old version: QMP would invert device id and vendor id. This would look ok on HMP because it was printing "device:vendor" instead of "vendor:device". Signed-off-by: Anthony Liguori Signed-off-by: Luiz Capitulino --- hmp.c| 101 + hmp.h

[Qemu-devel] [PATCH 03/13] virtio-pci: convert save/load to visitors

2011-10-27 Thread Michael Roth
Signed-off-by: Michael Roth --- hw/virtio-pci.c | 63 +- 1 files changed, 52 insertions(+), 11 deletions(-) diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c index ca5923c..9092c02 100644 --- a/hw/virtio-pci.c +++ b/hw/virtio-pci.c @@ -103,53 +

[Qemu-devel] [PATCH 01/19] qapi-commands.py: Don't call the output marshal on error

2011-10-27 Thread Luiz Capitulino
Today we generate something like this: int qmp_marshal_input_query_foo(...) ... retval = qmp_query_foo(errp); qmp_marshal_output_query_foo(retval, ret, errp); ... However, if qmp_query_foo() fails 'retval' will probably be NULL, which can cause a segfault as

[Qemu-devel] [PATCH 09/19] block: Rename the BlockIOStatus enum values

2011-10-27 Thread Luiz Capitulino
The biggest change is to rename its prefix from BDRV_IOS to BLOCK_DEVICE_IO_STATUS. Next commit will convert the query-block command to the QAPI and that's how the enumeration is going to be generated. Signed-off-by: Luiz Capitulino --- block.c | 18 ++ block.h |3 ++- 2 f

[Qemu-devel] [PATCH 06/19] qapi: Convert the cpu command

2011-10-27 Thread Luiz Capitulino
Signed-off-by: Anthony Liguori Signed-off-by: Luiz Capitulino --- hmp-commands.hx |3 +-- hmp.c| 12 hmp.h|1 + monitor.c| 11 --- qapi-schema.json | 11 +++ qmp-commands.hx |5 + qmp.c|5 +

[Qemu-devel] [PATCH 02/19] qapi: Convert query-mice

2011-10-27 Thread Luiz Capitulino
Signed-off-by: Anthony Liguori Signed-off-by: Luiz Capitulino --- hmp.c| 20 hmp.h|1 + input.c | 64 + monitor.c| 11 + qapi-schema.json | 30 +++

[Qemu-devel] [PATCH 06/13] i440fx: convert save/load to visitors

2011-10-27 Thread Michael Roth
Signed-off-by: Michael Roth --- hw/piix_pci.c | 25 - 1 files changed, 20 insertions(+), 5 deletions(-) diff --git a/hw/piix_pci.c b/hw/piix_pci.c index d183443..0e405f3 100644 --- a/hw/piix_pci.c +++ b/hw/piix_pci.c @@ -195,20 +195,35 @@ static int i440fx_load_old(QEM

[Qemu-devel] [PATCH 05/13] openpic: convert save/load to visitors

2011-10-27 Thread Michael Roth
Signed-off-by: Michael Roth --- hw/openpic.c | 190 +++--- 1 files changed, 128 insertions(+), 62 deletions(-) diff --git a/hw/openpic.c b/hw/openpic.c index 22fc275..6e8c3a3 100644 --- a/hw/openpic.c +++ b/hw/openpic.c @@ -1045,134 +1045,200

Re: [Qemu-devel] [PATCH 0/8] block: generic image streaming

2011-10-27 Thread Luiz Capitulino
On Thu, 27 Oct 2011 16:22:47 +0100 Stefan Hajnoczi wrote: > This series adds the 'block_stream' command which copies the contents of a > backing file into the image file while the VM is running. The series builds > on > copy-on-read and zero detection features which I sent out recently and I >

Re: [Qemu-devel] qemu/qemu-kvm floppy regression brought by 212ec7baa28cc9d819234fed1541fc1423cfe3d8

2011-10-27 Thread Lucas Meneghel Rodrigues
On 10/27/2011 05:17 AM, Stefan Hajnoczi wrote: On Wed, Oct 26, 2011 at 03:19:17PM -0200, Lucas Meneghel Rodrigues wrote: On 10/26/2011 01:47 PM, Kevin Wolf wrote: Am 26.10.2011 16:41, schrieb Lucas Meneghel Rodrigues: Hi folks: We've captured a regression with floppy disk on recent qemu (and

Re: [Qemu-devel] [PATCH] net: tap-linux: Fix unhelpful error message

2011-10-27 Thread Luiz Capitulino
On Fri, 14 Oct 2011 15:05:10 -0300 Luiz Capitulino wrote: > I'm getting: > > could not configure /dev/net/tun (tap%d): Operation not permitted > > When the ioctl() fails, ifr.ifr_name will most likely not be overwritten. > So we better only use it when ifname contains a string. I had forgo

[Qemu-devel] [PATCH 08/13] virtio: convert common virtio save/load to visitors

2011-10-27 Thread Michael Roth
Signed-off-by: Michael Roth --- hw/virtio.c | 122 -- 1 files changed, 92 insertions(+), 30 deletions(-) diff --git a/hw/virtio.c b/hw/virtio.c index 7011b5b..0471c54 100644 --- a/hw/virtio.c +++ b/hw/virtio.c @@ -733,53 +733,93 @@ void v

[Qemu-devel] [PATCH 12/13] virtio-serial: convert save/load to visitors

2011-10-27 Thread Michael Roth
Signed-off-by: Michael Roth --- hw/virtio-serial-bus.c | 126 ++- 1 files changed, 91 insertions(+), 35 deletions(-) diff --git a/hw/virtio-serial-bus.c b/hw/virtio-serial-bus.c index a4825b9..78cd643 100644 --- a/hw/virtio-serial-bus.c +++ b/hw/virt

[Qemu-devel] Marketing In Venus Seminar

2011-10-27 Thread MarkPlus Malaysia

[Qemu-devel] [PATCH 11/13] virtio-net: convert save/load to visitors

2011-10-27 Thread Michael Roth
Signed-off-by: Michael Roth --- hw/virtio-net.c | 160 +++--- 1 files changed, 115 insertions(+), 45 deletions(-) diff --git a/hw/virtio-net.c b/hw/virtio-net.c index 8c2f460..974af5c 100644 --- a/hw/virtio-net.c +++ b/hw/virtio-net.c @@ -862,78

[Qemu-devel] [PATCH 13/13] virtio: convert virtio_save/virtio_load interfaces to accept Visitors

2011-10-27 Thread Michael Roth
With all virtio_save/virtio_load users converted to visitors, modify the interface to accept a Visitor directly, along with an Error** for error propagation. Signed-off-by: Michael Roth --- hw/virtio-balloon.c|4 ++-- hw/virtio-blk.c|4 ++-- hw/virtio-net.c|4 ++--

[Qemu-devel] [PATCH 10/13] virtio-blk: convert save/load to visitors

2011-10-27 Thread Michael Roth
Signed-off-by: Michael Roth --- hw/virtio-blk.c | 76 +-- 1 files changed, 68 insertions(+), 8 deletions(-) diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index 2a5d1a9..2ddcc1e 100644 --- a/hw/virtio-blk.c +++ b/hw/virtio-blk.c @@ -511,37 +

[Qemu-devel] [PATCH 01/13] slirp: convert save/load function to visitor interface

2011-10-27 Thread Michael Roth
Where possible common routines are used for both input and output, thus save on lines of code, theoretically. The added lines here are mostly due to extra logic for each save/load routine to manipulate strings into a unique field name for each saved field, and in some cases a few extra Visitor call

[Qemu-devel] [PATCH 02/13] ivshmem: convert save/load to visitor

2011-10-27 Thread Michael Roth
Signed-off-by: Michael Roth --- hw/ivshmem.c | 44 ++-- 1 files changed, 34 insertions(+), 10 deletions(-) diff --git a/hw/ivshmem.c b/hw/ivshmem.c index 242fbea..48e27f5 100644 --- a/hw/ivshmem.c +++ b/hw/ivshmem.c @@ -563,38 +563,55 @@ static void ivs

[Qemu-devel] [PATCH 04/13] msix: convert save/load to visitors (including interfaces)

2011-10-27 Thread Michael Roth
Use visitors for serialization. Also, with the only 2 direct users, virtio-pci and ivshmem, converted to visitors, we can change msix save/load function to take a Visitor directly, along with an Error object. Signed-off-by: Michael Roth --- hw/ivshmem.c|4 ++-- hw/msix.c | 37 ++

Re: [Qemu-devel] [PATCH 0/4] add "make check"

2011-10-27 Thread Anthony Liguori
On 10/27/2011 03:20 AM, Kevin Wolf wrote: Am 26.10.2011 22:49, schrieb Anthony Liguori: On 10/25/2011 10:22 AM, Kevin Wolf wrote: Am 25.10.2011 17:03, schrieb Eduardo Habkost: I think qemu-iotests could be considered an instance of B) C) Functional tests that just need to run a small binary w

[Qemu-devel] [PATCH v2 05/10] qapi: test cases for QEMUFile input/output visitors

2011-10-27 Thread Michael Roth
Signed-off-by: Michael Roth --- Makefile |2 +- test-visitor.c | 404 2 files changed, 405 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index f63fc02..50803b0 100644 --- a/Makefile +++ b/Makefile @@ -204,7 +20

[Qemu-devel] [PATCH v2 09/10] qapi: add trace statements to qapi-visit-core.c

2011-10-27 Thread Michael Roth
Signed-off-by: Michael Roth --- Makefile.objs |2 +- qapi/qapi-visit-core.c | 41 +++-- 2 files changed, 40 insertions(+), 3 deletions(-) diff --git a/Makefile.objs b/Makefile.objs index 631174f..802b85d 100644 --- a/Makefile.objs +++ b/Makefil

[Qemu-devel] [PATCH][uq/master] kvm: x86: Avoid runtime allocation of xsave buffer

2011-10-27 Thread Jan Kiszka
Keep a per-VCPU xsave buffer for kvm_put/get_xsave instead of continuously allocating and freeing it on state sync. Signed-off-by: Jan Kiszka --- target-i386/cpu.h |3 ++- target-i386/kvm.c | 15 +++ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/target-i386/cpu

[Qemu-devel] [PATCH][uq/master] kvm: x86: Use symbols for all xsave field

2011-10-27 Thread Jan Kiszka
Field 0 (FCW+FSW) and 1 (FTW+FOP) were hard-coded so far. Signed-off-by: Jan Kiszka --- target-i386/kvm.c | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 23437ee..b838091 100644 --- a/target-i386/kvm.c +++ b/target

[Qemu-devel] [PATCH v2 10/10] vmstate: use visitors

2011-10-27 Thread Michael Roth
Signed-off-by: Michael Roth --- hw/eeprom93xx.c| 12 +- hw/fw_cfg.c| 12 +- hw/hw.h|8 +- hw/pci.c | 38 +++- hw/twl92230.c | 18 +- qemu-timer.h |5 + savevm.c | 521 +

[Qemu-devel] [ANNOUNCE] libguestfs 1.14 released - tools for managing virtual machines and disk images

2011-10-27 Thread Richard W.M. Jones
libguestfs is a library and a set of tools for reading, writing, managing, inspecting, rescuing, resizing and aligning disk images, and offline and live virtual machines. I'm pleased to announce the release of libguestfs 1.14, the next stable release of libguestfs. There are many changes and new

[Qemu-devel] [PATCH v2 02/10] qapi: add QemuFileOutputVisitor

2011-10-27 Thread Michael Roth
Visitor interface to write values to a QEMUFile. Signed-off-by: Michael Roth --- Makefile.objs | 19 +-- qapi/qemu-file-output-visitor.c | 328 +++ qapi/qemu-file-output-visitor.h | 26 +++ 3 files changed, 363 insertions(+), 10 deletion

[Qemu-devel] [PATCH v2 08/10] trace: add trace statements for visitor interface

2011-10-27 Thread Michael Roth
Signed-off-by: Michael Roth --- trace-events | 25 + 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/trace-events b/trace-events index 6e36266..ec5c772 100644 --- a/trace-events +++ b/trace-events @@ -642,3 +642,28 @@ qemu_put_sbe32(void *f, int v) "file

[Qemu-devel] [PATCH v2 01/10] qapi: add Visitor interfaces for uint*_t and int*_t

2011-10-27 Thread Michael Roth
Signed-off-by: Michael Roth --- qapi/qapi-visit-core.c | 78 qapi/qapi-visit-core.h | 30 ++ 2 files changed, 108 insertions(+), 0 deletions(-) diff --git a/qapi/qapi-visit-core.c b/qapi/qapi-visit-core.c index ddef3ed..58f11f

[Qemu-devel] [PATCH v2 03/10] qapi: add QemuFileInputVisitor

2011-10-27 Thread Michael Roth
Visitor interfaces to read values from a QEMUFile Signed-off-by: Michael Roth --- Makefile.objs |1 + qapi/qemu-file-input-visitor.c | 328 qapi/qemu-file-input-visitor.h | 26 +++ 3 files changed, 355 insertions(+), 0 deletions(-)

[Qemu-devel] [PATCH v2 04/10] savevm: move QEMUFile interfaces into qemu-file.c

2011-10-27 Thread Michael Roth
Signed-off-by: Michael Roth --- Makefile.objs |2 +- hw/hw.h |3 + qemu-file.c | 573 + savevm.c | 534 - 4 files changed, 577 insertions(+), 535 deletions(-) creat

[Qemu-devel] [PATCH v2 06/10] qemu-file: add QEMUFile<->visitor lookup routines

2011-10-27 Thread Michael Roth
This interface is to allow switching between Visitor-based and direct QEMUFile usage to serialize/de-serialize fields. Once we're passed the transitionary stages and all requisite interfaces are converted to accepting Visitor objects, we can drop this dual approach and begin utilizing non-QEMUFile-

[Qemu-devel] [PATCH v2 07/10] trace: qemu_(put|get)_(byte|buffer) events

2011-10-27 Thread Michael Roth
Signed-off-by: Michael Roth --- qemu-file.c | 13 + trace-events | 18 ++ 2 files changed, 31 insertions(+), 0 deletions(-) diff --git a/qemu-file.c b/qemu-file.c index cdfe8a3..89b58be 100644 --- a/qemu-file.c +++ b/qemu-file.c @@ -27,6 +27,7 @@ #include "hw/h

[Qemu-devel] [PATCH v2 00/10] do savevm/migration save/load via Visitor interface

2011-10-27 Thread Michael Roth
These patches apply on top of origin/master, and can also be obtained from: git://repo.or.cz/qemu/mdroth.git migration-visitor-v2 - rebased on 9f60639b848944200c3d33a89233d808de0b5a43. Juan: had a pretty hard collision with your recent savevm/vmstate cleanups. I think most of the issues were r

[Qemu-devel] Documentation

2011-10-27 Thread Donald Allen
I've just this week begun using qemu (actually qemu-kvm) on a 64-bit Slackware (13.37) system. You people have produced a very useful piece of software, very nice work. But I must say that the documentation does not do the software justice. I have just spent a maddening several hours trying to get

Re: [Qemu-devel] [QEMU : VVFAT] vvfat.c - help required for understanding/modification

2011-10-27 Thread Johannes Schindelin
Hi Kevin, On Thu, 27 Oct 2011, Kevin Wolf wrote: > When you have a design to solve the problem (and I believe it might be > better to start that from scratch rather than extending vvfat as it > would end up being a rewrite anyway), we can discuss that design. I fully agree on all three accounts.

Re: [Qemu-devel] [PATCH v2 3/3] Make cpu_single_env thread-local

2011-10-27 Thread Andreas Färber
Am 27.10.2011 17:10, schrieb Andreas Färber: > Am 27.10.2011 13:37, schrieb Peter Maydell: >> From: Paolo Bonzini >> >> Make cpu_single_env thread-local. This fixes a regression >> in handling of multi-threaded programs in linux-user mode >> (bug 823902). >> >> Signed-off-by: Paolo Bonzini >> [Pe

Re: [Qemu-devel] [PATCH] Teach block/vdi about "discarded" (no longer allocated) blocks

2011-10-27 Thread Eric Sunshine
On Oct 27, 2011, at 12:12 PM, Stefan Weil wrote: Am 27.10.2011 10:53, schrieb Kevin Wolf: Am 26.10.2011 21:51, schrieb Eric Sunshine: An entry in the VDI block map will hold an offset to the actual block if the block is allocated, or one of two specially-interpreted values if not allocated.

Re: [Qemu-devel] [PATCH v2 1/3] qemu-tls.h: Add abstraction layer for TLS variables

2011-10-27 Thread Andreas Färber
Am 27.10.2011 17:04, schrieb Andreas Färber: > Am 27.10.2011 13:37, schrieb Peter Maydell: >> Add an abstraction layer for defining and using thread-local >> variables. For the moment this is implemented only for Linux, >> which means they can only be used in restricted circumstances. >> The abstra

Re: [Qemu-devel] [PATCH] Teach block/vdi about "discarded" (no longer allocated) blocks

2011-10-27 Thread Stefan Weil
Am 27.10.2011 10:53, schrieb Kevin Wolf: Am 26.10.2011 21:51, schrieb Eric Sunshine: An entry in the VDI block map will hold an offset to the actual block if the block is allocated, or one of two specially-interpreted values if not allocated. Using VirtualBox terminology, value VDI_IMAGE_BLOCK_F

[Qemu-devel] [PATCH 0/8] block: generic image streaming

2011-10-27 Thread Stefan Hajnoczi
This series adds the 'block_stream' command which copies the contents of a backing file into the image file while the VM is running. The series builds on copy-on-read and zero detection features which I sent out recently and I suggest grabbing my git tree to try it out without merging these depend

[Qemu-devel] [PATCH 6/8] qmp: add block_job_cancel command

2011-10-27 Thread Stefan Hajnoczi
Add block_job_cancel, which stops an active block streaming operation. Signed-off-by: Stefan Hajnoczi --- blockdev.c | 35 +++ blockdev.h |3 +++ hmp-commands.hx | 16 qmp-commands.hx | 41 ++

[Qemu-devel] [PATCH 4/8] qmp: add block_stream command

2011-10-27 Thread Stefan Hajnoczi
Add the block_stream command, which starts copy backing file contents into the image file. Later patches add control over the background copy speed, cancelation, and querying running streaming operations. Signed-off-by: Stefan Hajnoczi --- blockdev.c | 69

[Qemu-devel] [PATCH 3/8] block: add image streaming block job

2011-10-27 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi --- Makefile.objs |1 + block/stream.c | 135 block_int.h|3 + trace-events |4 ++ 4 files changed, 143 insertions(+), 0 deletions(-) create mode 100644 block/stream.c diff --git a/Makefi

[Qemu-devel] [PATCH 5/8] qmp: add block_job_set_speed command

2011-10-27 Thread Stefan Hajnoczi
Add block_job_set_speed, which sets the maximum speed for a background block operation. Signed-off-by: Stefan Hajnoczi --- blockdev.c | 33 + blockdev.h |2 ++ hmp-commands.hx | 15 +++ qmp-commands.hx | 35 +

[Qemu-devel] [PATCH 1/8] coroutine: add co_sleep_ns() coroutine sleep function

2011-10-27 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi --- Makefile.objs |2 +- qemu-coroutine-sleep.c | 38 ++ qemu-coroutine.h |6 ++ 3 files changed, 45 insertions(+), 1 deletions(-) create mode 100644 qemu-coroutine-sleep.c diff --git a/Makefile.objs

[Qemu-devel] [PATCH 2/8] block: add BlockJob interface for long-running operations

2011-10-27 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi --- block_int.h | 95 +++ 1 files changed, 95 insertions(+), 0 deletions(-) diff --git a/block_int.h b/block_int.h index 8295dae..4da1b74 100644 --- a/block_int.h +++ b/block_int.h @@ -51,6 +51,37 @@ typedef

[Qemu-devel] [PATCH 8/8] test: add image streaming test cases

2011-10-27 Thread Stefan Hajnoczi
python test-stream.py Signed-off-by: Stefan Hajnoczi --- test-stream.py | 200 1 files changed, 200 insertions(+), 0 deletions(-) create mode 100644 test-stream.py diff --git a/test-stream.py b/test-stream.py new file mode 100644 index

[Qemu-devel] [PATCH 7/8] qmp: add query-block-jobs

2011-10-27 Thread Stefan Hajnoczi
Add query-block-jobs, which shows the progress of ongoing block device operations. Signed-off-by: Stefan Hajnoczi --- blockdev.c | 46 ++ blockdev.h |2 ++ monitor.c | 16 qmp-commands.hx | 32

Re: [Qemu-devel] [PATCH v2 1/3] qemu-tls.h: Add abstraction layer for TLS variables

2011-10-27 Thread Paolo Bonzini
On 10/27/2011 05:15 PM, Peter Maydell wrote: >> +#define DEFINE_TLS(type, x) __thread __typeof__(type) tls__##x > I assume __typeof__() is a GCCism, indicated by ..._GCC_H, to ensure > type is actually a valid type? Paolo? No, _GCC_H has nothing to do with GCCisms. __typeof__ is needed

Re: [Qemu-devel] [PATCH v2 1/3] qemu-tls.h: Add abstraction layer for TLS variables

2011-10-27 Thread Peter Maydell
On 27 October 2011 16:04, Andreas Färber wrote: >> + * Copyright (c) 2011 Red Hat, Inc, Linaro Limited > > The concatenation looks kind of funny. ;) Yeah, I know :-) Hope nobody in five years time goes looking for those Inc guys to try to track them down for a licensing change... >> +#ifndef QEM

Re: [Qemu-devel] Assigning a new virtio block device (-drive)

2011-10-27 Thread Paolo Bonzini
On 10/27/2011 02:47 PM, Leib, David wrote: and insert the same data like the normal virtio block device (“file=/dev/sr0” and “if=virtio”) in qemu_config.c. I'm not sure what you are doing wrong exactly, but try using if=none and creating the device separately with -device. You shouldn't need

Re: [Qemu-devel] [PATCH v2 3/3] Make cpu_single_env thread-local

2011-10-27 Thread Paolo Bonzini
On 10/27/2011 05:10 PM, Andreas Färber wrote: Am 27.10.2011 13:37, schrieb Peter Maydell: From: Paolo Bonzini Make cpu_single_env thread-local. This fixes a regression in handling of multi-threaded programs in linux-user mode (bug 823902). Signed-off-by: Paolo Bonzini [Peter Maydell: rename tl

Re: [Qemu-devel] [PATCH v2 3/3] Make cpu_single_env thread-local

2011-10-27 Thread Andreas Färber
Am 27.10.2011 13:37, schrieb Peter Maydell: > From: Paolo Bonzini > > Make cpu_single_env thread-local. This fixes a regression > in handling of multi-threaded programs in linux-user mode > (bug 823902). > > Signed-off-by: Paolo Bonzini > [Peter Maydell: rename tls_cpu_single_env to cpu_single_

Re: [Qemu-devel] [PATCH v2 1/3] qemu-tls.h: Add abstraction layer for TLS variables

2011-10-27 Thread Paolo Bonzini
On 10/27/2011 05:04 PM, Andreas Färber wrote: [Paolo's SoB missing] There's really 1-2 lines of my code left, but anyway Signed-off-by: Paolo Bonzini Paolo

Re: [Qemu-devel] [PATCH v2 1/3] qemu-tls.h: Add abstraction layer for TLS variables

2011-10-27 Thread Andreas Färber
Am 27.10.2011 13:37, schrieb Peter Maydell: > Add an abstraction layer for defining and using thread-local > variables. For the moment this is implemented only for Linux, > which means they can only be used in restricted circumstances. > The abstraction layer allows us to add POSIX and Win32 suppor

Re: [Qemu-devel] [PATCH v2] block: avoid SIGUSR2

2011-10-27 Thread Kevin Wolf
Am 27.10.2011 16:15, schrieb Kevin Wolf: > Am 27.10.2011 15:57, schrieb Stefan Hajnoczi: >> On Thu, Oct 27, 2011 at 03:26:23PM +0200, Kevin Wolf wrote: >>> Am 19.09.2011 16:37, schrieb Frediano Ziglio: Now that iothread is always compiled sending a signal seems only an additional step. Th

Re: [Qemu-devel] [PATCH v2] block: avoid SIGUSR2

2011-10-27 Thread Kevin Wolf
Am 27.10.2011 15:57, schrieb Stefan Hajnoczi: > On Thu, Oct 27, 2011 at 03:26:23PM +0200, Kevin Wolf wrote: >> Am 19.09.2011 16:37, schrieb Frediano Ziglio: >>> Now that iothread is always compiled sending a signal seems only an >>> additional step. This patch also avoid writing to two pipe (one fr

Re: [Qemu-devel] [PATCH] Documentation: Describe NBD URL syntax

2011-10-27 Thread Eric Sunshine
On Oct 27, 2011, at 5:33 AM, Ronnie Sahlberg wrote: This patch adds a short description of how to specify a NBD device to QEMU. Syntax for both TCP and Unix Domain Sockets are provided as well as examples. Signed-off-by: Ronnie Sahlberg --- qemu-options.hx | 21 + 1 files c

Re: [Qemu-devel] [PATCH v2] block: avoid SIGUSR2

2011-10-27 Thread Stefan Hajnoczi
On Thu, Oct 27, 2011 at 03:26:23PM +0200, Kevin Wolf wrote: > Am 19.09.2011 16:37, schrieb Frediano Ziglio: > > Now that iothread is always compiled sending a signal seems only an > > additional step. This patch also avoid writing to two pipe (one from signal > > and one in qemu_service_io). > > >

Re: [Qemu-devel] ping Re: [PATCH 0/6] misc vvfat fixes

2011-10-27 Thread Kevin Wolf
Am 27.10.2011 15:10, schrieb Paolo Bonzini: > On 10/27/2011 02:38 PM, Kevin Wolf wrote: >> Am 27.10.2011 13:46, schrieb Paolo Bonzini: >>> On 10/05/2011 09:12 AM, Paolo Bonzini wrote: It occurred to me that, if there's one thing vvfat ought to be good at, it is creating disk images with q

Re: [Qemu-devel] [PATCH v2] block: avoid SIGUSR2

2011-10-27 Thread Kevin Wolf
Am 19.09.2011 16:37, schrieb Frediano Ziglio: > Now that iothread is always compiled sending a signal seems only an > additional step. This patch also avoid writing to two pipe (one from signal > and one in qemu_service_io). > > Work with kvm enabled or disabled. strace output is more readable (le

Re: [Qemu-devel] [PATCH v2 2/3] darwin-user/main.c: Drop unused cpu_single_env definition

2011-10-27 Thread Andreas Färber
Am 27.10.2011 13:37, schrieb Peter Maydell: > From: Paolo Bonzini > > Drop the cpu_single_env definition as it is unused. > > Signed-off-by: Paolo Bonzini Acked-by: Andreas Färber > --- > darwin-user/main.c |2 -- > 1 files changed, 0 insertions(+), 2 deletions(-) > > diff --git a/darw

  1   2   >