mirror of https://gitee.com/openkylin/libvirt.git
qemu: perf: Tweak flags before using them
@flags have a valid modification impact only after calling virDomainObjUpdateModificationImpact. virDomainObjGetOneDef calls it but doesn't update them in the caller.
This commit is contained in:
parent
ff825f9def
commit
1d8351a94f
|
@ -10150,6 +10150,9 @@ qemuDomainGetPerfEvents(virDomainPtr dom,
|
|||
if (qemuDomainObjBeginJob(driver, vm, QEMU_JOB_QUERY) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (virDomainObjUpdateModificationImpact(vm, &flags) < 0)
|
||||
goto endjob;
|
||||
|
||||
if (!(def = virDomainObjGetOneDef(vm, flags)))
|
||||
goto endjob;
|
||||
|
||||
|
|
Loading…
Reference in New Issue