[Qemu-devel] [Bug 1368815] Re: qemu-img convert intermittently corrupts output images

2014-12-01 Thread Michael Steffens
Tested qemu-utils 2.0.0+dfsg-2ubuntu1.8. Successful. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1368815 Title: qemu-img convert intermittently corrupts output images Status in OpenStack Comput

[Qemu-devel] [Bug 1368815] Re: qemu-img convert intermittently corrupts output images

2014-12-01 Thread Michael Steffens
** Tags removed: verification-needed ** Tags added: verification-done-trusty -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1368815 Title: qemu-img convert intermittently corrupts output images Sta

[Qemu-devel] [PATCH v7 0/3] linux-aio: fix batch submission

2014-12-01 Thread Ming Lei
The 1st patch fixes batch submission. The 2nd one fixes -EAGAIN for non-batch case. The 3rd one is a cleanup. This patchset is splitted from previous patchset(dataplane: optimization and multi virtqueue support), as suggested by Stefan. V7: - add protection for aborting in laio_attach_a

[Qemu-devel] [PATCH v7 1/3] linux-aio: fix submit aio as a batch

2014-12-01 Thread Ming Lei
In the submit path, we can't complete request directly, otherwise "Co-routine re-entered recursively" may be caused, so this patch fixes the issue with below ideas: - for -EAGAIN or partial submission, retry the submision in following completion cb which is run in BH context

[Qemu-devel] [PATCH v7 3/3] linux-aio: remove 'node' from 'struct qemu_laiocb'

2014-12-01 Thread Ming Lei
No one uses the 'node' field any more, so remove it from 'struct qemu_laiocb', and this can save 16byte for the struct on 64bit arch. Reviewed-by: Kevin Wolf Reviewed-by: Paolo Bonzini Signed-off-by: Ming Lei --- block/linux-aio.c |1 - 1 file changed, 1 deletion(-) diff --git a/block/lin

[Qemu-devel] [PATCH v7 2/3] linux-aio: handling -EAGAIN for !s->io_q.plugged case

2014-12-01 Thread Ming Lei
Previously -EAGAIN is simply ignored for !s->io_q.plugged case, and sometimes it is easy to cause -EIO to VM, such as NVME device. This patch handles -EAGAIN by io queue for !s->io_q.plugged case, and it will be retried in following aio completion cb. Most of times, -EAGAIN only happens if there

[Qemu-devel] [for-2.2] Re: [PATCH] vhost: Fix vhostfd leak in error branch

2014-12-01 Thread Michael S. Tsirkin
On Fri, Nov 28, 2014 at 05:26:29PM +0800, arei.gong...@huawei.com wrote: > From: Gonglei > > Signed-off-by: Gonglei Peter, could you pick this up for 2.2 please? Reviewed-by: Michael S. Tsirkin > --- > hw/scsi/vhost-scsi.c | 1 + > hw/virtio/vhost.c| 2 ++ > 2 files changed, 3 insertio

Re: [Qemu-devel] [BUG] Redhat-6.4_64bit-guest kernel panic with cpu-passthrough and guest numa

2014-12-01 Thread Paolo Bonzini
On 28/11/2014 03:38, Gonglei wrote: >> > Can you find what line of kernel/sched.c it is? > Yes, of course. See below please: > "sgs->avg_load = (sgs->group_load * SCHED_LOAD_SCALE) / group->cpu_power; " > in update_sg_lb_stats(), file sched.c, line 4094 > And I can share the cause of we found. Af

Re: [Qemu-devel] [PATCH] target-mips: add CPU definition for MIPS-II

2014-12-01 Thread Vasileios Kalintiris
From: Vasileios Kalintiris Sent: 25 November 2014 11:04 To: qemu-devel@nongnu.org Cc: Leon Alrae; aurel...@aurel32.net Subject: [PATCH] target-mips: add CPU definition for MIPS-II Add mips2-generic among CPU definitions for MIPS. Signed-off-by: Vasileios

Re: [Qemu-devel] Help: Convert HDD to QCOW2 img

2014-12-01 Thread Stefan Hajnoczi
On Mon, Dec 1, 2014 at 9:40 AM, Halsey Pian wrote: Please keep qemu-devel@nongnu.org CCed so the discussion stays on the mailing list. I have added it back. > Hi Stefan, not know if there is similar module, currently I have not seen it. > If yes, please forgive me. And for the program if it >

Re: [Qemu-devel] MinGW build

2014-12-01 Thread Liviu Ionescu
On 28 Nov 2014, at 09:03, Stefan Weil wrote: > This is my build script: > http://qemu.weilnetz.de/results/make-installers-all. we finally have a functional windows version, installed with a setup, as you recommended. the build procedure was fully documented at: http://gnuarmeclipse.livius.ne

Re: [Qemu-devel] [PATCH v2] persistent dirty bitmap: add QDB file spec.

