diff options
author | Steve Sistare <steven.sistare@oracle.com> | 2023-06-07 08:18:36 -0700 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-06-13 11:28:58 +0200 |
commit | b0182e537e5aba38031a5009cb16d5e924342458 (patch) | |
tree | 67840f4419f12bc9de0005d2cbd0af316f2c4a3d /qapi/migration.json | |
parent | 6fe4f6c941923608027e10af5dd30f18d481f9b9 (diff) | |
download | qemu-b0182e537e5aba38031a5009cb16d5e924342458.zip qemu-b0182e537e5aba38031a5009cb16d5e924342458.tar.gz qemu-b0182e537e5aba38031a5009cb16d5e924342458.tar.bz2 |
exec/memory: Introduce RAM_NAMED_FILE flag
migrate_ignore_shared() is an optimization that avoids copying memory
that is visible and can be mapped on the target. However, a
memory-backend-ram or a memory-backend-memfd block with the RAM_SHARED
flag set is not migrated when migrate_ignore_shared() is true. This is
wrong, because the block has no named backing store, and its contents will
be lost. To fix, ignore shared memory iff it is a named file. Define a
new flag RAM_NAMED_FILE to distinguish this case.
Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Message-Id: <1686151116-253260-1-git-send-email-steven.sistare@oracle.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'qapi/migration.json')
-rw-r--r-- | qapi/migration.json | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qapi/migration.json b/qapi/migration.json index 179af0c..5bb5ab8 100644 --- a/qapi/migration.json +++ b/qapi/migration.json @@ -465,8 +465,8 @@ # block devices (and thus take locks) immediately at the end of # migration. (since 3.0) # -# @x-ignore-shared: If enabled, QEMU will not migrate shared memory -# (since 4.0) +# @x-ignore-shared: If enabled, QEMU will not migrate shared memory that is +# accessible on the destination machine. (since 4.0) # # @validate-uuid: Send the UUID of the source to allow the destination # to ensure it is the same. (since 4.2) |