[Qemu-devel] [PATCH 10/17] chardev: switch pty init to qapi

2013-02-28 Thread Gerd Hoffmann
This patch switches over the pty chardev initialization to the new qapi code path. Bonus: Taking QemuOpts out of the loop allows some nice cleanups along the way. Signed-off-by: Gerd Hoffmann --- qemu-char.c | 35 ++- 1 file changed, 10 insertions(+), 25 deleti

[Qemu-devel] [RFC PATCH 0/4] savevm: save vmsate with fixed size

2013-02-28 Thread Wenchao Xia
This patch added a new way to savevm: save vmstate as plane contents instead of stream. This version have following limitation: 1 in patch 3 only dirty page got written, clean page is not touched, so it will have trouble when savevm to an old internal snapshot, which will be fixed later if thi

[Qemu-devel] [PATCH 1/4] qemu-file: add function qemu_fseek()

2013-02-28 Thread Wenchao Xia
Signed-off-by: Wenchao Xia --- include/migration/qemu-file.h |1 + savevm.c | 17 + 2 files changed, 18 insertions(+), 0 deletions(-) diff --git a/include/migration/qemu-file.h b/include/migration/qemu-file.h index 46fc11d..210c311 100644 --- a/include/

[Qemu-devel] [PATCH 4/4] savevm: use seekeble file to savevm

2013-02-28 Thread Wenchao Xia
This patch can verify that it is compatiable with old stream snapshot format. Signed-off-by: Wenchao Xia --- savevm.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/savevm.c b/savevm.c index 57dbf09..8ab0a3d 100644 --- a/savevm.c +++ b/savevm.c @@ -425,8 +425,11

[Qemu-devel] [PATCH 2/4] savevm: save vmstate with seekable file

2013-02-28 Thread Wenchao Xia
This patch added logic in qemu_savevm level which can predict the space used in iteration, when qemu file is seekable Signed-off-by: Wenchao Xia --- include/migration/vmstate.h | 10 + savevm.c| 87 ++- 2 files changed, 95 ins

[Qemu-devel] [PATCH 3/4] ram: add support for seekable file save

2013-02-28 Thread Wenchao Xia
It use plane layout for ram. Signed-off-by: Wenchao Xia --- arch_init.c | 242 +++ 1 files changed, 242 insertions(+), 0 deletions(-) diff --git a/arch_init.c b/arch_init.c index 8daeafa..0c12095 100644 --- a/arch_init.c +++ b/arch_init

Re: [Qemu-devel] [PATCH] check-qjson: More thorough testing of UTF-8 in strings

2013-02-28 Thread Markus Armbruster
Blue Swirl writes: > On Mon, Feb 4, 2013 at 5:19 PM, Markus Armbruster wrote: >> Test cases are scraped from Markus Kuhn's UTF-8 decoder capability and >> stress test at >> http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt >> >> Unfortunately, both JSON parser and formatter misbehave ri

[Qemu-devel] [PULL] seabios: update to 1.7.2.1

2013-02-28 Thread Gerd Hoffmann
Hi, This updates seabios to the 1.7.2.1 bugfix release. please pull, Gerd The following changes since commit a4bcea3d67949c6be45992bd5092a19f163bcd4e: target-i386: Use mulu2 and muls2 (2013-02-27 19:06:28 +) are available in the git repository at: git://git.kraxel.org/qemu seabios

[Qemu-devel] [PATCH] update seabios to 1.7.2.1

2013-02-28 Thread Gerd Hoffmann
Alex Williamson (3): seabios q35: Enable all PIRQn IRQs at startup seabios q35: Add new PCI slot to irq routing function seabios: Add a dummy PCI slot to irq mapping function Avik Sil (1): USB-EHCI: Fix null pointer assignment Kevin O'Connor (4): Update tools/acpi_ex

[Qemu-devel] [Bug 1033727] Re: USB passthrough doesn't work anymore with qemu-kvm 1.1.1

2013-02-28 Thread Stefan Mühlbacher
Very intresting News: After reverting to Ubuntu 9.10/Qemu 0.11.0 the USB-SIM-Reader didn´t work anymore. Same results as above. Maybe the qemu-version 1.2.0 caused the "Kobil Systems GmbH mIDentity Light / KAAN SIM III" to hang! After unplugging and plugin in to another usb-port it works again.

Re: [Qemu-devel] [PATCH v4 1/4] Add moxie target code

2013-02-28 Thread Richard Henderson
On 2013-02-27 14:09, Anthony Green wrote: + done_generating: +ctx.last_T0_store = NULL; +*tcg_ctx.gen_opc_ptr = INDEX_op_end; Looks good now. Except for the start/end TB thing, which is lacking the icount calls, which will shortly be the hooks to exit the TB due to interrupt as well.

[Qemu-devel] [PATCH 09/17] chardev: switch parallel init to qapi

2013-02-28 Thread Gerd Hoffmann
This patch switches over the parallel chardev initialization to the new qapi code path. Signed-off-by: Gerd Hoffmann --- qemu-char.c | 37 + 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 2cb1471..2832e48 1006

Re: [Qemu-devel] [PATCH v12 rebased] kvm: notify host when the guest is panicked

2013-02-28 Thread Hu Tao
On Thu, Feb 07, 2013 at 11:39:47PM -0200, Marcelo Tosatti wrote: > Hi, > > On Wed, Jan 23, 2013 at 03:19:21PM +0800, Hu Tao wrote: > > We can know the guest is panicked when the guest runs on xen. > > But we do not have such feature on kvm. > > > > Another purpose of this feature is: management a

Re: [Qemu-devel] 9pfs segfaults on chmod(special)

