qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Yoshiaki Tamura <tamura.yoshiaki@lab.ntt.co.jp>
To: Juan Quintela <quintela@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 2/9] vmstate: Fix varrays with uint8 indexes
Date: Fri, 18 Mar 2011 19:34:55 +0900	[thread overview]
Message-ID: <AANLkTi=rGYYT3tCZBXWaEqti-6jnCeD-ti++b3Ajo7S+@mail.gmail.com> (raw)
In-Reply-To: <186196e777b1723ef1e41679b1b27a064e065e66.1299756608.git.quintela@redhat.com>

Juan, Anthony,

It seems this patch broke live migration in my environment.  The guest
hangs after switching to remote.  The following is parameters of the
guest.

-L /usr/local/seabios --enable-kvm -M pc -m 512 -smp 1 -monitor stdio
-localtime -boot c -drive file=/vm/fedora13.img,if=virtio -net
nic,macaddr=54:52:00:47:a5:a8,model=virtio -net tap -parallel none
-usb  -vnc :0

Have you seen similar issues?

Thanks,

Yoshi

2011/3/10 Juan Quintela <quintela@redhat.com>:
> Signed-off-by: Juan Quintela <quintela@redhat.com>
> ---
>  hw/hw.h  |    5 +++--
>  savevm.c |    2 ++
>  2 files changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/hw/hw.h b/hw/hw.h
> index 0299207..40c6396 100644
> --- a/hw/hw.h
> +++ b/hw/hw.h
> @@ -298,6 +298,7 @@ enum VMStateFlags {
>     VMS_VARRAY_UINT16    = 0x080,  /* Array with size in uint16_t field */
>     VMS_VBUFFER          = 0x100,  /* Buffer with size in int32_t field */
>     VMS_MULTIPLY         = 0x200,  /* multiply "size" field by field_size */
> +    VMS_VARRAY_UINT8     = 0x400,  /* Array with size in uint8_t field*/
>  };
>
>  typedef struct {
> @@ -489,11 +490,11 @@ extern const VMStateInfo vmstate_info_unused_buffer;
>
>  #define VMSTATE_STRUCT_VARRAY_UINT8(_field, _state, _field_num, _version, _vmsd, _type) { \
>     .name       = (stringify(_field)),                               \
> -    .num_offset = vmstate_offset_value(_state, _field_num, uint8_t),  \
> +    .num_offset = vmstate_offset_value(_state, _field_num, uint8_t), \
>     .version_id = (_version),                                        \
>     .vmsd       = &(_vmsd),                                          \
>     .size       = sizeof(_type),                                     \
> -    .flags      = VMS_STRUCT|VMS_VARRAY_INT32,                       \
> +    .flags      = VMS_STRUCT|VMS_VARRAY_UINT8,                       \
>     .offset     = offsetof(_state, _field),                          \
>  }
>
> diff --git a/savevm.c b/savevm.c
> index ce063d1..4db036b 100644
> --- a/savevm.c
> +++ b/savevm.c
> @@ -1331,6 +1331,8 @@ int vmstate_load_state(QEMUFile *f, const VMStateDescription *vmsd,
>                 n_elems = *(int32_t *)(opaque+field->num_offset);
>             } else if (field->flags & VMS_VARRAY_UINT16) {
>                 n_elems = *(uint16_t *)(opaque+field->num_offset);
> +            } else if (field->flags & VMS_VARRAY_UINT8) {
> +                n_elems = *(uint8_t *)(opaque+field->num_offset);
>             }
>             if (field->flags & VMS_POINTER) {
>                 base_addr = *(void **)base_addr + field->start;
> --
> 1.7.4
>
>
>

  reply	other threads:[~2011-03-18 10:35 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-10 11:33 [Qemu-devel] [PATCH 0/9] VMState infrastructure Juan Quintela
2011-03-10 11:33 ` [Qemu-devel] [PATCH 1/9] vmstate: add VMSTATE_UINT32_EQUAL Juan Quintela
2011-03-10 11:33 ` [Qemu-devel] [PATCH 2/9] vmstate: Fix varrays with uint8 indexes Juan Quintela
2011-03-18 10:34   ` Yoshiaki Tamura [this message]
2011-03-18 12:04     ` [Qemu-devel] " Juan Quintela
2011-03-18 12:37       ` Yoshiaki Tamura
2011-03-22  6:23       ` Yoshiaki Tamura
2011-03-10 11:33 ` [Qemu-devel] [PATCH 3/9] vmstate: add UINT32 VARRAYS Juan Quintela
2011-03-10 11:33 ` [Qemu-devel] [PATCH 4/9] vmstate: add VMSTATE_STRUCT_VARRAY_INT32 Juan Quintela
2011-03-10 11:33 ` [Qemu-devel] [PATCH 5/9] vmstate: add VMSTATE_INT64_ARRAY Juan Quintela
2011-03-10 11:33 ` [Qemu-devel] [PATCH 6/9] vmstate: add VMSTATE_STRUCT_VARRAY_UINT32 Juan Quintela
2011-03-10 11:33 ` [Qemu-devel] [PATCH 7/9] vmstate: Add a way to send a partial array Juan Quintela
2011-03-10 11:33 ` [Qemu-devel] [PATCH 8/9] vmstate: be able to store/save a pci device from a pointer Juan Quintela
2011-03-10 11:33 ` [Qemu-devel] [PATCH 9/9] vmstate: move timers to use test instead of version Juan Quintela
2011-03-10 13:56 ` [Qemu-devel] [PATCH 0/9] VMState infrastructure Anthony Liguori
2011-03-10 23:18 ` Anthony Liguori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTi=rGYYT3tCZBXWaEqti-6jnCeD-ti++b3Ajo7S+@mail.gmail.com' \
    --to=tamura.yoshiaki@lab.ntt.co.jp \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).