[Qemu-devel] [PATCH 20/27] iotests, parallels: check for incorrectly closed image in tests

2015-03-11 Thread Denis V. Lunev
Signed-off-by: Denis V. Lunev Reviwed-by: Roman Kagan CC: Kevin Wolf CC: Stefan Hajnoczi --- tests/qemu-iotests/115 | 9 + tests/qemu-iotests/115.out | 17 + 2 files changed, 26 insertions(+) diff --git a/tests/qemu-iotests/115 b/tests/qemu-iotests/115 index

[Qemu-devel] [PATCH 23/27] block/parallels: create bat_entry_off helper

2015-03-11 Thread Denis V. Lunev
calculate offset of the BAT entry in the image file. Signed-off-by: Denis V. Lunev Reviewed-by: Roman Kagan CC: Kevin Wolf CC: Stefan Hajnoczi --- block/parallels.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/block/parallels.c b/block/parallels.c index

[Qemu-devel] [PATCH 19/27] block/parallels: implement incorrect close detection

2015-03-11 Thread Denis V. Lunev
close will do the job right. Signed-off-by: Denis V. Lunev Reviewed-by: Roman Kagan CC: Kevin Wolf CC: Stefan Hajnoczi --- block/parallels.c | 50 ++ 1 file changed, 50 insertions(+) diff --git a/block/parallels.c b/block/parallels.c index 0e5d4c3

[Qemu-devel] [PATCH 16/27] block/parallels: read parallels image header and BAT into single buffer

2015-03-11 Thread Denis V. Lunev
This metadata cache would allow to properly batch BAT updates to disk in next patches. These updates will be properly aligned to avoid read-modify-write transactions on block level. Signed-off-by: Denis V. Lunev Reviewed-by: Roman Kagan CC: Kevin Wolf CC: Stefan Hajnoczi --- block

[Qemu-devel] [PATCH 21/27] block/parallels: no need to flush on each block allocation table update

2015-03-11 Thread Denis V. Lunev
rom 800 Kb/sec to 45 Mb/sec. Signed-off-by: Denis V. Lunev Reviewed-by: Roman Kagan CC: Kevin Wolf CC: Stefan Hajnoczi --- block/parallels.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/parallels.c b/block/parallels.c index bafc74b..2605c1a 100644 --- a/block/

[Qemu-devel] [PATCH 02/27] block/parallels: rename parallels_header to ParallelsHeader

2015-03-11 Thread Denis V. Lunev
this follows QEMU coding convention Signed-off-by: Denis V. Lunev Reviewed-by: Roman Kagan CC: Kevin Wolf CC: Stefan Hajnoczi --- block/parallels.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/block/parallels.c b/block/parallels.c index 4f9cd8d..dca0df6 100644

[Qemu-devel] [PATCH 12/27] parallels: change copyright information in the image header

2015-03-11 Thread Denis V. Lunev
Signed-off-by: Denis V. Lunev Reviwed-by: Roman Kagan CC: Kevin Wolf CC: Stefan Hajnoczi --- block/parallels.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/block/parallels.c b/block/parallels.c index 28338ec..7ef3136 100644 --- a/block/parallels.c +++ b/block

[Qemu-devel] [PATCH 14/27] block/parallels: create bat2sect helper

2015-03-11 Thread Denis V. Lunev
deduplicate copy/paste arithmetcs Signed-off-by: Denis V. Lunev Reviewed-by: Roman Kagan CC: Kevin Wolf CC: Stefan Hajnoczi --- block/parallels.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/block/parallels.c b/block/parallels.c index a7c66dc..6bc5e62

[Qemu-devel] [PATCH 17/27] block/parallels: move parallels_open/probe to the very end of the file

2015-03-11 Thread Denis V. Lunev
This will help to avoid forward declarations for upcoming parallels_check Some very obvious formatting fixes were made to the moved code to make checkpatch happy. Signed-off-by: Denis V. Lunev Reviewed-by: Roman Kagan CC: Kevin Wolf CC: Stefan Hajnoczi --- block/parallels.c | 185

[Qemu-devel] [PATCH 1/1] migration: fix deadlock

2015-09-28 Thread Denis V. Lunev
after synchronize_rcu to free inside call_rcu. Signed-off-by: Denis V. Lunev Reported-by: Igor Redko Tested-by: Igor Redko CC: Anna Melekhova CC: Juan Quintela CC: Amit Shah CC: Paolo Bonzini CC: Wen Congyang --- migration/ram.c | 44 +++- 1 file change

Re: [Qemu-devel] [PATCH 1/1] migration: fix deadlock

