qemu: sev: Use EnterMonitor instead of EnterMonitorAsync

Since it's being called with QEMU_ASYNC_JOB_NONE which is what
qemuDomainObjEnterMonitor is going to use with the internal helper,
let's use that one instead.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Marc Hartmayer <mhartmay@linux.ibm.com>
This commit is contained in:
Erik Skultety 2018-06-18 09:20:12 +02:00
parent b1acfaaf89
commit 54c54b56f4

View File

@ -21518,9 +21518,7 @@ qemuDomainGetSEVMeasurement(virQEMUDriverPtr driver,
if (qemuDomainObjBeginJob(driver, vm, QEMU_JOB_QUERY) < 0)
return -1;
if (qemuDomainObjEnterMonitorAsync(driver, vm, QEMU_ASYNC_JOB_NONE) < 0)
goto endjob;
qemuDomainObjEnterMonitor(driver, vm);
tmp = qemuMonitorGetSEVMeasurement(QEMU_DOMAIN_PRIVATE(vm)->mon);
if (tmp == NULL)
goto endjob;