mirror of
https://git.proxmox.com/git/pve-qemu
synced 2025-08-24 11:17:51 +00:00

Notable changes, most interestingly the two build system changes: * avoid making 'migration' target depend on 'libproxmox_backup_qemu': Having pbs-state.c be part of the 'migration_files' makes the 'migration' target depend on 'libproxmox_backup_qemu'. Adding the dependency to 'migration' and 'libmigration' would not be enough however, because pbs-state.c depends on savevm.c (for register_savevm_live()), and savevm.c is not itself part of the 'migration_files' and would need to be moved too. Otherwise, linking the 'test-xbzrle' unit test is broken. Instead, don't declare pbs-state.c to be part of the 'migration_files'. * meson: pbs-restore + vma: add qemuutil dependency explicitly Both pbs-restore and vma use "qemu/osdep.h" so the dependency is present. Being explicit is required after commit 414b180d42 ("meson: Pass objects and dependencies to declare_dependency()"). * QAPI docs "Notes:" to ".. note::" conversion following commit d461c27973 ("qapi: convert "Note" sections to plain rST"). * Removal of QERR_* macros following commit a95921f171 ("qapi: Inline and remove QERR_DEVICE_HAS_NO_MEDIUM definition") and friends. * Signature change for .save_setup callbacks following commit 01c3ac681b ("migration: Add Error** argument to .save_setup() handler"). * Removal of separate .bdrv_file_open callbacks following commit 44b424dc4a ("block: remove separate bdrv_file_open callback") * Adapt dirty bitmap migration error handling following commit dd03167725 ("migration: Add Error** argument to add_bitmaps_to_list()") * Adapt savevm async to removed block migration following commit eef0bae3a7 ("migration: Remove block migration") Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
44 lines
1.6 KiB
Diff
44 lines
1.6 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Fiona Ebner <f.ebner@proxmox.com>
|
|
Date: Tue, 26 Mar 2024 14:57:51 +0100
|
|
Subject: [PATCH] alloc-track: error out when auto-remove is not set
|
|
|
|
Since replacing the node now happens in the stream job, where the
|
|
option cannot be read from (it's internal to the driver), it will
|
|
always be treated as on.
|
|
|
|
qemu-server will always set it, make sure to have other users notice
|
|
the change (should they even exist). The option can be fully dropped
|
|
in the future while adding a version guard in qemu-server.
|
|
|
|
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
|
|
---
|
|
block/alloc-track.c | 7 +++++--
|
|
1 file changed, 5 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/block/alloc-track.c b/block/alloc-track.c
|
|
index b4a9851144..fc7d58a5d0 100644
|
|
--- a/block/alloc-track.c
|
|
+++ b/block/alloc-track.c
|
|
@@ -34,7 +34,6 @@ typedef struct {
|
|
BdrvDirtyBitmap *bitmap;
|
|
uint64_t granularity;
|
|
DropState drop_state;
|
|
- bool auto_remove;
|
|
} BDRVAllocTrackState;
|
|
|
|
static QemuOptsList runtime_opts = {
|
|
@@ -86,7 +85,11 @@ static int track_open(BlockDriverState *bs, QDict *options, int flags,
|
|
goto fail;
|
|
}
|
|
|
|
- s->auto_remove = qemu_opt_get_bool(opts, TRACK_OPT_AUTO_REMOVE, false);
|
|
+ if (!qemu_opt_get_bool(opts, TRACK_OPT_AUTO_REMOVE, false)) {
|
|
+ error_setg(errp, "alloc-track: requires auto-remove option to be set to on");
|
|
+ ret = -EINVAL;
|
|
+ goto fail;
|
|
+ }
|
|
|
|
/* open the target (write) node, backing will be attached by block layer */
|
|
file = bdrv_open_child(NULL, options, "file", bs, &child_of_bds,
|