2013-02-28 Thread Aneesh Kumar K.V
Michael Tokarev writes: > When guest tries to chmod a block or char device file over 9pfs, > the qemu process segfaults. > > On host: > qemu-system-x86_64 -virtfs > local,path=/dev,security_model=mapped-file,mount_tag=tag > > On guest: > mount -t 9p -o trans=virtio tag /mnt > chmod 0777 /mnt/

[Qemu-devel] [PATCH V12 0/4] replace QEMUOptionParameter with QemuOpts parser

2013-02-28 Thread Dong Xu Wang
Patch 1 add def_value_str and use it in qemu_opts_print. Patch 2 Create functions to pair with QemuOpts parser. Patch 3 Use QemuOpts parser in Block. Patch 4 Remove QEMUOptionParameter parser related code. Dong Xu Wang (4): add def_value_str and use it in qemu_opts_print Create

[Qemu-devel] [PATCH V12 1/4] add def_value_str and use it in qemu_opts_print

2013-02-28 Thread Dong Xu Wang
qemu_opts_print has no user now, so can re-write the function safely. qemu_opts_print will be used while using "qemu-img create", it will produce the same output as previous code. The behavior of this function has changed: 1. Print every possible option, whether a value has been set or not. 2. O

[Qemu-devel] [PATCH V12 4/4] remove QEMUOptionParameter related code

2013-02-28 Thread Dong Xu Wang
Signed-off-by: Dong Xu Wang --- include/qemu/option.h | 32 -- util/qemu-option.c| 285 -- 2 files changed, 317 deletions(-) diff --git a/include/qemu/option.h b/include/qemu/option.h index 0d5fb66..31b0715 100644 --- a/include/qemu/optio

[Qemu-devel] [PATCH V12 2/4] Create four QemuOptsList related functions

2013-02-28 Thread Dong Xu Wang
This patch will create 4 functions, count_opts_list, qemu_opts_append, qemu_opts_free and qemu_opts_print_help, they will be used in following commits. Signed-off-by: Dong Xu Wang --- v11->v12: 1) renmae functions. 2) fix loop styles and code styles. 3) qemu_opts_apend will not return NULL now. 4

[Qemu-devel] [PATCH v4 1/6] virtio_ccw: pass a cookie value to kvm hypercall

2013-02-28 Thread Cornelia Huck
From: "Michael S. Tsirkin" Lookups by channel/vq pair on host during virtio notifications might be expensive. Interpret hypercall return value as a cookie which host can use to do device lookups for the next notification more efficiently. [CH: Fix line > 80 chars] Tested-by: Christian Borntraeg

[Qemu-devel] [PATCH v4 6/6] KVM: s390: Wire up ioeventfd.

2013-02-28 Thread Cornelia Huck
Enable ioeventfd support on s390 and hook up diagnose 500 virtio-ccw notifications. Signed-off-by: Cornelia Huck --- arch/s390/kvm/Kconfig| 1 + arch/s390/kvm/Makefile | 2 +- arch/s390/kvm/diag.c | 26 ++ arch/s390/kvm/kvm-s390.c | 1 + 4 files changed, 29 i

[Qemu-devel] [PATCH v4 5/6] KVM: ioeventfd for virtio-ccw devices.

2013-02-28 Thread Cornelia Huck
Enhance KVM_IOEVENTFD with a new flag that allows to attach to virtio-ccw devices on s390 via the KVM_VIRTIO_CCW_NOTIFY_BUS. Signed-off-by: Cornelia Huck --- Documentation/virtual/kvm/api.txt | 8 include/uapi/linux/kvm.h | 3 +++ virt/kvm/eventfd.c| 17 ++

[Qemu-devel] [PATCH v4 3/6] KVM: Initialize irqfd from kvm_init().

2013-02-28 Thread Cornelia Huck
Currently, eventfd introduces module_init/module_exit functions to initialize/cleanup the irqfd workqueue. This only works, however, if no other module_init/module_exit functions are built into the same module. Let's just move the initialization and cleanup to kvm_init and kvm_exit. This way, it i

[Qemu-devel] [PATCH v4 2/6] KVM: s390: Export virtio-ccw api.