2015-09-29 Thread Denis V. Lunev
. Thanks, On (Mon) 28 Sep 2015 [14:41:58], Denis V. Lunev wrote: Release qemu global mutex before call synchronize_rcu(). synchronize_rcu() waiting for all readers to finish their critical sections. There is at least one critical section in which we try to get QGM (critical section is in

Re: [Qemu-devel] [PATCH 1/1] migration: fix deadlock

2015-09-29 Thread Denis V. Lunev
On 09/29/2015 08:13 AM, Amit Shah wrote: There have been multiple versions of this patch on the list, can you please annotate that this is v3 so it supersedes the earlier v2? Also, please include a changelog in the description in patch 0 so we know what happened between the various versions. Th

[Qemu-devel] [PATCH 5/5] qga: guest-exec simple stdin/stdout/stderr redirection

2015-10-01 Thread Denis V. Lunev
out/err file descriptiors internally to pipes and collects subprocess output. Guest-exe-status is modified to return this collected data to requestor in base64 encoding. Signed-off-by: Yuri Pudgorodskiy Signed-off-by: Denis V. Lunev CC: Michael Roth --- qga/commands.c | 173

[Qemu-devel] [PATCH 0/5] simplified QEMU guest exec

2015-10-01 Thread Denis V. Lunev
. Signed-off-by: Denis V. Lunev Signed-off-by: Yuri Pudgorodskiy CC: Michael Roth Denis V. Lunev (2): qga: drop guest_file_init helper and replace it with static initializers qga: handle possible SIGPIPE in guest-file-write Yuri Pudgorodskiy (3): qga: handle G_IO_STATUS_AGAIN in

[Qemu-devel] [PATCH 2/5] qga: handle G_IO_STATUS_AGAIN in ga_channel_write_all()

2015-10-01 Thread Denis V. Lunev
From: Yuri Pudgorodskiy glib may return G_IO_STATUS_AGAIN which is actually not an error. Also fixed a bug when on incomplete write buf pointer was not adjusted. Signed-off-by: Yuri Pudgorodskiy Signed-off-by: Denis V. Lunev CC: Michael Roth --- qga/channel-posix.c | 23

Re: [Qemu-devel] [PATCH v3 0/6] qemu: guest agent: implement guest-exec command

2015-10-01 Thread Denis V. Lunev
On 09/15/2015 11:27 AM, Vasiliy Tolstov wrote: 2015-09-15 11:15 GMT+03:00 Denis V. Lunev : we have discussed new approach on KVM forum with a bit reduced set (guest-pipe-open/close code should not be in the first version) and in progress with a rework. I think that I'll post new version a

[Qemu-devel] [PATCH 4/5] qga: handle possible SIGPIPE in guest-file-write

2015-10-01 Thread Denis V. Lunev
qemu-ga should not exit on guest-file-write to pipe without read end but proper error code should be returned. The behavior of the spawned process should be default thus SIGPIPE processing should be reset to default after fork() but before exec(). Signed-off-by: Denis V. Lunev Signed-off-by

[Qemu-devel] [PATCH 1/5] qga: drop guest_file_init helper and replace it with static initializers

2015-10-01 Thread Denis V. Lunev
This just makes code shorter and better. Signed-off-by: Denis V. Lunev Signed-off-by: Yuri Pudgorodskiy CC: Michael Roth --- qga/commands-posix.c | 10 +++--- qga/commands-win32.c | 10 +++--- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/qga/commands-posix.c b/qga

[Qemu-devel] [PATCH 3/5] qga: guest exec functionality

2015-10-01 Thread Denis V. Lunev
specify stdin in guest-exec command and to get collected stdout/stderr with guest-exec-status. Signed-off-by: Yuri Pudgorodskiy Signed-off-by: Denis V. Lunev CC: Michael Roth --- qga/commands.c | 168 +++ qga/qapi-schema.json | 57

Re: [Qemu-devel] [PATCH v3 0/6] qemu: guest agent: implement guest-exec command

2015-10-01 Thread Denis V. Lunev
On 10/01/2015 10:50 AM, Vasiliy Tolstov wrote: 2015-10-01 10:43 GMT+03:00 Denis V. Lunev : new simplified version posted. Can you pls look & review? Sorry, i cant find it in qemu list Subject: [PATCH 0/5] simplified QEMU guest exec Date: Thu, 1 Oct 2015 10:37:58 +0300 Messag

[Qemu-devel] [PATCH 3/5] qga: handle possible SIGPIPE in guest-file-write

2015-10-05 Thread Denis V. Lunev
qemu-ga should not exit on guest-file-write to pipe without read end but proper error code should be returned. The behavior of the spawned process should be default thus SIGPIPE processing should be reset to default after fork() but before exec(). Signed-off-by: Denis V. Lunev Signed-off-by

[Qemu-devel] [PATCH v2 0/5] simplified QEMU guest exec

2015-10-05 Thread Denis V. Lunev
. Changes from v1: - use g_new0() instead of g_malloc0 - added explicit 'exited' bool to GuestExecStatus - reworked documentation for GuestExecStatus - added comment about platform-specific signals and exception codes - replaces 'pid' with 'handle' in guest-exec api Signed-

[Qemu-devel] [PATCH 4/5] qga: handle G_IO_STATUS_AGAIN in ga_channel_write_all()

2015-10-05 Thread Denis V. Lunev
From: Yuri Pudgorodskiy glib may return G_IO_STATUS_AGAIN which is actually not an error. Also fixed a bug when on incomplete write buf pointer was not adjusted. Signed-off-by: Yuri Pudgorodskiy Signed-off-by: Denis V. Lunev Reviewed-by: Michael Roth --- qga/channel-posix.c | 23

[Qemu-devel] [PATCH 2/5] qga: guest exec functionality

2015-10-05 Thread Denis V. Lunev
specify stdin in guest-exec command and to get collected stdout/stderr with guest-exec-status. Signed-off-by: Yuri Pudgorodskiy Signed-off-by: Denis V. Lunev CC: Michael Roth --- qga/commands.c | 188 +++ qga/qapi-schema.json | 62

[Qemu-devel] [PATCH 1/5] qga: drop guest_file_init helper and replace it with static initializers

2015-10-05 Thread Denis V. Lunev
This just makes code shorter and better. Signed-off-by: Denis V. Lunev Signed-off-by: Yuri Pudgorodskiy Reviewed-by: Michael Roth --- qga/commands-posix.c | 10 +++--- qga/commands-win32.c | 10 +++--- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/qga/commands

[Qemu-devel] [PATCH 5/5] qga: guest-exec simple stdin/stdout/stderr redirection

2015-10-05 Thread Denis V. Lunev
out/err file descriptiors internally to pipes and collects subprocess output. Guest-exe-status is modified to return this collected data to requestor in base64 encoding. Signed-off-by: Yuri Pudgorodskiy Signed-off-by: Denis V. Lunev CC: Michael Roth --- qga/commands.c | 175

Re: [Qemu-devel] Debugging Migration

2015-10-06 Thread Denis V. Lunev
On 10/06/2015 09:46 PM, John Snow wrote: Is there a convenient way of "pausing" or stalling a live migration to allow methodical testing of race conditions? I'd like to instrument something along the lines of: (1) Live migration begins. (2) migration is artificially halted or paused, but QEMU i

Re: [Qemu-devel] [PATCH v2 0/5] simplified QEMU guest exec

2015-10-06 Thread Denis V. Lunev
On 10/05/2015 05:57 PM, Denis V. Lunev wrote: This patchset provides simplified guest-exec functionality. The idea is simple. We drop original guest-pipe-open etc stuff and provides simple and dumb API: - spawn process (originally with stdin/stdout/stderr as /dev/null) - later simple buffer is

[Qemu-devel] [RFC 0/8] QEMUFile-way to gather VM's memory statistics

2015-10-06 Thread Denis V. Lunev
. Fill corresponding fields in MigrationState. 8. After finishing of hook_ram_sync return error code "-42" 9. In migration_thread() error code "-42" is interpreted as successful completion and MigrationStatus is changed Signed-off-by: Denis V. Lunev Signed-off-by: Igor R

[Qemu-devel] [PATCH 2/8] qemu-file: new hook in qemu-file

2015-10-06 Thread Denis V. Lunev
understanding of the code. On the other hand, using existing code decreases volume of the patchset and its impact. Signed-off-by: Igor Redko Reviewed-by: Anna Melekhova Signed-off-by: Denis V. Lunev --- include/migration/migration.h | 1 + include/migration/qemu-file.h | 1 + migration/qemu

[Qemu-devel] [PATCH 1/8] migration: fix expected_downtime

2015-10-06 Thread Denis V. Lunev
ase and recalculated only after transferring all memory and if this process took more than 1 sec. So maybe just nobody noticed that bug. Signed-off-by: Igor Redko Reviewed-by: Anna Melekhova Signed-off-by: Denis V. Lunev --- migration/migration.c | 2 +- 1 file changed, 1 insertion(+), 1 delet

[Qemu-devel] [PATCH 6/8] migration: implementation of hook_ram_sync

2015-10-06 Thread Denis V. Lunev
memory pages are processed one by one (~60msec per 4GB VM) Signed-off-by: Igor Redko Reviewed-by: Anna Melekhova Signed-off-by: Denis V. Lunev --- migration/migration.c | 8 migration/test.c | 36 2 files changed, 44 insertions(+) diff --git a

[Qemu-devel] [PATCH 4/8] migration: add function for reseting migration bitmap

2015-10-06 Thread Denis V. Lunev
rare circumstances) If we left this check as is, VM would stop during test (that would happen also under rare condition: no pages have been dirtied during test). Signed-off-by: Igor Redko Reviewed-by: Anna Melekhova Signed-off-by: Denis V. Lunev --- migration/migration.c | 3 ++- migration/

