All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/4] migration: fix iotest 055, only-migratable break
@ 2017-07-05  8:21 Peter Xu
  2017-07-05  8:21 ` [Qemu-devel] [PATCH v2 1/4] migration: fix handling for --only-migratable Peter Xu
                   ` (4 more replies)
  0 siblings, 5 replies; 17+ messages in thread
From: Peter Xu @ 2017-07-05  8:21 UTC (permalink / raw)
  To: qemu-devel
  Cc: Eduardo Habkost, Juan Quintela, peterx, haoqf, Laurent Vivier,
	Markus Armbruster, Dr . David Alan Gilbert

v2:
- patch 1: add r-b for Eduardo/Juan
- patch 2: add r-b for Eduardo (Markus's suggestion is a todo), and
  t-b for Qingfeng
- patch 3: rewrite the doc up, merging both Eduardo/Markus's
  suggestion [Eduardo, Markus]
- patch 4: added a TODO [Markus]

Two breakage introduced during the migration objectify series: one for
--only-migratable, another one for iotest 055.

First two patches fixes the breakages. Latter two are documentation
updates suggested by Eduardo. Please review. Thanks.

Peter Xu (4):
  migration: fix handling for --only-migratable
  vl: move global property, migrate init earlier
  doc: add item for "-M enforce-config-section"
  doc: update TYPE_MIGRATION documents

 include/migration/misc.h |  1 -
 migration/migration.c    | 17 ++++++-----------
 qemu-options.hx          | 11 +++++++++++
 vl.c                     | 26 +++++++++++++-------------
 4 files changed, 30 insertions(+), 25 deletions(-)

-- 
2.7.4

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

* [Qemu-devel] [PATCH v2 1/4] migration: fix handling for --only-migratable
  2017-07-05  8:21 [Qemu-devel] [PATCH v2 0/4] migration: fix iotest 055, only-migratable break Peter Xu
@ 2017-07-05  8:21 ` Peter Xu
  2017-07-05  8:21 ` [Qemu-devel] [PATCH v2 2/4] vl: move global property, migrate init earlier Peter Xu
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 17+ messages in thread
From: Peter Xu @ 2017-07-05  8:21 UTC (permalink / raw)
  To: qemu-devel
  Cc: Eduardo Habkost, Juan Quintela, peterx, haoqf, Laurent Vivier,
	Markus Armbruster, Dr . David Alan Gilbert

MigrateState object is not ready at that time, so we'll get an
assertion. Use qemu_global_option() instead.

Reported-by: Eduardo Habkost <ehabkost@redhat.com>
Suggested-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Fixes: 3df663e ("migration: move only_migratable to MigrationState")
Signed-off-by: Peter Xu <peterx@redhat.com>
---
 include/migration/misc.h | 1 -
 migration/migration.c    | 5 -----
 vl.c                     | 2 +-
 3 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/include/migration/misc.h b/include/migration/misc.h
index 2255121..c079b77 100644
--- a/include/migration/misc.h
+++ b/include/migration/misc.h
@@ -53,7 +53,6 @@ bool migration_has_finished(MigrationState *);
 bool migration_has_failed(MigrationState *);
 /* ...and after the device transmission */
 bool migration_in_postcopy_after_devices(MigrationState *);
-void migration_only_migratable_set(void);
 void migration_global_dump(Monitor *mon);
 
 #endif
diff --git a/migration/migration.c b/migration/migration.c
index 51ccd1a..dbdc121 100644
--- a/migration/migration.c
+++ b/migration/migration.c
@@ -128,11 +128,6 @@ MigrationState *migrate_get_current(void)
     return current_migration;
 }
 
