[GSoC][PATCH v2 6/6] qemu_domainjob: remove dependency on `qemuDomainDiskPrivatePtr`

2020-08-16 Thread Prathamesh Chavan
Dependency on qemu-specific `diskPrivatePtr` was removed by moving the funcitons `qemuDomainObjPrivateXMLParseJobNBD` and `qemuDomainObjPrivateXMLFormatNBDMigration` to `qemu_domain`, and moving their calls inside the `parseJob` and `formatJob` callback functions. Signed-off-by: Prathamesh Chavan

[GSoC][PATCH v2 5/6] virmigraiton: `qemuMigrationJobPhase` transformed for more generic use

2020-08-16 Thread Prathamesh Chavan
`qemuMigrationJobPhase` was transformed into `virMigrationJobPhase` and a common util file `virmigration` was created to store its defination. Signed-off-by: Prathamesh Chavan --- src/hypervisor/meson.build| 1 + src/hypervisor/virmigration.c | 41

[GSoC][PATCH v2 2/6] qemu_domainjob: jobs_queued parameter added to `qemuDomainJobPrivate`

2020-08-16 Thread Prathamesh Chavan
Since the attribute `jobs_queued` was specific to jobs, we decided to move this from `qemuDomainObjPrivate` to `qemuDomainJobObj` structure. Signed-off-by: Prathamesh Chavan --- src/qemu/qemu_domain.h| 2 -- src/qemu/qemu_domainjob.c | 14 +++--- src/qemu/qemu_domainjob.h | 2 ++

[GSoC][PATCH v2 3/6] qemu_domainjob: `maxQueuedJobs` added to `qemuDomainJobPrivate`

2020-08-16 Thread Prathamesh Chavan
Reference to `maxQueuedJobs` required us to access config of the qemu-driver. And creating its copy in the `qemuDomainJob` helped us access the variable without referencing the driver's config. Signed-off-by: Prathamesh Chavan --- src/qemu/qemu_domain.c| 5 - src/qemu/qemu_domainjob.c

[GSoC][PATCH v2 4/6] qemu_domain: funciton declarations moved to correct file

2020-08-16 Thread Prathamesh Chavan
Functions `qemuDomainRemoveInactiveJob` and `qemuDomainRemoveInactiveJobLocked` had their declaration misplaced in `qemu_domainjob` and were moved to `qemu_domain`. Signed-off-by: Prathamesh Chavan --- src/qemu/qemu_domain.h| 6 ++ src/qemu/qemu_domainjob.h | 6 -- 2 files changed,

[GSoC][PATCH v2 1/6] qemu_domain: Added `qemuDomainJobInfo` to domainJob's `privateData`

2020-08-16 Thread Prathamesh Chavan
As `qemuDomainJobInfo` had attributes specific to qemu hypervisor's jobs, we moved the attribute `current` and `completed` from `qemuDomainJobObj` to its `privateData` structure. In this process, two callback functions: `setJobInfoOperation` and `currentJobInfoInit` were introduced to

[GSoC][PATCH v2 0/6] remove dependency of domainJobs on

2020-08-16 Thread Prathamesh Chavan
Following series of patches deal majorly with moving code around aimed towards making domain-jobs hypervisor agnostic. Previous version of this series can be found here[1]. [1]: https://www.redhat.com/archives/libvir-list/2020-August/msg00180.html Prathamesh Chavan (6): qemu_domain: Added

Re: [GSoC][PATCH 7/7] virmigraiton: `qemuMigrationJobPhase` transformed for more generic use

2020-08-16 Thread Prathamesh Chavan
On Wed, Aug 12, 2020 at 5:42 PM Erik Skultety wrote: > > On Tue, Aug 04, 2020 at 08:06:49PM +0530, Prathamesh Chavan wrote: > > `qemuMigrationJobPhase` was transformed into `virMigrationJobPhase` > > and a common util file `virmigration` was created to store its > > defination. > > > >

Re: [GSoC][PATCH 1/7] qemu_domain: Added `qemuDomainJobInfo` to domainJob's `privateData`

2020-08-16 Thread Prathamesh Chavan
Sorry for not noticing this earlier, but the movement needs to happen together with changes in codes as the moved code is no longer available to be directly accessed by `qemu_domainjob`. (If we include `qemu_domain.h` in `qemu_domainjob.h`, a cyclic dependency will get created). Thanks,

Re: device compatibility interface for live migration with assigned devices

2020-08-16 Thread Yan Zhao
On Fri, Aug 14, 2020 at 01:30:00PM +0100, Sean Mooney wrote: > On Fri, 2020-08-14 at 13:16 +0800, Yan Zhao wrote: > > On Thu, Aug 13, 2020 at 12:24:50PM +0800, Jason Wang wrote: > > > > > > On 2020/8/10 下午3:46, Yan Zhao wrote: > > > > > driver is it handled by? > > > > > > > > It looks that the

[PATCH] lxc: Add TPM passthrough option for LXC driver

2020-08-16 Thread Julio Faracco
There is no support to use TPM for passthrough for LXC libvirt driver this commit adds the option to use host TPM inside containers. Signed-off-by: Julio Faracco --- src/lxc/lxc_cgroup.c | 27 +++ src/lxc/lxc_controller.c | 56 2