]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: remove usage of virDomainJobData
authorKristina Hanicova <khanicov@redhat.com>
Mon, 5 Sep 2022 13:57:00 +0000 (15:57 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 7 Sep 2022 10:06:17 +0000 (12:06 +0200)
commit15e9c5ae2f3d293beaeb2ed433403e0df4a92a48
tree9486cb69385c0e4c274863219c053386968cc474
parent3b1ad4cb171f6b8e4d010630e3226039e6941355
libxl: remove usage of virDomainJobData

Struct virDomainJobData is meant for statistics for async jobs.
It was used to keep track of only two attributes, one of which is
also in the generalized virDomainJobObj ("started") and one which
is always set to the same value, if any job is active
("jobType").

This patch removes usage & allocation of virDomainJobData
structure and rewrites libxlDomainJobUpdateTime() into more
suitable libxlDomainJobGetTimeElapsed().

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/libxl/libxl_domain.c
src/libxl/libxl_domain.h
src/libxl/libxl_driver.c