-void migration_only_migratable_set(void)
-{
-    migrate_get_current()->only_migratable = true;
-}
-
 MigrationIncomingState *migration_incoming_get_current(void)
 {
     static bool once;
diff --git a/vl.c b/vl.c
index 36ff3f4..0c497a3 100644
--- a/vl.c
+++ b/vl.c
@@ -3958,7 +3958,7 @@ int main(int argc, char **argv, char **envp)
                  *
                  * "-global migration.only-migratable=true"
                  */
-                migration_only_migratable_set();
+                qemu_global_option("migration.only-migratable=true");
                 break;
             case QEMU_OPTION_nodefaults:
                 has_defaults = 0;
-- 
2.7.4

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

* [Qemu-devel] [PATCH v2 2/4] vl: move global property, migrate init earlier
  2017-07-05  8:21 [Qemu-devel] [PATCH v2 0/4] migration: fix iotest 055, only-migratable break Peter Xu
  2017-07-05  8:21 ` [Qemu-devel] [PATCH v2 1/4] migration: fix handling for --only-migratable Peter Xu
@ 2017-07-05  8:21 ` Peter Xu
  2017-07-05  8:21 ` [Qemu-devel] [PATCH v2 3/4] doc: add item for "-M enforce-config-section" Peter Xu
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 17+ messages in thread
From: Peter Xu @ 2017-07-05  8:21 UTC (permalink / raw)
  To: qemu-devel
  Cc: Eduardo Habkost, Juan Quintela, peterx, haoqf, Laurent Vivier,
	Markus Armbruster, Dr . David Alan Gilbert

Currently drive_init_func() may call migrate_get_current() while the
migrate object is still not ready yet at that time. Move the migration
object init earlier, along with the global properties, right after
acceleration init.

This fixes a breakage for iotest 055, which caused an assertion failure.

Reported-by: Max Reitz <mreitz@redhat.com>
Reported-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Tested-by: QingFeng Hao <haoqf@linux.vnet.ibm.com>
Fixes: 3df663 ("migration: move only_migratable to MigrationState")
Signed-off-by: Peter Xu <peterx@redhat.com>
---
 vl.c | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/vl.c b/vl.c
index 0c497a3..2ae4313 100644
--- a/vl.c
+++ b/vl.c
@@ -4414,6 +4414,18 @@ int main(int argc, char **argv, char **envp)
 
     configure_accelerator(current_machine);
 
+    /*
+     * Register all the global properties, including accel properties,
+     * machine properties, and user-specified ones.
+     */
+    register_global_properties(current_machine);
+
+    /*
+     * Migration object can only be created after global properties
+     * are applied correctly.
+     */
+    migration_object_init();
+
     if (qtest_chrdev) {
         qtest_init(qtest_chrdev, qtest_log, &error_fatal);
     }
@@ -4595,18 +4607,6 @@ int main(int argc, char **argv, char **envp)
             exit (i == 1 ? 1 : 0);
     }
 
-    /*
-     * Register all the global properties, including accel properties,
-     * machine properties, and user-specified ones.
-     */
-    register_global_properties(current_machine);
-
-    /*
-     * Migration object can only be created after global properties
-     * are applied correctly.
-     */
-    migration_object_init();
-
     /* This checkpoint is required by replay to separate prior clock
        reading from the other reads, because timer polling functions query
        clock values from the log. */
-- 
2.7.4

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

* [Qemu-devel] [PATCH v2 3/4] doc: add item for "-M enforce-config-section"
  2017-07-05  8:21 [Qemu-devel] [PATCH v2 0/4] migration: fix iotest 055, only-migratable break Peter Xu
  2017-07-05  8:21 ` [Qemu-devel] [PATCH v2 1/4] migration: fix handling for --only-migratable Peter Xu
  2017-07-05  8:21 ` [Qemu-devel] [PATCH v2 2/4] vl: move global property, migrate init earlier Peter Xu
@ 2017-07-05  8:21 ` Peter Xu
  2017-07-06  2:08   ` [Qemu-devel] [PATCH v2.1 " Peter Xu
  2017-07-05  8:21 ` [Qemu-devel] [PATCH v2 4/4] doc: update TYPE_MIGRATION documents Peter Xu
  2017-07-10 12:55 ` [Qemu-devel] [PATCH v2 0/4] migration: fix iotest 055, only-migratable break Dr. David Alan Gilbert
  4 siblings, 1 reply; 17+ messages in thread
From: Peter Xu @ 2017-07-05  8:21 UTC (permalink / raw)
  To: qemu-devel
  Cc: Eduardo Habkost, Juan Quintela, peterx, haoqf, Laurent Vivier,
	Markus Armbruster, Dr . David Alan Gilbert

It's never documented, and now we have one more parameter for it (which
obsoletes this one). Document it properly.

Although now when enforce-config-section is set, it'll override the
other "-global" parameter, that is not necessarily a rule. Forbid that
usage in the document.

Suggested-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
---
 qemu-options.hx | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/qemu-options.hx b/qemu-options.hx
index 297bd8a..2c1116e 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -85,6 +85,17 @@ Enables or disables NVDIMM support. The default is off.
 @item s390-squash-mcss=on|off
 Enables or disables squashing subchannels into the default css.
 The default is off.
+@item enforce-config-section=on|off
+If @option{enforce-config-section} is set to @var{on}, force migration
+code to send configuration section even if the machine-type sets the
+@option{migration.send-configuration} property to @var{off}.
+@option{enforce-config-section} cannot be used together with
+@option{-global} @option{migration.send-configuration}. Behavior is
+undefined if @option{enforce-config-section} and @option{-global}
+@option{migration.send-configuration} are used together.
+
+NOTE: this parameter is deprecated. Please use @option{-global}
+@option{migration.send-configuration}=@var{on|off} instead.
 @end table
 ETEXI
 
-- 
2.7.4

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

* [Qemu-devel] [PATCH v2 4/4] doc: update TYPE_MIGRATION documents
  2017-07-05  8:21 [Qemu-devel] [PATCH v2 0/4] migration: fix iotest 055, only-migratable break Peter Xu
                   ` (2 preceding siblings ...)
  2017-07-05  8:21 ` [Qemu-devel] [PATCH v2 3/4] doc: add item for "-M enforce-config-section" Peter Xu
@ 2017-07-05  8:21 ` Peter Xu
  2017-07-07 13:30   ` Eduardo Habkost
  2017-07-10 12:55 ` [Qemu-devel] [PATCH v2 0/4] migration: fix iotest 055, only-migratable break Dr. David Alan Gilbert
  4 siblings, 1 reply; 17+ messages in thread
From: Peter Xu @ 2017-07-05  8:21 UTC (permalink / raw)
  To: qemu-devel
  Cc: Eduardo Habkost, Juan Quintela, peterx, haoqf, Laurent Vivier,
	Markus Armbruster, Dr . David Alan Gilbert

[Peter collected Eduardo's patch comment and formatted into patch]

Suggested-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
---
 migration/migration.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/migration/migration.c b/migration/migration.c
index dbdc121..31d46d1 100644
--- a/migration/migration.c
+++ b/migration/migration.c
@@ -2052,12 +2052,12 @@ static void migration_instance_init(Object *obj)
 static const TypeInfo migration_type = {
     .name = TYPE_MIGRATION,
     /*
-     * NOTE: "migration" itself is not really a device. We used
-     * TYPE_DEVICE here only to leverage some existing QDev features
-     * like "-global" properties, and HW_COMPAT_* fields (which are
-     * finally applied as global properties as well). If one day the
-     * global property feature can be migrated from QDev to QObject in
-     * general, then we can switch to QObject as well.
+     * NOTE: TYPE_MIGRATION is not really a device, as the object is
+     * not created using qdev_create(), it is not attached to the qdev
+     * device tree, and it is never realized.
+     *
+     * TODO: Make this TYPE_OBJECT once QOM provides something like
+     * TYPE_DEVICE's "-global" properties.
      */
     .parent = TYPE_DEVICE,
     .class_init = migration_class_init,
-- 
2.7.4

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

* [Qemu-devel] [PATCH v2.1 3/4] doc: add item for "-M enforce-config-section"
  2017-07-05  8:21 ` [Qemu-devel] [PATCH v2 3/4] doc: add item for "-M enforce-config-section" Peter Xu
@ 2017-07-06  2:08   ` Peter Xu
  2017-07-06  8:09     ` Greg Kurz
  2017-07-06 18:30     ` Eduardo Habkost
  0 siblings, 2 replies; 17+ messages in thread
From: Peter Xu @ 2017-07-06  2:08 UTC (permalink / raw)
  To: qemu-devel; +Cc: armbru, lvivier, ehabkost, quintela, groug, dgilbert, peterx

It's never documented, and now we have one more parameter for it (which
obsoletes this one). Document it properly.

Although now when enforce-config-section is set, it'll override the
other "-global" parameter, that is not necessarily a rule. Forbid that
usage in the document.

Suggested-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
---
v2.1:
- remove the "undefined behavior" sentence [Markus]

 qemu-options.hx | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/qemu-options.hx b/qemu-options.hx
index 297bd8a..1ce7a37 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -85,6 +85,14 @@ Enables or disables NVDIMM support. The default is off.
 @item s390-squash-mcss=on|off
 Enables or disables squashing subchannels into the default css.
 The default is off.
+@item enforce-config-section=on|off
+If @option{enforce-config-section} is set to @var{on}, force migration
+code to send configuration section even if the machine-type sets the
+@option{migration.send-configuration} property to @var{off}.
+NOTE: this parameter is deprecated. Please use @option{-global}
+@option{migration.send-configuration}=@var{on|off} instead.
+@option{enforce-config-section} cannot be used together with
+@option{-global} @option{migration.send-configuration}.
 @end table
 ETEXI
 
-- 
2.7.4

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

* Re: [Qemu-devel] [PATCH v2.1 3/4] doc: add item for "-M enforce-config-section"
  2017-07-06  2:08   ` [Qemu-devel] [PATCH v2.1 " Peter Xu
@ 2017-07-06  8:09     ` Greg Kurz
  2017-07-06  8:38       ` Peter Xu
  2017-07-06 18:30     ` Eduardo Habkost
  1 sibling, 1 reply; 17+ messages in thread
From: Greg Kurz @ 2017-07-06  8:09 UTC (permalink / raw)
  To: Peter Xu; +Cc: qemu-devel, armbru, lvivier, ehabkost, quintela, dgilbert

[-- Attachment #1: Type: text/plain, Size: 1639 bytes --]

On Thu,  6 Jul 2017 10:08:41 +0800
Peter Xu <peterx@redhat.com> wrote:

> It's never documented, and now we have one more parameter for it (which
> obsoletes this one). Document it properly.
> 
> Although now when enforce-config-section is set, it'll override the
> other "-global" parameter, that is not necessarily a rule. Forbid that
> usage in the document.
> 
> Suggested-by: Eduardo Habkost <ehabkost@redhat.com>
> Signed-off-by: Peter Xu <peterx@redhat.com>
> ---
> v2.1:
> - remove the "undefined behavior" sentence [Markus]
> 
>  qemu-options.hx | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/qemu-options.hx b/qemu-options.hx
> index 297bd8a..1ce7a37 100644
> --- a/qemu-options.hx
> +++ b/qemu-options.hx
> @@ -85,6 +85,14 @@ Enables or disables NVDIMM support. The default is off.
>  @item s390-squash-mcss=on|off
>  Enables or disables squashing subchannels into the default css.
>  The default is off.
> +@item enforce-config-section=on|off
> +If @option{enforce-config-section} is set to @var{on}, force migration
> +code to send configuration section even if the machine-type sets the
> +@option{migration.send-configuration} property to @var{off}.
> +NOTE: this parameter is deprecated. Please use @option{-global}
> +@option{migration.send-configuration}=@var{on|off} instead.
> +@option{enforce-config-section} cannot be used together with
> +@option{-global} @option{migration.send-configuration}.

Is this last sentence correct ?

My understanding is that "enforce-config-section" overrides
"migration.send-configuration"...

>  @end table
>  ETEXI
>  


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

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

* Re: [Qemu-devel] [PATCH v2.1 3/4] doc: add item for "-M enforce-config-section"
  2017-07-06  8:09     ` Greg Kurz
@ 2017-07-06  8:38       ` Peter Xu
  0 siblings, 0 replies; 17+ messages in thread
From: Peter Xu @ 2017-07-06  8:38 UTC (permalink / raw)
  To: Greg Kurz; +Cc: qemu-devel, armbru, lvivier, ehabkost, quintela, dgilbert

On Thu, Jul 06, 2017 at 10:09:19AM +0200, Greg Kurz wrote:
> On Thu,  6 Jul 2017 10:08:41 +0800
> Peter Xu <peterx@redhat.com> wrote:
> 
> > It's never documented, and now we have one more parameter for it (which
> > obsoletes this one). Document it properly.
> > 
> > Although now when enforce-config-section is set, it'll override the
> > other "-global" parameter, that is not necessarily a rule. Forbid that
> > usage in the document.
> > 
> > Suggested-by: Eduardo Habkost <ehabkost@redhat.com>
> > Signed-off-by: Peter Xu <peterx@redhat.com>
> > ---
> > v2.1:
> > - remove the "undefined behavior" sentence [Markus]
> > 
> >  qemu-options.hx | 8 ++++++++
> >  1 file changed, 8 insertions(+)
> > 
> > diff --git a/qemu-options.hx b/qemu-options.hx
> > index 297bd8a..1ce7a37 100644
> > --- a/qemu-options.hx
> > +++ b/qemu-options.hx
> > @@ -85,6 +85,14 @@ Enables or disables NVDIMM support. The default is off.
> >  @item s390-squash-mcss=on|off
> >  Enables or disables squashing subchannels into the default css.
> >  The default is off.
> > +@item enforce-config-section=on|off
> > +If @option{enforce-config-section} is set to @var{on}, force migration
> > +code to send configuration section even if the machine-type sets the
> > +@option{migration.send-configuration} property to @var{off}.
> > +NOTE: this parameter is deprecated. Please use @option{-global}
> > +@option{migration.send-configuration}=@var{on|off} instead.
> > +@option{enforce-config-section} cannot be used together with
> > +@option{-global} @option{migration.send-configuration}.
> 
> Is this last sentence correct ?
> 
> My understanding is that "enforce-config-section" overrides
> "migration.send-configuration"...

Yes, in the codes it is.

But as mentioned in the commit message, this rule is actually not
really necessary, so it does not really conflict when we declare in
the document that it is not allowed to happen (the code just did
something extra). After all, we want to finally remove
enforce-config-section one day, so before that I would like to avoid
taking more responsibility on this old parameter.

Also, I hope people (especially who read this document) don't use
these two parameters at the same time, or better, use the new one,
rather than still using "enforce-config-section" after he knows that
"anyway, it'll override the global parameter, so this old one is still
better"...

Thanks,

-- 
Peter Xu

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

* Re: [Qemu-devel] [PATCH v2.1 3/4] doc: add item for "-M enforce-config-section"
  2017-07-06  2:08   ` [Qemu-devel] [PATCH v2.1 " Peter Xu
  2017-07-06  8:09     ` Greg Kurz
@ 2017-07-06 18:30     ` Eduardo Habkost
  2017-07-07  2:54       ` [Qemu-devel] [PATCH v2.2 " Peter Xu
  1 sibling, 1 reply; 17+ messages in thread
From: Eduardo Habkost @ 2017-07-06 18:30 UTC (permalink / raw)
  To: Peter Xu; +Cc: qemu-devel, armbru, lvivier, quintela, groug, dgilbert

On Thu, Jul 06, 2017 at 10:08:41AM +0800, Peter Xu wrote:
> It's never documented, and now we have one more parameter for it (which
> obsoletes this one). Document it properly.
> 
> Although now when enforce-config-section is set, it'll override the
> other "-global" parameter, that is not necessarily a rule. Forbid that
> usage in the document.
> 
> Suggested-by: Eduardo Habkost <ehabkost@redhat.com>
> Signed-off-by: Peter Xu <peterx@redhat.com>
> ---
> v2.1:
> - remove the "undefined behavior" sentence [Markus]
> 
>  qemu-options.hx | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/qemu-options.hx b/qemu-options.hx
> index 297bd8a..1ce7a37 100644
> --- a/qemu-options.hx
> +++ b/qemu-options.hx
> @@ -85,6 +85,14 @@ Enables or disables NVDIMM support. The default is off.
>  @item s390-squash-mcss=on|off
>  Enables or disables squashing subchannels into the default css.
>  The default is off.
> +@item enforce-config-section=on|off
> +If @option{enforce-config-section} is set to @var{on}, force migration
> +code to send configuration section even if the machine-type sets the
> +@option{migration.send-configuration} property to @var{off}.
> +NOTE: this parameter is deprecated. Please use @option{-global}
> +@option{migration.send-configuration}=@var{on|off} instead.
> +@option{enforce-config-section} cannot be used together with
> +@option{-global} @option{migration.send-configuration}.
>  @end table

I'm not sure if "cannot be used together" is much better than
"behavior is undefined when they are used together".  I prefer
Markus' suggestion to simply leave it unspecified.  (In other
words, just removing the last 2 lines)

