qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] Trivial fixes for migration
@ 2013-05-27 10:33 Lei Li
  2013-05-27 10:33 ` [Qemu-devel] [PATCH 1/2] docs: Fix typo and update file in migration Lei Li
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Lei Li @ 2013-05-27 10:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, mjt, Lei Li, quintela

This small series improves the document migration.txt
and remove a duplicated setting of bandwidth_limit.

Lei Li (2):
 docs: Fix typo and update file in migration
 migration: Remove duplicate bandwidth_limit set

 docs/migration.txt |   17 +++++++++--------
 migration.c        |    1 -
 2 files changed, 9 insertions(+), 9 deletions(-)

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

* [Qemu-devel] [PATCH 1/2] docs: Fix typo and update file in migration
  2013-05-27 10:33 [Qemu-devel] [PATCH 0/2] Trivial fixes for migration Lei Li
@ 2013-05-27 10:33 ` Lei Li
  2013-05-27 10:33 ` [Qemu-devel] [PATCH 2/2] migration: Remove duplicate bandwidth_limit set Lei Li
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Lei Li @ 2013-05-27 10:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, mjt, Lei Li, quintela

This patch fix some typo and update the file that already
moved.

Signed-off-by: Lei Li <lilei@linux.vnet.ibm.com>
---
 docs/migration.txt |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/docs/migration.txt b/docs/migration.txt
index 0719a55..0e0a1d4 100644
--- a/docs/migration.txt
+++ b/docs/migration.txt
@@ -41,7 +41,7 @@ All these four migration protocols use the same infrastructure to
 save/restore state devices.  This infrastructure is shared with the
 savevm/loadvm functionality.
 
-=== State Live Migration ==
+=== State Live Migration ===
 
 This is used for RAM and block devices.  It is not yet ported to vmstate.
 <Fill more information here>
@@ -83,7 +83,7 @@ pointer that is passed to all functions.
 The important functions for us are put_buffer()/get_buffer() that
 allow to write/read a buffer into the QEMUFile.
 
-=== How to save the state of one device ==
+=== How to save the state of one device ===
 
 The state of a device is saved using intermediate buffers.  There are
 some helper functions to assist this saving.
@@ -97,7 +97,7 @@ associated with a series of fields saved.  The save_state always saves
 the state as the newer version.  But load_state sometimes is able to
 load state from an older version.
 
- === Legacy way ===
+=== Legacy way ===
 
 This way is going to disappear as soon as all current users are ported to VMSTATE.
 
@@ -133,7 +133,7 @@ to interpret that definition to be able to load/save the state.  As
 the state is declared only once, it can't go out of sync in the
 save/load functions.
 
-An example (from hw/pckbd.c)
+An example (from hw/input/pckbd.c)
 
 static const VMStateDescription vmstate_kbd = {
     .name = "pckbd",
@@ -158,9 +158,9 @@ We registered this with:
 Note: talk about how vmstate <-> qdev interact, and what the instance ids mean.
 
 You can search for VMSTATE_* macros for lots of types used in QEMU in
-hw/hw.h.
+include/hw/hw.h.
 
-=== More about versions ==
+=== More about versions ===
 
 You can see that there are several version fields:
 
@@ -227,7 +227,7 @@ using a specific functionality, ....
 
 It is impossible to create a way to make migration from any version to
 any other version to work.  But we can do better than only allowing
-migration from older versions no newer ones.  For that fields that are
+migration from older versions to newer ones.  For that fields that are
 only needed sometimes, we add the idea of subsections.  A subsection
 is "like" a device vmstate, but with a particularity, it has a Boolean
 function that tells if that values are needed to be sent or not.  If
@@ -247,7 +247,8 @@ static bool ide_drive_pio_state_needed(void *opaque)
 {
     IDEState *s = opaque;
 
-    return (s->status & DRQ_STAT) != 0;
+    return ((s->status & DRQ_STAT) != 0)
+        || (s->bus->error_status & BM_STATUS_PIO_RETRY);
 }
 
 const VMStateDescription vmstate_ide_drive_pio_state = {
-- 
1.7.7.6

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

* [Qemu-devel] [PATCH 2/2] migration: Remove duplicate bandwidth_limit set
  2013-05-27 10:33 [Qemu-devel] [PATCH 0/2] Trivial fixes for migration Lei Li
  2013-05-27 10:33 ` [Qemu-devel] [PATCH 1/2] docs: Fix typo and update file in migration Lei Li
