[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/2] savevm: Disallow devices being legacy and iterable at the sa
From: |
Lukas Straub |
Subject: |
[PATCH 2/2] savevm: Disallow devices being legacy and iterable at the same time |
Date: |
Thu, 22 Jun 2023 13:22:38 +0200 |
Signed-off-by: Lukas Straub <lukasstraub2@web.de>
---
migration/savevm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/migration/savevm.c b/migration/savevm.c
index 5986f852b2..8d3cf7d675 100644
--- a/migration/savevm.c
+++ b/migration/savevm.c
@@ -774,6 +774,8 @@ int register_savevm_live(const char *idstr,
se->is_ram = 1;
}
+ assert(!(se->ops->save_setup && se->ops->save_state));
+
pstrcat(se->idstr, sizeof(se->idstr), idstr);
if (instance_id == VMSTATE_INSTANCE_ID_ANY) {
--
2.39.2
pgpIy0S5stATe.pgp
Description: OpenPGP digital signature