[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-

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

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] [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] 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] [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 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

[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] [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
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] 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 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

[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 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

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

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

[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

[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] [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] 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] 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] [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

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] [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

[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] [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] [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] [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] [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 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

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 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

[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 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 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 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 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] [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 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] [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 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 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

Re: [Qemu-devel] [PATCH v3 0/6] trace: [tcg] Optimize per-vCPU tracing states with separate TB caches

2016-12-23 Thread Richard Henderson
On 12/22/2016 10:35 AM, Lluís Vilanova wrote: > To handle both issues, this series replicates the shared physical TB cache, > creating a separate physical TB cache for every combination of event states > (those with the 'vcpu' and 'tcg' properties). Then, all vCPUs tracing the same > events will us

[Qemu-devel] [PATCH 14/21] block: add trace point on bdrv_close_all

2016-12-23 Thread Vladimir Sementsov-Ogievskiy
Signed-off-by: Vladimir Sementsov-Ogievskiy --- block.c| 1 + block/trace-events | 1 + 2 files changed, 2 insertions(+) diff --git a/block.c b/block.c index 39ddea3..3aa433b 100644 --- a/block.c +++ b/block.c @@ -2372,6 +2372,7 @@ static void bdrv_close(BlockDriverState *bs) void

Re: [Qemu-devel] [PATCH 07/10] aio-posix: remove walking_handlers, protecting AioHandler list with list_lock

2016-12-23 Thread Paolo Bonzini
On 21/12/2016 15:03, Paolo Bonzini wrote: > Signed-off-by: Paolo Bonzini > --- > aio-posix.c | 64 > - > 1 file changed, 38 insertions(+), 26 deletions(-) > > diff --git a/aio-posix.c b/aio-posix.c > index f83b7af..9b13182 100644 > -

[Qemu-devel] [PATCH 3/3] nbd: do not block on partial reply header reads

2016-12-23 Thread Paolo Bonzini
Read the replies from a coroutine. qio_channel_yield is used so that the right coroutine is restarted automatically, eliminating the need for send_coroutine in NBDClientSession. Signed-off-by: Paolo Bonzini --- block/nbd-client.c | 108 + 1 fi

[Qemu-devel] [RFC PATCH 0/3] io/nbd: AioContext support

2016-12-23 Thread Paolo Bonzini
This is RFC because the APIs it uses (aio_co_schedule/aio_co_wake) do not exist yet in master, but it should be enough for a first review of the QIOChannel API concepts and to give an idea of their usage. It makes qio_channel_yield aware of AioContexts by adding a new API qio_channel_set_aio_conte

[Qemu-devel] [PATCH 2/3] io: make qio_channel_yield aware of AioContexts

2016-12-23 Thread Paolo Bonzini
Support separate coroutines for reading and writing, and restart the coroutine on the AioContext where it was suspended on. Signed-off-by: Paolo Bonzini --- include/io/channel.h | 7 +++--- io/channel-socket.c | 12 +- io/channel.c | 62 ++---

[Qemu-devel] [PATCH 1/3] io: add methods to set I/O handlers on AioContext

2016-12-23 Thread Paolo Bonzini
This is in preparation for making qio_channel_yield work on AioContexts other than the main one. Signed-off-by: Paolo Bonzini --- include/io/channel.h | 42 ++ io/channel-socket.c | 16 +++- io/channel-tls.c | 12 io/channel-w

Re: [Qemu-devel] [PATCH v3 0/6] trace: [tcg] Optimize per-vCPU tracing states with separate TB caches

2016-12-23 Thread Lluís Vilanova
Richard Henderson writes: > On 12/22/2016 10:35 AM, Lluís Vilanova wrote: >> To handle both issues, this series replicates the shared physical TB cache, >> creating a separate physical TB cache for every combination of event states >> (those with the 'vcpu' and 'tcg' properties). Then, all vCPUs t

[Qemu-devel] [PATCH 09/21] backup: separate copy function

2016-12-23 Thread Vladimir Sementsov-Ogievskiy
Signed-off-by: Vladimir Sementsov-Ogievskiy --- block/backup.c | 103 ++--- 1 file changed, 61 insertions(+), 42 deletions(-) diff --git a/block/backup.c b/block/backup.c index 4ef8daf..2c8b7ba 100644 --- a/block/backup.c +++ b/block/backup.c @

[Qemu-devel] [Bug 1652373] [NEW] User-mode QEMU is not deterministic

2016-12-23 Thread Lluís Vilanova
Public bug reported: QEMU in user-mode (linux-user or bsd-user) has no way to get the equivalent of the "-icount" argument found in softmmu mode. It is true that some system calls in user-mode can prevent deterministic execution, but it would be very simple to patch time-related syscalls to retur

Re: [Qemu-devel] [PULL 24/25] target-i386: Fix eflags.TF/#DB handling of syscall/sysret insns

2016-12-23 Thread Doug Evans
Paolo Bonzini writes: > From: Doug Evans > > The syscall and sysret instructions behave a bit differently: > TF is checked after the instruction completes. > This allows the o/s to disable #DB at a syscall by adding TF to FMASK. > And then when the sysret is executed the #DB is taken "as if

[Qemu-devel] [PATCH 08/21] backup: skip unallocated clusters for full mode

2016-12-23 Thread Vladimir Sementsov-Ogievskiy
In case of full backup we can skip unallocated clusters if the target disk is already zero-initialized. Signed-off-by: Vladimir Sementsov-Ogievskiy --- block/backup.c | 8 ++-- tests/qemu-iotests/055 | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/block/backup.

[Qemu-devel] [PATCH 00/21] new backup architecture

2016-12-23 Thread Vladimir Sementsov-Ogievskiy
Hi all. This is a new architecture for backup. It solves some current problems: 1. intersecting requests: for now at request start we wait for all intersecting requests, which means that a. we may wait even for unrelated to our request clusters b. not full async: if we are going to copy c

[Qemu-devel] [PATCH 13/21] coroutine: add qemu_coroutine_add_next

2016-12-23 Thread Vladimir Sementsov-Ogievskiy
Simple add coroutine to self->co_queue_wakeup. Signed-off-by: Vladimir Sementsov-Ogievskiy --- include/qemu/coroutine.h | 2 ++ util/qemu-coroutine.c| 7 +++ 2 files changed, 9 insertions(+) diff --git a/include/qemu/coroutine.h b/include/qemu/coroutine.h index e6a60d5..6e87c87 100644 -

Re: [Qemu-devel] [PATCH v3 0/6] trace: [tcg] Optimize per-vCPU tracing states with separate TB caches

2016-12-23 Thread Richard Henderson
On 12/23/2016 10:51 AM, Lluís Vilanova wrote: >> On 12/22/2016 10:35 AM, Lluís Vilanova wrote: >>> To handle both issues, this series replicates the shared physical TB cache, >>> creating a separate physical TB cache for every combination of event states >>> (those with the 'vcpu' and 'tcg' propert

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

2016-12-23 Thread Hervé Poussineau
Le 23/12/2016 à 14:00, OGAWA Hirofumi a écrit : 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

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

2016-12-23 Thread Eric Blake
On 12/23/2016 07:00 AM, OGAWA Hirofumi wrote: > > 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 > --- > > ++

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

2016-12-23 Thread OGAWA Hirofumi
Hi, Hervé Poussineau writes: >> [Q_KEY_CODE_RO] = 0x73, >> +[Q_KEY_CODE_HIRAGANA] = 0x70, >> +[Q_KEY_CODE_HENKAN] = 0x79, >> +[Q_KEY_CODE_YEN] = 0x7d, >> [Q_KEY_CODE_KP_COMMA] = 0x7e, >> >> [Q_KEY_CODE__MAX] = 0, > > Can you also add the keycodes for scancode set 1: >

Re: [Qemu-devel] [libvirt] Cannot add iothreads label in libvirt xml configuration file

2016-12-23 Thread Weiwei Jia
On Thu, Dec 22, 2016 at 5:01 PM, John Ferlan wrote: > > > On 12/21/2016 12:11 PM, Weiwei Jia wrote: >> Hi, >> >> I cannot add iothreads >> (https://libvirt.org/formatdomain.html#elementsIOThreadsAllocation) in >> the libvirt xml configuration file. Once I add >> "4" and other related config for IO

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

2016-12-23 Thread OGAWA Hirofumi
Eric Blake writes: > On 12/23/2016 07:00 AM, OGAWA Hirofumi wrote: >> >> 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:

[Qemu-devel] [PATCH v2] 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/scancodes what I found in using. [set1 and set2 are still missing, but I'm not sure what is right values yet.] Signed-off-by: O

[Qemu-devel] [PATCH 11/21] backup: move r/w error handling code to r/w functions

2016-12-23 Thread Vladimir Sementsov-Ogievskiy
It simplifies code: we do not need error_is_read parameter and retrying in backup_loop. Also, retrying for read and write are separate, so we will not reread if write failed after successfull read. Signed-off-by: Vladimir Sementsov-Ogievskiy --- block/backup.c | 141 +

[Qemu-devel] [PATCH] The QEMU crashes since invoking qemu_thread_set_name(), the backtrace is:

2016-12-23 Thread zhanghailiang
From: Caoxinhua (gdb) bt #0 0x7f9a68b095d7 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 #1 0x7f9a68b0acc8 in __GI_abort () at abort.c:90 #2 0x7f9a69cda389 in PAT_abort () from /usr/lib64/libuvpuserhotfix.so #3 0x7f9a69cdda0d in patchIllInsHandler

[Qemu-devel] [PATCH 0/2] tcg/s390 improvements

2016-12-23 Thread Richard Henderson
0/qemu.git tags/pull-tcg-20161223 for you to fetch changes up to e45d4ef6e345831c8d67a5bffe0d057efc20f4ff: tcg/s390: Remove 'R' constraint (2016-12-23 19:38:27 -0800) qu

[Qemu-devel] [PATCH 2/2] tcg/s390: Remove 'R' constraint

2016-12-23 Thread Richard Henderson
Since R0 is reserved, we don't need a special case constraint. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.inc.c | 25 ++--- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/tcg/s390/tcg-target.inc.c b/tcg/s390/tcg-target.inc.c index 23115b5..8d5d2

[Qemu-devel] [PATCH 1/2] tcg/s390: Fix setcond expansion

2016-12-23 Thread Richard Henderson
We can't use LOAD AND TEST for unsigned data and then expect to extract the result with ADD LOGICAL WITH CARRY. Fall through to using COMPARE LOGICAL IMMEDIATE instead. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.inc.c | 50 --- 1 file ch

[Qemu-devel] [PATCH 0/2] tcg/s390 improvements

2016-12-23 Thread Richard Henderson
0/qemu.git tags/pull-tcg-20161223 for you to fetch changes up to e45d4ef6e345831c8d67a5bffe0d057efc20f4ff: tcg/s390: Remove 'R' constraint (2016-12-23 19:38:27 -0800) qu

[Qemu-devel] [PATCH 02/65] tcg: Minor adjustments to deposit expanders

2016-12-23 Thread Richard Henderson
Assert that len is not 0. Since we have asserted that ofs + len <= N, a later check for len == N implies that ofs == 0. Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- tcg/tcg-op.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tcg/tcg-op.c b/tcg/tcg-op

[Qemu-devel] [PATCH 01/65] tcg: Add field extraction primitives

2016-12-23 Thread Richard Henderson
Adds tcg_gen_extract_* and tcg_gen_sextract_* for extraction of fixed position bitfields, much like we already have for deposit. Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- tcg/README | 20 ++- tcg/aarch64/tcg-target.h | 4 + tcg/arm/tcg-target.h | 2 +

[Qemu-devel] [PATCH v5 00/65] tcg 2.9 patch queue

2016-12-23 Thread Richard Henderson
This is a combination of two patch sets that have had previous revisions, as well as some new patches. I wanted to post this all together since Alex was having trouble with prerequisites. The full tree is at git://github.com/rth7680/qemu.git tcg-2.9 Changes sinve v4: * Feedback from Alex Be

[Qemu-devel] [PATCH 03/65] tcg: Add deposit_z expander

2016-12-23 Thread Richard Henderson
While we don't require a new opcode, it is handy to have an expander that knows the first source is zero. Signed-off-by: Richard Henderson --- tcg/tcg-op.c | 143 +++ tcg/tcg-op.h | 6 +++ 2 files changed, 149 insertions(+) diff --git a/

[Qemu-devel] [PATCH 12/65] tcg/s390: Support deposit into zero

2016-12-23 Thread Richard Henderson
Since we can no longer use matching constraints, this does mean we must handle that data movement by hand. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.inc.c | 30 ++ 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/tcg/s390/tcg-target.inc.c

[Qemu-devel] [PATCH 04/65] tcg/aarch64: Implement field extraction opcodes

2016-12-23 Thread Richard Henderson
Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.h | 8 tcg/aarch64/tcg-target.inc.c | 14 ++ 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/tcg/aarch64/tcg-target.h b/tcg/aarch64/tcg-target.h index 410c31b..4a74bd8 1

[Qemu-devel] [PATCH 05/65] tcg/arm: Move isa detection to tcg-target.h

2016-12-23 Thread Richard Henderson
This allows us to use this detection within the TCG_TARGET_HAS_* macros, instead of requiring a function call into tcg-target.inc.c. Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- tcg/arm/tcg-target.h | 36 tcg/arm/tcg-target.inc.c | 41 +-

[Qemu-devel] [PATCH 16/65] target-mips: Use the new extract op

2016-12-23 Thread Richard Henderson
Use extract for EXT and DEXT. Reviewed-by: Yongbok Kim Signed-off-by: Richard Henderson --- target/mips/translate.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/target/mips/translate.c b/target/mips/translate.c index 57b824f..8deffa1 100644 --- a/target/mips/

[Qemu-devel] [PATCH 06/65] tcg/arm: Implement field extraction opcodes

2016-12-23 Thread Richard Henderson
Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- tcg/arm/tcg-target.h | 4 ++-- tcg/arm/tcg-target.inc.c | 24 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/tcg/arm/tcg-target.h b/tcg/arm/tcg-target.h index d1fe12b..4e30728 100644 ---

[Qemu-devel] [PATCH 15/65] target-i386: Use new deposit and extract ops

2016-12-23 Thread Richard Henderson
A couple of places where it was easy to identify a right-shift followed by an extract or and-with-immediate, and the obvious sign-extract from a high byte register. Acked-by: Eduardo Habkost Signed-off-by: Richard Henderson --- target/i386/translate.c | 45 +++---

[Qemu-devel] [PATCH 07/65] tcg/i386: Implement field extraction opcodes

2016-12-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/i386/tcg-target.h | 12 +--- tcg/i386/tcg-target.inc.c | 38 ++ 2 files changed, 47 insertions(+), 3 deletions(-) diff --git a/tcg/i386/tcg-target.h b/tcg/i386/tcg-target.h index 7625188..dc19c47 100644 ---

[Qemu-devel] [PATCH 23/65] tcg: Allow an operand to be matching or a constant

2016-12-23 Thread Richard Henderson
This allows an output operand to match an input operand only when the input operand needs a register. Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- tcg/README | 13 + tcg/tcg.c | 63 +++--- 2 files changed, 41

[Qemu-devel] [PATCH 17/65] target-ppc: Use the new deposit and extract ops

2016-12-23 Thread Richard Henderson
Use the new primitives for RDWINM and RLDICL. Reviewed-by: David Gibson Signed-off-by: Richard Henderson --- target/ppc/translate.c | 35 +++ 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/target/ppc/translate.c b/target/ppc/translate.c index 59e

[Qemu-devel] [PATCH 25/65] disas/i386.c: Handle tzcnt

2016-12-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- disas/i386.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/disas/i386.c b/disas/i386.c index 57145d0..07f871f 100644 --- a/disas/i386.c +++ b/disas/i386.c @@ -682,6 +682,7 @@ fetch_data(struct disassemble_info *info, bfd_byt

[Qemu-devel] [PATCH 10/65] tcg/s390: Expose host facilities to tcg-target.h

2016-12-23 Thread Richard Henderson
This lets us expose facilities to TCG_TARGET_HAS_* defines directly, rather than hiding behind function calls. Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.h | 126 -- tcg/s390/tcg-target.inc.c | 74 +++ 2 files

[Qemu-devel] [PATCH 08/65] tcg/mips: Implement field extraction opcodes

2016-12-23 Thread Richard Henderson
Cc: Yongbok Kim Signed-off-by: Richard Henderson --- tcg/mips/tcg-target.h | 2 +- tcg/mips/tcg-target.inc.c | 4 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tcg/mips/tcg-target.h b/tcg/mips/tcg-target.h index 1bcea3b..f1c3137 100644 --- a/tcg/mips/tcg-target.h +++ b/t

[Qemu-devel] [PATCH 32/65] target-ppc: Use clz and ctz opcodes

2016-12-23 Thread Richard Henderson
Cc: qemu-...@nongnu.org Signed-off-by: Richard Henderson --- target/ppc/helper.h | 4 target/ppc/int_helper.c | 20 target/ppc/translate.c | 20 3 files changed, 16 insertions(+), 28 deletions(-) diff --git a/target/ppc/helper.h b/target/ppc/h

[Qemu-devel] [PATCH 29/65] target-microblaze: Use clz opcode

2016-12-23 Thread Richard Henderson
Cc: Edgar E. Iglesias Signed-off-by: Richard Henderson --- target/microblaze/helper.h| 1 - target/microblaze/op_helper.c | 5 - target/microblaze/translate.c | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/target/microblaze/helper.h b/target/microblaze/helper.h ind

[Qemu-devel] [PATCH 27/65] target-alpha: Use the ctz and clz opcodes

2016-12-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/alpha/helper.h | 2 -- target/alpha/int_helper.c | 10 -- target/alpha/translate.c | 4 ++-- 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/target/alpha/helper.h b/target/alpha/helper.h index 004221d..eed3906 100644 --- a

[Qemu-devel] [PATCH 09/65] tcg/ppc: Implement field extraction opcodes

2016-12-23 Thread Richard Henderson
Reviewed-by: David Gibson Signed-off-by: Richard Henderson --- tcg/ppc/tcg-target.h | 4 ++-- tcg/ppc/tcg-target.inc.c | 10 ++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/tcg/ppc/tcg-target.h b/tcg/ppc/tcg-target.h index c765d3e..b42c57a 100644 --- a/tcg/ppc/tcg

[Qemu-devel] [PATCH 31/65] target-openrisc: Use clz and ctz opcodes

2016-12-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/openrisc/helper.h | 2 -- target/openrisc/int_helper.c | 19 --- target/openrisc/translate.c | 6 -- 3 files changed, 4 insertions(+), 23 deletions(-) diff --git a/target/openrisc/helper.h b/target/openrisc/helper.h index f53

[Qemu-devel] [PATCH 37/65] target-xtensa: Use clz opcode

2016-12-23 Thread Richard Henderson
Cc: Max Filippov Signed-off-by: Richard Henderson --- target/xtensa/helper.h| 2 -- target/xtensa/op_helper.c | 13 - target/xtensa/translate.c | 13 +++-- 3 files changed, 11 insertions(+), 17 deletions(-) diff --git a/target/xtensa/helper.h b/target/xtensa/helper.h in

[Qemu-devel] [PATCH 24/65] tcg: Add clz and ctz opcodes

2016-12-23 Thread Richard Henderson
Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- tcg-runtime.c| 20 +++ tcg/README | 8 +++ tcg/aarch64/tcg-target.h | 4 ++ tcg/arm/tcg-target.h | 2 + tcg/i386/tcg-target.h| 4 ++ tcg/ia64/tcg-target.h| 4 ++ tcg/mips/tcg-target

[Qemu-devel] [PATCH 11/65] tcg/s390: Implement field extraction opcodes

2016-12-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.h | 4 ++-- tcg/s390/tcg-target.inc.c | 11 +++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/tcg/s390/tcg-target.h b/tcg/s390/tcg-target.h index d650a72..e9ac12e 100644 --- a/tcg/s390/tcg-target.h +++ b/tcg/s

[Qemu-devel] [PATCH 35/65] target-tricore: Use clz opcode

2016-12-23 Thread Richard Henderson
Tested-by: Bastian Koppelmann Reviewed-by: Bastian Koppelmann Signed-off-by: Richard Henderson --- target/tricore/helper.h| 2 -- target/tricore/op_helper.c | 10 -- target/tricore/translate.c | 5 +++-- 3 files changed, 3 insertions(+), 14 deletions(-) diff --git a/target/tricor

[Qemu-devel] [PATCH 42/65] tcg/arm: Handle ctz and clz opcodes

2016-12-23 Thread Richard Henderson
Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- tcg/arm/tcg-target.h | 4 ++-- tcg/arm/tcg-target.inc.c | 27 +++ 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/tcg/arm/tcg-target.h b/tcg/arm/tcg-target.h index 02cc242..4cb94dc 100644 -

[Qemu-devel] [PATCH 13/65] target-alpha: Use deposit and extract ops

2016-12-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/alpha/translate.c | 67 ++-- 1 file changed, 42 insertions(+), 25 deletions(-) diff --git a/target/alpha/translate.c b/target/alpha/translate.c index 114927b..5ac2277 100644 --- a/target/alpha/translate.c +++

[Qemu-devel] [PATCH 30/65] target-mips: Use clz opcode

2016-12-23 Thread Richard Henderson
Cc: Yongbok Kim Signed-off-by: Richard Henderson --- target/mips/helper.h| 7 --- target/mips/op_helper.c | 22 -- target/mips/translate.c | 23 --- 3 files changed, 16 insertions(+), 36 deletions(-) diff --git a/target/mips/helper.h b/target/mip

[Qemu-devel] [PATCH 43/65] tcg/mips: Handle clz opcode

2016-12-23 Thread Richard Henderson
Cc: Yongbok Kim Signed-off-by: Richard Henderson --- tcg/mips/tcg-target.h | 4 ++-- tcg/mips/tcg-target.inc.c | 34 ++ 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/tcg/mips/tcg-target.h b/tcg/mips/tcg-target.h index f133684..0526018 100644

[Qemu-devel] [PATCH 14/65] target-arm: Use new deposit and extract ops

2016-12-23 Thread Richard Henderson
Use the new primitives for UBFX and SBFX. Cc: qemu-...@nongnu.org Signed-off-by: Richard Henderson --- target/arm/translate-a64.c | 81 +- target/arm/translate.c | 37 + 2 files changed, 37 insertions(+), 81 deletions(-) diff -

  1   2   >