2013-02-28 Thread Cornelia Huck
Export the virtio-ccw api in a header for usage by other code. Signed-off-by: Cornelia Huck --- arch/s390/include/uapi/asm/Kbuild | 1 + arch/s390/include/uapi/asm/virtio-ccw.h | 21 + drivers/s390/kvm/virtio_ccw.c | 5 + 3 files changed, 23 insertions(+

[Qemu-devel] [PATCH v4 4/6] KVM: Introduce KVM_VIRTIO_CCW_NOTIFY_BUS.

2013-02-28 Thread Cornelia Huck
Add a new bus type for virtio-ccw devices on s390. Signed-off-by: Cornelia Huck --- include/linux/kvm_host.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 3b768ef..206247f 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kv

[Qemu-devel] [PATCH v4 0/6] kvm: Make ioeventfd usable on s390.

2013-02-28 Thread Cornelia Huck
Here's v4 of the ioeventfd for s390 patch set. The most interesting change is the addition of MST's cookie patch, which enhances the virtio-ccw notify hypercall for future performance optimizations. This patch should go in for 3.9. I'd love to see the other patches in 3.9 as well; but I wouldn't

Re: [Qemu-devel] [PATCH 2/3] asn1 ber visitors

2013-02-28 Thread Paolo Bonzini
Il 27/02/2013 23:11, mdroth ha scritto: >> > As for the location of the source files I think where the patch puts >> > them now makes most sense, I don't think qapi makes sense. But the >> > location isn't important to me so I'll put them wherever. Anybody >> > else have an opinion on the best lo

Re: [Qemu-devel] [RFC PATCH 0/6] block: Add driver specific options

2013-02-28 Thread Kevin Wolf
Am 28.02.2013 um 02:52 hat Eric Blake geschrieben: > On 02/27/2013 10:25 AM, Kevin Wolf wrote: > > Instead of constantly keeping complaining that we need this big -blockdev > > things, let's start attacking individual parts of the project. Here is the > > first part, allowing block drivers to provi

Re: [Qemu-devel] [RFC PATCH 6/6] qcow2: Allow lazy refcounts to be enabled on the command line

2013-02-28 Thread Kevin Wolf
Am 28.02.2013 um 04:10 hat Eric Blake geschrieben: > On 02/27/2013 10:25 AM, Kevin Wolf wrote: > > qcow2 images now accept a boolean lazy_refcouns options. Use it like > > s/refcouns/refcounts/ > > > this: > > > > -drive file=test.qcow2,lazy_refcounts=on > > > > If the option is specified on

Re: [Qemu-devel] [RFC V6 24/33] qcow2: Integrate deduplication in qcow2_co_writev loop.

2013-02-28 Thread Stefan Hajnoczi
On Wed, Feb 27, 2013 at 03:31:48PM +0100, Benoît Canet wrote: > > I find this expression hard to understand. > > > > We only get here if ds.nb_undedupable_sectors > 0. In other words, we > > tried to dedup but failed, so we must write data into the image file. > > > > Can we ensure that ds.nb_un

[Qemu-devel] [RFC] s390: dump-guest-memory implementation for s390x arch.

2013-02-28 Thread Jens Freimann
From: Ekaterina Tumanova dump-guest-memory QEMU monitor command didn't work for s390 architecture. The result of the command is supposed to be ELF format crash-readable dump. In order to implement this, the arch-specific part of dump-guest-memory was added: target-s390x/arch_dump.c contains the w

Re: [Qemu-devel] [RFC V6 27/33] qcow2: Adapt checking of QCOW_OFLAG_COPIED for dedup.

2013-02-28 Thread Stefan Hajnoczi
On Wed, Feb 27, 2013 at 04:00:28PM +0100, Benoît Canet wrote: > > > -if ((refcount == 1) != ((l2_entry & QCOW_OFLAG_COPIED) > > > != 0)) { > > > +if (!s->has_dedup && > > > +(refcount == 1) != ((l2_entry & QCOW_OFLAG_COPIED) > > > != 0)) { > > >

Re: [Qemu-devel] [PATCH v5 3/6] add backup related monitor commands

2013-02-28 Thread Markus Armbruster
Dietmar Maurer writes: >> >> +# @devlist: #optional list of block device names (separated by ',', ';' >> >> +# or ':'). By default the backup includes all writable block devices. >> > >> > Make this a proper list, please. >> >> That is, make it a JSON array: '*devlist' : [ 'str' ] Any time that

Re: [Qemu-devel] [PATCH v4 1/4] Add moxie target code

2013-02-28 Thread Peter Maydell
On 28 February 2013 08:30, Richard Henderson wrote: > Looks good now. Except for the start/end TB thing, which is > lacking the icount calls, which will shortly be the hooks to > exit the TB due to interrupt as well. > > But I'll still give it the > > Reviewed-by: Richard Henderson > > since PMM

Re: [Qemu-devel] [RFC V6 31/33] qcow: Set large dedup hash block size.

2013-02-28 Thread Stefan Hajnoczi
On Wed, Feb 27, 2013 at 03:53:43PM +0100, Benoît Canet wrote: > > > inc_refcounts(bs, res, refcount_table, refcount_table_size, > > > -l2_offset, s->cluster_size); > > > +l2_offset, dedup ? s->hash_block_size : s->l2_size << 3); > > > > Why s->l2_size <

Re: [Qemu-devel] [PATCH 01/11] NVMe: Initial commit for NVM Express device

2013-02-28 Thread Markus Armbruster
Keith Busch writes: > On Wed, 27 Feb 2013, Paolo Bonzini wrote: >> Il 27/02/2013 10:30, Andreas Färber ha scritto: [...] >> Finally, and unrelated to the code above, we usually do not add new "if" >> values. It's enough to have access via if=none & -device. In any case >> it should be a separat

Re: [Qemu-devel] [PATCH v4 6/6] KVM: s390: Wire up ioeventfd.

2013-02-28 Thread Michael S. Tsirkin
On Thu, Feb 28, 2013 at 10:22:32AM +0100, Cornelia Huck wrote: > Enable ioeventfd support on s390 and hook up diagnose 500 virtio-ccw > notifications. > > Signed-off-by: Cornelia Huck > --- > arch/s390/kvm/Kconfig| 1 + > arch/s390/kvm/Makefile | 2 +- > arch/s390/kvm/diag.c | 26 +++

Re: [Qemu-devel] QCOW2 deduplication

2013-02-28 Thread Stefan Hajnoczi
On Wed, Feb 27, 2013 at 05:40:53PM +0100, Kevin Wolf wrote: > Am 27.02.2013 um 16:58 hat Benoît Canet geschrieben: > > > > The current prototype of the QCOW2 deduplication uses 32 bytes SHA256 > > > > or SKEIN > > > > hashes to identify each 4KB clusters with a very low probability of > > > > col

Re: [Qemu-devel] [PATCH v5 3/6] add backup related monitor commands

2013-02-28 Thread Dietmar Maurer
> > You can easily extend the API to allow multiple backups (In a fully > > backwards compatible way). So there is no need to change that now. > > I disagree. > > You propose something like: > > 1. -> { "execute": "backup", > "arguments": { "backup-file": "foo.vma" } } > <- { "retu

Re: [Qemu-devel] [PATCH v10 0/7] trace: Generic event state description

2013-02-28 Thread Stefan Hajnoczi
On Fri, Jan 25, 2013 at 05:33:46PM +0100, Lluís Vilanova wrote: > Provides a generic event state description structure (TraceEvent) and a more > detailed event control and query interface. > > This is achieved by creating a new "non-public" tracing backend (i.e., not > selectable by the user at co

Re: [Qemu-devel] [PATCH v10 0/7] trace: Generic event state description

2013-02-28 Thread Stefan Hajnoczi
On Fri, Jan 25, 2013 at 05:33:46PM +0100, Lluís Vilanova wrote: > Provides a generic event state description structure (TraceEvent) and a more > detailed event control and query interface. > > This is achieved by creating a new "non-public" tracing backend (i.e., not > selectable by the user at co

Re: [Qemu-devel] QCOW2 deduplication

2013-02-28 Thread Kevin Wolf
Am 28.02.2013 um 10:59 hat Stefan Hajnoczi geschrieben: > On Wed, Feb 27, 2013 at 05:40:53PM +0100, Kevin Wolf wrote: > > Am 27.02.2013 um 16:58 hat Benoît Canet geschrieben: > > > > > The current prototype of the QCOW2 deduplication uses 32 bytes SHA256 > > > > > or SKEIN > > > > > hashes to iden

Re: [Qemu-devel] [RFC V6 27/33] qcow2: Adapt checking of QCOW_OFLAG_COPIED for dedup.

2013-02-28 Thread Kevin Wolf
Am 28.02.2013 um 10:41 hat Stefan Hajnoczi geschrieben: > On Wed, Feb 27, 2013 at 04:00:28PM +0100, Benoît Canet wrote: > > > > -if ((refcount == 1) != ((l2_entry & QCOW_OFLAG_COPIED) > > > > != 0)) { > > > > +if (!s->has_dedup && > > > > +(refco

Re: [Qemu-devel] [RFC PATCH v4 00/30] ACPI memory hotplug

2013-02-28 Thread Vasilis Liaskovitis
Hi, sorry for the delay. On Tue, Feb 19, 2013 at 07:39:40PM -0300, Erlon Cruz wrote: > On Tue, Dec 18, 2012 at 10:41 AM, Vasilis Liaskovitis < > vasilis.liaskovi...@profitbricks.com> wrote: > > > This is v4 of the ACPI memory hotplug functionality. Only x86_64 target is > > supported (both i440fx

Re: [Qemu-devel] [PATCH v4 6/6] KVM: s390: Wire up ioeventfd.

2013-02-28 Thread Cornelia Huck
On Thu, 28 Feb 2013 11:50:45 +0200 "Michael S. Tsirkin" wrote: > On Thu, Feb 28, 2013 at 10:22:32AM +0100, Cornelia Huck wrote: > > Enable ioeventfd support on s390 and hook up diagnose 500 virtio-ccw > > notifications. > > > > Signed-off-by: Cornelia Huck > > --- > > arch/s390/kvm/Kconfig

Re: [Qemu-devel] [RFC PATCH 0/6] block: Add driver specific options

2013-02-28 Thread Stefan Hajnoczi
On Wed, Feb 27, 2013 at 06:25:49PM +0100, Kevin Wolf wrote: > Instead of constantly keeping complaining that we need this big -blockdev > things, let's start attacking individual parts of the project. Here is the > first part, allowing block drivers to provide additional -drive options. > > Any op

Re: [Qemu-devel] [PATCH v4 6/6] KVM: s390: Wire up ioeventfd.

2013-02-28 Thread Gleb Natapov
On Thu, Feb 28, 2013 at 11:20:13AM +0100, Cornelia Huck wrote: > Whoops. Doesn't seem to have hurt, though. > > v6 will come up shortly. > Are you going to skip v5? -- Gleb.

Re: [Qemu-devel] QEMU Profiling

2013-02-28 Thread Vadim Evard
Could you please suggest a newer article on QEMU internals please? This is the first time I have to hack huge C program and I'll eventually accomplish my task anyway, but I'd be very thankful for any help. Wei-Ren Chen, thank you for hint. On 26.02.2013 17:21, Peter Maydell wrote: On 26 Febru

Re: [Qemu-devel] [RFC PATCH 2/6] block: Add options QDict to bdrv_open() prototype

2013-02-28 Thread Stefan Hajnoczi
On Wed, Feb 27, 2013 at 06:25:51PM +0100, Kevin Wolf wrote: > @@ -780,15 +788,28 @@ int bdrv_open_backing_file(BlockDriverState *bs) > > /* > * Opens a disk image (raw, qcow2, vmdk, ...) > + * > + * options is a QDict of options to pass to the block drivers, or NULL for an > + * empty set of o

[Qemu-devel] -gtk: invalid option

2013-02-28 Thread Gerd Hoffmann
Hi, $subject says all: try start qemu with the -gtk switch ... cheers, Gerd

Re: [Qemu-devel] 9pfs segfaults on chmod(special)

2013-02-28 Thread Michael Tokarev
28.02.2013 13:12, Aneesh Kumar K.V wrote: > Michael Tokarev writes: > >> When guest tries to chmod a block or char device file over 9pfs, >> the qemu process segfaults. >> >> On host: >> qemu-system-x86_64 -virtfs >> local,path=/dev,security_model=mapped-file,mount_tag=tag >> >> On guest: >> m

Re: [Qemu-devel] [RFC PATCH 0/4] savevm: save vmsate with fixed size

2013-02-28 Thread Kevin Wolf
Am 28.02.2013 um 09:09 hat Wenchao Xia geschrieben: > This patch added a new way to savevm: save vmstate as plane contents > instead of stream. So the idea is that when we introduce internal live snapshots, you don't keep old state in the saved VM state, but you just overwrite it, right? Or actu

Re: [Qemu-devel] [RFC PATCH 0/6] block: Add driver specific options

2013-02-28 Thread Kevin Wolf
Am 28.02.2013 um 11:23 hat Stefan Hajnoczi geschrieben: > On Wed, Feb 27, 2013 at 06:25:49PM +0100, Kevin Wolf wrote: > > Instead of constantly keeping complaining that we need this big -blockdev > > things, let's start attacking individual parts of the project. Here is the > > first part, allowing

Re: [Qemu-devel] -gtk: invalid option

2013-02-28 Thread Paolo Bonzini
Il 28/02/2013 11:44, Gerd Hoffmann ha scritto: > Hi, > > $subject says all: try start qemu with the -gtk switch ... Isn't it "-display gtk"? Paolo

Re: [Qemu-devel] [RFC PATCH 2/6] block: Add options QDict to bdrv_open() prototype

2013-02-28 Thread Kevin Wolf
Am 28.02.2013 um 11:39 hat Stefan Hajnoczi geschrieben: > On Wed, Feb 27, 2013 at 06:25:51PM +0100, Kevin Wolf wrote: > > @@ -780,15 +788,28 @@ int bdrv_open_backing_file(BlockDriverState *bs) > > > > /* > > * Opens a disk image (raw, qcow2, vmdk, ...) > > + * > > + * options is a QDict of opt

Re: [Qemu-devel] [PATCH v4 1/4] Add moxie target code

2013-02-28 Thread Peter Maydell
On 27 February 2013 22:09, Anthony Green wrote: > +static const VMStateDescription vmstate_moxie_cpu = { > +.name = "cpu", > +.unmigratable = 1, > +}; Since this is a new CPU it should just go ahead and implement migration support. > +/* The dynamic value of the DELAY_SLOT_TRUE flag dete

Re: [Qemu-devel] [PATCH v4 6/6] KVM: s390: Wire up ioeventfd.

2013-02-28 Thread Cornelia Huck
On Thu, 28 Feb 2013 12:24:19 +0200 Gleb Natapov wrote: > On Thu, Feb 28, 2013 at 11:20:13AM +0100, Cornelia Huck wrote: > > Whoops. Doesn't seem to have hurt, though. > > > > v6 will come up shortly. > > > Are you going to skip v5? > > -- > Gleb. > I meant v5 (-ENOCOFFE

Re: [Qemu-devel] -gtk: invalid option

2013-02-28 Thread Gerd Hoffmann
On 02/28/13 12:01, Paolo Bonzini wrote: > Il 28/02/2013 11:44, Gerd Hoffmann ha scritto: >> Hi, >> >> $subject says all: try start qemu with the -gtk switch ... > > Isn't it "-display gtk"? That one works. Didn't know this exists, /me always used -vnc -sdl and assumed we just got -gtk now ...

Re: [Qemu-devel] [PATCH 1/4] configure: Add --enable-migration-from-qemu-kvm

2013-02-28 Thread Paolo Bonzini
Il 21/02/2013 08:44, Paolo Bonzini ha scritto: > Il 20/02/2013 22:03, Anthony Liguori ha scritto: >> Paolo Bonzini writes: >> >>> Il 20/02/2013 21:26, Anthony Liguori ha scritto: Cole Robinson writes: > This switch will turn on all the migration compat bits needed to > perform m

[Qemu-devel] [PATCH v5 2/6] KVM: s390: Export virtio-ccw api.

2013-02-28 Thread Cornelia Huck
Export the virtio-ccw api in a header for usage by other code. Signed-off-by: Cornelia Huck --- arch/s390/include/uapi/asm/Kbuild | 1 + arch/s390/include/uapi/asm/virtio-ccw.h | 21 + drivers/s390/kvm/virtio_ccw.c | 5 + 3 files changed, 23 insertions(+

[Qemu-devel] [PATCH v5 3/6] KVM: Initialize irqfd from kvm_init().

2013-02-28 Thread Cornelia Huck
Currently, eventfd introduces module_init/module_exit functions to initialize/cleanup the irqfd workqueue. This only works, however, if no other module_init/module_exit functions are built into the same module. Let's just move the initialization and cleanup to kvm_init and kvm_exit. This way, it i

[Qemu-devel] [PATCH v5 1/6] virtio_ccw: pass a cookie value to kvm hypercall

2013-02-28 Thread Cornelia Huck
From: "Michael S. Tsirkin" Lookups by channel/vq pair on host during virtio notifications might be expensive. Interpret hypercall return value as a cookie which host can use to do device lookups for the next notification more efficiently. [CH: Fix line > 80 chars] Tested-by: Christian Borntraeg

[Qemu-devel] [PATCH v5 6/6] KVM: s390: Wire up ioeventfd.

2013-02-28 Thread Cornelia Huck
Enable ioeventfd support on s390 and hook up diagnose 500 virtio-ccw notifications. Signed-off-by: Cornelia Huck --- arch/s390/kvm/Kconfig| 1 + arch/s390/kvm/Makefile | 2 +- arch/s390/kvm/diag.c | 26 ++ arch/s390/kvm/kvm-s390.c | 1 + 4 files changed, 29 i

[Qemu-devel] [PATCH v5 4/6] KVM: Introduce KVM_VIRTIO_CCW_NOTIFY_BUS.

2013-02-28 Thread Cornelia Huck
Add a new bus type for virtio-ccw devices on s390. Signed-off-by: Cornelia Huck --- include/linux/kvm_host.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 3b768ef..206247f 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kv

[Qemu-devel] [PATCH v5 0/6] kvm: Make ioeventfd usable on s390.

2013-02-28 Thread Cornelia Huck
v5 of the ioeventfd patch set, this time with a proper return code from __diag_virtio_hypercall(), otherwise unchanged. v4 -> v5: - Proper return code in __diag_virtio_hypercall() v3 -> v4: - Pass cookies in virtio-ccw notify hypercall - Coding style v2 -> v3: - Added a patch exporting the virtio-

[Qemu-devel] [PATCH v5 5/6] KVM: ioeventfd for virtio-ccw devices.

2013-02-28 Thread Cornelia Huck
Enhance KVM_IOEVENTFD with a new flag that allows to attach to virtio-ccw devices on s390 via the KVM_VIRTIO_CCW_NOTIFY_BUS. Signed-off-by: Cornelia Huck --- Documentation/virtual/kvm/api.txt | 8 include/uapi/linux/kvm.h | 3 +++ virt/kvm/eventfd.c| 17 ++

Re: [Qemu-devel] [PATCH v4 2/6] add basic backup support to block driver

2013-02-28 Thread Kevin Wolf
Am 27.02.2013 um 16:38 hat Dietmar Maurer geschrieben: > > > Adding and IO queue and implement a scheduler is likely not what we want > > > to > > do. > > > > The starting point for something smarter than just no policy or > > rate-limiting is > > BlockDriverState->tracked_requests. block.c kee

[Qemu-devel] [PATCH v13 5/8] add a new qevent: QEVENT_GUEST_PANICKED

2013-02-28 Thread Hu Tao
This event will be emited when the guest is panicked. Signed-off-by: Wen Congyang --- include/monitor/monitor.h | 1 + monitor.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/monitor/monitor.h b/include/monitor/monitor.h index 87fb49c..4006905 100644 --- a/include

[Qemu-devel] [PATCH v13] kvm: notify host when the guest is panicked

2013-02-28 Thread Hu Tao
We can know the guest is panicked when the guest runs on xen. But we do not have such feature on kvm. Another purpose of this feature is: management app(for example: libvirt) can do auto dump when the guest is panicked. If management app does not do auto dump, the guest's user can do dump by hand

[Qemu-devel] [PATCH v13 3/8] update kernel headers

2013-02-28 Thread Hu Tao
update kernel headers to add pv event macros. Signed-off-by: Wen Congyang Signed-off-by: Hu Tao --- linux-headers/asm-x86/kvm_para.h | 1 + linux-headers/linux/kvm_para.h | 6 ++ 2 files changed, 7 insertions(+) diff --git a/linux-headers/asm-x86/kvm_para.h b/linux-headers/asm-x86/kvm_pa

[Qemu-devel] [PATCH v13 1/8] save/load cpu runstate

2013-02-28 Thread Hu Tao
This patch enables preservation of cpu runstate during save/load vm. So when a vm is restored from snapshot, the cpu runstate is restored, too. See following example: # save two vms: one is running, the other is paused (qemu) info status VM status: running (qemu) savevm running (qemu) stop (qemu)

[Qemu-devel] [PATCH v13 2/8] start vm after resetting it

2013-02-28 Thread Hu Tao
From: Wen Congyang The guest should run after resetting it, but it does not run if its old state is RUN_STATE_INTERNAL_ERROR or RUN_STATE_PAUSED. We don't set runstate to RUN_STATE_PAUSED when resetting the guest, so the runstate will be changed from RUN_STATE_INTERNAL_ERROR or RUN_STATE_PAUSED

[Qemu-devel] [PATCH v13 0/8] pv event interface between host and guest

2013-02-28 Thread Hu Tao
This series implements a new interface, kvm pv event, to notify host when some events happen in guest. Right now there is one supported event: guest panic. Also, the cpu runstate is preserved during save/load vm and migration. Thus, if vm is panicked during migration, we can still know it by qurin

[Qemu-devel] [PATCH v13 8/8] pv event: add document to describe the usage

2013-02-28 Thread Hu Tao
Signed-off-by: Hu Tao --- docs/pv-event.txt | 17 + 1 file changed, 17 insertions(+) create mode 100644 docs/pv-event.txt diff --git a/docs/pv-event.txt b/docs/pv-event.txt new file mode 100644 index 000..ac9e7fa --- /dev/null +++ b/docs/pv-event.txt @@ -0,0 +1,17 @@ +KVM PV

[Qemu-devel] [PATCH v13 4/8] add a new runstate: RUN_STATE_GUEST_PANICKED

2013-02-28 Thread Hu Tao
The guest will be in this state when it is panicked. Signed-off-by: Wen Congyang Signed-off-by: Hu Tao --- migration.c | 1 + qapi-schema.json | 6 +- qmp.c| 3 ++- vl.c | 11 ++- 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/migrati

[Qemu-devel] [PATCH v13 7/8] allower the user to disable pv event support

2013-02-28 Thread Hu Tao
Signed-off-by: Wen Congyang Signed-off-by: Hu Tao --- hw/pc_piix.c| 9 - qemu-options.hx | 3 ++- vl.c| 4 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index 24a9bf3..82a421a 100644 --- a/hw/pc_piix.c +++ b/hw/pc_piix.c

[Qemu-devel] [PATCH v13 6/8] introduce a new qom device to deal with panicked event

2013-02-28 Thread Hu Tao
If the target is x86/x86_64, the guest's kernel will write 0x01 to the port KVM_PV_EVENT_PORT when it is panciked. This patch introduces a new qom device kvm_pv_ioport to listen this I/O port, and deal with panicked event according to panicked_action's value. The possible actions are: 1. emit QEVEN

Re: [Qemu-devel] 9pfs segfaults on chmod(special)

2013-02-28 Thread M. Mohan Kumar
Michael Tokarev writes: > 28.02.2013 13:12, Aneesh Kumar K.V wrote: >> Michael Tokarev writes: >> >>> When guest tries to chmod a block or char device file over 9pfs, >>> the qemu process segfaults. >>> >>> On host: >>> qemu-system-x86_64 -virtfs >>> local,path=/dev,security_model=mapped-file

Re: [Qemu-devel] [PATCH v5 3/6] add backup related monitor commands

2013-02-28 Thread Markus Armbruster
Dietmar Maurer writes: >> > You can easily extend the API to allow multiple backups (In a fully >> > backwards compatible way). So there is no need to change that now. >> >> I disagree. >> >> You propose something like: >> >> 1. -> { "execute": "backup", >> "arguments": { "backup-fil

Re: [Qemu-devel] [PATCH v2] vl.c: Support multiple CPU ranges on -numa option

2013-02-28 Thread Markus Armbruster
Paolo Bonzini writes: > Il 27/02/2013 17:19, Eduardo Habkost ha scritto: >>> > >>> > If it is meant as a prototype only, and the final command-line syntax >>> > would be with repeated keys, that's okay. I think that Eduardo/Markus/I >>> > are focusing on the user interface, you're focusing in t

Re: [Qemu-devel] [PATCH v5 3/6] add backup related monitor commands

2013-02-28 Thread Dietmar Maurer
> >> With multiple backup support, we still need to keep it working > >> unchanged when no or just one backup is executing. When more are > >> executing, we have to make it fail, unless an optional argument is > >> given. > > Again, unnecessary complexity. > > Moreover, omitting

Re: [Qemu-devel] [PATCH v2] vl.c: Support multiple CPU ranges on -numa option

2013-02-28 Thread Markus Armbruster
Anthony Liguori writes: > Paolo Bonzini writes: > >> Il 27/02/2013 16:42, Anthony Liguori ha scritto: >>> There's such thing as list support in QemuOpts. The only way >>> QemuOptsVisitor was able to implement it was to expose QemuOpts publicly >>> via options_int.h and rely on a implementation

Re: [Qemu-devel] [PATCH v1 5/5] xilinx_spips: seperate SPI and QSPI as two classes

2013-02-28 Thread Peter Maydell
On 20 February 2013 07:26, Peter Crosthwaite wrote: > Make SPI and QSPI different classes. QSPIPS is setup as a child of SPIPS. > Only QSPI has the LQSPI functionality, so move all that to the child class. > > Signed-off-by: Peter Crosthwaite Doesn't compile: /home/petmay01/linaro/qemu-from-lap

Re: [Qemu-devel] [PATCH 1/4] configure: Add --enable-migration-from-qemu-kvm

2013-02-28 Thread Anthony Liguori
Paolo Bonzini writes: > Il 21/02/2013 08:44, Paolo Bonzini ha scritto: >> Il 20/02/2013 22:03, Anthony Liguori ha scritto: >>> Paolo Bonzini writes: >>> Il 20/02/2013 21:26, Anthony Liguori ha scritto: > Cole Robinson writes: > >> This switch will turn on all the migration comp

Re: [Qemu-devel] [PATCH 1/4] configure: Add --enable-migration-from-qemu-kvm

2013-02-28 Thread Paolo Bonzini
Il 28/02/2013 14:06, Anthony Liguori ha scritto: >>> >> >>> >> That would make sense, but it shouldn't block this patch. What would >>> >> happen otherwise is that distros (who care about migration >>> >> compatibility) will just patch their code without even the #ifdefs. >>> >> It's already happ

Re: [Qemu-devel] [PATCH v5 0/6] kvm: Make ioeventfd usable on s390.

2013-02-28 Thread Michael S. Tsirkin
On Thu, Feb 28, 2013 at 12:33:15PM +0100, Cornelia Huck wrote: > v5 of the ioeventfd patch set, this time with a proper return code > from __diag_virtio_hypercall(), otherwise unchanged. > > v4 -> v5: > - Proper return code in __diag_virtio_hypercall() > v3 -> v4: > - Pass cookies in virtio-ccw no

Re: [Qemu-devel] [PATCH v2] vl.c: Support multiple CPU ranges on -numa option

2013-02-28 Thread Markus Armbruster
Anthony Liguori writes: > Paolo Bonzini writes: > >> Il 27/02/2013 18:08, Anthony Liguori ha scritto: > > No, no, no. This makes ':' special, which means you can't have lists of > anything containing ':'. Your cure is worse than the disease. Let go > of that syntactic high

Re: [Qemu-devel] [PATCH] m25p80.c: Use QOM classes for part differentiation

2013-02-28 Thread Peter Maydell
On 7 February 2013 05:51, Peter Crosthwaite wrote: > Currently, M25P80 uses an object property to differentiate between flash > parts. > Changed this over to use QOM sub-classes - the actual names of the different > parts > are used to create a set of dynamic classes which passes the part info a

Re: [Qemu-devel] [PATCH 1/4] configure: Add --enable-migration-from-qemu-kvm

2013-02-28 Thread Anthony Liguori
Paolo Bonzini writes: > Il 28/02/2013 14:06, Anthony Liguori ha scritto: >> >> That would make sense, but it shouldn't block this patch. What would >> happen otherwise is that distros (who care about migration >> compatibility) will just patch their code without even the #if

Re: [Qemu-devel] [PATCH v13 2/8] start vm after resetting it

2013-02-28 Thread Jan Kiszka
On 2013-02-28 13:13, Hu Tao wrote: > From: Wen Congyang > > The guest should run after resetting it, but it does not run if its > old state is RUN_STATE_INTERNAL_ERROR or RUN_STATE_PAUSED. > > We don't set runstate to RUN_STATE_PAUSED when resetting the guest, > so the runstate will be changed f

Re: [Qemu-devel] [PATCH v2] vl.c: Support multiple CPU ranges on -numa option

2013-02-28 Thread Anthony Liguori
Markus Armbruster writes: > Related: overwrite something you got from a config file on the command > line. > > In both your example and mine, we have entirely separate options, and > they have perfectly ordinary overwrite semantics: each option overwrites > the given keys with the given values.

Re: [Qemu-devel] [PATCH v1 0/5] Zynq GEM updates

2013-02-28 Thread Peter Maydell
On 15 February 2013 04:51, Peter Crosthwaite wrote: > Misc fixes and cleanups to the Zynq GEM device model. Patch 1 fixes a flow > control issue talking to the network. Patches 2 and 5 are trivial. Patches 3 > & 4 correct inaccuracies in the device model. Thanks; applied all to arm-devs.next. (

Re: [Qemu-devel] [PATCH v10 0/7] trace: Generic event state description

2013-02-28 Thread Lluís Vilanova
Stefan Hajnoczi writes: > On Fri, Jan 25, 2013 at 05:33:46PM +0100, Lluís Vilanova wrote: >> Provides a generic event state description structure (TraceEvent) and a more >> detailed event control and query interface. >> >> This is achieved by creating a new "non-public" tracing backend (i.e., not

Re: [Qemu-devel] [PATCH v11 3/3] xilinx_zynq: added pl330 to machine model

2013-02-28 Thread Peter Maydell
On 27 February 2013 05:17, Peter Crosthwaite wrote: > Signed-off-by: Peter Crosthwaite Reviewed-by: Peter Maydell -- PMM

Re: [Qemu-devel] [PATCH] net: use socket_set_nodelay() for -netdev socket

2013-02-28 Thread Stefan Hajnoczi
On Wed, Feb 27, 2013 at 04:49:16PM +, Daniel P. Berrange wrote: > On Wed, Feb 27, 2013 at 03:05:47PM +0100, Stefan Hajnoczi wrote: > > Reduce -netdev socket latency by disabling the Nagle algorithm on > > SOCK_STREAM sockets in net/socket.c. Since we are tunelling Ethernet > > over TCP we shou

Re: [Qemu-devel] [PATCH 0/9] introduce virtio net dataplane

2013-02-28 Thread Michael S. Tsirkin
On Thu, Feb 21, 2013 at 11:02:31AM -0600, Anthony Liguori wrote: > "Michael S. Tsirkin" writes: > > > On Thu, Feb 21, 2013 at 10:15:58AM -0600, Anthony Liguori wrote: > >> "Michael S. Tsirkin" writes: > >> > >> > On Thu, Feb 21, 2013 at 08:54:44PM +0800, Liu Ping Fan wrote: > >> >> This is a em

Re: [Qemu-devel] [PATCH v2] vl.c: Support multiple CPU ranges on -numa option

2013-02-28 Thread Anthony Liguori
Markus Armbruster writes: > Anthony Liguori writes: > >> Paolo Bonzini writes: >> >> What about: >> >> [numa] >> node=1 >> cpus=2 >> cpus=3 >> >> qemu -readconfig numa.cfg -numa node=1,cpus=1 > > I figure you mean > > [numa] > nodeid=1 >

Re: [Qemu-devel] 9pfs: unreadable dirs with random errors in guest

2013-02-28 Thread M. Mohan Kumar
Michael Tokarev writes: Hi, Please try mounting with -oversion=9p2000.L With qemu-1.4.0 and 9p2000.L, I could not recreate this issue. ie not getting Unknown error during directory listing. I am using Guest kernel 3.8.0-rc5+. > When I mount a 9pfs filesystem in guest with no write permission

Re: [Qemu-devel] [PATCH] net: use socket_set_nodelay() for -netdev socket

2013-02-28 Thread Daniel P. Berrange
On Thu, Feb 28, 2013 at 02:49:51PM +0100, Stefan Hajnoczi wrote: > On Wed, Feb 27, 2013 at 04:49:16PM +, Daniel P. Berrange wrote: > > On Wed, Feb 27, 2013 at 03:05:47PM +0100, Stefan Hajnoczi wrote: > > > Reduce -netdev socket latency by disabling the Nagle algorithm on > > > SOCK_STREAM socke

Re: [Qemu-devel] [ARM] Cortex-R4F and VFP3-D16

2013-02-28 Thread Fabien Chouteau
On 02/27/2013 09:49 PM, Paul Brook wrote: > I've got a patch to implement this as a side-effect of a different feature, > I'll look at pushing it out. Great, don't hesitate to ask if you want some help. In the meantime I have another question for you. In helper.c:vfp_gdb_get_reg(), there's a com

Re: [Qemu-devel] [PATCH 3/4] ram: add support for seekable file save

2013-02-28 Thread Stefan Hajnoczi
On Thu, Feb 28, 2013 at 04:09:44PM +0800, Wenchao Xia wrote: > diff --git a/arch_init.c b/arch_init.c > index 8daeafa..0c12095 100644 > --- a/arch_init.c > +++ b/arch_init.c > @@ -657,6 +657,245 @@ static int ram_save_iterate(QEMUFile *f, void *opaque) > return total_sent; > } > > +/* ram s

  1   2   >