[Qemu-devel] [PATCH 10/21] backup: refactor backup_copy_cluster()

2016-12-23 Thread Vladimir Sementsov-Ogievskiy
Split out read and write functions. Signed-off-by: Vladimir Sementsov-Ogievskiy --- block/backup.c | 53 +++-- block/trace-events | 4 ++-- 2 files changed, 41 insertions(+), 16 deletions(-) diff --git a/block/backup.c b/block/backup.c in

[Qemu-devel] [PATCH 12/21] iotests: add supported_cache_modes to main function

2016-12-23 Thread Vladimir Sementsov-Ogievskiy
Signed-off-by: Vladimir Sementsov-Ogievskiy --- tests/qemu-iotests/iotests.py | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py index bec8eb4..a5ef9c3 100644 --- a/tests/qemu-iotests/iotests.py +++ b/tests/qemu-

[Qemu-devel] [PATCH 07/21] backup: refactor: merge top/full/incremental backup code

2016-12-23 Thread Vladimir Sementsov-Ogievskiy
Merge top/full/incremental modes backup into one backup_loop. Signed-off-by: Vladimir Sementsov-Ogievskiy --- block/backup.c | 41 + 1 file changed, 9 insertions(+), 32 deletions(-) diff --git a/block/backup.c b/block/backup.c index e2b944a..2afd1b6 10064

[Qemu-devel] [PATCH 02/21] backup: init copy_bitmap from sync_bitmap for incremental

2016-12-23 Thread Vladimir Sementsov-Ogievskiy
We should not copy non-dirty clusters in write notifiers. So, initialize copy_bitmap from sync_bitmap. Signed-off-by: Vladimir Sementsov-Ogievskiy --- block/backup.c | 32 +++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/block/backup.c b/block/backup

[Qemu-devel] [ANNOUNCE] QEMU 2.7.1 Stable released

2016-12-23 Thread Michael Roth
Hi everyone, I am pleased to announce that the QEMU v2.7.1 stable release is now available: http://wiki.qemu.org/download/qemu-2.7.1.tar.bz2 v2.7.1 is now tagged in the official qemu.git repository, and the stable-2.7 branch has been updated accordingly: http://git.qemu.org/?p=qemu.git;a=sh

[Qemu-devel] [PATCH 06/21] backup: rewrite top mode cluster skipping

2016-12-23 Thread Vladimir Sementsov-Ogievskiy
TOP backup mode skips not allocated clusters. This patch mark skipped clusters in copy_bitmap to prevent their writing in write notifier (however, they may be written before skipping, but that is not critical). Also, update job->common.offset appropriately, to come eventually to job->common.len.

[Qemu-devel] [PATCH 04/21] backup: use copy_bitmap in incremental backup

2016-12-23 Thread Vladimir Sementsov-Ogievskiy
We can use copy_bitmap instead of sync_bitmap. copy_bitmap is initialized from sync_bitmap and it is more informative: we will not try to process data, that is already in progress (by write notifier). Signed-off-by: Vladimir Sementsov-Ogievskiy --- block/backup.c | 58 +++

[Qemu-devel] [PATCH 03/21] backup: improve non-dirty bits progress processing

2016-12-23 Thread Vladimir Sementsov-Ogievskiy
Set fake progress for non-dirty clusters in copy_bitmap initialization, to: 1. set progress in the same place where corresponding clusters are consumed from copy_bitmap (or not initialized, as here) 2. earlier progress information for user 3. simplify the code Signed-off-by: Vladimir Sementsov-Ogi

[Qemu-devel] [PATCH 15/21] bitmap: add bitmap_count_between() function

2016-12-23 Thread Vladimir Sementsov-Ogievskiy
Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Pavel Butsykin --- include/qemu/bitmap.h | 4 util/bitmap.c | 27 +++ 2 files changed, 31 insertions(+) diff --git a/include/qemu/bitmap.h b/include/qemu/bitmap.h index 63ea2d0..3bfc33e 100644 --- a/i

[Qemu-devel] [PATCH 16/21] hbitmap: add hbitmap_count_between() function

2016-12-23 Thread Vladimir Sementsov-Ogievskiy
Add this function only for HBitmap's with greanularity = 0. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Pavel Butsykin --- include/qemu/hbitmap.h | 2 ++ util/hbitmap.c | 9 + 2 files changed, 11 insertions(+) diff --git a/include/qemu/hbitmap.h b/include/qemu/hbit

[Qemu-devel] [PATCH 17/21] backup: make all reads not serializing

2016-12-23 Thread Vladimir Sementsov-Ogievskiy
To simplify things make all reads not serializing, not only from notifiers. This is needed because after the following patch, there would not be strong division between reads from notifiers or not - they all would be called from one place. Signed-off-by: Vladimir Sementsov-Ogievskiy --- block/ba