[Qemu-devel] [PATCH 3/8] migration: add new capability test-only

2015-10-06 Thread Denis V. Lunev
ook, presence of implementation of which allows to decide whether the migration is true Signed-off-by: Igor Redko Reviewed-by: Anna Melekhova Signed-off-by: Denis V. Lunev --- include/migration/migration.h | 2 ++ migration/migration.c | 9 + qapi-schema.json | 5 -

[Qemu-devel] [PATCH 5/8] migration: add draft of new transport

2015-10-06 Thread Denis V. Lunev
the size of the transferred data and drops the data itself. Also, the Makefile modification to link this file included. Signed-off-by: Igor Redko Reviewed-by: Anna Melekhova Signed-off-by: Denis V. Lunev --- include/migration/migration.h | 2 ++ migration/Makefile.objs | 2

[Qemu-devel] [PATCH 7/8] migration: new migration test mode

2015-10-06 Thread Denis V. Lunev
test migration and true migration success states. Signed-off-by: Igor Redko Reviewed-by: Anna Melekhova Signed-off-by: Denis V. Lunev --- migration/migration.c | 12 ++-- qapi-schema.json | 4 +++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/migration/migration.c

[Qemu-devel] [PATCH 8/8] migration: add output of gathered statistics

2015-10-06 Thread Denis V. Lunev
From: Igor Redko In this patch the output of the test results was added. If the test was successfully completed, it would be displayed in info migrate. Signed-off-by: Igor Redko Reviewed-by: Anna Melekhova Signed-off-by: Denis V. Lunev --- migration/migration.c | 18 ++ 1

Re: [Qemu-devel] Debugging Migration

2015-10-06 Thread Denis V. Lunev
On 10/07/2015 02:02 AM, John Snow wrote: On 10/06/2015 06:40 PM, Denis V. Lunev wrote: On 10/06/2015 09:46 PM, John Snow wrote: Is there a convenient way of "pausing" or stalling a live migration to allow methodical testing of race conditions? I'd like to instrument something

[Qemu-devel] [PATCH 1/5] qga: drop guest_file_init helper and replace it with static initializers

2015-10-07 Thread Denis V. Lunev
This just makes code shorter and better. Signed-off-by: Denis V. Lunev Signed-off-by: Yuri Pudgorodskiy Reviewed-by: Michael Roth --- qga/commands-posix.c | 10 +++--- qga/commands-win32.c | 10 +++--- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/qga/commands