2014-12-01 Thread Stefan Hajnoczi
On Fri, Nov 28, 2014 at 04:28:57PM +0300, Vladimir Sementsov-Ogievskiy wrote: > On 21.11.2014 19:55, Stefan Hajnoczi wrote: > >Active dirty bitmaps should migrate too. I'm thinking now that the > >appropriate thing is to add live migration of dirty bitmaps to QEMU > >(regardless of whether they ar

Re: [Qemu-devel] [RFC PATCH 1/3] qemu-img bench

2014-12-01 Thread Stefan Hajnoczi
On Fri, Nov 28, 2014 at 01:19:59PM +0100, Kevin Wolf wrote: > Am 28.11.2014 um 12:49 hat Stefan Hajnoczi geschrieben: > > On Wed, Nov 26, 2014 at 03:46:42PM +0100, Kevin Wolf wrote: > > > +while (data.n > 0) { > > > +main_loop_wait(false); > > > +} > > > > Why is this false (non-bl

Re: [Qemu-devel] [PATCH] block: do not use get_clock()

2014-12-01 Thread Stefan Hajnoczi
On Fri, Nov 28, 2014 at 02:41:54PM +0100, Markus Armbruster wrote: > Stefan Hajnoczi writes: > > > On Wed, Nov 26, 2014 at 03:01:02PM +0100, Paolo Bonzini wrote: > >> Use the external qemu-timer API instead. > >> > >> Cc: kw...@redhat.com > >> Cc: stefa...@redhat.com > >> Signed-off-by: Paolo Bo

Re: [Qemu-devel] [PATCH RFC for-2.2] virtio-blk: force 1st s/g to match header

2014-12-01 Thread Peter Maydell
On 30 November 2014 at 16:43, Michael S. Tsirkin wrote: > The result of this is host mapping leak. > What effect does this have? Can this DOS host? I don't think we can DOS the host here. If Xen, we crash (but you can't use virtio-blk with Xen anyway) Otherwise, if you managed to get address_spa

Re: [Qemu-devel] [PATCH RFC for-2.2] virtio-blk: force 1st s/g to match header

2014-12-01 Thread Michael S. Tsirkin
On Mon, Dec 01, 2014 at 12:07:07PM +, Peter Maydell wrote: > On 30 November 2014 at 16:43, Michael S. Tsirkin wrote: > > The result of this is host mapping leak. > > What effect does this have? Can this DOS host? > > I don't think we can DOS the host here. > > If Xen, we crash (but you can't

Re: [Qemu-devel] [PATCH 3/7] test-coroutine: avoid overflow on 32-bit systems

2014-12-01 Thread Paolo Bonzini
On 01/12/2014 02:28, Ming Lei wrote: >> > - (unsigned long)(10 * duration) / maxcycles); >> > + (unsigned long)(10.0 * duration / maxcycles)); > One more single bracket. I don't understand? Paolo

Re: [Qemu-devel] [PATCH] block: do not use get_clock()

2014-12-01 Thread Markus Armbruster
Stefan Hajnoczi writes: > On Fri, Nov 28, 2014 at 02:41:54PM +0100, Markus Armbruster wrote: >> Stefan Hajnoczi writes: >> >> > On Wed, Nov 26, 2014 at 03:01:02PM +0100, Paolo Bonzini wrote: >> >> Use the external qemu-timer API instead. >> >> >> >> Cc: kw...@redhat.com >> >> Cc: stefa...@redh

[Qemu-devel] [Bug 1383857] Re: aarch64: virtio disks don't show up in guest (neither blk nor scsi)

2014-12-01 Thread Richard Jones
Still happening with latest upstream kernel. It seems to involve using the -initrd option at all, with any cpio file, even a tiny one. More results posted here: https://lists.cs.columbia.edu/pipermail/kvmarm/2014-December/012557.html -- You received this bug notification because you are a memb

Re: [Qemu-devel] [PATCH] mips: Fix the 64-bit case for microMIPS MOVE16 and MOVEP

