mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 22:25:25 +00:00
qemu_process: Accept VIR_QEMU_PROCESS_START_RESET_NVRAM flag when starting a domain
In one of my previous commits I've fixed the value of
VIR_QEMU_PROCESS_START_RESET_NVRAM flag (which was masking
another value). But what I forgot to do is update virCheckFlags()
calls in two places where the flag is passed: qemuProcessLaunch()
and qemuProcessStart().
Fixes: 1b636593c7
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
2ac78307af
commit
f21166c814
@ -7380,7 +7380,8 @@ qemuProcessLaunch(virConnectPtr conn,
|
|||||||
VIR_QEMU_PROCESS_START_PAUSED |
|
VIR_QEMU_PROCESS_START_PAUSED |
|
||||||
VIR_QEMU_PROCESS_START_AUTODESTROY |
|
VIR_QEMU_PROCESS_START_AUTODESTROY |
|
||||||
VIR_QEMU_PROCESS_START_NEW |
|
VIR_QEMU_PROCESS_START_NEW |
|
||||||
VIR_QEMU_PROCESS_START_GEN_VMID, -1);
|
VIR_QEMU_PROCESS_START_GEN_VMID |
|
||||||
|
VIR_QEMU_PROCESS_START_RESET_NVRAM, -1);
|
||||||
|
|
||||||
cfg = virQEMUDriverGetConfig(driver);
|
cfg = virQEMUDriverGetConfig(driver);
|
||||||
|
|
||||||
@ -7807,7 +7808,8 @@ qemuProcessStart(virConnectPtr conn,
|
|||||||
virCheckFlagsGoto(VIR_QEMU_PROCESS_START_COLD |
|
virCheckFlagsGoto(VIR_QEMU_PROCESS_START_COLD |
|
||||||
VIR_QEMU_PROCESS_START_PAUSED |
|
VIR_QEMU_PROCESS_START_PAUSED |
|
||||||
VIR_QEMU_PROCESS_START_AUTODESTROY |
|
VIR_QEMU_PROCESS_START_AUTODESTROY |
|
||||||
VIR_QEMU_PROCESS_START_GEN_VMID, cleanup);
|
VIR_QEMU_PROCESS_START_GEN_VMID |
|
||||||
|
VIR_QEMU_PROCESS_START_RESET_NVRAM, cleanup);
|
||||||
|
|
||||||
if (!migrateFrom && !snapshot)
|
if (!migrateFrom && !snapshot)
|
||||||
flags |= VIR_QEMU_PROCESS_START_NEW;
|
flags |= VIR_QEMU_PROCESS_START_NEW;
|
||||||
|
Loading…
Reference in New Issue
Block a user