qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 2/3] migration: Add canary to VMSTATE_END_OF_LIST


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v2 2/3] migration: Add canary to VMSTATE_END_OF_LIST
Date: Fri, 14 Jan 2022 12:32:16 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

On 13/1/22 20:44, Dr. David Alan Gilbert (git) wrote:
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>

We fairly regularly forget VMSTATE_END_OF_LIST markers off descriptions;
given that the current check is only for ->name being NULL, sometimes
we get unlucky and the code apparently works and no one spots the error.

Explicitly add a flag, VMS_END that should be set, and assert it is
set during the traversal.

Note: This can't go in until we update the copy of vmstate.h in slirp.

Do we need a libslirp buildsys version check to get this patch merged?

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
---
  include/migration/vmstate.h | 7 ++++++-
  migration/savevm.c          | 1 +
  migration/vmstate.c         | 2 ++
  3 files changed, 9 insertions(+), 1 deletion(-)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]