@ 2013-05-27 10:33 ` Lei Li
  2013-05-27 11:39 ` [Qemu-devel] [PATCH 0/2] Trivial fixes for migration Michael Tokarev
  2013-05-27 19:49 ` Michael Tokarev
  3 siblings, 0 replies; 5+ messages in thread
From: Lei Li @ 2013-05-27 10:33 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, mjt, Lei Li, quintela

bandwidth_limit is double set in migrate_init(), remove one.

Signed-off-by: Lei Li <lilei@linux.vnet.ibm.com>
---
 migration.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/migration.c b/migration.c
index bfbc345..058f9e6 100644
--- a/migration.c
+++ b/migration.c
@@ -349,7 +349,6 @@ static MigrationState *migrate_init(const MigrationParams *params)
            sizeof(enabled_capabilities));
 
     memset(s, 0, sizeof(*s));
-    s->bandwidth_limit = bandwidth_limit;
     s->params = *params;
     memcpy(s->enabled_capabilities, enabled_capabilities,
            sizeof(enabled_capabilities));
-- 
1.7.7.6

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

* Re: [Qemu-devel] [PATCH 0/2] Trivial fixes for migration
  2013-05-27 10:33 [Qemu-devel] [PATCH 0/2] Trivial fixes for migration Lei Li
  2013-05-27 10:33 ` [Qemu-devel] [PATCH 1/2] docs: Fix typo and update file in migration Lei Li
  2013-05-27 10:33 ` [Qemu-devel] [PATCH 2/2] migration: Remove duplicate bandwidth_limit set Lei Li
@ 2013-05-27 11:39 ` Michael Tokarev
  2013-05-27 19:49 ` Michael Tokarev
  3 siblings, 0 replies; 5+ messages in thread
From: Michael Tokarev @ 2013-05-27 11:39 UTC (permalink / raw)
  To: Lei Li; +Cc: qemu-trivial, qemu-devel

27.05.2013 14:33, Lei Li wrote:
> This small series improves the document migration.txt
> and remove a duplicated setting of bandwidth_limit.

FWIW, please don't CC me directly, I'm subscribed to
qemu-trivial@ obviously (being the one behind trivial-
patches currently).

Thanks,

/mjt

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

* Re: [Qemu-devel] [PATCH 0/2] Trivial fixes for migration
  2013-05-27 10:33 [Qemu-devel] [PATCH 0/2] Trivial fixes for migration Lei Li
                   ` (2 preceding siblings ...)
  2013-05-27 11:39 ` [Qemu-devel] [PATCH 0/2] Trivial fixes for migration Michael Tokarev
@ 2013-05-27 19:49 ` Michael Tokarev
  3 siblings, 0 replies; 5+ messages in thread
From: Michael Tokarev @ 2013-05-27 19:49 UTC (permalink / raw)
  To: Lei Li; +Cc: qemu-trivial, qemu-devel, quintela

27.05.2013 14:33, Lei Li wrote:
> This small series improves the document migration.txt
> and remove a duplicated setting of bandwidth_limit.

Thanks, both applied to the trivial patch queue.

/mjt

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

end of thread, other threads:[~2013-05-27 19:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-27 10:33 [Qemu-devel] [PATCH 0/2] Trivial fixes for migration Lei Li
2013-05-27 10:33 ` [Qemu-devel] [PATCH 1/2] docs: Fix typo and update file in migration Lei Li
2013-05-27 10:33 ` [Qemu-devel] [PATCH 2/2] migration: Remove duplicate bandwidth_limit set Lei Li
2013-05-27 11:39 ` [Qemu-devel] [PATCH 0/2] Trivial fixes for migration Michael Tokarev
2013-05-27 19:49 ` Michael Tokarev

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