-- 
Eduardo

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

* [Qemu-devel] [PATCH v2.2 3/4] doc: add item for "-M enforce-config-section"
  2017-07-06 18:30     ` Eduardo Habkost
@ 2017-07-07  2:54       ` Peter Xu
  2017-07-07  6:53         ` Greg Kurz
  2017-07-07 12:12         ` Eduardo Habkost
  0 siblings, 2 replies; 17+ messages in thread
From: Peter Xu @ 2017-07-07  2:54 UTC (permalink / raw)
  To: qemu-devel; +Cc: armbru, lvivier, ehabkost, quintela, groug, dgilbert, peterx

It's never documented, and now we have one more parameter for it (which
obsoletes this one). Document it properly.

Although now when enforce-config-section is set, it'll override the
other "-global" parameter, that is not necessarily a rule. Forbid that
usage in the document.

Suggested-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
---
v2.1 -> v2.2
- remove the last two lines of document [Eduardo]

 qemu-options.hx | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/qemu-options.hx b/qemu-options.hx
index 297bd8a..cd95516 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -85,6 +85,12 @@ Enables or disables NVDIMM support. The default is off.
 @item s390-squash-mcss=on|off
 Enables or disables squashing subchannels into the default css.
 The default is off.
+@item enforce-config-section=on|off
+If @option{enforce-config-section} is set to @var{on}, force migration
+code to send configuration section even if the machine-type sets the
+@option{migration.send-configuration} property to @var{off}.
+NOTE: this parameter is deprecated. Please use @option{-global}
+@option{migration.send-configuration}=@var{on|off} instead.
 @end table
 ETEXI
 
