mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-25 14:05:18 +00:00
qemu: Unset the genid start change flag for revert force
If the the snapshot revert involves a forced revert option, then let's not cause startup to change the genid flag in order to signify that we're still running the same/previous guest and not some snapshot reversion. Related to: https://bugzilla.redhat.com/show_bug.cgi?id=1149445 Signed-off-by: John Ferlan <jferlan@redhat.com> ACKed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
3d94e45820
commit
e5d7064be0
@ -16182,12 +16182,14 @@ qemuDomainRevertToSnapshot(virDomainSnapshotPtr snapshot,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* If using VM GenID, there is no way currently to change
|
/* If using VM GenID, there is no way currently to change
|
||||||
* the genid for the running guest, so set an error and
|
* the genid for the running guest, so set an error,
|
||||||
* mark as incompatible. */
|
* mark as incompatible, and don't allow change of genid
|
||||||
|
* if the revert force flag would start the guest again. */
|
||||||
if (compatible && config->genidRequested) {
|
if (compatible && config->genidRequested) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||||
_("domain genid update requires restart"));
|
_("domain genid update requires restart"));
|
||||||
compatible = false;
|
compatible = false;
|
||||||
|
start_flags &= ~VIR_QEMU_PROCESS_START_GEN_VMID;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!compatible) {
|
if (!compatible) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user