[Slirp] [Git][slirp/libslirp][master] 2 commits: Add VMS_END marker
Samuel Thibault (@sthibaul)
gitlab at gitlab.freedesktop.org
Wed Feb 2 11:58:16 UTC 2022
Samuel Thibault pushed to branch master at slirp / libslirp
Commits:
b3caf2ca by Dr. David Alan Gilbert at 2022-02-02T11:23:28+00:00
Add VMS_END marker
The migration VMSTATE_END_OF_LIST marker relies on a NULL field
to mark th eend of a list; that's a bit delicate when the marker is
forgotten and the code hits a NULL by luck.
Use an explicit flag to mark the end as well.
See: https://lists.gnu.org/archive/html/qemu-devel/2022-01/msg03025.html
Signed-off-by: Dr. David Alan Gilbert <dgilbert at redhat.com>
- - - - -
2492fc3f by Samuel Thibault at 2022-02-02T11:58:14+00:00
Merge branch 'libslirp-vmsend' into 'master'
Add VMS_END marker
See merge request slirp/libslirp!112
- - - - -
1 changed file:
- src/vmstate.h
Changes:
=====================================
src/vmstate.h
=====================================
@@ -173,6 +173,9 @@ enum VMStateFlags {
* VMStateField.struct_version_id to tell which version of the
* structure we are referencing to use. */
VMS_VSTRUCT = 0x8000,
+
+ /* Marker for end of list */
+ VMS_END = 0x10000
};
struct VMStateField {
@@ -386,6 +389,7 @@ extern const VMStateInfo slirp_vmstate_info_tmp;
#define VMSTATE_END_OF_LIST() \
{ \
+ .flags = VMS_END, \
}
#endif
View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/compare/04fc0b03f0b109fc1ba61348163e3e0b1fea09fe...2492fc3f55e8e3ac88dd20c3244343e272918545
--
View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/compare/04fc0b03f0b109fc1ba61348163e3e0b1fea09fe...2492fc3f55e8e3ac88dd20c3244343e272918545
You're receiving this email because of your account on gitlab.freedesktop.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/slirp/attachments/20220202/a4356b13/attachment.htm>
More information about the Slirp
mailing list