-- 
2.7.4

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

* Re: [Qemu-devel] [PATCH v2.2 3/4] doc: add item for "-M enforce-config-section"
  2017-07-07  2:54       ` [Qemu-devel] [PATCH v2.2 " Peter Xu
@ 2017-07-07  6:53         ` Greg Kurz
  2017-07-07 12:12         ` Eduardo Habkost
  1 sibling, 0 replies; 17+ messages in thread
From: Greg Kurz @ 2017-07-07  6:53 UTC (permalink / raw)
  To: Peter Xu; +Cc: qemu-devel, armbru, lvivier, ehabkost, quintela, dgilbert

[-- Attachment #1: Type: text/plain, Size: 1427 bytes --]

On Fri,  7 Jul 2017 10:54:08 +0800
Peter Xu <peterx@redhat.com> wrote:

> It's never documented, and now we have one more parameter for it (which
> obsoletes this one). Document it properly.
> 
> Although now when enforce-config-section is set, it'll override the
> other "-global" parameter, that is not necessarily a rule. Forbid that
> usage in the document.
> 
> Suggested-by: Eduardo Habkost <ehabkost@redhat.com>
> Signed-off-by: Peter Xu <peterx@redhat.com>

Reviewed-by: Greg Kurz <groug@kaod.org>

> ---
> v2.1 -> v2.2
> - remove the last two lines of document [Eduardo]
> 
>  qemu-options.hx | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/qemu-options.hx b/qemu-options.hx
> index 297bd8a..cd95516 100644
> --- a/qemu-options.hx
> +++ b/qemu-options.hx
> @@ -85,6 +85,12 @@ Enables or disables NVDIMM support. The default is off.
>  @item s390-squash-mcss=on|off
>  Enables or disables squashing subchannels into the default css.
>  The default is off.
> +@item enforce-config-section=on|off
> +If @option{enforce-config-section} is set to @var{on}, force migration
> +code to send configuration section even if the machine-type sets the
> +@option{migration.send-configuration} property to @var{off}.
> +NOTE: this parameter is deprecated. Please use @option{-global}
> +@option{migration.send-configuration}=@var{on|off} instead.
>  @end table
>  ETEXI
>  


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

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

* Re: [Qemu-devel] [PATCH v2.2 3/4] doc: add item for "-M enforce-config-section"
  2017-07-07  2:54       ` [Qemu-devel] [PATCH v2.2 " Peter Xu
  2017-07-07  6:53         ` Greg Kurz
@ 2017-07-07 12:12         ` Eduardo Habkost
  2017-07-07 12:16           ` Dr. David Alan Gilbert
  2017-07-10  9:02           ` Greg Kurz
  1 sibling, 2 replies; 17+ messages in thread
From: Eduardo Habkost @ 2017-07-07 12:12 UTC (permalink / raw)
  To: Peter Xu; +Cc: qemu-devel, armbru, lvivier, quintela, groug, dgilbert

On Fri, Jul 07, 2017 at 10:54:08AM +0800, Peter Xu wrote:
> It's never documented, and now we have one more parameter for it (which
> obsoletes this one). Document it properly.
> 
> Although now when enforce-config-section is set, it'll override the
> other "-global" parameter, that is not necessarily a rule. Forbid that
> usage in the document.