[Qemu-devel] [PATCH 4/5] qga: handle G_IO_STATUS_AGAIN in ga_channel_write_all()

2015-10-07 Thread Denis V. Lunev
From: Yuri Pudgorodskiy glib may return G_IO_STATUS_AGAIN which is actually not an error. Also fixed a bug when on incomplete write buf pointer was not adjusted. Signed-off-by: Yuri Pudgorodskiy Signed-off-by: Denis V. Lunev Reviewed-by: Michael Roth --- qga/channel-posix.c | 23

[Qemu-devel] [PATCH v3 0/5] simplified QEMU guest exec

2015-10-07 Thread Denis V. Lunev
exception codes - replaces 'pid' with 'handle' in guest-exec api Signed-off-by: Denis V. Lunev Signed-off-by: Yuri Pudgorodskiy CC: Michael Roth Denis V. Lunev (2): qga: drop guest_file_init helper and replace it with static initializers qga: handle possible SIG

[Qemu-devel] [PATCH 5/5] qga: guest-exec simple stdin/stdout/stderr redirection

2015-10-07 Thread Denis V. Lunev
out/err file descriptiors internally to pipes and collects subprocess output. Guest-exe-status is modified to return this collected data to requestor in base64 encoding. Signed-off-by: Yuri Pudgorodskiy Signed-off-by: Denis V. Lunev CC: Michael Roth --- qga/commands.c | 175

[Qemu-devel] [PATCH 2/5] qga: guest exec functionality

2015-10-07 Thread Denis V. Lunev
specify stdin in guest-exec command and to get collected stdout/stderr with guest-exec-status. Signed-off-by: Yuri Pudgorodskiy Signed-off-by: Denis V. Lunev CC: Michael Roth --- qga/commands.c | 188 +++ qga/qapi-schema.json | 62

[Qemu-devel] [PATCH 2/2] qga: set file descriptors in qmp_guest_file_open non-blocking on Win32

2015-10-07 Thread Denis V. Lunev
. The only problem is that qemu_set_nonblock is void but this should not be a big deal. Signed-off-by: Olga Krishtal Signed-off-by: Denis V. Lunev Reviewed-by: Yuri Pudgorodskiy CC: Michael Roth CC: Stefan Weil --- qga/commands-win32.c | 6 ++ util/oslib-win32.c | 52

[Qemu-devel] [PATCH 1/2] qga: drop hand-made guest_file_toggle_flags helper

2015-10-07 Thread Denis V. Lunev
We'd better use generic qemu_set_nonblock directly. Signed-off-by: Denis V. Lunev Reviewed-by: Yuri Pudgorodskiy CC: Michael Roth --- qga/commands-posix.c | 27 ++- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/qga/commands-posix.c b/qga/com

[Qemu-devel] [PATCH 0/2] qga: non-blocking fd cleanups

2015-10-07 Thread Denis V. Lunev
This patchset is reincarnation of one patch discussed in the scope of QEMU 2.4 and rejected for that time. Actually we should use non-blocking descriptors in QGA on Windows in guest-file-open exactly like was done for Posix. Signed-off-by: Denis V. Lunev Signed-off-by: Olga Krishtal Reviewed-by

[Qemu-devel] [PATCH 3/5] qga: handle possible SIGPIPE in guest-file-write

2015-10-07 Thread Denis V. Lunev
qemu-ga should not exit on guest-file-write to pipe without read end but proper error code should be returned. The behavior of the spawned process should be default thus SIGPIPE processing should be reset to default after fork() but before exec(). Signed-off-by: Denis V. Lunev Signed-off-by

Re: [Qemu-devel] [PATCH 03/17] spec: add qcow2-dirty-bitmaps specification