Re: [Qemu-devel] [RFC PATCH] Fix pasting into serial console in GTK ui

2016-12-23 Thread Paolo Bonzini
On 23/12/2016 16:12, Michal Suchanek wrote: > This copies the timer hack from ui/console.c kbd_send_chars to ui/gtk.c > gd_vc_in. > > There is no fd-like object to peek repatedly so the paste data is saved > in a free-floating buffer only submitted to gtk_timeout_add. Multiple > pastes can poten

[Qemu-devel] [PATCH 18/21] backup: new async architecture

2016-12-23 Thread Vladimir Sementsov-Ogievskiy
New async scheme: all copying is done by worker coroutines. Main block-job coroutine serves initial skipping of unallocated clusters, and also all pauses, error handling, throttling. Notifiers just mark clusters as awaited (by adding NotifierRequest to the list) and wait for some time (5 sec) for

[Qemu-devel] [PATCH 05/21] hbitmap: improve dirty iter

2016-12-23 Thread Vladimir Sementsov-Ogievskiy
Make dirty iter resistant to resetting bits in corresponding HBitmap. Signed-off-by: Vladimir Sementsov-Ogievskiy --- include/qemu/hbitmap.h | 24 ++-- util/hbitmap.c | 23 ++- 2 files changed, 24 insertions(+), 23 deletions(-) diff --git a/includ

[Qemu-devel] [PATCH 01/21] backup: move from done_bitmap to copy_bitmap

2016-12-23 Thread Vladimir Sementsov-Ogievskiy
Use HBitmap copy_bitmap instead of done_bitmap. This is needed to unify backup loop for full/incremental modes in future patches. We reset bit of the copy_bitmap immediately after checking it in backup_do_cow(). It is safe, because all other intersecting requests will wait for our request finish a

[Qemu-devel] [Bug 1652333] [NEW] TCG mode fails to boot Linux kernel with qemu 2.6.0 and libvirt 2.0.0

2016-12-23 Thread Javier Peña
Public bug reported: Trying to boot a Cirros (minimal Linux) VM with qemu 2.6.0 and libvirt 2.0.0 in TCG mode fails for me. The VM gets stuck in "Starting up ..." and never moves on. The command line used to boot the VM was: LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin QEMU_AUD

[Qemu-devel] [Bug 1652333] Re: TCG mode fails to boot Linux kernel with qemu 2.6.0 and libvirt 2.0.0

2016-12-23 Thread Javier Peña
The Cirros image has a 3.2.0 kernel, in case it helps. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1652333 Title: TCG mode fails to boot Linux kernel with qemu 2.6.0 and libvirt 2.0.0 Status in

[Qemu-devel] [RFC PATCH] Fix pasting into serial console in GTK ui

2016-12-23 Thread Michal Suchanek
This copies the timer hack from ui/console.c kbd_send_chars to ui/gtk.c gd_vc_in. There is no fd-like object to peek repatedly so the paste data is saved in a free-floating buffer only submitted to gtk_timeout_add. Multiple pastes can potentially interleave if qemu blocks for long or the user past

[Qemu-devel] [PATCH 20/21] backup: move bitmap handling from backup_do_cow to get_work

2016-12-23 Thread Vladimir Sementsov-Ogievskiy
Signed-off-by: Vladimir Sementsov-Ogievskiy --- block/backup.c | 30 ++ 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/block/backup.c b/block/backup.c index 900bbd3..b79a481 100644 --- a/block/backup.c +++ b/block/backup.c @@ -383,19 +383,24 @@ static

[Qemu-devel] [PATCH 21/21] backup: refactor: remove backup_do_cow()

2016-12-23 Thread Vladimir Sementsov-Ogievskiy
Call backup_copy_cluster directly from backup_worker_co. Move io buffer allocation to backup_worker_co (and do not reallocate it for each cluster). Signed-off-by: Vladimir Sementsov-Ogievskiy --- block/backup.c | 28 +--- block/trace-events | 6 ++ 2 files change

Re: [Qemu-devel] [RFC PATCH] Fix pasting into serial console in GTK ui

2016-12-23 Thread no-reply
Hi, Your series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20161223151253.21338-1-msucha...@suse.de Subject: [Qemu-devel] [RFC PATCH] Fix pasting into serial console in GTK ui === TEST SCRIPT BEGIN === #!/bin/bash BASE=base n=1 tota

[Qemu-devel] [RFC PATCH] Fix pasting into serial console in GTK ui

2016-12-23 Thread Michal Suchanek
This copies the timer hack from ui/console.c kbd_send_chars to ui/gtk.c gd_vc_in. There is no fd-like object to peek repatedly so the paste data is saved in a free-floating buffer only submitted to gtk_timeout_add. Multiple pastes can potentially interleave if qemu blocks for long or the user past

