[Qemu-devel] Postcopy Migration: Recovery from a broken network connection (GSOC 2016)

2016-02-29 Thread Ashijeet Acharya
the links posted on the ideas page and the source code on github. I also had some ideas related to it and wanted to discuss those with you. Please let me know how you are planning to proceed with it and the technical skills required for the same. Thanks! Ashijeet Acharya

[Qemu-devel] [PATCH] Modify net/socket.c to use functions from include/qemu/sockets.h

2016-05-03 Thread Ashijeet Acharya
From: Ashijeet Replaced connect()/listen()/parse_host_port() in net/socket.c with inet_connect()/inet_listen/inet_parse() in include/qemu/sockets.h. Signed-off-by: Ashijeet Acharya --- net/socket.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/net

[Qemu-devel] [PATCH] Modify net/socket.c to use socket_* functions from include/qemu/sockets.h

2016-05-31 Thread Ashijeet Acharya
Changed the listen(),connect(),parse_host_port() in net/socket.c with the socket_*()functions in include/qemu/sockets.h. Signed-off-by: Ashijeet Acharya --- net/socket.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/net/socket.c b

Re: [Qemu-devel] [PATCH] Modify net/socket.c to use socket_* functions from include/qemu/sockets.h

2016-06-05 Thread Ashijeet Acharya
On Tuesday 31 May 2016 08:31 PM, Paolo Bonzini wrote: On 31/05/2016 11:27, Ashijeet Acharya wrote: Changed the listen(),connect(),parse_host_port() in net/socket.c with the socket_*()functions in include/qemu/sockets.h. Signed-off-by: Ashijeet Acharya --- net/socket.c | 38

[Qemu-devel] [PATCH] Change net/socket.c to use socket_*() functions

2016-06-16 Thread Ashijeet Acharya
socket_address_to_string() in util/qemu-sockets.c which returns the string representation of socket address. The task was listed on http://wiki.qemu.org/BiteSizedTasks page. Signed-off-by: Ashijeet Acharya --- include/qemu/sockets.h | 16 ++- net/socket.c | 56

[Qemu-devel] [PATCH v2] Change net/socket.c to use socket_*() functions

2016-06-18 Thread Ashijeet Acharya
socket_address_to_string() in util/qemu-sockets.c which returns the string representation of socket address. Thetask was listed on http://wiki.qemu.org/BiteSizedTasks page. Signed-off-by: Ashijeet Acharya --- include/qemu/sockets.h | 16 ++- net/socket.c | 55

Re: [Qemu-devel] [PATCH v2] Change net/socket.c to use socket_*() functions

2016-06-21 Thread Ashijeet Acharya
On Tue, Jun 21, 2016 at 7:19 AM, Jason Wang wrote: > > > On 2016年06月20日 23:09, Peter Maydell wrote: >> >> On 20 June 2016 at 15:55, Paolo Bonzini wrote: >>> >>> >>> On 18/06/2016 09:54, Ashijeet Acharya wrote: >>>> >>>> Use

[Qemu-devel] [PATCH] Modify net/socket.c to use socket_* functions from include/qemu/sockets.h

2016-05-12 Thread Ashijeet Acharya
Changed the listen(),connect(),parse_host_port() in net/socket.c with the socket_*()functions in include/qemu/sockets.h. Signed-off-by: Ashijeet Acharya --- net/socket.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/net/socket.c b

[Qemu-devel] [PATCH v4 1/5] block/ssh: Add ssh_has_filename_options_conflict()

2016-10-25 Thread Ashijeet Acharya
r" easily. Signed-off-by: Ashijeet Acharya Reviewed-by: Max Reitz Reviewed-by: Kevin Wolf --- block/ssh.c | 27 +-- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/block/ssh.c b/block/ssh.c index 5ce12b6..75cb7bc 100644 --- a/block/ssh.c +++ b/block/ssh.

[Qemu-devel] [PATCH v4 5/5] qapi: allow blockdev-add for ssh

2016-10-25 Thread Ashijeet Acharya
Introduce new object 'BlockdevOptionsSsh' in qapi/block-core.json to support blockdev-add for SSH network protocol driver. Use only 'struct InetSocketAddress' since SSH only supports connection over TCP. Signed-off-by: Ashijeet Acharya Reviewed-by: Kevin Wolf --- qapi/

[Qemu-devel] [PATCH v4 4/5] block/ssh: Use InetSocketAddress options

2016-10-25 Thread Ashijeet Acharya
Drop the use of legacy options in favour of the InetSocketAddress options. Signed-off-by: Ashijeet Acharya Reviewed-by: Max Reitz Reviewed-by: Kevin Wolf --- block/ssh.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/block/ssh.c b/block/ssh.c index d814006

[Qemu-devel] [PATCH v4 3/5] block/ssh: Add InetSocketAddress and accept it

2016-10-25 Thread Ashijeet Acharya
Add InetSocketAddress compatibility to SSH driver. Add a new option "server" to the SSH block driver which then accepts a InetSocketAddress. "host" and "port" are supported as legacy options and are mapped to their InetSocketAddress representation. Signed-off-by

[Qemu-devel] [PATCH v4 0/5] Allow blockdev-add for SSH

2016-10-25 Thread Ashijeet Acharya
in v2: - Use strstart() instead of strcmp() (Kevin) - Use qobject_input_visitor_new_autocast() instead of qmp_input_visitor_new() and change header files accordingly (Kevin) - Use inet_connect_saddr() instead of inet_connect() (Kevin) - Drop the contruction of : string (Kevin) - Fix the bug in ssh_pro

[Qemu-devel] [PATCH v4 2/5] util/qemu-sockets: Make inet_connect_saddr() public