This paragraph looks obsolete now, as now the documentation
doesn't explicitly forbid mixing the two options.  If it gets
removed:

Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>

Juan, will you queue it through your tree?

Thanks!

> 
> Suggested-by: Eduardo Habkost <ehabkost@redhat.com>
> Signed-off-by: Peter Xu <peterx@redhat.com>
> ---
> v2.1 -> v2.2
> - remove the last two lines of document [Eduardo]
> 
>  qemu-options.hx | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/qemu-options.hx b/qemu-options.hx
> index 297bd8a..cd95516 100644
> --- a/qemu-options.hx
> +++ b/qemu-options.hx
> @@ -85,6 +85,12 @@ Enables or disables NVDIMM support. The default is off.
>  @item s390-squash-mcss=on|off
>  Enables or disables squashing subchannels into the default css.
>  The default is off.
> +@item enforce-config-section=on|off
> +If @option{enforce-config-section} is set to @var{on}, force migration
> +code to send configuration section even if the machine-type sets the
> +@option{migration.send-configuration} property to @var{off}.
> +NOTE: this parameter is deprecated. Please use @option{-global}
> +@option{migration.send-configuration}=@var{on|off} instead.

-- 
Eduardo

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

* Re: [Qemu-devel] [PATCH v2.2 3/4] doc: add item for "-M enforce-config-section"
  2017-07-07 12:12         ` Eduardo Habkost
@ 2017-07-07 12:16           ` Dr. David Alan Gilbert
  2017-07-10  9:02           ` Greg Kurz
  1 sibling, 0 replies; 17+ messages in thread
From: Dr. David Alan Gilbert @ 2017-07-07 12:16 UTC (permalink / raw)
  To: Eduardo Habkost; +Cc: Peter Xu, qemu-devel, armbru, lvivier, quintela, groug

* Eduardo Habkost (ehabkost@redhat.com) wrote:
> On Fri, Jul 07, 2017 at 10:54:08AM +0800, Peter Xu wrote:
> > It's never documented, and now we have one more parameter for it (which
> > obsoletes this one). Document it properly.
> > 
> > Although now when enforce-config-section is set, it'll override the
> > other "-global" parameter, that is not necessarily a rule. Forbid that
> > usage in the document.
> 
> This paragraph looks obsolete now, as now the documentation
> doesn't explicitly forbid mixing the two options.  If it gets
> removed:
> 
> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
> 
> Juan, will you queue it through your tree?

Juan's on PTO, I'll take it.

Dave

> Thanks!
> 
> > 
> > Suggested-by: Eduardo Habkost <ehabkost@redhat.com>
> > Signed-off-by: Peter Xu <peterx@redhat.com>
> > ---
> > v2.1 -> v2.2
> > - remove the last two lines of document [Eduardo]
> > 
> >  qemu-options.hx | 6 ++++++
> >  1 file changed, 6 insertions(+)
> > 
> > diff --git a/qemu-options.hx b/qemu-options.hx
> > index 297bd8a..cd95516 100644
> > --- a/qemu-options.hx
> > +++ b/qemu-options.hx
> > @@ -85,6 +85,12 @@ Enables or disables NVDIMM support. The default is off.
> >  @item s390-squash-mcss=on|off
> >  Enables or disables squashing subchannels into the default css.
> >  The default is off.
> > +@item enforce-config-section=on|off
> > +If @option{enforce-config-section} is set to @var{on}, force migration
> > +code to send configuration section even if the machine-type sets the
> > +@option{migration.send-configuration} property to @var{off}.
> > +NOTE: this parameter is deprecated. Please use @option{-global}
> > +@option{migration.send-configuration}=@var{on|off} instead.
> 
> -- 
> Eduardo
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK

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

* Re: [Qemu-devel] [PATCH v2 4/4] doc: update TYPE_MIGRATION documents
  2017-07-05  8:21 ` [Qemu-devel] [PATCH v2 4/4] doc: update TYPE_MIGRATION documents Peter Xu
@ 2017-07-07 13:30   ` Eduardo Habkost
  0 siblings, 0 replies; 17+ messages in thread
From: Eduardo Habkost @ 2017-07-07 13:30 UTC (permalink / raw)
  To: Peter Xu
  Cc: qemu-devel, Juan Quintela, haoqf, Laurent Vivier,
	Markus Armbruster, Dr . David Alan Gilbert

On Wed, Jul 05, 2017 at 04:21:23PM +0800, Peter Xu wrote:
> [Peter collected Eduardo's patch comment and formatted into patch]
> 
> Suggested-by: Eduardo Habkost <ehabkost@redhat.com>
> Signed-off-by: Peter Xu <peterx@redhat.com>

In case it was not merged yet:

Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>

-- 
Eduardo

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

* Re: [Qemu-devel] [PATCH v2.2 3/4] doc: add item for "-M enforce-config-section"
  2017-07-07 12:12         ` Eduardo Habkost
  2017-07-07 12:16           ` Dr. David Alan Gilbert
@ 2017-07-10  9:02           ` Greg Kurz
  2017-07-10  9:21             ` Peter Xu
  1 sibling, 1 reply; 17+ messages in thread
From: Greg Kurz @ 2017-07-10  9:02 UTC (permalink / raw)
  To: Eduardo Habkost; +Cc: Peter Xu, qemu-devel, armbru, lvivier, quintela, dgilbert

[-- Attachment #1: Type: text/plain, Size: 1823 bytes --]

On Fri, 7 Jul 2017 09:12:14 -0300
Eduardo Habkost <ehabkost@redhat.com> wrote:

> On Fri, Jul 07, 2017 at 10:54:08AM +0800, Peter Xu wrote:
> > It's never documented, and now we have one more parameter for it (which
> > obsoletes this one). Document it properly.
> > 
> > Although now when enforce-config-section is set, it'll override the
> > other "-global" parameter, that is not necessarily a rule. Forbid that
> > usage in the document.  
> 
> This paragraph looks obsolete now, as now the documentation
> doesn't explicitly forbid mixing the two options.  If it gets
> removed:
> 

Same for me.

> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
> 

Reviewed-by: Greg Kurz <groug@kaod.org>

> Juan, will you queue it through your tree?
> 
> Thanks!
> 
> > 
> > Suggested-by: Eduardo Habkost <ehabkost@redhat.com>
> > Signed-off-by: Peter Xu <peterx@redhat.com>
> > ---
> > v2.1 -> v2.2
> > - remove the last two lines of document [Eduardo]
> > 
> >  qemu-options.hx | 6 ++++++
> >  1 file changed, 6 insertions(+)
> > 
> > diff --git a/qemu-options.hx b/qemu-options.hx
> > index 297bd8a..cd95516 100644
> > --- a/qemu-options.hx
> > +++ b/qemu-options.hx
> > @@ -85,6 +85,12 @@ Enables or disables NVDIMM support. The default is off.
> >  @item s390-squash-mcss=on|off
> >  Enables or disables squashing subchannels into the default css.
> >  The default is off.
> > +@item enforce-config-section=on|off
> > +If @option{enforce-config-section} is set to @var{on}, force migration
> > +code to send configuration section even if the machine-type sets the
> > +@option{migration.send-configuration} property to @var{off}.
> > +NOTE: this parameter is deprecated. Please use @option{-global}
> > +@option{migration.send-configuration}=@var{on|off} instead.  
> 


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

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

* Re: [Qemu-devel] [PATCH v2.2 3/4] doc: add item for "-M enforce-config-section"
  2017-07-10  9:02           ` Greg Kurz
