[libvirt] [PATCH] Check for --live flag for postcopy-after-precopy migration

Madhu Pavan kmp at linux.vnet.ibm.com
Mon Aug 29 11:12:04 UTC 2016



On 08/27/2016 02:21 AM, Jiri Denemark wrote:
> On Fri, Aug 26, 2016 at 21:41:31 +0200, Michal Privoznik wrote:
>> On 26.08.2016 11:25, Kothapally Madhu Pavan wrote:
>>> Unlike postcopy migration there is no --live flag check for
>>> postcopy-after-precopy.
>>>
>>> Signed-off-by: Kothapally Madhu Pavan <kmp at linux.vnet.ibm.com>
>>> ---
>>>   tools/virsh-domain.c |    6 ++++++
>>>   1 file changed, 6 insertions(+)
>>>
>> ACKed and pushed.
> This doesn't make any sense. First, post-copy migration is enabled with
> --postcopy option to migrate command and --postcopy-after-precopy is
> just an additional flag for post-copy migration. So if virsh was to
> report such an error, it should check for --postcopy option. But such
> check doesn't belong to libvirt at all, the appropriate libvirt driver
> is supposed to check for the flags and report invalid combinations.
I have proposed this patch as the qemu driver doesn't have 
postcopy-after-precopy
flag and this bug can be fixed by minimal changes in libvirt. If we have 
to check for
invalid combinations in appropriate libvirt drivers, we need to create a 
flag for
postcopy-after-precopy migration. I will be happy to send another patch 
if this is what
needed.

Thanks,
Madhu Pavan.
>




More information about the libvir-list mailing list