2016-10-25 Thread Ashijeet Acharya
Make inet_connect_saddr() in util/qemu-sockets.c public in order to be able to use it with InetSocketAddress sockets outside of util/qemu-sockets.c independently. Signed-off-by: Ashijeet Acharya Reviewed-by: Kevin Wolf --- include/qemu/sockets.h | 2 ++ util/qemu-sockets.c| 4 ++-- 2 files

Re: [Qemu-devel] [PATCH v2 2/2] qapi: allow blockdev-add for NFS

2016-10-27 Thread Ashijeet Acharya
On Wed, Oct 26, 2016 at 3:19 PM, Kevin Wolf wrote: > Am 25.10.2016 um 23:16 hat Eric Blake geschrieben: >> On 10/24/2016 02:27 PM, Ashijeet Acharya wrote: >> > Introduce new object 'BlockdevOptionsNFS' in qapi/block-core.json to >> > support blockdev-add for N

[Qemu-devel] [PATCH v3 0/2] block: allow blockdev-add for NFS

2016-10-27 Thread Ashijeet Acharya
parameters - change the names of query parameters in JSON Changes in v2: - drop strcmp() condition check for host and path in nfs_parse_uri() - drop "export" completely - initialize client->context bedore setting query parameters - fix the QDict options being passed to nfs_client_ope

[Qemu-devel] [PATCH v3 1/2] block/nfs: Introduce runtime_opts in NFS

2016-10-27 Thread Ashijeet Acharya
Make NFS block driver use various fine grained runtime_opts. Set .bdrv_parse_filename() to nfs_parse_filename() and introduce two new functions nfs_parse_filename() and nfs_parse_uri() to help parsing the URI. Signed-off-by: Ashijeet Acharya --- block/nfs.c | 331

[Qemu-devel] [PATCH v3 2/2] qapi: allow blockdev-add for NFS

2016-10-27 Thread Ashijeet Acharya
Introduce new object 'BlockdevOptionsNFS' in qapi/block-core.json to support blockdev-add for NFS network protocol driver. Also make a new struct NFSServer to support tcp connection. Signed-off-by: Ashijeet Acharya --- qapi/block-core

[Qemu-devel] [PATCH v4 0/2] allow blockdev-add for NFS

2016-10-28 Thread Ashijeet Acharya
k for host and path in nfs_parse_uri() - drop "export" completely - initialize client->context bedore setting query parameters - fix the QDict options being passed to nfs_client_open() and make use of url Ashijeet Acharya (2): block/nfs: Introduce runti

[Qemu-devel] [PATCH v4 2/2] qapi: allow blockdev-add for NFS

2016-10-28 Thread Ashijeet Acharya
Introduce new object 'BlockdevOptionsNFS' in qapi/block-core.json to support blockdev-add for NFS network protocol driver. Also make a new struct NFSServer to support tcp connection. Signed-off-by: Ashijeet Acharya --- qapi/block-core

[Qemu-devel] [PATCH v4 1/2] block/nfs: Introduce runtime_opts in NFS

2016-10-28 Thread Ashijeet Acharya
t" is supported as a legacy option and is mapped to its NFSServer representation. Signed-off-by: Ashijeet Acharya --- block/nfs.c | 457 +++- 1 file changed, 364 insertions(+), 93 deletions(-) diff --git a/block/nfs.c b/block/nfs.c in

[Qemu-devel] [PATCH v5 0/2] allow blockdev-add for NFS

2016-10-28 Thread Ashijeet Acharya
pletely - initialize client->context bedore setting query parameters - fix the QDict options being passed to nfs_client_open() and make use of url Ashijeet Acharya (2): block/nfs: Introduce runtime_opts in NFS qapi: allow blockdev-add for NFS block/nfs.c | 430 +++

[Qemu-devel] [PATCH v5 1/2] block/nfs: Introduce runtime_opts in NFS

2016-10-28 Thread Ashijeet Acharya
t" is supported as a legacy option and is mapped to its NFSServer representation. Signed-off-by: Ashijeet Acharya --- block/nfs.c | 430 +++- 1 file changed, 337 insertions(+), 93 deletions(-) diff --git a/block/nfs.c b/block/nfs.c in

[Qemu-devel] [PATCH v5 2/2] qapi: allow blockdev-add for NFS

2016-10-28 Thread Ashijeet Acharya
Introduce new object 'BlockdevOptionsNFS' in qapi/block-core.json to support blockdev-add for NFS network protocol driver. Also make a new struct NFSServer to support tcp connection. Signed-off-by: Ashijeet Acharya --- qapi/block-core

[Qemu-devel] [PATCH v6 1/2] block/nfs: Introduce runtime_opts in NFS

2016-10-31 Thread Ashijeet Acharya
ned-off-by: Ashijeet Acharya --- block/nfs.c | 442 +++- 1 file changed, 349 insertions(+), 93 deletions(-) diff --git a/block/nfs.c b/block/nfs.c index c3db2ec..487d798 100644 --- a/block/nfs.c +++ b/block/nfs.c @@ -35,8 +35,15 @@ #include &

[Qemu-devel] [PATCH v6 0/2] allow blockdev-add for NFS

2016-10-31 Thread Ashijeet Acharya
ompletely - initialize client->context bedore setting query parameters - fix the QDict options being passed to nfs_client_open() and make use of url Ashijeet Acharya (2): block/nfs: Introduce runtime_opts in NFS qapi: allow blockdev-add for NFS block/nfs.c | 442 +

[Qemu-devel] [PATCH v6 2/2] qapi: allow blockdev-add for NFS

