Skip to contentSkip to conversation

Broken live Migration in Qemu 2.5.1.1?

Qemu-devel Peter Lieven 2 participants 6 messages Jun 6, 2016 – Jun 7, 2016

lore
Share & tools
lore
#0 lore raw

Hi,

during internal testing of Qemu 2.5.1.1 I found a vServer running Ubuntu 12.04 (kernel 3.13) and a slave SQL server to stop replicating from the master. This seems to be reproducible. It is possible to continue replication when issuing a slave stop / slave start. There is no error visible on the vServer.

Has anyone a fix in mind that could be related to such an issue?

Host kernel in Linux 4.4, Guest kernel 3.13. Guest driver is virtio-blk via iSCSI. Emulated vCPU is Westmere.

I already have this patch here applied:

target-i386: do not read/write MSR_TSC_AUX from KVM if CPUID bit is not set

Without this migration for Westmere and earlier CPUs is completely broken.

I also found the following commits in git which are not applied (yet):

migration (ordinary): move bdrv_invalidate_cache_all of of coroutine context
migration: fix incorrect memory_global_dirty_log_start outside BQL

I will try with these and also with current master.

Thanks,
Peter

#1 lore raw

Am 06.06.2016 um 15:32 schrieb Peter Lieven:

Quoted 9 lines

Hi,

during internal testing of Qemu 2.5.1.1 I found a vServer running Ubuntu 12.04 (kernel 3.13) and a slave SQL server to stop replicating from the master. This seems to be reproducible. It is possible to continue replication when issuing a slave stop / slave start. There is no error visible on the vServer.

Has anyone a fix in mind that could be related to such an issue?

Host kernel in Linux 4.4, Guest kernel 3.13. Guest driver is virtio-blk via iSCSI. Emulated vCPU is Westmere.

After a lot of testing I found out that obviously thats no block driver problem, but a regression in the virtio-net or the network stack.

qemu_announce_self() is generating packets for all NICs, but it seems they are no longer emitted. This worked at least in qemu-2.2.0 with the same guest kernel and host kernel.

I will continue debugging tomorrow why this happens.

Peter

#2 lore raw

We're most probably seeing the same while migrating a machine running balanceng but haven't thought this might be a qemu bug. Instead we're investigating with balanceng people.

Waiting for your further results.

Greets,
Stefan

Excuse my typo sent from my mobile phone.

Quoted 22 lines

Am 06.06.2016 um 17:51 schrieb Peter Lieven <[email protected]>:

Quoted 10 lines

Am 06.06.2016 um 15:32 schrieb Peter Lieven:
Hi,

during internal testing of Qemu 2.5.1.1 I found a vServer running Ubuntu 12.04 (kernel 3.13) and a slave SQL server to stop replicating from the master. This seems to be reproducible. It is possible to continue replication when issuing a slave stop / slave start. There is no error visible on the vServer.

Has anyone a fix in mind that could be related to such an issue?

Host kernel in Linux 4.4, Guest kernel 3.13. Guest driver is virtio-blk via iSCSI. Emulated vCPU is Westmere.

After a lot of testing I found out that obviously thats no block driver problem, but a regression in the virtio-net or the network stack.

qemu_announce_self() is generating packets for all NICs, but it seems they are no longer emitted. This worked at least in qemu-2.2.0 with the same guest kernel and host kernel.

I will continue debugging tomorrow why this happens.

Peter

#3 lore raw

Am 06.06.2016 um 18:13 schrieb Stefan Priebe - Profihost AG:

Quoted 3 lines

We're most probably seeing the same while migrating a machine running balanceng but haven't thought this might be a qemu bug. Instead we're investigating with balanceng people.

Waiting for your further results.

This obviously is a regression. It was introduced between v2.4.0 and v2.5.0. I can clearly see RARPs being no longer emitted after this commit:

fefe2a78abde932e0f340b21bded2c86def1d242 is the first bad commit commit fefe2a78abde932e0f340b21bded2c86def1d242

Author: Yang Hongyang <[email protected]>
Date:   Wed Oct 7 11:52:16 2015 +0800

net: merge qemu_deliver_packet and qemu_deliver_packet_iov

qemu_deliver_packet_iov already have the compat delivery, we can drop qemu_deliver_packet.

I will analyze further.

Peter

#4 lore raw
In reply to Stefan Priebe - Profihost AG

Am 06.06.2016 um 18:13 schrieb Stefan Priebe - Profihost AG:

Quoted 3 lines

We're most probably seeing the same while migrating a machine running balanceng but haven't thought this might be a qemu bug. Instead we're investigating with balanceng people.

Waiting for your further results.

Can you try the patch

net: fix qemu_announce_self not emitting packets

I just send to the mailing list.

Thanks,
Peter

#5 lore raw

Am 07.06.2016 um 09:38 schrieb Peter Lieven:

Quoted 10 lines

Am 06.06.2016 um 18:13 schrieb Stefan Priebe - Profihost AG:

Quoted 5 lines

We're most probably seeing the same while migrating a machine running balanceng but haven't thought this might be a qemu bug. Instead we're investigating with balanceng people.

Waiting for your further results.

Can you try the patch

net: fix qemu_announce_self not emitting packets

Thx - will wait for a new patch based on Paolo's comments - if that's ok.

Stefan

Quoted 5 lines

I just send to the mailing list.

Thanks,
Peter