qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PULL 0/3] migration queue
@ 2013-07-12 21:28 Juan Quintela
  0 siblings, 0 replies; 9+ messages in thread
From: Juan Quintela @ 2013-07-12 21:28 UTC (permalink / raw)
  To: qemu-devel; +Cc: anthony

Hi Anthony

please,  pull.

This has Vinod changes for auto-converge.

I merged by hand the problems, and tested that it works and compiles
for everything.

Thanks,  Juan.

PD: there were a prototype missing and the event name on trace-events,
fixed both.

The following changes since commit 25ca6a1f5a3ee0a1ae670590877ed14f05e28fba:

  Merge remote-tracking branch 'agraf/ppc-for-upstream' into staging (2013-07-12 07:58:31 -0500)

are available in the git repository at:


  git://github.com/juanquintela/qemu.git migration.next

for you to fetch changes up to 7ca1dfad952d8a8655b32e78623edcc38a51b14a:

  Force auto-convegence of live migration (2013-07-12 20:35:08 +0200)

----------------------------------------------------------------
Chegu Vinod (3):
      Introduce async_run_on_cpu()
      Add 'auto-converge' migration capability
      Force auto-convegence of live migration

 arch_init.c                   | 81 +++++++++++++++++++++++++++++++++++++++++++
 cpus.c                        | 29 ++++++++++++++++
 include/migration/migration.h |  2 ++
 include/qemu-common.h         |  1 +
 include/qom/cpu.h             | 10 ++++++
 migration.c                   |  9 +++++
 qapi-schema.json              |  2 +-
 trace-events                  |  1 +
 8 files changed, 134 insertions(+), 1 deletion(-)

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Qemu-devel] [PULL 0/3] migration queue
@ 2013-07-23 17:16 Juan Quintela
  0 siblings, 0 replies; 9+ messages in thread
From: Juan Quintela @ 2013-07-23 17:16 UTC (permalink / raw)
  To: qemu-devel; +Cc: anthony

Hi Anthony

please,  pull.

This has Vinod changes for auto-converge.

I merged by hand the problems, and tested that it works and compiles
for everything.

Thanks,  Juan.

PD: there were a prototype missing and the event name on trace-events,
fixed both.

The following changes since commit 25ca6a1f5a3ee0a1ae670590877ed14f05e28fba:

  Merge remote-tracking branch 'agraf/ppc-for-upstream' into staging (2013-07-12 07:58:31 -0500)

are available in the git repository at:


  git://github.com/juanquintela/qemu.git migration.next

for you to fetch changes up to 7ca1dfad952d8a8655b32e78623edcc38a51b14a:

  Force auto-convegence of live migration (2013-07-12 20:35:08 +0200)

----------------------------------------------------------------
Chegu Vinod (3):
      Introduce async_run_on_cpu()
      Add 'auto-converge' migration capability
      Force auto-convegence of live migration

 arch_init.c                   | 81 +++++++++++++++++++++++++++++++++++++++++++
 cpus.c                        | 29 ++++++++++++++++
 include/migration/migration.h |  2 ++
 include/qemu-common.h         |  1 +
 include/qom/cpu.h             | 10 ++++++
 migration.c                   |  9 +++++
 qapi-schema.json              |  2 +-
 trace-events                  |  1 +
 8 files changed, 134 insertions(+), 1 deletion(-)

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Qemu-devel] [PULL 0/3] migration queue
@ 2017-08-02 13:58 Dr. David Alan Gilbert (git)
  2017-08-02 13:58 ` [Qemu-devel] [PULL 1/3] migration: fix small leaks Dr. David Alan Gilbert (git)
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Dr. David Alan Gilbert (git) @ 2017-08-02 13:58 UTC (permalink / raw)
  To: qemu-devel; +Cc: quintela, peterx, marcandre.lureau

From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>

The following changes since commit d3d183a638d6a3ead515618a6547b3f80d39fcb9:

  Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging (2017-08-02 09:49:02 +0100)

are available in the git repository at:

  git://github.com/dagrh/qemu.git tags/pull-migration-20170802a

for you to fetch changes up to 8bd9c4e6c565c566a6cba3470cb2d4ea63994143:

  io: fix qio_channel_socket_accept err handling (2017-08-02 11:27:44 +0100)

----------------------------------------------------------------
Migration pull 2017-08-02

Just minor fixes for 2.10

----------------------------------------------------------------
Marc-André Lureau (1):
      migration: fix small leaks

Peter Xu (2):
      migration: fix comment disorder in RAMState
      io: fix qio_channel_socket_accept err handling

 io/channel-socket.c   |  3 ++-
 migration/migration.c | 10 ++++++++++
 migration/ram.c       |  4 ++--
 3 files changed, 14 insertions(+), 3 deletions(-)

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Qemu-devel] [PULL 1/3] migration: fix small leaks
  2017-08-02 13:58 [Qemu-devel] [PULL 0/3] migration queue Dr. David Alan Gilbert (git)
@ 2017-08-02 13:58 ` Dr. David Alan Gilbert (git)
  2017-08-02 13:58 ` [Qemu-devel] [PULL 2/3] migration: fix comment disorder in RAMState Dr. David Alan Gilbert (git)
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 9+ messages in thread
From: Dr. David Alan Gilbert (git) @ 2017-08-02 13:58 UTC (permalink / raw)
  To: qemu-devel; +Cc: quintela, peterx, marcandre.lureau

From: Marc-André Lureau <marcandre.lureau@redhat.com>

Spotted thanks to valgrind and tests/device-introspect-test:

==11711== 1 bytes in 1 blocks are definitely lost in loss record 6 of 14,537
==11711==    at 0x4C2EB6B: malloc (vg_replace_malloc.c:299)
==11711==    by 0x1E0CDBD8: g_malloc (gmem.c:94)
==11711==    by 0x1E0E696E: g_strdup (gstrfuncs.c:363)
==11711==    by 0x695693: migration_instance_init (migration.c:2226)
==11711==    by 0x717C4B: object_init_with_type (object.c:344)
==11711==    by 0x717E80: object_initialize_with_type (object.c:375)
==11711==    by 0x7182EB: object_new_with_type (object.c:483)
==11711==    by 0x718328: object_new (object.c:493)
==11711==    by 0x4B8A29: qmp_device_list_properties (qmp.c:542)
==11711==    by 0x4A9561: qmp_marshal_device_list_properties (qmp-marshal.c:1425)
==11711==    by 0x819D4A: do_qmp_dispatch (qmp-dispatch.c:104)
==11711==    by 0x819E82: qmp_dispatch (qmp-dispatch.c:131)

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20170801160419.14180-1-marcandre.lureau@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
---
 migration/migration.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/migration/migration.c b/migration/migration.c
index 085c32c994..c3fe0ed9ca 100644
--- a/migration/migration.c
+++ b/migration/migration.c
@@ -2214,6 +2214,15 @@ static void migration_class_init(ObjectClass *klass, void *data)
     dc->props = migration_properties;
 }
 
+static void migration_instance_finalize(Object *obj)
+{
+    MigrationState *ms = MIGRATION_OBJ(obj);
+    MigrationParameters *params = &ms->parameters;
+
+    g_free(params->tls_hostname);
+    g_free(params->tls_creds);
+}
+
 static void migration_instance_init(Object *obj)
 {
     MigrationState *ms = MIGRATION_OBJ(obj);
@@ -2282,6 +2291,7 @@ static const TypeInfo migration_type = {
     .class_size = sizeof(MigrationClass),
     .instance_size = sizeof(MigrationState),
     .instance_init = migration_instance_init,
+    .instance_finalize = migration_instance_finalize,
 };
 
 static void register_migration_types(void)
-- 
2.13.3

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [Qemu-devel] [PULL 2/3] migration: fix comment disorder in RAMState
  2017-08-02 13:58 [Qemu-devel] [PULL 0/3] migration queue Dr. David Alan Gilbert (git)
  2017-08-02 13:58 ` [Qemu-devel] [PULL 1/3] migration: fix small leaks Dr. David Alan Gilbert (git)
@ 2017-08-02 13:58 ` Dr. David Alan Gilbert (git)
  2017-08-02 13:58 ` [Qemu-devel] [PULL 3/3] io: fix qio_channel_socket_accept err handling Dr. David Alan Gilbert (git)
  2017-08-02 14:50 ` [Qemu-devel] [PULL 0/3] migration queue Peter Maydell
  3 siblings, 0 replies; 9+ messages in thread
From: Dr. David Alan Gilbert (git) @ 2017-08-02 13:58 UTC (permalink / raw)
  To: qemu-devel; +Cc: quintela, peterx, marcandre.lureau

From: Peter Xu <peterx@redhat.com>

Comments for "migration_dirty_pages" and "bitmap_mutex" are switched.
Fix it.

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <1501666880-10159-2-git-send-email-peterx@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
---
 migration/ram.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/migration/ram.c b/migration/ram.c
index 1b08296d1b..e18b3e2d4f 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -188,9 +188,9 @@ struct RAMState {
     uint64_t iterations_prev;
     /* Iterations since start */
     uint64_t iterations;
-    /* protects modification of the bitmap */
-    uint64_t migration_dirty_pages;
     /* number of dirty bits in the bitmap */
+    uint64_t migration_dirty_pages;
+    /* protects modification of the bitmap */
     QemuMutex bitmap_mutex;
     /* The RAMBlock used in the last src_page_requests */
     RAMBlock *last_req_rb;
-- 
2.13.3

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [Qemu-devel] [PULL 3/3] io: fix qio_channel_socket_accept err handling
  2017-08-02 13:58 [Qemu-devel] [PULL 0/3] migration queue Dr. David Alan Gilbert (git)
  2017-08-02 13:58 ` [Qemu-devel] [PULL 1/3] migration: fix small leaks Dr. David Alan Gilbert (git)
  2017-08-02 13:58 ` [Qemu-devel] [PULL 2/3] migration: fix comment disorder in RAMState Dr. David Alan Gilbert (git)
@ 2017-08-02 13:58 ` Dr. David Alan Gilbert (git)
  2017-08-02 14:50 ` [Qemu-devel] [PULL 0/3] migration queue Peter Maydell
  3 siblings, 0 replies; 9+ messages in thread
From: Dr. David Alan Gilbert (git) @ 2017-08-02 13:58 UTC (permalink / raw)
  To: qemu-devel; +Cc: quintela, peterx, marcandre.lureau

From: Peter Xu <peterx@redhat.com>

When accept failed, we should setup errp with the reason. More
importantly, the caller may assume errp be non-NULL when error happens,
and not setting the errp may crash QEMU.

At the same time, move the trace_qio_channel_socket_accept_fail() after
the if check on EINTR. Two reasons:

1. when EINTR happened, it's not really a fault (we should just try
   again), so we should not log with an "accept failure".

2. trace_*() functions may overwrite errno, then the old errno will be
   missing. We need to either check errno before trace_*() calls, or
   reserve the errno.

Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <1501666880-10159-3-git-send-email-peterx@redhat.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
---
 io/channel-socket.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/io/channel-socket.c b/io/channel-socket.c
index 53386b7ba3..591d27e8c3 100644
--- a/io/channel-socket.c
+++ b/io/channel-socket.c
@@ -340,10 +340,11 @@ qio_channel_socket_accept(QIOChannelSocket *ioc,
     cioc->fd = qemu_accept(ioc->fd, (struct sockaddr *)&cioc->remoteAddr,
                            &cioc->remoteAddrLen);
     if (cioc->fd < 0) {
-        trace_qio_channel_socket_accept_fail(ioc);
         if (errno == EINTR) {
             goto retry;
         }
+        error_setg_errno(errp, errno, "Unable to accept connection");
+        trace_qio_channel_socket_accept_fail(ioc);
         goto error;
     }
 
-- 
2.13.3

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [Qemu-devel] [PULL 0/3] migration queue
  2017-08-02 13:58 [Qemu-devel] [PULL 0/3] migration queue Dr. David Alan Gilbert (git)
                   ` (2 preceding siblings ...)
  2017-08-02 13:58 ` [Qemu-devel] [PULL 3/3] io: fix qio_channel_socket_accept err handling Dr. David Alan Gilbert (git)
@ 2017-08-02 14:50 ` Peter Maydell
  3 siblings, 0 replies; 9+ messages in thread
From: Peter Maydell @ 2017-08-02 14:50 UTC (permalink / raw)
  To: Dr. David Alan Gilbert (git)
  Cc: QEMU Developers, Marc-André Lureau, Peter Xu, Juan Quintela

On 2 August 2017 at 14:58, Dr. David Alan Gilbert (git)
<dgilbert@redhat.com> wrote:
> From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
>
> The following changes since commit d3d183a638d6a3ead515618a6547b3f80d39fcb9:
>
>   Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging (2017-08-02 09:49:02 +0100)
>
> are available in the git repository at:
>
>   git://github.com/dagrh/qemu.git tags/pull-migration-20170802a
>
> for you to fetch changes up to 8bd9c4e6c565c566a6cba3470cb2d4ea63994143:
>
>   io: fix qio_channel_socket_accept err handling (2017-08-02 11:27:44 +0100)
>
> ----------------------------------------------------------------
> Migration pull 2017-08-02
>
> Just minor fixes for 2.10

Applied, thanks.

-- PMM

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Qemu-devel] [PULL 0/3] migration queue
@ 2018-10-31 16:57 Dr. David Alan Gilbert (git)
  2018-11-02 10:52 ` Peter Maydell
  0 siblings, 1 reply; 9+ messages in thread
From: Dr. David Alan Gilbert (git) @ 2018-10-31 16:57 UTC (permalink / raw)
  To: qemu-devel, quintela

From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>

The following changes since commit a2e002ff7913ce93aa0f7dbedd2123dce5f1a9cd:

  Merge remote-tracking branch 'remotes/vivier2/tags/qemu-trivial-for-3.1-pull-request' into staging (2018-10-30 15:49:55 +0000)

are available in the Git repository at:

  git://github.com/dagrh/qemu.git tags/pull-migration-20181031a

for you to fetch changes up to 3d63da16fbcd05405efd5946000cdb45474a9bad:

  migration: avoid segmentfault when take a snapshot of a VM which being migrated (2018-10-31 09:38:59 +0000)

----------------------------------------------------------------
Minor migration fixes 2018-10-31

----------------------------------------------------------------
Jia Lina (1):
      migration: avoid segmentfault when take a snapshot of a VM which being migrated

Zhang Chen (1):
      qapi: Fix COLOStatus and query-colo-status since version

wangguang (1):
      COLO: Fix Colo doc secondeary should be secondary

 docs/COLO-FT.txt      |  2 +-
 migration/migration.c |  2 +-
 migration/migration.h |  2 ++
 migration/savevm.c    | 19 +++++++++++--------
 qapi/migration.json   |  4 ++--
 5 files changed, 17 insertions(+), 12 deletions(-)

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Qemu-devel] [PULL 0/3] migration queue
  2018-10-31 16:57 Dr. David Alan Gilbert (git)
@ 2018-11-02 10:52 ` Peter Maydell
  0 siblings, 0 replies; 9+ messages in thread
From: Peter Maydell @ 2018-11-02 10:52 UTC (permalink / raw)
  To: Dr. David Alan Gilbert (git); +Cc: QEMU Developers, Juan Quintela

On 31 October 2018 at 16:57, Dr. David Alan Gilbert (git)
<dgilbert@redhat.com> wrote:
> From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
>
> The following changes since commit a2e002ff7913ce93aa0f7dbedd2123dce5f1a9cd:
>
>   Merge remote-tracking branch 'remotes/vivier2/tags/qemu-trivial-for-3.1-pull-request' into staging (2018-10-30 15:49:55 +0000)
>
> are available in the Git repository at:
>
>   git://github.com/dagrh/qemu.git tags/pull-migration-20181031a
>
> for you to fetch changes up to 3d63da16fbcd05405efd5946000cdb45474a9bad:
>
>   migration: avoid segmentfault when take a snapshot of a VM which being migrated (2018-10-31 09:38:59 +0000)
>
> ----------------------------------------------------------------
> Minor migration fixes 2018-10-31
>
> ----------------------------------------------------------------

Applied, thanks.

-- PMM

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-11-02 10:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-02 13:58 [Qemu-devel] [PULL 0/3] migration queue Dr. David Alan Gilbert (git)
2017-08-02 13:58 ` [Qemu-devel] [PULL 1/3] migration: fix small leaks Dr. David Alan Gilbert (git)
2017-08-02 13:58 ` [Qemu-devel] [PULL 2/3] migration: fix comment disorder in RAMState Dr. David Alan Gilbert (git)
2017-08-02 13:58 ` [Qemu-devel] [PULL 3/3] io: fix qio_channel_socket_accept err handling Dr. David Alan Gilbert (git)
2017-08-02 14:50 ` [Qemu-devel] [PULL 0/3] migration queue Peter Maydell
  -- strict thread matches above, loose matches on Subject: below --
2018-10-31 16:57 Dr. David Alan Gilbert (git)
2018-11-02 10:52 ` Peter Maydell
2013-07-23 17:16 Juan Quintela
2013-07-12 21:28 Juan Quintela

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).