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:
Peter Krempa 2016-03-31 16:45:14 +02:00
parent ff825f9def
commit 1d8351a94f
1 changed files with 3 additions and 0 deletions

View File

@ -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;