2016-10-31 Thread Ashijeet Acharya
Introduce new object 'BlockdevOptionsNFS' in qapi/block-core.json to support blockdev-add for NFS network protocol driver. Also make a new struct NFSServer to support tcp connection. Signed-off-by: Ashijeet Acharya --- qapi/block-core

[Qemu-devel] [PATCH] block/ssh: Fix the regression of unused parameter

2016-10-31 Thread Ashijeet Acharya
This patch drops the unused parameter "BDRVSSHState" being passed into the ssh_config() function and fixes the bug. Signed-off-by: Ashijeet Acharya --- block/ssh.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/block/ssh.c b/block/ssh.c index ca071c5..15ed

[Qemu-devel] [PATCH] block/nbd: Fix the regression to free leaked visitor

2016-10-31 Thread Ashijeet Acharya
This patch frees the leaked visitor in nbd_refresh_filename() and uses visit_free() to fix it. Signed-off-by: Ashijeet Acharya --- block/nbd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block/nbd.c b/block/nbd.c index 8ef1438..ff9d01a 100644 --- a/block/nbd.c +++ b/block/nbd.c

[Qemu-devel] [PATCH v2] block/nbd: Fix the regression to free leaked visitor

2016-11-02 Thread Ashijeet Acharya
This patch frees the leaked visitor in nbd_refresh_filename() and uses visit_free() to fix it. The leak was introduced by the commit 491d6c7. Signed-off-by: Ashijeet Acharya Reviewed-by: Eric Blake --- Changes in v2: - Include the regression commit id in the commit message --- block/nbd.c | 1

Re: [Qemu-devel] [PATCH v2] block/nbd: Fix the regression to free leaked visitor

2016-11-02 Thread Ashijeet Acharya
On Wed, Nov 2, 2016 at 4:00 PM, Kevin Wolf wrote: > Am 02.11.2016 um 10:48 hat Ashijeet Acharya geschrieben: >> This patch frees the leaked visitor in nbd_refresh_filename() and uses >> visit_free() to fix it. The leak was introduced by the commit 491d6c7. >> >> Sign

Re: [Qemu-devel] [PATCH] block/ssh: Fix the regression of unused parameter

2016-11-02 Thread Ashijeet Acharya
On Wed, Nov 2, 2016 at 4:03 PM, Kevin Wolf wrote: > Am 31.10.2016 um 19:06 hat Ashijeet Acharya geschrieben: >> This patch drops the unused parameter "BDRVSSHState" being passed into >> the ssh_config() function and fixes the bug. >> >> Signed-off-by: Ashij

[Qemu-devel] [PATCH v3] block/nbd: Fix the leaked visitor

2016-11-02 Thread Ashijeet Acharya
This patch frees the leaked visitor in nbd_refresh_filename() and uses visit_free() to fix it. The leak was introduced by the commit 491d6c7. Signed-off-by: Ashijeet Acharya Reviewed-by: Eric Blake --- Changes in v3: - Modify the Subject line - Free the visitor immediately after visit_complete

[Qemu-devel] [PATCH v2] block/ssh: Code cleanup for unused parameter

2016-11-02 Thread Ashijeet Acharya
This patch drops the unused parameter "BDRVSSHState" being passed into the ssh_config() function and does code cleanup. The unused parameter was introduced by the commit c322712. Signed-off-by: Ashijeet Acharya --- Changes in v2: - Modify the commit message and subject line --- block

Re: [Qemu-devel] [PATCH] Fix memory leak in ide_register_restart_cb()

2016-08-31 Thread Ashijeet Acharya
I am still waiting for review on this one. On Tue, Aug 16, 2016 at 10:40 PM, Ashijeet Acharya wrote: > Fix a memory leak in ide_register_restart_cb() in hw/ide/core.c and add > idebus_unrealize() in hw/ide/qdev.c to have calls to > qemu_del_vm_change_state_handler() to deal with the

Re: [Qemu-devel] [PATCH] Fix memory leak in ide_register_restart_cb()

2016-09-01 Thread Ashijeet Acharya
On Thu, Sep 1, 2016 at 9:13 PM, Paolo Bonzini wrote: > On 01/09/2016 07:31, Ashijeet Acharya wrote: >> I am still waiting for review on this one. > > Hi, > > QEMU is in hard freeze now so it's normal to have some delay in patch > review. Maintainers often use t

[Qemu-devel] [PATCH] Move migrate_set_speed and migrate_set_downtime into migrate_set_parameter

2016-09-05 Thread Ashijeet Acharya
Include migrate_set_speed and migrate_set_downtime inside migrate_set_parameters respectively for setting maximum migration speed and expected downtime parameters. Also add the query part for both in qmp and hmp qemu control interfaces. Signed-off-by: Ashijeet Acharya --- hmp-commands.hx

Re: [Qemu-devel] [PATCH] Move migrate_set_speed and migrate_set_downtime into migrate_set_parameter

2016-09-05 Thread Ashijeet Acharya
On Mon, Sep 5, 2016 at 1:31 PM, Paolo Bonzini wrote: > > > On 05/09/2016 09:45, Ashijeet Acharya wrote: >> Include migrate_set_speed and migrate_set_downtime inside >> migrate_set_parameters respectively for setting maximum migration >> speed and expected downtime par

Re: [Qemu-devel] [PATCH] Move migrate_set_speed and migrate_set_downtime into migrate_set_parameter

2016-09-05 Thread Ashijeet Acharya
On Mon, Sep 5, 2016 at 1:46 PM, Paolo Bonzini wrote: > > > On 05/09/2016 10:11, Ashijeet Acharya wrote: >> > > Include migrate_set_speed and migrate_set_downtime inside >> > > migrate_set_parameters respectively for setting maximum migration >> > > spe

