提交 bf7f6251 编写于 作者: M Markus Groß 提交者: Jim Fehlig

Add domainIsUpdated to libxl driver

上级 3df6fd70
......@@ -2329,6 +2329,28 @@ libxlDomainIsPersistent(virDomainPtr dom)
return ret;
}
static int
libxlDomainIsUpdated(virDomainPtr dom)
{
libxlDriverPrivatePtr driver = dom->conn->privateData;
virDomainObjPtr vm;
int ret = -1;
libxlDriverLock(driver);
vm = virDomainFindByUUID(&driver->domains, dom->uuid);
libxlDriverUnlock(driver);
if (!vm) {
libxlError(VIR_ERR_NO_DOMAIN, NULL);
goto cleanup;
}
ret = vm->updated;
cleanup:
if (vm)
virDomainObjUnlock(vm);
return ret;
}
static int
libxlDomainEventRegisterAny(virConnectPtr conn, virDomainPtr dom, int eventID,
virConnectDomainEventGenericCallback callback,
......@@ -2456,7 +2478,7 @@ static virDriver libxlDriver = {
NULL, /* IsSecure */
libxlDomainIsActive, /* DomainIsActive */
libxlDomainIsPersistent, /* DomainIsPersistent */
NULL, /* domainIsUpdated */
libxlDomainIsUpdated, /* domainIsUpdated */
NULL, /* cpuCompare */
NULL, /* cpuBaseline */
NULL, /* domainGetJobInfo */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册