[Qemu-devel] [PATCH] ui/gtk: Fix mouse wheel on 3.4.0 or later

2016-12-23 Thread OGAWA Hirofumi
On 3.4.0 or later, send GDK_SCROLL_SMOOTH event, instead of GDK_SCROLL_UP/DOWN. This fixes it by converting any smooth scroll to up/down. (I.e. without smooth support) Signed-off-by: OGAWA Hirofumi --- ui/gtk.c | 10 ++ 1 file changed, 10 insertions(+) diff -puN ui/gtk.c~mouse-wheel

[Qemu-devel] Proposal for 2.9 release schedule

2016-12-23 Thread Paolo Bonzini
Considering that Easter is on April 16th, we'd probably want to have the release before that date even in case of a slip. On the other hand, the Christmas / New Year break here means that we'll have to make the development time 1-2 week shorter in practice. 2016-02-21 2.9 soft freeze 2016-03-

[Qemu-devel] [PATCH v3] ipmi: Fix macro issues

2016-12-23 Thread minyard
From: Corey Minyard Macro parameters should almost always have () around them when used. llvm reported an error on this. Remove redundant parenthesis and put parenthesis around the entire macros with assignments in case they are used in an expression. Remove some unused macros. Reported in htt

[Qemu-devel] [PATCH] ps2: Fix lost scancodes by recent changes

2016-12-23 Thread OGAWA Hirofumi
With "ps2: use QEMU qcodes instead of scancodes", key handling was changed to qcode base. But all scancodes are not converted to new one. This adds some missing qcodes what I found in using. Signed-off-by: OGAWA Hirofumi --- hw/input/ps2.c|3 +++ qapi-schema.json |3 ++- ui/input

[Qemu-devel] [Resolved -- false positive] Re: virus in colibriOS QEMU iso?

2016-12-23 Thread Kashyap Chamarthy
On Fri, Dec 23, 2016 at 11:25:18AM +0100, Thomas Huth wrote: > On 23.12.2016 10:20, Kashyap Chamarthy wrote: [...] > > Yes, I can confirm that I have downloaded the ISO from the > > official website -- it's a nightly build of their > > SVN revision 6766. > > OK, as far as I can see, the issue

Re: [Qemu-devel] [PULL 00/25] First round of misc patches for QEMU 2.9

2016-12-23 Thread Peter Maydell
On 23 December 2016 at 12:12, Paolo Bonzini wrote: > On 23/12/2016 12:15, Peter Maydell wrote: >> Applied, thanks. (Nice to see that git is smart enough to >> be able to merge this on top of the earlier target-* rename.) > > Actually I did the rebase myself. Oops, so you did; I was confused, clea

Re: [Qemu-devel] [PULL 00/25] First round of misc patches for QEMU 2.9

2016-12-23 Thread Paolo Bonzini
On 23/12/2016 12:15, Peter Maydell wrote: >> * core support for MemoryRegionCache from myself >> * rules.mak speedup and cleanups from myself and Marc-Adnré >> * multiboot command line fix from Vlad >> * SCSI fixes from myself >> * small qemu-timer speedup from myself >> * x86 debugging improveme

[Qemu-devel] [Bug 1652286] [NEW] man qemu 2.8.0

