
On Tue, Jul 14, 2020 at 10:25 PM Michal Privoznik <mprivozn@redhat.com> wrote:
On 7/14/20 5:14 PM, Prathamesh Chavan wrote:
Currently, domainJobInfo also uses "stats" as one of the job specific parameters. To remove this dependency, a privateData structure is introduced.
The plan is to even have this structure renamed as `virDomainJobInfoInternal` as there already exists a `virDomainJobInfo'.
I see. Well, I'm not that sure about virDomainJobInfoInternal (mostly because this qemuDomainJobInfo structure looks too qemu specific). How about moving it under qemuDomainJobObj privateData? I mean, qemuDomainJobPrivate structure you propose in 3/4?
Yes, this can be done. This shall be sufficient to remove qemu_domainjob dependency on other files. Also, since libxl simply uses the virDomainJobInfo, I think we can skip creating the virDomainJobInfoInternal altogether. Thanks.