@ 2017-07-10  9:21             ` Peter Xu
  0 siblings, 0 replies; 17+ messages in thread
From: Peter Xu @ 2017-07-10  9:21 UTC (permalink / raw)
  To: Greg Kurz
  Cc: Eduardo Habkost, qemu-devel, armbru, lvivier, quintela, dgilbert

On Mon, Jul 10, 2017 at 11:02:02AM +0200, Greg Kurz wrote:
> On Fri, 7 Jul 2017 09:12:14 -0300
> Eduardo Habkost <ehabkost@redhat.com> wrote:
> 
> > On Fri, Jul 07, 2017 at 10:54:08AM +0800, Peter Xu wrote:
> > > It's never documented, and now we have one more parameter for it (which
> > > obsoletes this one). Document it properly.
> > > 
> > > Although now when enforce-config-section is set, it'll override the
> > > other "-global" parameter, that is not necessarily a rule. Forbid that
> > > usage in the document.  
> > 
> > This paragraph looks obsolete now, as now the documentation
> > doesn't explicitly forbid mixing the two options.  If it gets
> > removed:
> > 
> 
> Same for me.
> 
> > Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
> > 
> 
> Reviewed-by: Greg Kurz <groug@kaod.org>

Thanks all for reviewing the patches!

-- 
Peter Xu

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

* Re: [Qemu-devel] [PATCH v2 0/4] migration: fix iotest 055, only-migratable break
  2017-07-05  8:21 [Qemu-devel] [PATCH v2 0/4] migration: fix iotest 055, only-migratable break Peter Xu
                   ` (3 preceding siblings ...)
  2017-07-05  8:21 ` [Qemu-devel] [PATCH v2 4/4] doc: update TYPE_MIGRATION documents Peter Xu
@ 2017-07-10 12:55 ` Dr. David Alan Gilbert
  4 siblings, 0 replies; 17+ messages in thread
