migration: file URI offset
commit385f510df5f6a7f3998b3ff01deca33b0027ff29
authorSteve Sistare <steven.sistare@oracle.com>
Fri, 8 Sep 2023 14:22:11 +0000 (8 07:22 -0700)
committerJuan Quintela <quintela@redhat.com>
Wed, 4 Oct 2023 11:18:08 +0000 (4 13:18 +0200)
treea0c8faa8c9235cb6f694d01ab71d75070dd31550
parent2a9e2e595f2bc81c07e2f06ef9ba7d4c68897f1c
migration: file URI offset

Allow an offset option to be specified as part of the file URI, in
the form "file:filename,offset=offset", where offset accepts the common
size suffixes, or the 0x prefix, but not both.  Migration data is written
to and read from the file starting at offset.  If unspecified, it defaults
to 0.

This is needed by libvirt to store its own data at the head of the file.

Suggested-by: Daniel P. Berrange <berrange@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <1694182931-61390-3-git-send-email-steven.sistare@oracle.com>
migration/file.c
qemu-options.hx