[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v5 4/6] migration: migrate QTAIL
From: |
Dr. David Alan Gilbert |
Subject: |
Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v5 4/6] migration: migrate QTAILQ |
Date: |
Fri, 7 Oct 2016 15:34:46 +0100 |
User-agent: |
Mutt/1.7.0 (2016-08-17) |
* Paolo Bonzini (address@hidden) wrote:
>
>
> On 06/10/2016 21:01, Dr. David Alan Gilbert wrote:
> >> >> + } else if (field->flags & VMS_LINKED) {
> >> >> + ret = field->info->get(f, addr, size, field);
> >> >> } else {
> >> >> ret = field->info->get(f, addr, size, NULL);
> >> >>
> >> >> @@ -193,6 +197,8 @@ static const char
> >> >> *vmfield_get_type_name(VMStateField *field)
> >> >>
> >> >> if (field->flags & VMS_STRUCT) {
> >> >> type = "struct";
> >> >> + } else if (field->flags & VMS_LINKED) {
> >> >> + type = "linked";
> >> >> } else if (field->info->name) {
> >> >> type = field->info->name;
> >> >> }
> >> >> @@ -327,6 +333,8 @@ void vmstate_save_state(QEMUFile *f, const
> >> >> VMStateDescription *vmsd,
> >> >> }
> >> >> if (field->flags & VMS_STRUCT) {
> >> >> vmstate_save_state(f, field->vmsd, addr,
> >> >> vmdesc_loop);
> >> >> + } else if (field->flags & VMS_LINKED) {
> >> >> + field->info->put(f, addr, size, field,
> >> >> vmdesc_loop);
> >> >> } else {
> >> >> field->info->put(f, addr, size, NULL, NULL);
> >> >> }
>
> Is VMS_LINKED needed at all, since the fields are unused for every
> VMStateInfo except qtailq?
No, I think you could easily drop the VMS_LINKED and just always pass them in.
Dave
> Paolo
--
Dr. David Alan Gilbert / address@hidden / Manchester, UK
- Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v5 2/6] migration: spapr_drc: defined VMStateDescription struct, (continued)
[Qemu-ppc] [QEMU PATCH v5 4/6] migration: migrate QTAILQ, Jianjun Duan, 2016/10/03
- Re: [Qemu-ppc] [QEMU PATCH v5 4/6] migration: migrate QTAILQ, Dr. David Alan Gilbert, 2016/10/05
- Re: [Qemu-ppc] [QEMU PATCH v5 4/6] migration: migrate QTAILQ, Jianjun Duan, 2016/10/05
- Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v5 4/6] migration: migrate QTAILQ, Dr. David Alan Gilbert, 2016/10/06
- Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v5 4/6] migration: migrate QTAILQ, Jianjun Duan, 2016/10/06
- Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v5 4/6] migration: migrate QTAILQ, David Gibson, 2016/10/06
- Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v5 4/6] migration: migrate QTAILQ, Paolo Bonzini, 2016/10/07
- Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v5 4/6] migration: migrate QTAILQ,
Dr. David Alan Gilbert <=
- Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v5 4/6] migration: migrate QTAILQ, Jianjun Duan, 2016/10/07
- Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v5 4/6] migration: migrate QTAILQ, Paolo Bonzini, 2016/10/07
- Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v5 4/6] migration: migrate QTAILQ, Jianjun Duan, 2016/10/07
- Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v5 4/6] migration: migrate QTAILQ, Dr. David Alan Gilbert, 2016/10/07
- Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v5 4/6] migration: migrate QTAILQ, Jianjun Duan, 2016/10/07
- Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v5 4/6] migration: migrate QTAILQ, Paolo Bonzini, 2016/10/08
- Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v5 4/6] migration: migrate QTAILQ, Halil Pasic, 2016/10/09
- Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v5 4/6] migration: migrate QTAILQ, Jianjun Duan, 2016/10/10
- Re: [Qemu-ppc] [QEMU PATCH v5 4/6] migration: migrate QTAILQ, Paolo Bonzini, 2016/10/11
- Re: [Qemu-ppc] [Qemu-devel] [QEMU PATCH v5 4/6] migration: migrate QTAILQ, Jianjun Duan, 2016/10/10