From: Dr. David Alan Gilbert @ 2017-07-10 12:55 UTC (permalink / raw)
  To: Peter Xu
  Cc: qemu-devel, Eduardo Habkost, Juan Quintela, haoqf,
	Laurent Vivier, Markus Armbruster

* Peter Xu (peterx@redhat.com) wrote:
> v2:
> - patch 1: add r-b for Eduardo/Juan
> - patch 2: add r-b for Eduardo (Markus's suggestion is a todo), and
>   t-b for Qingfeng
> - patch 3: rewrite the doc up, merging both Eduardo/Markus's
>   suggestion [Eduardo, Markus]
> - patch 4: added a TODO [Markus]
> 
> Two breakage introduced during the migration objectify series: one for
> --only-migratable, another one for iotest 055.
> 
> First two patches fixes the breakages. Latter two are documentation
> updates suggested by Eduardo. Please review. Thanks.

Queued (with commit message tweak from Eduardo in 3)

Dave

> Peter Xu (4):
>   migration: fix handling for --only-migratable
>   vl: move global property, migrate init earlier
>   doc: add item for "-M enforce-config-section"
>   doc: update TYPE_MIGRATION documents
> 
>  include/migration/misc.h |  1 -
>  migration/migration.c    | 17 ++++++-----------
>  qemu-options.hx          | 11 +++++++++++
>  vl.c                     | 26 +++++++++++++-------------
>  4 files changed, 30 insertions(+), 25 deletions(-)
> 
> -- 
> 2.7.4
> 
> 
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK

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

end of thread, other threads:[~2017-07-10 12:55 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-05  8:21 [Qemu-devel] [PATCH v2 0/4] migration: fix iotest 055, only-migratable break Peter Xu
2017-07-05  8:21 ` [Qemu-devel] [PATCH v2 1/4] migration: fix handling for --only-migratable Peter Xu
2017-07-05  8:21 ` [Qemu-devel] [PATCH v2 2/4] vl: move global property, migrate init earlier Peter Xu
2017-07-05  8:21 ` [Qemu-devel] [PATCH v2 3/4] doc: add item for "-M enforce-config-section" Peter Xu
2017-07-06  2:08   ` [Qemu-devel] [PATCH v2.1 " Peter Xu
2017-07-06  8:09     ` Greg Kurz
2017-07-06  8:38       ` Peter Xu
2017-07-06 18:30     ` Eduardo Habkost
2017-07-07  2:54       ` [Qemu-devel] [PATCH v2.2 " Peter Xu
2017-07-07  6:53         ` Greg Kurz
2017-07-07 12:12         ` Eduardo Habkost
2017-07-07 12:16           ` Dr. David Alan Gilbert
2017-07-10  9:02           ` Greg Kurz
2017-07-10  9:21             ` Peter Xu
2017-07-05  8:21 ` [Qemu-devel] [PATCH v2 4/4] doc: update TYPE_MIGRATION documents Peter Xu
2017-07-07 13:30   ` Eduardo Habkost
2017-07-10 12:55 ` [Qemu-devel] [PATCH v2 0/4] migration: fix iotest 055, only-migratable break Dr. David Alan Gilbert

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.