diff options
Diffstat (limited to 'migration')
-rw-r--r-- | migration/vmstate.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/migration/vmstate.c b/migration/vmstate.c index f70fe59a3c..a7ad7f2216 100644 --- a/migration/vmstate.c +++ b/migration/vmstate.c @@ -28,6 +28,10 @@ static int vmstate_n_elems(void *opaque, VMStateField *field) n_elems = *(uint8_t *)(opaque+field->num_offset); } + if (field->flags & VMS_MULTIPLY_ELEMENTS) { + n_elems *= field->num; + } + return n_elems; } |