mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-29 05:13:54 -06:00
block: allow specifying name of block device for vmstate storage
Currently the vmstate will be stored in the first block device that supports snapshots. Historically this would have usually been the root device, but with UEFI it might be the variable store. There needs to be a way to override the choice of block device to store the state in. Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20210204124834.774401-6-berrange@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
parent
cf3a74c94f
commit
c22d644ca7
6 changed files with 35 additions and 14 deletions
|
@ -148,7 +148,7 @@ static char *replay_find_nearest_snapshot(int64_t icount,
|
|||
|
||||
*snapshot_icount = -1;
|
||||
|
||||
bs = bdrv_all_find_vmstate_bs(false, NULL, NULL);
|
||||
bs = bdrv_all_find_vmstate_bs(NULL, false, NULL, NULL);
|
||||
if (!bs) {
|
||||
goto fail;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue