mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
qemu: process: Move handling of qemu capability overrides
Do all post-processing of capabilities in qemuProcessPrepareQEMUCaps. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
97c9ece79b
commit
78c2a8b934
@ -5524,6 +5524,10 @@ qemuProcessPrepareQEMUCaps(virDomainObjPtr vm,
|
||||
if (processStartFlags & VIR_QEMU_PROCESS_START_STANDALONE)
|
||||
virQEMUCapsClear(priv->qemuCaps, QEMU_CAPS_CHARDEV_FD_PASS);
|
||||
|
||||
/* Update qemu capabilities according to lists passed in via namespace */
|
||||
if (qemuProcessStartUpdateCustomCaps(vm) < 0)
|
||||
return -1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -5596,10 +5600,6 @@ qemuProcessInit(virQEMUDriverPtr driver,
|
||||
if (virDomainObjSetDefTransient(caps, driver->xmlopt, vm, priv->qemuCaps) < 0)
|
||||
goto cleanup;
|
||||
|
||||
/* Update qemu capabilities according to lists passed in via namespace */
|
||||
if (qemuProcessStartUpdateCustomCaps(vm) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (flags & VIR_QEMU_PROCESS_START_PRETEND) {
|
||||
if (qemuDomainSetPrivatePaths(driver, vm) < 0) {
|
||||
virDomainObjRemoveTransientDef(vm);
|
||||
|
Loading…
x
Reference in New Issue
Block a user