2016-12-23 Thread LPNow
Public bug reported: I noticed when I ran 'man qemu' for version 2.8.0 I am getting this back at the terminal; :1674: warning [p 1, 188.5i, div `an-div', 0.2i]: can't break line :1677: warning [p 1, 188.8i, div `an-div', 0.2i]: can't break line ** Affects: qemu Importance: Undecided

[Qemu-devel] [Bug 1649042] Re: Ubuntu 16.04.1 LightDM Resolution Not Correct

2016-12-23 Thread LPNow
LOL TYPO here; https://bugs.launchpad.net/qemu/+bug/1649040 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1649042 Title: Ubuntu 16.04.1 LightDM Resolution Not Correct Status in QEMU: New Bug d

[Qemu-devel] [Bug 1649042] Re: Ubuntu 16.04.1 LightDM Resolution Not Correct

2016-12-23 Thread LPNow
Hi I'll just post to here for both issues; https://bugs.launchpad.net/qemu/+bug/1649042 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1649042 Title: Ubuntu 16.04.1 LightDM Resolution Not Correct

Re: [Qemu-devel] A question about PCI device address spaces

2016-12-23 Thread Peter Maydell
On 22 December 2016 at 09:42, Peter Xu wrote: > Hello, > > Since this is a general topic, I picked it out from the VT-d > discussion and put it here, just want to be more clear of it. > > The issue is, whether we have exposed too much address spaces for > emulated PCI devices? > > Now for each PCI

[Qemu-devel] [Bug 1649040] Re: Ubuntu 16.04.1 Grub Splash Doesn't Appear

2016-12-23 Thread LPNow
I switched to boot scsi and when I start it, the screen is just blank... qemu-system-x86_64 -drive if=none,id=hd,cache=none,aio=threads,format=raw,file=ubuntu.img,index=0 \ -object iothread,id=iothread0 \ -machine type=q35,accel=kvm,kernel_irqchip=on \ -device virtio-scsi-pci,iothread=iothread0,

Re: [Qemu-devel] [PULL 00/25] First round of misc patches for QEMU 2.9

2016-12-23 Thread Peter Maydell
On 22 December 2016 at 15:22, Paolo Bonzini wrote: > The following changes since commit d1e8e8ecc3d2a1a72504912d671f1cbbac1b06e5: > > Merge remote-tracking branch 'remotes/huth/tags/target-dirs-20161220' into > staging (2016-12-21 21:11:48 +) > > are available in the git repository at: > >

[Qemu-devel] [Bug 1649040] Re: Ubuntu 16.04.1 Grub Splash Doesn't Appear

2016-12-23 Thread LPNow
It's the same in 2.8.0 but I will test it again when I get some time for vmware. I used vmware because it offers better resolution. After posting this issue I have learned a little about virtio and for a few times I was able to boot it with -vag virtio and this was really nice. I was able to resi

Re: [Qemu-devel] virus in colibriOS QEMU iso?

2016-12-23 Thread Thomas Huth
On 23.12.2016 10:20, Kashyap Chamarthy wrote: > [...] > >> On 22.12.2016 18:37, vilca...@gmail.com wrote: >>> Hi, just letting you know that Avira found some crypto-locker virus in >>> ColibriOS iso that you featured in QEMU Advent Calendar 2016. Maybe you >>> should look into that. I am not sure

Re: [Qemu-devel] [PATCH v6 00/17] qapi doc generation (whole version, squashed)

2016-12-23 Thread Markus Armbruster
Marc-André Lureau writes: > Add a qapi2texi script to generate the documentation from the qapi > schemas. > > The SQUASHED patch in this series is a squashed version of the > documentation move from qmp-commands.txt to the schemas. The whole > version (not sent on the ML to avoid spamming) is in

Re: [Qemu-devel] virus in colibriOS QEMU iso?

2016-12-23 Thread Kashyap Chamarthy
[...] > On 22.12.2016 18:37, vilca...@gmail.com wrote: > > Hi, just letting you know that Avira found some crypto-locker virus in > > ColibriOS iso that you featured in QEMU Advent Calendar 2016. Maybe you > > should look into that. I am not sure if it’s a false positive or not.. You > > can check

Re: [Qemu-devel] [RFC PATCH 00/11] Stubs cleanup

2016-12-23 Thread Paolo Bonzini
- Original Message - > From: "Markus Armbruster" > To: "Paolo Bonzini" > Cc: "Eduardo Habkost" , "Peter Maydell" > , "Fam Zheng" > , "QEMU Developers" > Sent: Friday, December 23, 2016 10:02:33 AM > Subject: Re: [Qemu-devel] [RFC PATCH 00/11] Stubs cleanup > > Paolo Bonzini writes:

Re: [Qemu-devel] [RFC PATCH 00/11] Stubs cleanup

2016-12-23 Thread Markus Armbruster
Paolo Bonzini writes: > On 22/12/2016 18:42, Eduardo Habkost wrote: >> On Thu, Dec 22, 2016 at 06:32:24PM +0100, Paolo Bonzini wrote: >>> >>> >>> On 22/12/2016 18:30, Peter Maydell wrote: On 22 December 2016 at 15:59, Paolo Bonzini wrote: > This moves out of libqemustub.a those function

Re: [Qemu-devel] virus in colibriOS QEMU iso?

2016-12-23 Thread Thomas Huth
On 22.12.2016 18:37, vilca...@gmail.com wrote: > Hi, just letting you know that Avira found some crypto-locker virus in > ColibriOS iso that you featured in QEMU Advent Calendar 2016. Maybe you > should look into that. I am not sure if it’s a false positive or not.. You > can check the attachmen

[Qemu-devel] [Bug 1652011] Re: VM shuts down due to error in qemu block.c

2016-12-23 Thread Thomas Huth
Please do not report distribution specific bugs (since you're using qemu-kvm 2.0.0+dfsg-2ubuntu1.27) against the QEMU project bugtracker - use the distribution's bugtracker instead. ** Project changed: qemu => qemu (Ubuntu) -- You received this bug notification because you are a member of qemu-

<    1   2