[Qemu-devel] [PATCH v2] Move migrate_set_speed and migrate_set_downtime into migrate_set_parameter

2016-09-05 Thread Ashijeet Acharya
Include migrate_set_speed and migrate_set_downtime inside migrate_set_parameters for setting maximum migration speed and expected downtime parameters respectively. Also update the query part for both in qmp and hmp qemu control interfaces. Signed-off-by: Ashijeet Acharya --- hmp-commands.hx

Re: [Qemu-devel] [PATCH v2] Move migrate_set_speed and migrate_set_downtime into migrate_set_parameter

2016-09-05 Thread Ashijeet Acharya
On Mon, Sep 5, 2016 at 5:15 PM, Paolo Bonzini wrote: > > > On 05/09/2016 13:37, Ashijeet Acharya wrote: >> Include migrate_set_speed and migrate_set_downtime inside >> migrate_set_parameters for setting maximum migration speed and expected >> downtime parameters re

Re: [Qemu-devel] [PATCH v2] Move migrate_set_speed and migrate_set_downtime into migrate_set_parameter

2016-09-05 Thread Ashijeet Acharya
On Mon, Sep 5, 2016 at 5:31 PM, Paolo Bonzini wrote: > > > On 05/09/2016 13:59, Ashijeet Acharya wrote: >>>> >> +if (has_migrate_set_speed) { >>>> >> +qmp_migrate_set_speed(migrate_set_speed, NULL); >>>

Re: [Qemu-devel] [PATCH v2] Move migrate_set_speed and migrate_set_downtime into migrate_set_parameter

2016-09-05 Thread Ashijeet Acharya
On Mon, Sep 5, 2016 at 5:15 PM, Paolo Bonzini wrote: > > > On 05/09/2016 13:37, Ashijeet Acharya wrote: >> Include migrate_set_speed and migrate_set_downtime inside >> migrate_set_parameters for setting maximum migration speed and expected >> downtime parameters re

[Qemu-devel] [PATCH v3] Move migrate_set_speed and migrate_set_downtime into migrate_set_parameter

2016-09-05 Thread Ashijeet Acharya
Include migrate_set_speed and migrate_set_downtime inside migrate_set_parameters for setting maximum migration speed and expected downtime parameters respectively. Also update the query part for both in qmp and hmp qemu control interfaces. Signed-off-by: Ashijeet Acharya --- hmp.c

[Qemu-devel] [PATCH v3] Move migrate_set_speed and migrate_set_downtime into migrate_set_parameter (reversed logic)

2016-09-05 Thread Ashijeet Acharya
qmp_migrate_set_downtime() as wrappers on qmp_migrate_set_parameters(). Signed-off-by: Ashijeet Acharya --- hmp.c | 33 include/migration/migration.h | 1 - migration/migration.c | 116 -- qapi-schema.json | 26

Re: [Qemu-devel] [PATCH v3] Move migrate_set_speed and migrate_set_downtime into migrate_set_parameter

2016-09-05 Thread Ashijeet Acharya
On Mon, Sep 5, 2016 at 8:06 PM, Daniel P. Berrange wrote: > On Mon, Sep 05, 2016 at 07:56:26PM +0530, Ashijeet Acharya wrote: >> Include migrate_set_speed and migrate_set_downtime inside >> migrate_set_parameters for setting maximum migration speed and expected >>

Re: [Qemu-devel] [PATCH v3] Move migrate_set_speed and migrate_set_downtime into migrate_set_parameter

2016-09-05 Thread Ashijeet Acharya
On Mon, Sep 5, 2016 at 9:09 PM, Daniel P. Berrange wrote: > On Mon, Sep 05, 2016 at 08:44:26PM +0530, Ashijeet Acharya wrote: >> On Mon, Sep 5, 2016 at 8:06 PM, Daniel P. Berrange >> wrote: >> > On Mon, Sep 05, 2016 at 07:56:26PM +0530, Ashijeet Acharya wrote: &

[Qemu-devel] [PATCH] Move max-bandwidth and downtime-limit into migrate_set_parameter for both hmp and qmp

2016-09-05 Thread Ashijeet Acharya
qemu control interfaces. Signed-off-by: Ashijeet Acharya --- hmp-commands.hx | 8 +-- hmp.c | 29 +- include/migration/migration.h | 1 - migration/migration.c | 122 +++--- qapi-schema.json

Re: [Qemu-devel] [PATCH] Move max-bandwidth and downtime-limit into migrate_set_parameter for both hmp and qmp

2016-09-05 Thread Ashijeet Acharya
On Mon, Sep 5, 2016 at 11:26 PM, Daniel P. Berrange wrote: > On Mon, Sep 05, 2016 at 11:20:11PM +0530, Ashijeet Acharya wrote: >> Mark old-commands for speed and downtime as deprecated. >> Move max-bandwidth and downtime-limit into migrate-set-parameters for >> setting maximu

Re: [Qemu-devel] [PATCH] Move max-bandwidth and downtime-limit into migrate_set_parameter for both hmp and qmp

2016-09-06 Thread Ashijeet Acharya
On Mon, Sep 5, 2016 at 11:37 PM, Ashijeet Acharya wrote: > On Mon, Sep 5, 2016 at 11:26 PM, Daniel P. Berrange > wrote: >> On Mon, Sep 05, 2016 at 11:20:11PM +0530, Ashijeet Acharya wrote: >>> Mark old-commands for speed and downtime as deprecated. >>> Move max-ban

[Qemu-devel] [PATCH v2] Move max-bandwidth and downtime-limit into migrate_set_parameter for both hmp and qmp

2016-09-06 Thread Ashijeet Acharya
in both hmp and qmp qemu control interfaces. Signed-off-by: Ashijeet Acharya --- hmp.c | 27 ++ include/migration/migration.h | 1 - migration/migration.c | 120 -- qapi-schema.json | 33

Re: [Qemu-devel] [PATCH v2] Move max-bandwidth and downtime-limit into migrate_set_parameter for both hmp and qmp

2016-09-06 Thread Ashijeet Acharya
On Tue, Sep 6, 2016 at 4:32 PM, Dr. David Alan Gilbert wrote: > * Ashijeet Acharya (ashijeetacha...@gmail.com) wrote: >> Mark old-commands for speed and downtime as deprecated. >> Move max-bandwidth and downtime-limit into migrate-set-parameters for >> setting maximum migrati

Re: [Qemu-devel] [PATCH v2] Move max-bandwidth and downtime-limit into migrate_set_parameter for both hmp and qmp

2016-09-06 Thread Ashijeet Acharya
On Tue, Sep 6, 2016 at 6:52 PM, Ashijeet Acharya wrote: > On Tue, Sep 6, 2016 at 4:32 PM, Dr. David Alan Gilbert > wrote: >> * Ashijeet Acharya (ashijeetacha...@gmail.com) wrote: >>> Mark old-commands for speed and downtime as deprecated. >>> Move max-bandwidth a

[Qemu-devel] [PATCH v3] Move max-bandwidth and downtime-limit into migrate_set_parameter for both hmp and qmp

2016-09-06 Thread Ashijeet Acharya
in both hmp and qmp qemu control interfaces. Signed-off-by: Ashijeet Acharya --- hmp.c | 26 ++ include/migration/migration.h | 1 - migration/migration.c | 116 -- qapi-schema.json | 33

Re: [Qemu-devel] [PATCH v3] Move max-bandwidth and downtime-limit into migrate_set_parameter for both hmp and qmp

2016-09-07 Thread Ashijeet Acharya
On Wed, Sep 7, 2016 at 2:11 PM, Juan Quintela wrote: > Ashijeet Acharya wrote: >> Mark old-commands for speed and downtime as deprecated. >> Move max-bandwidth and downtime-limit into migrate-set-parameters for >> setting maximum migration speed and expected down

Re: [Qemu-devel] [PATCH v3] Move max-bandwidth and downtime-limit into migrate_set_parameter for both hmp and qmp

2016-09-08 Thread Ashijeet Acharya
On Thu, Sep 8, 2016 at 3:33 AM, Eric Blake wrote: > On 09/06/2016 08:39 AM, Ashijeet Acharya wrote: >> Mark old-commands for speed and downtime as deprecated. >> Move max-bandwidth and downtime-limit into migrate-set-parameters for >> setting maximum migration speed and ex

Re: [Qemu-devel] [PATCH v3] Move max-bandwidth and downtime-limit into migrate_set_parameter for both hmp and qmp

2016-09-08 Thread Ashijeet Acharya
On Thu, Sep 8, 2016 at 8:11 PM, Juan Quintela wrote: > Eric Blake wrote: > >>> +if (has_max_bandwidth) { >>> +s->parameters.max_bandwidth = max_bandwidth; >>> +if (s->to_dst_file) { >>> +qemu_file_set_rate_limit(s->to_dst_file, >>> +

[Qemu-devel] [PATCH v4] Move max-bandwidth and downtime-limit into migrate_set_parameter for both hmp and qmp

2016-09-08 Thread Ashijeet Acharya
in both hmp and qmp qemu control interfaces. Signed-off-by: Ashijeet Acharya --- hmp.c | 26 ++ include/migration/migration.h | 1 - migration/migration.c | 116 -- qapi-schema.json | 33

Re: [Qemu-devel] [PATCH v4] Move max-bandwidth and downtime-limit into migrate_set_parameter for both hmp and qmp

2016-09-08 Thread Ashijeet Acharya
On Fri, Sep 9, 2016 at 12:02 AM, Eric Blake wrote: > On 09/08/2016 10:59 AM, Ashijeet Acharya wrote: > > Long subject line; we strive to stay below 70 bytes so that you can > prepend commit ids and still stay in an 80-column window. Also, you can > look at 'git shortlog -3

Re: [Qemu-devel] [PATCH v4] Move max-bandwidth and downtime-limit into migrate_set_parameter for both hmp and qmp

2016-09-09 Thread Ashijeet Acharya
On Fri, Sep 9, 2016 at 8:41 AM, Eric Blake wrote: > On 09/08/2016 10:59 AM, Ashijeet Acharya wrote: >> Mark old-commands for speed and downtime as deprecated. >> Move max-bandwidth and downtime-limit into migrate-set-parameters for >> setting maximum migration speed and ex

[Qemu-devel] [PATCH v5] migrate: Move max-bandwidth and downtime-limit to migrate_set_parameter

2016-09-09 Thread Ashijeet Acharya
in both hmp and qmp qemu control interfaces. NOTE: This patch is solely based on Eric's new boxed parameters from QAPI patch series. Signed-off-by: Ashijeet Acharya --- Changes in v5: - Include units in the output of 'info migrte_parameters' - Change 'old-commands' to &

[Qemu-devel] [PATCH] migrate: Fix bounds check for migration parameters in migration.c

2016-09-09 Thread Ashijeet Acharya
. Signed-off-by: Ashijeet Acharya --- migration/migration.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/migration/migration.c b/migration/migration.c index 9b4aa55..cd8334c 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -805,6 +805,7 @@ void qmp_migrate_set_parameters

[Qemu-devel] [PATCH v3] migrate: Fix bounds check for migration parameters in migration.c

2016-09-09 Thread Ashijeet Acharya
, parameters were getting set to out-of-bounds values despite the error. Signed-off-by: Ashijeet Acharya --- migration/migration.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/migration/migration.c b/migration/migration.c index 9b4aa55..cd8334c 100644 --- a/migration/migration.c +++ b

Re: [Qemu-devel] [PATCH v2] migrate: Fix bounds check for migration parameters in migration.c

2016-09-09 Thread Ashijeet Acharya
On Sat, Sep 10, 2016 at 2:03 AM, Ashijeet Acharya wrote: > This patch fixes the out-of-bounds check of migration parameters in > qmp_migrate_set_parameters() for cpu-throttle-initial and > cpu-throttle-increment by adding a return statement for both as they > were broken since their

[Qemu-devel] [PATCH v2] migrate: Fix bounds check for migration parameters in migration.c

2016-09-09 Thread Ashijeet Acharya
, parameters were getting set to out-of-bounds values despite the error. Signed-off-by: Ashijeet Acharya --- migration/migration.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/migration/migration.c b/migration/migration.c index 9b4aa55..cd8334c 100644 --- a/migration/migration.c +++ b

[Qemu-devel] [PATCH v4] migrate: Fix bounds check for migration parameters in migration.c

2016-09-09 Thread Ashijeet Acharya
, parameters were getting set to out-of-bounds values despite the error. Signed-off-by: Ashijeet Acharya Reviewed-by: Eric Blake --- Changes in v4: -Fix the typo in commit message -Include the commit id which caused the regression --- migration/migration.c | 2 ++ 1 file changed, 2 insertions

[Qemu-devel] migration: Introduce a new "--only-migratable" option

2016-12-08 Thread Ashijeet Acharya
Hi Dave, I have added the compatibility of this option for both command line and hotplug via qmp and hmp. Although, please confirm that making use of "device_add" is the only way of hotplugging devices into a QEMU instance. With this sorted out, there is one special case left where the device dyn

Re: [Qemu-devel] [PATCH v5] migrate: Move max-bandwidth and downtime-limit to migrate_set_parameter

2016-09-14 Thread Ashijeet Acharya
On Wed, Sep 14, 2016 at 12:52 AM, Eric Blake wrote: > On 09/09/2016 02:02 PM, Ashijeet Acharya wrote: >> Mark old-commands for speed and downtime as deprecated. > > Maybe s/old-commands for speed and downtime/the old commands > 'migrate_set_speed' and 'mig

Re: [Qemu-devel] [PATCH v5] migrate: Move max-bandwidth and downtime-limit to migrate_set_parameter

2016-09-14 Thread Ashijeet Acharya
On Wed, Sep 14, 2016 at 7:28 PM, Eric Blake wrote: > On 09/14/2016 03:05 AM, Ashijeet Acharya wrote: > >>>> +if (params->has_max_bandwidth && >>>> +(params->max_bandwidth < 0 || params->max_bandwidth > SIZE_MAX)) { >&g

Re: [Qemu-devel] [PATCH v5] migrate: Move max-bandwidth and downtime-limit to migrate_set_parameter

2016-09-14 Thread Ashijeet Acharya
>> +++ b/migration/migration.c >> @@ -44,6 +44,10 @@ >> #define BUFFER_DELAY 100 >> #define XFER_LIMIT_RATIO (1000 / BUFFER_DELAY) >> >> +/* Time in nanoseconds we are allowed to stop the source, >> + * for sending the last part */ >> +#define DEFAULT_MIGRATE_SET_DOWNTIME 3 >> + > > I

[Qemu-devel] [PATCH v6] migrate: move max-bandwidth and downtime-limit to migrate_set_parameter

2016-09-14 Thread Ashijeet Acharya
only for new-command) and set its upper bound limit to 2000 seconds. Update the query part in both hmp and qmp qemu control interfaces. Signed-off-by: Ashijeet Acharya --- Changes in v6 -Improve the commit message -Mention new upper limit of downtime in commit message -Drop the use of

Re: [Qemu-devel] [PATCH v6] migrate: move max-bandwidth and downtime-limit to migrate_set_parameter

2016-09-15 Thread Ashijeet Acharya
On Thu, Sep 15, 2016 at 9:18 PM, Eric Blake wrote: > On 09/14/2016 12:40 PM, Ashijeet Acharya wrote: >> Mark the old commands 'migrate_set_speed' and 'migrate_set_downtime' as >> deprecated. >> Move max-bandwidth and downtime-limit into migrate-set-pa

[Qemu-devel] [PATCH v7] migrate: move max-bandwidth and downtime-limit to migrate_set_parameter

2016-09-15 Thread Ashijeet Acharya
only for new-command) and set its upper bound limit to 2000 seconds. Update the query part in both hmp and qmp qemu control interfaces. Signed-off-by: Ashijeet Acharya Reviewed-by: Eric Blake --- Changes in v7 - Fix the error message for bounds check of max-bandwidth --- hmp.c

[Qemu-devel] [PATCH v2] ide: Fix memory leak in ide_register_restart_cb()

2016-09-21 Thread Ashijeet Acharya
Fix a memory leak in ide_register_restart_cb() in hw/ide/core.c and add idebus_unrealize() in hw/ide/qdev.c to have calls to qemu_del_vm_change_state_handler() to deal with the dangling change state handler during hot-unplugging ide devices which might lead to a crash. Signed-off-by: Ashijeet

Re: [Qemu-devel] [PATCH v4] migrate: Introduce a 'dc->vmsd' check to avoid segfault for --only-migratable

2017-02-22 Thread Ashijeet Acharya
On Mon, Feb 13, 2017 at 11:34 PM, Ashijeet Acharya wrote: > Commit a3a3d8c7 introduced a segfault bug while checking for > 'dc->vmsd->unmigratable' which caused QEMU to crash when trying to add > devices which do no set their 'dc->vmsd' yet while initializa

[Qemu-devel] [PATCH] qapi: allow blockdev-add for ssh

2016-10-08 Thread Ashijeet Acharya
Introduce new object 'BlockdevOptionsSsh' in qapi/block-core.json to support blockdev-add for SSH network protocol driver. Use only 'struct InetSocketAddress' since SSH only supports connection over TCP. Signed-off-by: Ashijeet Acharya --- qapi/block-core.json | 24 +++

Re: [Qemu-devel] [PATCH] qapi: allow blockdev-add for ssh

2016-10-08 Thread Ashijeet Acharya
On Sat, Oct 8, 2016 at 4:24 PM, Richard W.M. Jones wrote: > On Sat, Oct 08, 2016 at 04:14:06PM +0530, Ashijeet Acharya wrote: >> Introduce new object 'BlockdevOptionsSsh' in qapi/block-core.json to >> support blockdev-add for SSH network protocol driver. Use only &#x

[Qemu-devel] block/nfs: Fine grained runtime options in nfs

2016-10-09 Thread Ashijeet Acharya
Hi all, I was working on trying to add blockdev-add compatibility for the nfs block driver but before that runtime options need to be separated into various options rather than just a simple "filename" option. I have added the following until now: a) host b) port (not sure about this one, do we j

Re: [Qemu-devel] [PATCH] qapi: allow blockdev-add for ssh

2016-10-10 Thread Ashijeet Acharya
On Mon, Oct 10, 2016 at 2:45 PM, Kevin Wolf wrote: > Am 08.10.2016 um 12:44 hat Ashijeet Acharya geschrieben: >> Introduce new object 'BlockdevOptionsSsh' in qapi/block-core.json to >> support blockdev-add for SSH network protocol driver. Use only 'struct >&g

Re: [Qemu-devel] [PATCH] qapi: allow blockdev-add for ssh

2016-10-10 Thread Ashijeet Acharya
On Mon, Oct 10, 2016 at 5:01 PM, Kevin Wolf wrote: > Am 10.10.2016 um 12:48 hat Ashijeet Acharya geschrieben: >> On Mon, Oct 10, 2016 at 2:45 PM, Kevin Wolf wrote: >> > Am 08.10.2016 um 12:44 hat Ashijeet Acharya geschrieben: >> >> +{ 'struct': 'Bl

Re: [Qemu-devel] [PATCH] qapi: allow blockdev-add for ssh

2016-10-10 Thread Ashijeet Acharya
On Mon, Oct 10, 2016 at 6:23 PM, Kevin Wolf wrote: > Am 10.10.2016 um 13:54 hat Ashijeet Acharya geschrieben: >> On Mon, Oct 10, 2016 at 5:01 PM, Kevin Wolf wrote: >> > Your .bdrv_open() callback in ssh gets these options as keys in >> > QDict *options, using the dot

[Qemu-devel] [PATCH 0/4] Allow blockdev-add for SSH

2016-10-11 Thread Ashijeet Acharya
driver by making the SSH option available. *** This series depends on the following patch: *** "qdict: implement a qdict_crumple method for un-flattening a dict" from Daniel's "QAPI/QOM work for non-scalar object properties" series. Ashijeet Acharya (4): block/ssh: Add

[Qemu-devel] [PATCH 3/4] block/ssh: Use InetSocketAddress options

2016-10-11 Thread Ashijeet Acharya
Drop the use of legacy options in favour of the InetSocketAddress options. Signed-off-by: Ashijeet Acharya --- block/ssh.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/block/ssh.c b/block/ssh.c index 702871a..399ed60 100644 --- a/block/ssh.c +++ b/block/ssh.c

[Qemu-devel] [PATCH 4/4] qapi: allow blockdev-add for ssh

2016-10-11 Thread Ashijeet Acharya
Introduce new object 'BlockdevOptionsSsh' in qapi/block-core.json to support blockdev-add for SSH network protocol driver. Use only 'struct InetSocketAddress' since SSH only supports connection over TCP. Signed-off-by: Ashijeet Acharya --- qapi/block-core.json | 24 +++

[Qemu-devel] [PATCH 2/4] block/ssh: Add InetSocketAddress and accept it

2016-10-11 Thread Ashijeet Acharya
Add InetSocketAddress compatibility to SSH driver. Add a new option "server" to the SSH block driver which then accepts a InetSocketAddress. "host" and "port" are supported as legacy options and are mapped to their InetSocketAddress representation. Signed-off-by

[Qemu-devel] [PATCH 1/4] block/ssh: Add ssh_has_filename_options_conflict()

2016-10-11 Thread Ashijeet Acharya
r" easily. Signed-off-by: Ashijeet Acharya --- block/ssh.c | 27 +-- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/block/ssh.c b/block/ssh.c index 5ce12b6..75cb7bc 100644 --- a/block/ssh.c +++ b/block/ssh.c @@ -254,15 +254,30 @@ static int parse_uri(const c

Re: [Qemu-devel] [PATCH 0/4] Allow blockdev-add for SSH

2016-10-12 Thread Ashijeet Acharya
On Tue, Oct 11, 2016 at 1:07 PM, Ashijeet Acharya wrote: > This series adds blockdev-add support for SSH block driver. > > Patch 1 prepares the code for the addition of a new option prefix, > which is "server.". This is accomplished by adding a > ssh_has_filename_options_

Re: [Qemu-devel] [PATCH 0/4] Allow blockdev-add for SSH

2016-10-12 Thread Ashijeet Acharya
On Wed, Oct 12, 2016 at 1:52 PM, Kevin Wolf wrote: > Am 12.10.2016 um 10:09 hat Ashijeet Acharya geschrieben: > Of course, we must be able to build qemu correctly both with ssh enabled > and disabled, so if you can indeed see a (different) build error with > disabled libssh2, that

Re: [Qemu-devel] [PATCH 0/4] Allow blockdev-add for SSH

2016-10-12 Thread Ashijeet Acharya
> I received a mail saying my series failed the automatic build test but > it builds completely fine (after applying Dan's patch obviously) in my > local environment. > > Going through the config output of the test script, I see that the > supporting library for SSH which is "libssh2" seems to be d

Re: [Qemu-devel] [PATCH 0/4] Allow blockdev-add for SSH

2016-10-12 Thread Ashijeet Acharya
On Wed, Oct 12, 2016 at 9:31 PM, Kevin Wolf wrote: > Am 11.10.2016 um 09:37 hat Ashijeet Acharya geschrieben: >> This series adds blockdev-add support for SSH block driver. >> >> Patch 1 prepares the code for the addition of a new option prefix, >> which is "s

Re: [Qemu-devel] [PATCH 2/4] block/ssh: Add InetSocketAddress and accept it

2016-10-12 Thread Ashijeet Acharya
On Wed, Oct 12, 2016 at 9:21 PM, Kevin Wolf wrote: > Am 11.10.2016 um 09:37 hat Ashijeet Acharya geschrieben: >> Add InetSocketAddress compatibility to SSH driver. >> >> Add a new option "server" to the SSH block driver which then accepts >> a InetSocke

Re: [Qemu-devel] [PATCH 0/4] Allow blockdev-add for SSH

2016-10-12 Thread Ashijeet Acharya
On Wed, Oct 12, 2016 at 10:10 PM, Kevin Wolf wrote: > Am 12.10.2016 um 18:20 hat Ashijeet Acharya geschrieben: >> On Wed, Oct 12, 2016 at 9:31 PM, Kevin Wolf wrote: >> > Am 11.10.2016 um 09:37 hat Ashijeet Acharya geschrieben: >> >> This series adds blockdev-ad

Re: [Qemu-devel] [PATCH 2/4] block/ssh: Add InetSocketAddress and accept it

2016-10-13 Thread Ashijeet Acharya
On Tue, Oct 11, 2016 at 1:07 PM, Ashijeet Acharya wrote: > Add InetSocketAddress compatibility to SSH driver. > > Add a new option "server" to the SSH block driver which then accepts > a InetSocketAddress. > > "host" and "port" are suppo

Re: [Qemu-devel] [PATCH v4 06/12] block/nbd: Accept SocketAddress

2016-10-14 Thread Ashijeet Acharya
On Thu, Oct 13, 2016 at 5:12 PM, Kevin Wolf wrote: > Am 28.09.2016 um 22:55 hat Max Reitz geschrieben: >> Add a new option "address" to the NBD block driver which accepts a >> SocketAddress. >> >> "path", "host" and "port" are still supported as legacy options and are >> mapped to their correspond

[Qemu-devel] [v2 0/5] Allow blockdev-add for SSH

2016-10-15 Thread Ashijeet Acharya
bject_input_visitor_new_autocast() instead of qmp_input_visitor_new() and change header files accordingly (Kevin) - Use inet_connect_saddr() instead of inet_connect() (Kevin) - Drop the contruction of : string (Kevin) - Fix the bug in ssh_process_legacy_socket_options() Ashijeet Acharya (5): b

[Qemu-devel] [v2 5/5] qapi: allow blockdev-add for ssh

2016-10-15 Thread Ashijeet Acharya
Introduce new object 'BlockdevOptionsSsh' in qapi/block-core.json to support blockdev-add for SSH network protocol driver. Use only 'struct InetSocketAddress' since SSH only supports connection over TCP. Signed-off-by: Ashijeet Acharya --- qapi/block-core.json | 24 +++

[Qemu-devel] [v2 2/5] block/ssh: Add InetSocketAddress and accept it

2016-10-15 Thread Ashijeet Acharya
Add InetSocketAddress compatibility to SSH driver. Add a new option "server" to the SSH block driver which then accepts a InetSocketAddress. "host" and "port" are supported as legacy options and are mapped to their InetSocketAddress representation. Signed-off-by

[Qemu-devel] [v2 1/5] block/ssh: Add ssh_has_filename_options_conflict()

2016-10-15 Thread Ashijeet Acharya
r" easily. Signed-off-by: Ashijeet Acharya --- block/ssh.c | 27 +-- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/block/ssh.c b/block/ssh.c index 5ce12b6..75cb7bc 100644 --- a/block/ssh.c +++ b/block/ssh.c @@ -254,15 +254,30 @@ static int parse_uri(const c

[Qemu-devel] [v2 3/5] block/ssh: Use inet_connect_saddr() to establish socket connection

2016-10-15 Thread Ashijeet Acharya
Make inet_connect_saddr() in util/qemu-socktets.c public and use it instead of inet_connect() because this directly takes the InetSocketAddress to establish a socket connection for the SSH block driver. Signed-off-by: Ashijeet Acharya --- block/ssh.c| 5 + include/qemu/sockets.h

[Qemu-devel] [v2 4/5] block/ssh: Use InetSocketAddress options

2016-10-15 Thread Ashijeet Acharya
Drop the use of legacy options in favour of the InetSocketAddress options. Signed-off-by: Ashijeet Acharya --- block/ssh.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/block/ssh.c b/block/ssh.c index 6420359..7fec0e1 100644 --- a/block/ssh.c +++ b/block/ssh.c

  1   2   3   4   >