2015-10-07 Thread Denis V. Lunev
On 10/07/2015 07:47 PM, Max Reitz wrote: On 05.09.2015 18:43, Vladimir Sementsov-Ogievskiy wrote: Persistent dirty bitmaps will be saved into qcow2 files. It may be used as 'internal' bitmaps (for qcow2 drives) or as 'external' bitmaps for other drives (there may be qcow2 file with zero disk siz

Re: [Qemu-devel] [PATCH 3/8] migration: add new capability test-only

2015-10-08 Thread Denis V. Lunev
On 10/07/2015 06:05 PM, Eric Blake wrote: On 10/07/2015 12:20 AM, Denis V. Lunev wrote: From: Igor Redko This patch declares a new migration capability that allows to distinguish between true migration and the test. An alternative is using a custom URI but in this case the following problems

Re: [Qemu-devel] [PATCH 6/8] migration: implementation of hook_ram_sync

2015-10-08 Thread Denis V. Lunev
On 10/07/2015 12:44 PM, Paolo Bonzini wrote: On 07/10/2015 08:20, Denis V. Lunev wrote: +if (migrate_is_test()) { +/* since no data is transfered during estimation all + all measurements below will be incorrect. + as well no need for delays

Re: [Qemu-devel] [PATCH 7/8] migration: new migration test mode

2015-10-08 Thread Denis V. Lunev
On 10/07/2015 06:08 PM, Eric Blake wrote: On 10/07/2015 07:56 AM, Dr. David Alan Gilbert wrote: * Denis V. Lunev (d...@openvz.org) wrote: From: Igor Redko In this patch the ability to start a migration with test-only capability was added. It allows to gather the guest VM’s memory usage

Re: [Qemu-devel] [PATCH 7/8] migration: new migration test mode

2015-10-08 Thread Denis V. Lunev
On 10/07/2015 04:56 PM, Dr. David Alan Gilbert wrote: * Denis V. Lunev (d...@openvz.org) wrote: From: Igor Redko In this patch the ability to start a migration with test-only capability was added. It allows to gather the guest VM’s memory usage statistics avoiding time and memory overheads

Re: [Qemu-devel] [PATCH 03/17] spec: add qcow2-dirty-bitmaps specification

2015-10-08 Thread Denis V. Lunev
On 10/08/2015 11:28 PM, John Snow wrote: On 10/07/2015 03:05 PM, Denis V. Lunev wrote: On 10/07/2015 07:47 PM, Max Reitz wrote: On 05.09.2015 18:43, Vladimir Sementsov-Ogievskiy wrote: Persistent dirty bitmaps will be saved into qcow2 files. It may be used as 'internal' bitmaps

Re: [Qemu-devel] [PATCH 6/8] migration: implementation of hook_ram_sync

2015-10-08 Thread Denis V. Lunev
On 10/07/2015 12:44 PM, Paolo Bonzini wrote: On 07/10/2015 08:20, Denis V. Lunev wrote: All calls of this hook will be from ram_save_pending(). At the first call of this hook we need to save the initial size of VM memory and put the migration thread to sleep for decent period (downtime for

[Qemu-devel] [PATCH 0/2] Hyper-V synthetic interrupt controller

2015-10-09 Thread Denis V. Lunev
writing to the corresponding MSRs. Signed-off-by: Andrey Smetanin Reviewed-by: Roman Kagan Signed-off-by: Denis V. Lunev CC: Vitaly Kuznetsov CC: "K. Y. Srinivasan" CC: Gleb Natapov CC: Paolo Bonzini

[Qemu-devel] [PATCH 1/2] kvm/x86: Hyper-V synthetic interrupt controller

2015-10-09 Thread Denis V. Lunev
is extended to support GSI-SINT mapping. Signed-off-by: Andrey Smetanin Reviewed-by: Roman Kagan Signed-off-by: Denis V. Lunev CC: Vitaly Kuznetsov CC: "K. Y. Srinivasan" CC: Gleb Natapov CC: Paolo Bonzini --- arch/powerpc/kvm/mpic.c | 18 +++ arch/s390/kvm/interrupt.c

[Qemu-devel] [PATCH 2/2] kvm/x86: Hyper-V kvm exit

2015-10-09 Thread Denis V. Lunev
From: Andrey Smetanin A new vcpu exit is introduced to notify the userspace of the changes in Hyper-V synic configuraion triggered by guest writing to the corresponding MSRs. Signed-off-by: Andrey Smetanin Reviewed-by: Roman Kagan Signed-off-by: Denis V. Lunev CC: Vitaly Kuznetsov CC: "

Re: [Qemu-devel] [PATCH v3 0/5] simplified QEMU guest exec

2015-10-11 Thread Denis V. Lunev
On 10/07/2015 01:32 PM, Denis V. Lunev wrote: This patchset provides simplified guest-exec functionality. The idea is simple. We drop original guest-pipe-open etc stuff and provides simple and dumb API: - spawn process (originally with stdin/stdout/stderr as /dev/null) - later simple buffer is

[Qemu-devel] [PATCH 1/1] log hmp/qmp command

2015-10-12 Thread Denis V. Lunev
Signed-off-by: Denis V. Lunev CC: Markus Armbruster CC: Luiz Capitulino CC: Eric Blake --- include/qemu/log.h | 1 + monitor.c | 4 qemu-log.c | 1 + 3 files changed, 6 insertions(+) diff --git a/include/qemu/log.h b/include/qemu/log.h index f880e66..dfb587e 100644 --- a

Re: [Qemu-devel] [PATCH 0/2] qga: non-blocking fd cleanups

2015-10-12 Thread Denis V. Lunev
On 10/07/2015 01:59 PM, Denis V. Lunev wrote: This patchset is reincarnation of one patch discussed in the scope of QEMU 2.4 and rejected for that time. Actually we should use non-blocking descriptors in QGA on Windows in guest-file-open exactly like was done for Posix. Signed-off-by: Denis V

Re: [Qemu-devel] [PATCH 1/1] log hmp/qmp command

2015-10-12 Thread Denis V. Lunev
On 10/12/2015 11:41 AM, Denis V. Lunev wrote: From: Pavel Butsykin This log would be very welcome for long-term diagnostics of the system in the production. This log is at least necessary to understand what has been happened on the system and to identify issues at higher-level subsystems

Re: [Qemu-devel] [PATCH 2/2] kvm/x86: Hyper-V kvm exit

2015-10-12 Thread Denis V. Lunev
On 10/12/2015 04:42 PM, Eric Blake wrote: On 10/09/2015 07:39 AM, Denis V. Lunev wrote: From: Andrey Smetanin A new vcpu exit is introduced to notify the userspace of the changes in Hyper-V synic configuraion triggered by guest writing to the s/configuraion/configuration/ Is 'synic'

Re: [Qemu-devel] [PATCH 1/1] log hmp/qmp command

2015-10-12 Thread Denis V. Lunev
On 10/12/2015 04:49 PM, Eric Blake wrote: On 10/12/2015 02:41 AM, Denis V. Lunev wrote: From: Pavel Butsykin This log would be very welcome for long-term diagnostics of the system in the production. This log is at least necessary to understand what has been happened on the system and to

[Qemu-devel] [PATCH 3/5] io: add locking constraints check into bdrv_drain to ensure locking

2015-10-27 Thread Denis V. Lunev
as described in the comment of the function Signed-off-by: Denis V. Lunev CC: Stefan Hajnoczi CC: Paolo Bonzini --- block/io.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/block/io.c b/block/io.c index 5ac6256..2e98d45 100644 --- a/block/io.c +++ b/block/io.c

[Qemu-devel] [PATCH v2 0/5] dataplane snapshot fixes

2015-10-27 Thread Denis V. Lunev
locking added - comment is rewritten Signed-off-by: Denis V. Lunev CC: Stefan Hajnoczi CC: Paolo Bonzini Denis V. Lunev (4): fifolock: create rfifolock_is_locked helper aio_context: create aio_context_is_locked helper io: add locking constraints check into bdrv_drain to ensure locking

[Qemu-devel] [PATCH 1/5] fifolock: create rfifolock_is_locked helper

2015-10-27 Thread Denis V. Lunev
This helper is necessary to ensure locking constraints. Signed-off-by: Denis V. Lunev CC: Stefan Hajnoczi CC: Paolo Bonzini --- include/qemu/rfifolock.h | 1 + util/rfifolock.c | 9 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/include/qemu/rfifolock.h b

[Qemu-devel] [PATCH 2/5] aio_context: create aio_context_is_locked helper

2015-10-27 Thread Denis V. Lunev
This helper is necessary to ensure locking constraints. Signed-off-by: Denis V. Lunev CC: Stefan Hajnoczi CC: Paolo Bonzini --- async.c | 5 + include/block/aio.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/async.c b/async.c index bdc64a3..4a9250e 100644 --- a

[Qemu-devel] [PATCH 4/5] migration: add missed aio_context_acquire into hmp_savevm/hmp_delvm

2015-10-27 Thread Denis V. Lunev
V. Lunev CC: Stefan Hajnoczi CC: Paolo Bonzini CC: Juan Quintela CC: Amit Shah --- block/snapshot.c | 5 + migration/savevm.c | 7 +++ 2 files changed, 12 insertions(+) diff --git a/block/snapshot.c b/block/snapshot.c index 89500f2..f6fa17a 100644 --- a/block/snapshot.c +++ b/block

[Qemu-devel] [PATCH 5/5] virtio: sync the dataplane vring state to the virtqueue before virtio_save

2015-10-27 Thread Denis V. Lunev
loading VM state Signed-off-by: Pavel Butsykin Signed-off-by: Denis V. Lunev CC: Stefan Hajnoczi CC: "Michael S. Tsirkin" CC: Kevin Wolf CC: Paolo Bonzini --- hw/block/virtio-blk.c | 5 + hw/scsi/virtio-scsi.c | 5 + 2 files changed, 10 insertions(+) diff --git a/hw/block/vir

[Qemu-devel] [PATCH 2/3] qga: fixed CloseHandle in qmp_guest_file_open

2015-10-27 Thread Denis V. Lunev
From: Olga Krishtal CloseHandle use HANDLE as an argument, but not *HANDLE Signed-off-by: Olga Krishtal Signed-off-by: Denis V. Lunev CC: Michael Roth CC: Stefan Weil --- qga/commands-win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qga/commands-win32.c b/qga

[Qemu-devel] [PATCH 3/3] qga: set file descriptor in qmp_guest_file_open non-blocking on Win32

2015-10-27 Thread Denis V. Lunev
win32 there is a difference between file discriptors and file handles, and all file ops are made via Win32 api. Signed-off-by: Olga Krishtal Signed-off-by: Denis V. Lunev CC: Michael Roth CC: Stefan Weil --- include/qemu/sockets.h | 2 ++ qga/commands-win32.c | 6 ++ util/oslib-win32.c

[Qemu-devel] [PATCH v3 for 2.5 0/3] qga: non-blocking fd cleanups

2015-10-27 Thread Denis V. Lunev
- switched setting non-block for pipes to use separate function Changes from v1: - call to qemu_fd_register is moved to a proper place - moved declaration of opt to a proper place Signed-off-by: Denis V. Lunev Signed-off-by: Olga Krishtal CC: Yuri Pudgorodskiy CC: Michael Roth Denis V. Lunev (1

[Qemu-devel] [PATCH 1/3] qga: drop hand-made guest_file_toggle_flags helper

2015-10-27 Thread Denis V. Lunev
We'd better use generic qemu_set_nonblock directly. Signed-off-by: Denis V. Lunev Reviewed-by: Yuri Pudgorodskiy Reviewed-by: Eric Blake CC: Michael Roth --- qga/commands-posix.c | 27 ++- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/qga/com

Re: [Qemu-devel] [PATCH 4/5] migration: add missed aio_context_acquire into hmp_savevm/hmp_delvm

2015-10-27 Thread Denis V. Lunev
On 10/27/2015 09:12 PM, Paolo Bonzini wrote: On 27/10/2015 15:09, Denis V. Lunev wrote: aio_context should be locked in the similar way as was done in QMP snapshot creation in the other case there are a lot of possible troubles if native AIO mode is enabled for disk. - the command can hang

Re: [Qemu-devel] [PATCH v2 0/5] dataplane snapshot fixes

2015-10-27 Thread Denis V. Lunev
On 10/27/2015 09:41 PM, Paolo Bonzini wrote: On 27/10/2015 15:09, Denis V. Lunev wrote: The following test while /bin/true ; do virsh snapshot-create rhel7 sleep 10 virsh snapshot-delete rhel7 --current done with enabled iothreads on a running VM leads to a

Re: [Qemu-devel] [PATCH 3/3] qga: set file descriptor in qmp_guest_file_open non-blocking on Win32

2015-10-27 Thread Denis V. Lunev
On 10/27/2015 10:11 PM, Michael Roth wrote: Quoting Denis V. Lunev (2015-10-27 12:48:43) From: Olga Krishtal Set fd non-blocking to avoid common use cases (like reading from a named pipe) from hanging the agent. This was missed in the original code. The patch introduces analog of

Re: [Qemu-devel] [PATCH v2 0/5] dataplane snapshot fixes

2015-10-27 Thread Denis V. Lunev
On 10/27/2015 10:05 PM, Denis V. Lunev wrote: On 10/27/2015 09:41 PM, Paolo Bonzini wrote: On 27/10/2015 15:09, Denis V. Lunev wrote: The following test while /bin/true ; do virsh snapshot-create rhel7 sleep 10 virsh snapshot-delete rhel7 --current done

Re: [Qemu-devel] [PATCH 4/5] migration: add missed aio_context_acquire into hmp_savevm/hmp_delvm

2015-10-28 Thread Denis V. Lunev
On 10/28/2015 01:11 PM, Juan Quintela wrote: "Denis V. Lunev" wrote: aio_context should be locked in the similar way as was done in QMP snapshot creation in the other case there are a lot of possible troubles if native AIO mode is enabled for disk. - the command can hang (HMP th

[Qemu-devel] [PATCH 1/4] fifolock: create rfifolock_is_locked helper

2015-10-28 Thread Denis V. Lunev
This helper is necessary to ensure locking constraints. Signed-off-by: Denis V. Lunev CC: Stefan Hajnoczi CC: Paolo Bonzini --- include/qemu/rfifolock.h | 1 + util/rfifolock.c | 9 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/include/qemu/rfifolock.h b

[Qemu-devel] [PATCH 2/4] aio_context: create aio_context_is_locked helper

2015-10-28 Thread Denis V. Lunev
This helper is necessary to ensure locking constraints. Signed-off-by: Denis V. Lunev CC: Stefan Hajnoczi CC: Paolo Bonzini --- async.c | 5 + include/block/aio.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/async.c b/async.c index bdc64a3..4a9250e 100644 --- a

[Qemu-devel] [PATCH v3 0/4] dataplane snapshot fixes

2015-10-28 Thread Denis V. Lunev
(aio_context_is_locked(aio_context)); should be widely used to ensure proper locking. Changes from v2: - droppped patch 5 as already merged - changed locking scheme in patch 4 by suggestion of Juan Changes from v1: - aio-context locking added - comment is rewritten Signed-off-by: Denis V. Lunev CC: Stefan

[Qemu-devel] [PATCH 3/4] io: add locking constraints check into bdrv_drain to ensure locking

2015-10-28 Thread Denis V. Lunev
as described in the comment of the function Signed-off-by: Denis V. Lunev CC: Stefan Hajnoczi CC: Paolo Bonzini --- block/io.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/block/io.c b/block/io.c index 5ac6256..2e98d45 100644 --- a/block/io.c +++ b/block/io.c

[Qemu-devel] [PATCH 4/4] migration: add missed aio_context_acquire into HMP snapshot code

2015-10-28 Thread Denis V. Lunev
drivers. This change should influence only HMP snapshot operations. AioContext lock is reqursive. Thus nested locking should not be a problem. Signed-off-by: Denis V. Lunev CC: Stefan Hajnoczi CC: Paolo Bonzini CC: Juan Quintela CC: Amit Shah --- block/snapshot.c | 5 + migration/savevm.c

[Qemu-devel] [PATCH 2/3] qga: fixed CloseHandle in qmp_guest_file_open

2015-10-28 Thread Denis V. Lunev
From: Olga Krishtal CloseHandle use HANDLE as an argument, but not *HANDLE Signed-off-by: Olga Krishtal Signed-off-by: Denis V. Lunev Reviewed-by: Stefan Weil CC: Michael Roth --- qga/commands-win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qga/commands-win32.c

[Qemu-devel] [PATCH 1/3] qga: drop hand-made guest_file_toggle_flags helper

2015-10-28 Thread Denis V. Lunev
We'd better use generic qemu_set_nonblock directly. Signed-off-by: Denis V. Lunev Reviewed-by: Yuri Pudgorodskiy Reviewed-by: Eric Blake CC: Michael Roth --- qga/commands-posix.c | 27 ++- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/qga/com

[Qemu-devel] [PATCH v4 for 2.5 0/3] qga: non-blocking fd cleanups

2015-10-28 Thread Denis V. Lunev
proper place Signed-off-by: Denis V. Lunev Signed-off-by: Olga Krishtal CC: Yuri Pudgorodskiy CC: Michael Roth Denis V. Lunev (1): qga: drop hand-made guest_file_toggle_flags helper Olga Krishtal (2): qga: fixed CloseHandle in qmp_guest_file_open qga: set file descriptor in

[Qemu-devel] [PATCH 3/3] qga: set file descriptor in qmp_guest_file_open non-blocking on Win32

2015-10-28 Thread Denis V. Lunev
qemu_set_non/block is impossible, because for win32 there is a difference between file discriptors and file handles, and all file ops are made via Win32 api. Signed-off-by: Olga Krishtal Signed-off-by: Denis V. Lunev CC: Michael Roth CC: Stefan Weil --- qga/commands-win32.c | 27

Re: [Qemu-devel] [PATCH 01/11] trace: fix documentation

2015-10-28 Thread Denis V. Lunev
On 10/26/2015 11:05 PM, Christian Borntraeger wrote: Am 26.10.2015 um 18:10 schrieb Denis V. Lunev: From: Paolo Bonzini Mention the ftrace backend too. Signed-off-by: Paolo Bonzini Signed-off-by: Denis V. Lunev Reviewed-by: Christian Borntraeger Can you make that Acked-by: Christian

Re: [Qemu-devel] [PATCH 3/3] qga: set file descriptor in qmp_guest_file_open non-blocking on Win32

2015-10-28 Thread Denis V. Lunev
On 10/27/2015 10:49 PM, Michael Roth wrote: Quoting Denis V. Lunev (2015-10-27 14:13:57) On 10/27/2015 10:11 PM, Michael Roth wrote: Quoting Denis V. Lunev (2015-10-27 12:48:43) From: Olga Krishtal Set fd non-blocking to avoid common use cases (like reading from a named pipe) from hanging

Re: [Qemu-devel] [PATCH 4/4] migration: add missed aio_context_acquire into HMP snapshot code

2015-10-28 Thread Denis V. Lunev
On 10/28/2015 06:33 PM, Juan Quintela wrote: "Denis V. Lunev" wrote: aio_context should be locked in the similar way as was done in QMP snapshot creation in the other case there are a lot of possible troubles if native AIO mode is enabled for disk. - the command can hang (HMP th

Re: [Qemu-devel] [PATCH 03/11] trace: split trace_init_file out of trace_init_backends

2015-10-29 Thread Denis V. Lunev
On 10/29/2015 08:23 PM, Stefan Hajnoczi wrote: On Mon, Oct 26, 2015 at 12:10:20PM +0300, Denis V. Lunev wrote: From: Paolo Bonzini This is cleaner, and improves error reporting with -daemonize. Signed-off-by: Paolo Bonzini Signed-off-by: Denis V. Lunev Reviewed-by: Christian Borntraeger

[Qemu-devel] [PATCH 06/11] trace: add "-trace help"

2015-10-29 Thread Denis V. Lunev
From: Paolo Bonzini Print a list of trace points Signed-off-by: Paolo Bonzini Signed-off-by: Denis V. Lunev Acked-by: Christian Borntraeger --- qemu-options.hx | 2 ++ trace/control.c | 21 - trace/control.h | 7 +++ 3 files changed, 29 insertions(+), 1 deletion

[Qemu-devel] [PATCH 05/11] trace: add "-trace enable=..."

2015-10-29 Thread Denis V. Lunev
Signed-off-by: Paolo Bonzini Signed-off-by: Denis V. Lunev Acked-by: Christian Borntraeger --- qemu-options.hx | 10 +- trace/control.c | 48 +++- trace/control.h | 9 + vl.c| 11 +-- 4 files changed, 54 inserti

[Qemu-devel] [PATCH 04/11] trace: no need to call trace_backend_init in different branches now

2015-10-29 Thread Denis V. Lunev
. Signed-off-by: Denis V. Lunev Reviewed-by: Paolo Bonzini --- vl.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/vl.c b/vl.c index 0424ce5..4261662 100644 --- a/vl.c +++ b/vl.c @@ -4088,10 +4088,8 @@ int main(int argc, char **argv, char **envp

[Qemu-devel] [PATCH 09/11] trace: convert stderr backend to log

2015-10-29 Thread Denis V. Lunev
From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Denis V. Lunev Acked-by: Christian Borntraeger --- configure | 4 ++-- include/qemu/log.h | 1 + scripts/tracetool/backend/{stderr.py => log.py} |

[Qemu-devel] [PATCH 03/11] trace: split trace_init_file out of trace_init_backends

2015-10-29 Thread Denis V. Lunev
From: Paolo Bonzini This is cleaner, and improves error reporting with -daemonize. Signed-off-by: Paolo Bonzini Signed-off-by: Denis V. Lunev Acked-by: Christian Borntraeger --- qemu-io.c | 2 +- trace/control.c | 17 - trace/control.h | 13 - trace

[Qemu-devel] [PATCH 02/11] trace: split trace_init_events out of trace_init_backends

2015-10-29 Thread Denis V. Lunev
From: Paolo Bonzini This is cleaner and has two advantages. First, it improves error reporting with -daemonize. Second, multiple "-trace events" options now cumulate. Signed-off-by: Paolo Bonzini Signed-off-by: Denis V. Lunev Acked-by: Christian Borntraeger --- qemu-io.c

[Qemu-devel] [PATCH 10/11] trace: switch default backend to "log"

2015-10-29 Thread Denis V. Lunev
From: Paolo Bonzini This enables integration with other QEMU logging facilities. Signed-off-by: Paolo Bonzini Signed-off-by: Denis V. Lunev Acked-by: Christian Borntraeger --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 5e65dd5

[Qemu-devel] [PATCH 07/11] log: do not unnecessarily include qom/cpu.h

2015-10-29 Thread Denis V. Lunev
From: Paolo Bonzini Split the bits that require it to exec/log.h. Signed-off-by: Paolo Bonzini Signed-off-by: Denis V. Lunev Acked-by: Christian Borntraeger --- bsd-user/main.c | 1 + cpu-exec.c| 1 + exec.c| 1 + hw/acpi

[Qemu-devel] [PATCH 08/11] log: move qemu-log.c into util/ directory

2015-10-29 Thread Denis V. Lunev
log will become common facility with tracepoints support in next step. Signed-off-by: Denis V. Lunev Reviewed-by: Paolo Bonzini --- Makefile.objs| 1 - util/Makefile.objs | 1 + qemu-log.c => util/log.c | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename qemu-lo

<    1   2   3   4   5   6   7   8   9   10   >