2014-12-01 Thread Maciej W. Rozycki
On Mon, 24 Nov 2014, Leon Alrae wrote: > All the patches up to this one have been applied to mips-next branch > (available at git://github.com/lalrae/qemu.git), thanks. I'll go through > the remaining soon. Thanks. I am now back from a week's vacation and will continue posting outstanding chan

Re: [Qemu-devel] [for-2.2] Re: [PATCH] vhost: Fix vhostfd leak in error branch

2014-12-01 Thread Peter Maydell
On 1 December 2014 at 09:37, Michael S. Tsirkin wrote: > On Fri, Nov 28, 2014 at 05:26:29PM +0800, arei.gong...@huawei.com wrote: >> From: Gonglei >> >> Signed-off-by: Gonglei > > Peter, could you pick this up for 2.2 please? > > Reviewed-by: Michael S. Tsirkin Applied, thanks. -- PMM

Re: [Qemu-devel] [Xen-devel] [PATCH] increase maxmem before calling xc_domain_populate_physmap

2014-12-01 Thread Don Slutz
On 11/27/14 05:48, Stefano Stabellini wrote: On Wed, 26 Nov 2014, Don Slutz wrote: On 11/26/14 13:17, Stefano Stabellini wrote: On Tue, 25 Nov 2014, Andrew Cooper wrote: On 25/11/14 17:45, Stefano Stabellini wrote: Increase maxmem before calling xc_domain_populate_physmap_exact to avoid the r

Re: [Qemu-devel] [RFC 1/6] bitmap: add atomic set functions

2014-12-01 Thread Stefan Hajnoczi
On Thu, Nov 27, 2014 at 05:42:41PM +0100, Paolo Bonzini wrote: > > > On 27/11/2014 13:29, Stefan Hajnoczi wrote: > > +void bitmap_set_atomic(unsigned long *map, long start, long nr) > > +{ > > +unsigned long *p = map + BIT_WORD(start); > > +const long size = start + nr; > > +int bits_

[Qemu-devel] xorg crash on Fedora 21 xen hvm domUs with qxl (log with backtrace included)

2014-12-01 Thread Fabio Fantoni
On my latest test with xen 4.5 and qemu 2.2 (from git) linux hvm domU (Fedora 21) has no more crashed without any useful information in log but was crashed only xorg on start: [20.653] (EE) [20.653] (EE) Backtrace: [20.668] (EE) 0: /usr/libexec/Xorg.bin (OsLookupColor+0x119) [0x59

Re: [Qemu-devel] [RFC 2/6] bitmap: add atomic test and clear

2014-12-01 Thread Stefan Hajnoczi
On Thu, Nov 27, 2014 at 05:43:56PM +0100, Paolo Bonzini wrote: > > > On 27/11/2014 13:29, Stefan Hajnoczi wrote: > > +bool bitmap_test_and_clear_atomic(unsigned long *map, long start, long nr) > > +{ > > +unsigned long *p = map + BIT_WORD(start); > > +const long size = start + nr; > > +

Re: [Qemu-devel] Announcing QEMU Advent Calendar 2014

2014-12-01 Thread François Revol
On 24/11/2014 17:15, Stefan Hajnoczi wrote: > The QEMU Advent Calendar is launching on December 1st 2014: > > http://www.qemu-advent-calendar.org/ > > Each day until Christmas (or until we run out) a new QEMU disk image > will be posted for you to enjoy. > > The disk images showcase interesting

Re: [Qemu-devel] [RFC 4/6] migration: move dirty bitmap sync to ram_addr.h

2014-12-01 Thread Stefan Hajnoczi
On Thu, Nov 27, 2014 at 04:29:06PM +, Dr. David Alan Gilbert wrote: > * Stefan Hajnoczi (stefa...@redhat.com) wrote: > > The dirty memory bitmap is managed by ram_addr.h and copied to > > migration_bitmap[] periodically during live migration. > > > > Move the code to sync the bitmap to ram_add

[Qemu-devel] [PATCH] arm: dtb: Align dtb to 64K because some kernels use 64K page size.

2014-12-01 Thread Richard W.M. Jones
Resolves: https://bugs.launchpad.net/qemu/+bug/1383857 Signed-off-by: Richard W.M. Jones --- hw/arm/boot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/arm/boot.c b/hw/arm/boot.c index 0014c34..a859922 100644 --- a/hw/arm/boot.c +++ b/hw/arm/boot.c @@ -632,11 +632,11

Re: [Qemu-devel] Help: Convert HDD to QCOW2 img

2014-12-01 Thread Halsey
Hi Stefan, Thanks for so much info you provided. Okay, I would keep qemu-devel mailing list in the loop, no problem. Currently, I have finished the coding of the wrapper, now testing the bdrv_read/write qcow2 img. I would look into these libraries and incorporate them based on the concept of

Re: [Qemu-devel] Announcing QEMU Advent Calendar 2014

2014-12-01 Thread Stefan Hajnoczi
On Mon, Dec 1, 2014 at 1:57 PM, François Revol wrote: > On 24/11/2014 17:15, Stefan Hajnoczi wrote: >> The QEMU Advent Calendar is launching on December 1st 2014: >> >> http://www.qemu-advent-calendar.org/ >> >> Each day until Christmas (or until we run out) a new QEMU disk image >> will be posted

Re: [Qemu-devel] [RFC 4/6] migration: move dirty bitmap sync to ram_addr.h

2014-12-01 Thread Dr. David Alan Gilbert
* Stefan Hajnoczi (stefa...@redhat.com) wrote: > On Thu, Nov 27, 2014 at 04:29:06PM +, Dr. David Alan Gilbert wrote: > > * Stefan Hajnoczi (stefa...@redhat.com) wrote: > > > The dirty memory bitmap is managed by ram_addr.h and copied to > > > migration_bitmap[] periodically during live migratio

[Qemu-devel] [Bug 1383857] Re: aarch64: virtio disks don't show up in guest (neither blk nor scsi)

2014-12-01 Thread Richard Jones
Finally found the problem, patch posted: https://lists.gnu.org/archive/html/qemu-devel/2014-12/msg00034.html -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1383857 Title: aarch64: virtio disks don't

Re: [Qemu-devel] [PATCH] arm: dtb: Align dtb to 64K because some kernels use 64K page size.

2014-12-01 Thread Peter Maydell
On 1 December 2014 at 14:13, Richard W.M. Jones wrote: > Resolves: https://bugs.launchpad.net/qemu/+bug/1383857 > Signed-off-by: Richard W.M. Jones This is really a kernel bug. https://www.kernel.org/doc/Documentation/arm64/booting.txt just says "The device tree blob (dtb) must be placed on an 8

Re: [Qemu-devel] [Xen-devel] [PATCH] increase maxmem before calling xc_domain_populate_physmap

2014-12-01 Thread Stefano Stabellini
On Mon, 1 Dec 2014, Don Slutz wrote: > On 11/27/14 05:48, Stefano Stabellini wrote: > > On Wed, 26 Nov 2014, Don Slutz wrote: > > > On 11/26/14 13:17, Stefano Stabellini wrote: > > > > On Tue, 25 Nov 2014, Andrew Cooper wrote: > > > > > On 25/11/14 17:45, Stefano Stabellini wrote: > > > > > > Incre

Re: [Qemu-devel] [PATCH v2 01/13] block: Make essential BlockDriver objects public

2014-12-01 Thread Eric Blake
On 11/27/2014 07:48 AM, Max Reitz wrote: > There are some block drivers which are essential to QEMU and may not be > removed: These are raw, file and qcow2 (as the default non-raw format). > Make their BlockDriver objects public so they can be directly referenced > throughout the block layer withou

Re: [Qemu-devel] [PATCH v2 02/13] block: Omit bdrv_find_format for essential drivers

2014-12-01 Thread Eric Blake
On 11/27/2014 07:48 AM, Max Reitz wrote: > We can always assume raw, file and qcow2 being available; so do not use > bdrv_find_format() to locate their BlockDriver objects but statically > reference the respective objects. > > Cc: qemu-sta...@nongnu.org > Signed-off-by: Max Reitz > --- > block.c

Re: [Qemu-devel] [RFC PATCH 0/2] Support to change VNC keyboard layout dynamically

2014-12-01 Thread Eric Blake
On 11/29/2014 03:39 AM, arei.gong...@huawei.com wrote: > From: Gonglei > > A bonus of this feature is that supporting different > people (in different countries) using defferent keyboard s/defferent/different/ > to connect the same guest but not need to configure > command line or libivrt xml f

Re: [Qemu-devel] [RFC PATCH 2/2] vnc: add change keyboard layout interface

2014-12-01 Thread Eric Blake
On 11/29/2014 03:39 AM, arei.gong...@huawei.com wrote: > From: Gonglei > > Example QMP command of Change VNC keyboard layout: > > -> { "execute": "change", > "arguments": { "device": "vnc", "target": "keymap", > "arg": "de" } } > <- { "return": {} } As I

[Qemu-devel] [PATCH RFC] e1000: defer packets until BM enabled

2014-12-01 Thread Michael S. Tsirkin
Some guests seem to set BM for e1000 after enabling RX. If packets arrive in the window, device is wedged. Probably works by luck on real hardware, work around this by making can_receive depend on BM. Signed-off-by: Michael S. Tsirkin --- hw/net/e1000.c | 20 +++- 1 file changed,

[Qemu-devel] QEMU Advent Calendar has begun - Day 1

2014-12-01 Thread Stefan Hajnoczi
Today is the first day of QEMU Advent Calendar 2014, where an interesting and fun QEMU disk image is published every day. http://www.qemu-advent-calendar.org/ I won't spam the mailing list every day but I wanted to let you know that from now until Christmas we will publish a daily image for your

Re: [Qemu-devel] [PATCH RFC] e1000: defer packets until BM enabled

2014-12-01 Thread Michael S. Tsirkin
On Mon, Dec 01, 2014 at 06:01:18PM +, Gabriel Somlo wrote: > Hi Michael, > > I had to make some small changes to get this patch to build successfully, > see inline below: Ouch, looks like I sent out a stale version: git commit build+edit git format-patch (without git commit) Happens to me no

[Qemu-devel] [PATCH v2] e1000: defer packets until BM enabled

2014-12-01 Thread Michael S. Tsirkin
Some guests seem to set BM for e1000 after enabling RX. If packets arrive in the window, device is wedged. Probably works by luck on real hardware, work around this by making can_receive depend on BM. Tested-by: Gabriel Somlo Signed-off-by: Michael S. Tsirkin --- Amos - you were the one reporti

Re: [Qemu-devel] MinGW build

2014-12-01 Thread Stefan Weil
Am 01.12.2014 um 11:30 schrieb Liviu Ionescu: > > On 28 Nov 2014, at 09:03, Stefan Weil wrote: > >> This is my build script: >> http://qemu.weilnetz.de/results/make-installers-all. > > we finally have a functional windows version, installed with a setup, as you > recommended. > > the build pr

Re: [Qemu-devel] [PATCH v8 02/10] qmp: Add block-dirty-bitmap-add and block-dirty-bitmap-remove

2014-12-01 Thread John Snow
On 11/27/2014 04:41 AM, Max Reitz wrote: On 2014-11-26 at 18:41, John Snow wrote: From: Fam Zheng The new command pair is added to manage user created dirty bitmap. The dirty bitmap's name is mandatory and must be unique for the same device, but different devices can have bitmaps with the sa

[Qemu-devel] Update on TCG Multithreading

2014-12-01 Thread Mark Burton
All - first a huge thanks for those who have contributed, and those who have expressed an interest in helping out. One issue I’d like to see more opinions on is the question of a cache per core, or a shared cache. I have heard anecdotal evidence that a shared cache gives a major performance be

[Qemu-devel] [PATCH v9 06/10] qmp: Add block-dirty-bitmap-enable and block-dirty-bitmap-disable

2014-12-01 Thread John Snow
From: Fam Zheng This allows to put the dirty bitmap into a disabled state where no more writes will be tracked. It will be used before backup or writing to persistent file. Signed-off-by: Fam Zheng Signed-off-by: John Snow Reviewed-by: Max Reitz --- block.c | 15 +

[Qemu-devel] [PATCH v9 03/10] block: Introduce bdrv_dirty_bitmap_granularity()

2014-12-01 Thread John Snow
From: Fam Zheng This returns the granularity (in bytes) of dirty bitmap, which matches the QMP interface and the existing query interface. Signed-off-by: Fam Zheng Signed-off-by: John Snow Reviewed-by: Max Reitz --- block.c | 9 +++-- include/block/block.h | 2 ++ 2 files c

[Qemu-devel] [PATCH v9 01/10] qapi: Add optional field "name" to block dirty bitmap

2014-12-01 Thread John Snow
From: Fam Zheng This field will be set for user created dirty bitmap. Also pass in an error pointer to bdrv_create_dirty_bitmap, so when a name is already taken on this BDS, it can report an error message. This is not global check, two BDSes can have dirty bitmap with a common name. Implemented

[Qemu-devel] [PATCH v9 00/10] block: Incremental backup series

2014-12-01 Thread John Snow
Note: This patch is now based on top of stefanha/block-next and is intended for QEMU 2.3. This is the in memory part of the incremental backup feature. With the added commands, we can create a bitmap on a block backend, from which point of time all the writes are tracked by the bitmap, marking se

[Qemu-devel] [PATCH v9 04/10] hbitmap: Add hbitmap_copy

2014-12-01 Thread John Snow
From: Fam Zheng This makes a deep copy of an HBitmap. Signed-off-by: Fam Zheng Signed-off-by: John Snow Reviewed-by: Max Reitz --- include/qemu/hbitmap.h | 8 util/hbitmap.c | 16 2 files changed, 24 insertions(+) diff --git a/include/qemu/hbitmap.h b/incl

[Qemu-devel] [PATCH v9 02/10] qmp: Add block-dirty-bitmap-add and block-dirty-bitmap-remove

2014-12-01 Thread John Snow
From: Fam Zheng The new command pair is added to manage user created dirty bitmap. The dirty bitmap's name is mandatory and must be unique for the same device, but different devices can have bitmaps with the same names. The granularity is an optional field. If it is not specified, we will choose

[Qemu-devel] [PATCH v9 09/10] qmp: Add dirty bitmap 'enabled' field in query-block

2014-12-01 Thread John Snow
From: Fam Zheng Signed-off-by: Fam Zheng Signed-off-by: John Snow Reviewed-by: Max Reitz --- block.c | 1 + qapi/block-core.json | 5 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/block.c b/block.c index 42244f6..677bc6f 100644 --- a/block.c +++ b/block.c @@

[Qemu-devel] [PATCH v9 08/10] qapi: Add transaction support to block-dirty-bitmap-{add, enable, disable}

2014-12-01 Thread John Snow
From: Fam Zheng This adds three qmp commands to transactions. Users can stop a dirty bitmap, start backup of it, and start another dirty bitmap atomically, so that the dirty bitmap is tracked incrementally and we don't miss any write. Signed-off-by: Fam Zheng Signed-off-by: John Snow Reviewed

[Qemu-devel] [PATCH v9 07/10] qmp: Add support of "dirty-bitmap" sync mode for drive-backup

2014-12-01 Thread John Snow
From: Fam Zheng For "dirty-bitmap" sync mode, the block job will iterate through the given dirty bitmap to decide if a sector needs backup (backup all the dirty clusters and skip clean ones), just as allocation conditions of "top" sync mode. There are two bitmap use modes for sync=dirty-bitmap:

[Qemu-devel] [PATCH v9 05/10] block: Add bdrv_copy_dirty_bitmap and bdrv_reset_dirty_bitmap

2014-12-01 Thread John Snow
From: Fam Zheng Signed-off-by: Fam Zheng Signed-off-by: John Snow Reviewed-by: Max Reitz --- block.c | 35 +++ include/block/block.h | 4 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/block.c b/block.c index a0d1150..2d08b9

[Qemu-devel] [PATCH v9 10/10] qemu-iotests: Add tests for drive-backup sync=dirty-bitmap

2014-12-01 Thread John Snow
From: Fam Zheng Signed-off-by: Fam Zheng Signed-off-by: John Snow Reviewed-by: Max Reitz --- tests/qemu-iotests/056| 33 ++--- tests/qemu-iotests/056.out| 4 ++-- tests/qemu-iotests/iotests.py | 8 3 files changed, 40 insertions(+), 5 deletio

[Qemu-devel] [Bug 1292234] Re: qcow2 image corruption in trusty (qemu 1.7 and 2.0 candidate)

2014-12-01 Thread Chris J Arges
Also I've been able to reproduce this with the latest master in qemu, and even with the latest daily 3.18-rcX kernel on the host. ** Also affects: qemu Importance: Undecided Status: New -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribe

Re: [Qemu-devel] [PATCH v9 01/10] qapi: Add optional field "name" to block dirty bitmap

2014-12-01 Thread Eric Blake
On 12/01/2014 01:30 PM, John Snow wrote: > From: Fam Zheng > > This field will be set for user created dirty bitmap. Also pass in an > error pointer to bdrv_create_dirty_bitmap, so when a name is already > taken on this BDS, it can report an error message. This is not global > check, two BDSes ca

Re: [Qemu-devel] Update on TCG Multithreading

2014-12-01 Thread Lluís Vilanova
Mark Burton writes: > All - first a huge thanks for those who have contributed, and those who have > expressed an interest in helping out. > One issue I’d like to see more opinions on is the question of a cache per > core, > or a shared cache. > I have heard anecdotal evidence that a shared cach

Re: [Qemu-devel] [PATCHv3] block: add event when disk usage exceeds threshold

2014-12-01 Thread Eric Blake
On 11/28/2014 05:31 AM, Francesco Romani wrote: > Managing applications, like oVirt (http://www.ovirt.org), make extensive > use of thin-provisioned disk images. > To let the guest run smoothly and be not unnecessarily paused, oVirt sets > a disk usage threshold (so called 'high water mark') based

Re: [Qemu-devel] [PATCH v9 02/10] qmp: Add block-dirty-bitmap-add and block-dirty-bitmap-remove

2014-12-01 Thread Eric Blake
On 12/01/2014 01:30 PM, John Snow wrote: > From: Fam Zheng > > The new command pair is added to manage user created dirty bitmap. The > dirty bitmap's name is mandatory and must be unique for the same device, > but different devices can have bitmaps with the same names. > > The granularity is an

Re: [Qemu-devel] [PATCH RFC] e1000: defer packets until BM enabled

2014-12-01 Thread Gabriel Somlo
Hi Michael, I had to make some small changes to get this patch to build successfully, see inline below: On Monday, December 01, 2014 11:50am, Michael S. Tsirkin [m...@redhat.com] wrote: > > Some guests seem to set BM for e1000 after > enabling RX. > If packets arrive in the window, device is we

Re: [Qemu-devel] [2.2 PATCH V2 for-4.5] virtio-net: fix unmap leak

2014-12-01 Thread Konrad Rzeszutek Wilk
On Thu, Nov 27, 2014 at 05:46:28PM +, Stefano Stabellini wrote: > On Thu, 27 Nov 2014, Konrad Rzeszutek Wilk wrote: > > On Nov 27, 2014 10:26 AM, Stefano Stabellini > > wrote: > > > > > > On Thu, 27 Nov 2014, Konrad Rzeszutek Wilk wrote: > > > > On Nov 27, 2014 9:58 AM, Stefano Stabellini >

Re: [Qemu-devel] [PATCH] qmp: extend QMP to provide read/write access to physical memory

2014-12-01 Thread Eric Blake
On 11/26/2014 01:27 PM, Bryan D. Payne wrote: > This patch adds a new QMP command that sets up a domain socket. This > socket can then be used for fast read/write access to the guest's > physical memory. The key benefit to this system over existing solutions > is speed. Using this patch, guest memo

Re: [Qemu-devel] [PATCH v2] qmp: extend QMP to provide read/write access to physical memory

2014-12-01 Thread Eric Blake
On 11/26/2014 01:27 PM, Bryan D. Payne wrote: > Thanks for the feedback Eric, I've updated the patch. > > v2 changes: > - added QMP command contract to qapi-schema.json > - corrected some comments > - rewired QMP command to use schema code When sending a v2, it's best to send it as a new top-leve

Re: [Qemu-devel] [Xen-devel] [PATCH] increase maxmem before calling xc_domain_populate_physmap

2014-12-01 Thread Don Slutz
On 12/01/14 10:37, Stefano Stabellini wrote: On Mon, 1 Dec 2014, Don Slutz wrote: On 11/27/14 05:48, Stefano Stabellini wrote: [...] Works fine in both claim modes and with PoD used (maxmem > memory). Do not know how to test with tmem. I do not see how it would be worse then current code

[Qemu-devel] [ANNOUNCE] QEMU 2.2.0-rc4 is now available

2014-12-01 Thread Michael Roth
On behalf of the QEMU Team, I'd like to announce the availability of the fifth release candidate for the QEMU 2.2 release. This release is meant for testing purposes and should not be used in a production environment. http://wiki.qemu.org/download/qemu-2.2.0-rc4.tar.bz2 This is the last planne

Re: [Qemu-devel] Update on TCG Multithreading

2014-12-01 Thread Alexander Graf
On 01.12.14 22:00, Lluís Vilanova wrote: > Mark Burton writes: > >> All - first a huge thanks for those who have contributed, and those who have >> expressed an interest in helping out. > >> One issue I’d like to see more opinions on is the question of a cache per >> core, >> or a shared cache

Re: [Qemu-devel] [PATCH] target-mips: add CPU definition for MIPS-II

2014-12-01 Thread Petar Jovanovic
Adding (another) generic model for an old ISA revision is rather discouraged in QEMU trunk. Can you add a particular real CPU model? Regards, Petar From: Vasileios Kalintiris Sent: 25 November 2014 11:04 To: address@hidden Cc: Leon Alrae; address@

[Qemu-devel] how to allocate more video memory to qemu

2014-12-01 Thread jenia.ivlev
Hello. How do I allocate a specific amount of video memory to a qemu machine? My OS is GNU/Linux Arch. I'm running qemu using i7 and asus hero7. I want to run the game Civilization 5 (windows), but when I run it, it crushes silently. I went to see how much video memory windows can see. It turns

[Qemu-devel] about tracetool

2014-12-01 Thread Ady Wahyudi Paundu
Hi all, I know that simpletrace records go to memory buffer before it flushed to file by a writer thread. My question is how to call this thread (preferably using python), so I can make the flush process periodical? Regards, Ady

Re: [Qemu-devel] [PATCH 3/7] test-coroutine: avoid overflow on 32-bit systems

2014-12-01 Thread Ming Lei
On Mon, Dec 1, 2014 at 8:41 PM, Paolo Bonzini wrote: > > > On 01/12/2014 02:28, Ming Lei wrote: >>> > - (unsigned long)(10 * duration) / maxcycles); >>> > + (unsigned long)(10.0 * duration / maxcycles)); >> One more single bracket. > > I don't un

Re: [Qemu-devel] Update on TCG Multithreading

2014-12-01 Thread Lluís Vilanova
Alexander Graf writes: > On 01.12.14 22:00, Lluís Vilanova wrote: >> Mark Burton writes: >> >>> All - first a huge thanks for those who have contributed, and those who have >>> expressed an interest in helping out. >> >>> One issue I’d like to see more opinions on is the question of a cache per

Re: [Qemu-devel] [RFC PATCH 2/2] vnc: add change keyboard layout interface

2014-12-01 Thread Gonglei
On 2014/12/2 0:40, Eric Blake wrote: > On 11/29/2014 03:39 AM, arei.gong...@huawei.com wrote: >> From: Gonglei >> >> Example QMP command of Change VNC keyboard layout: >> >> -> { "execute": "change", >> "arguments": { "device": "vnc", "target": "keymap", >>

Re: [Qemu-devel] [BUG] Redhat-6.4_64bit-guest kernel panic with cpu-passthrough and guest numa

2014-12-01 Thread Gonglei
On 2014/12/1 17:48, Paolo Bonzini wrote: > > > On 28/11/2014 03:38, Gonglei wrote: Can you find what line of kernel/sched.c it is? >> Yes, of course. See below please: >> "sgs->avg_load = (sgs->group_load * SCHED_LOAD_SCALE) / group->cpu_power; " >> in update_sg_lb_stats(), file sched.c, li

Re: [Qemu-devel] [BUG] Redhat-6.4_64bit-guest kernel panic with cpu-passthrough and guest numa

2014-12-01 Thread Gonglei
On 2014/12/2 11:41, Gonglei wrote: > Hi, Paolo > > A bug has been reported: https://bugzilla.redhat.com/show_bug.cgi?id=1169577 Regards, -Gonglei

Re: [Qemu-devel] [PATCH v2] qmp: extend QMP to provide read/write access to physical memory

2014-12-01 Thread Bryan D. Payne
Ok thanks for the advice, I'll adjust for v3. This is (clearly!) my first contribution to Qemu so I'm still learning how you guys operate. Cheers, -bryan On Mon, Dec 1, 2014 at 2:12 PM, Eric Blake wrote: > On 11/26/2014 01:27 PM, Bryan D. Payne wrote: > > Thanks for the feedback Eric, I've upd

Re: [Qemu-devel] [PATCH v2] qmp: extend QMP to provide read/write access to physical memory

2014-12-01 Thread Fam Zheng
On Mon, 12/01 20:36, Bryan D. Payne wrote: > Ok thanks for the advice, I'll adjust for v3. This is (clearly!) my first > contribution to Qemu so I'm still learning how you guys operate. Great. Looking forward to the next version. BTW please try to use inline replying. Fam > > Cheers, > -bryan

[Qemu-devel] [PATCH for-2.3 0/6] vmdk: A few small fixes

2014-12-01 Thread Fam Zheng
Here are some improvements on miscellaneous things such as CID generation, comments, input validation. Fam Zheng (6): vmdk: Use g_random_int to generate CID vmdk: Fix comment to match code of extent lines vmdk: Clean up descriptor file reading vmdk: Check descriptor file length when readin

[Qemu-devel] [PATCH for-2.3 5/6] vmdk: Remove unnecessary initialization

2014-12-01 Thread Fam Zheng
It will be assigned to the return value of vmdk_read_desc. Suggested-by: Markus Armbruster Signed-off-by: Fam Zheng --- block/vmdk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/vmdk.c b/block/vmdk.c index f7c7979..22f85c4 100644 --- a/block/vmdk.c +++ b/block/vmdk.

[Qemu-devel] [PATCH for-2.3 3/6] vmdk: Clean up descriptor file reading

2014-12-01 Thread Fam Zheng
Zeroing a buffer that will be filled right after is not necessary, and allocating a power of two + 1 is naughty. Suggested-by: Markus Armbruster Signed-off-by: Fam Zheng --- block/vmdk.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/block/vmdk.c b/block/vmdk.c index 2

[Qemu-devel] [PATCH for-2.3 1/6] vmdk: Use g_random_int to generate CID

2014-12-01 Thread Fam Zheng
This replaces two "time(NULL)" invocations with "g_random_int()". According to VMDK spec, CID "is a random 32‐bit value updated the first time the content of the virtual disk is modified after the virtual disk is opened". Using "seconds since epoch" is just a "lame way" to generate it, and not comp

[Qemu-devel] [PATCH for-2.3 2/6] vmdk: Fix comment to match code of extent lines

2014-12-01 Thread Fam Zheng
commit 04d542c8b (vmdk: support vmfs files) added support of VMFS extent type but the comment above the changed code is left out. Update the comment so they are consistent. Signed-off-by: Fam Zheng --- block/vmdk.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/block/vm

[Qemu-devel] [PATCH for-2.3 4/6] vmdk: Check descriptor file length when reading it

2014-12-01 Thread Fam Zheng
Since a too small file cannot be a valid VMDK image, and also since the buffer's first 4 bytes will be unconditionally examined by vmdk_open_sparse, let's error out the small file case to be clear. Signed-off-by: Fam Zheng --- block/vmdk.c | 5 + 1 file changed, 5 insertions(+) diff --git a

[Qemu-devel] [PATCH for-2.3 6/6] vmdk: Set errp on failures in vmdk_open_vmdk4

2014-12-01 Thread Fam Zheng
Reported-by: Markus Armbruster Signed-off-by: Fam Zheng --- block/vmdk.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/block/vmdk.c b/block/vmdk.c index 22f85c4..dd97e25 100644 --- a/block/vmdk.c +++ b/block/vmdk.c @@ -642,6 +642,7 @@ static int vmdk_open_vmdk4(BlockDriverState *bs,

Re: [Qemu-devel] [PATCHv3] block: add event when disk usage exceeds threshold

2014-12-01 Thread Francesco Romani
Thanks for the quick review! - Original Message - > From: "Eric Blake" > To: "Francesco Romani" , qemu-devel@nongnu.org > Cc: kw...@redhat.com, mdr...@linux.vnet.ibm.com, stefa...@redhat.com, > lcapitul...@redhat.com > Sent: Monday, December 1, 2014 10:07:38 PM > Subject: Re: [Qemu-devel