Refreshing the halted state can cause VM performance issues. Since
s390 is currently the only architecture with a known interest in
the halted state, we're avoiding to call QEMU on other platforms.
Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
if (vm->def->virtType == VIR_DOMAIN_VIRT_QEMU)
return 0;
+ /* The halted state is interresting only on s390(x). On other platforms
+ * the data would be stale at the time when it would be used. */
+ if (!ARCH_IS_S390(vm->def->os.arch))
+ return 0;
+
if (qemuDomainObjEnterMonitorAsync(driver, vm, asyncJob) < 0)
return -1;