vhost-user live migration support
Hello!
I am currently testing this patchset with qemu and have problems.
The guest migrates correctly, but after the migration it cries in the log:
Vhost user backend fails to broadcast fake RARP
and pinging the (new) host doesn't work. When i migrate it back to the old host, the network resumes working.
I have analyzed the code, and this problem happens because we support neither VHOST_USER_PROTOCOL_F_RARP, norVIRTIO_NET_F_GUEST_ANNOUNCE. Since the latter seems to be related only to guest, i simply enabled it in qemu by force, and after this the network doesn't work at all.
Can anybody help me and explain how the thing works? I expected that gratuitous ARP packets are harmless, but they seem to break
things somehow. And what was used for testing the implementation?
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
Quoted 3 lines · Pavel Fedin
Hello!
I am currently testing this patchset with qemu and have problems.
Hi,
Thanks for testing!
Quoted 4 lines
The guest migrates correctly, but after the migration it cries in the log:
Vhost user backend fails to broadcast fake RARP
Yes, because I have enabled it yet on DPDK side, and I was intended to try it in the v2 patchset, which is likely to be sent out next week.
--yliu
Quoted 15 lines
and pinging the (new) host doesn't work. When i migrate it back to the old host, the network resumes working.
I have analyzed the code, and this problem happens because we support neither
VHOST_USER_PROTOCOL_F_RARP, norVIRTIO_NET_F_GUEST_ANNOUNCE. Since the latter seems to be related only to guest, i simply enabled it in qemu by force, and after this the network doesn't work at all.
Can anybody help me and explain how the thing works? I expected that gratuitous ARP packets are harmless, but they seem to break
things somehow. And what was used for testing the implementation?Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
Pavel Fedin
Tested-byHello!
Quoted 8 lines · Pavel Fedin
Quoted 3 lines
Hello!
I am currently testing this patchset with qemu and have problems.
Hi,
Thanks for testing!
Not at all :)
BTW, it works, and it was my bad. openvswitch was configured incorrectly on the other side, vhost port number was different for
some reason, while ruleset was the same. I reconfigured it and now everything migrates correctly, except increased downtime because of missing GARP (the guest misses some PINGs, then it retries ARP, which brings the link back up).
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
Quoted 3 lines · Pavel Fedin
BTW, it works, and it was my bad. openvswitch was configured incorrectly on the other side, vhost port number was different for
some reason, while ruleset was the same. I reconfigured it and now everything migrates correctly, except increased downtime because of missing GARP (the guest misses some PINGs, then it retries ARP, which brings the link back up).
Hi,
When doing the ping, was it from the guest (to another host) or to the guest (from another host)?
In any case, I still could not understand why the ping loss happened in this test.
If ping from guest, no ARP refresh is required at all?
If ping to guest from outside, when the migration finishes on the target side of qemu, qemu_self_announce() will be called. Although we might see a warning like "Vhost user backend fails to broadcast fake RARP" (notify is done by hacking vhost_user_receive(), even if notify fails, things will still move on), QEMU should still send a RARP onto the link.
Not sure whether I missed anything.
Thanks.
Peter
Hello!
Quoted 7 lines
When doing the ping, was it from the guest (to another host) or to the guest (from another host)?
In any case, I still could not understand why the ping loss happened in this test.
If ping from guest, no ARP refresh is required at all?
ping from guest to host.
Ok, my setup was:
Host<------->openVSwitch<----------->guest
LOCAL vhostuser
So, in order to migrate the guest, i simply replicated this setup on both hosts, with the same IPs on host side. And on both hosts i set up the following ruleset for openvswitch:
ovs-ofctl add-flow ovs-br0 in_port=1,actions=output:LOCAL ovs-ofctl add-flow ovs-br0 in_port=LOCAL,actions=output:1
And on the second host, for some reason, vhostuser port got no 2 in the database instead of 1. Probably because first i added wrong port, then added correct one, then removed the wrong one. So, as i wrote before - please don't worry, the patch works fine, it was totally my lame fault.
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
Quoted 1 line · Pavel Fedin
Hello!
Hi, Pavel!
Quoted 9 lines
Quoted 8 lines
When doing the ping, was it from the guest (to another host) or to the guest (from another host)?
In any case, I still could not understand why the ping loss happened in this test.
If ping from guest, no ARP refresh is required at all?
Quoted 8 lines
ping from guest to host.
Ok, my setup was:
Host<------->openVSwitch<----------->guest
LOCAL vhostuserSo, in order to migrate the guest, i simply replicated this setup on both hosts, with the same IPs on host side. And on both hosts i set up the following ruleset for openvswitch:
Regarding to "with the same IPs on host side": do you mean that you configured the same IP on two hosts in the intranet? I think this does not matter if we are testing it functionally (whether live migration could work), However I would still perfer to try ping another host (say, host3) inside the intranet. What do you think?
When pinging host3, I assume there should have no ping loss. Also, should have no loss too in the revert direction (reason as in previous mail).
Quoted 5 lines
ovs-ofctl add-flow ovs-br0 in_port=1,actions=output:LOCAL ovs-ofctl add-flow ovs-br0 in_port=LOCAL,actions=output:1
And on the second host, for some reason, vhostuser port got no 2 in the database instead of 1. Probably because first i added wrong port, then added correct one, then removed the wrong one. So, as i wrote before - please don't worry, the patch works fine, it was totally my lame fault.
Yes, thanks to let me know that the patch is working. Actually what I am interested in is the down time that when host3 ping guest from outside during migration. Would you please let me know the result if you are doing such tests in the future? And please just ignore this if there is no requirement on your side.
Thanks!
Peter
Hello!
Quoted 8 lines
Quoted 4 lines
Host<------->openVSwitch<----------->guest
LOCAL vhostuserSo, in order to migrate the guest, i simply replicated this setup on both hosts, with the
same IPs on host side. And on both hosts i set up the following ruleset for openvswitch:
Regarding to "with the same IPs on host side": do you mean that you configured the same IP on two hosts in the intranet?
No intranet. You can think of it as an isolated network between the host and guest, and that's all. I just assigned an IP to ovs' LOCAL interface on both hosts, and these ovs instances knew nothing about each other, neither they forwarded packets between each other. I didn't want to make things overcomplicated and decided not to mess with host's own connection to the intranet, just something that sits on the other side of vhost-user and replies to PINGs was perfectly OK for me.
Quoted 4 lines
I think this
does not matter if we are testing it functionally (whether live migration could work), However I would still perfer to try ping another host (say, host3) inside the intranet. What do you think?
Yes, perhaps this would be better test, may be next time i'll do it. Anyway, IIRC, PATCH v2 is coming.
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
Quoted 4 lines · Pavel Fedin
Quoted 2 lines
Regarding to "with the same IPs on host side": do you mean that you configured the same IP on two hosts in the intranet?
No intranet. You can think of it as an isolated network between the host and guest, and that's all. I just assigned an IP to ovs' LOCAL interface on both hosts, and these ovs instances knew nothing about each other, neither they forwarded packets between each other. I didn't want to make things overcomplicated and decided not to mess with host's own connection to the intranet, just something that sits on the other side of vhost-user and replies to PINGs was perfectly OK for me.
I see.
Quoted 7 lines
Quoted 5 lines
I think this
does not matter if we are testing it functionally (whether live migration could work), However I would still perfer to try ping another host (say, host3) inside the intranet. What do you think?Yes, perhaps this would be better test, may be next time i'll do it. Anyway, IIRC, PATCH v2 is coming.
Agreed.
Thanks!
Peter
Quoted 7 lines
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
Quoted 5 lines · Pavel Fedin
Hello!
Quoted 3 lines
Quoted 3 lines
Host<------->openVSwitch<----------->guest
LOCAL vhostuser
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
So, in order to migrate the guest, i simply replicated this setup on both hosts, with the
same IPs on host side. And on both hosts i set up the following ruleset for openvswitch:
Regarding to "with the same IPs on host side": do you mean that you configured the same IP on two hosts in the intranet?
No intranet. You can think of it as an isolated network between the host and guest, and that's all. I just assigned an IP to ovs' LOCAL interface on both hosts, and these ovs instances knew nothing about each other, neither they forwarded packets between each other. I didn't want to make things overcomplicated and decided not to mess with host's own connection to the intranet, just something that sits on the other side of vhost-user and replies to PINGs was perfectly OK for me.
Pavel,
It seems that we have exactly the same test environment set up: I have one server (where I normally do vhost test there) and one desktop (my dev box),
On both hosts, there is an ovs bridge, with IP address 192.168.100.1 assigned manually. Later, I started a VM on the server, and manually assigned IP to 192.168.100.10. I then run "ping 192.168.100.1" for live migration testing.
The migration to my desktop somehow works (even though there are some bugs in this patch set), however, I did see what Pavel saw: about 12 packets has been lost, which means about 12 seconds the network is not working well.
Besides that, there was always an error message from the target host after the migration:
KVM: injection failed, MSI lost (Operation not permitted)
Firstly, I've very limited knowledge of OVS, therefore I'm not sure this kind of live migration test env is setup rightly or not. I'd appreciate if anyone could shine some lights on it. Anyway, I'm digging the code to see if I can find something abnormal there.
Quoted 6 lines
Quoted 4 lines
I think this
does not matter if we are testing it functionally (whether live migration could work), However I would still perfer to try ping another host (say, host3) inside the intranet. What do you think?Yes, perhaps this would be better test, may be next time i'll do it.
Again, appreciate your testing!
Quoted 1 line
Anyway, IIRC, PATCH v2 is coming.
Hopefully, I could fix this gap this week and send out v2.
--yliu
Quoted 9 lines · Yuanhan Liu
It seems that we have exactly the same test environment set up: I have one server (where I normally do vhost test there) and one desktop (my dev box),
On both hosts, there is an ovs bridge, with IP address 192.168.100.1 assigned manually. Later, I started a VM on the server, and manually assigned IP to 192.168.100.10. I then run "ping 192.168.100.1" for live migration testing.
Quoted 4 lines
The migration to my desktop somehow works (even though there are some bugs in this patch set), however, I did see what Pavel saw: about 12 packets has been lost, which means about 12 seconds the network is not working well.
Hi, Yuanhan,
I _guess_ the problem for ping might be: guest ARP entry for 192.168.100.1 is not updated. Or say, after guest migrated to host2 from host1, guest is still trying to send packet to host1's NIC (no one is telling it to update, right?), so no one is responding the ping. When the entry is expired, guest will resend the ARP request, and host2 will respond this time, with mac address on host2 provided this time. After that, ping works again.
(not familiar with OVS too, so am just taking it as a "vritual" switch)
Thanks.
Peter
Quoted 17 lines · Peter Xu
Quoted 9 lines · Yuanhan Liu
It seems that we have exactly the same test environment set up: I have one server (where I normally do vhost test there) and one desktop (my dev box),
On both hosts, there is an ovs bridge, with IP address 192.168.100.1 assigned manually. Later, I started a VM on the server, and manually assigned IP to 192.168.100.10. I then run "ping 192.168.100.1" for live migration testing.
Quoted 4 lines
The migration to my desktop somehow works (even though there are some bugs in this patch set), however, I did see what Pavel saw: about 12 packets has been lost, which means about 12 seconds the network is not working well.
Hi, Yuanhan,
Quoted 7 lines
I _guess_ the problem for ping might be: guest ARP entry for 192.168.100.1 is not updated. Or say, after guest migrated to host2 from host1, guest is still trying to send packet to host1's NIC (no one is telling it to update, right?), so no one is responding the ping. When the entry is expired, guest will resend the ARP request, and host2 will respond this time, with mac address on host2 provided this time. After that, ping works again.
Peter,
Thanks for your input, and that sounds reasonable. You just reminded me that the host1's NIC is indeed different with host2's NIC: the ovs bridge mac address is different.
I then had a quick try, setting the two ovs bridge with same mac address, and it works like a charm: the gap is gone :)
--yliu
Quoted 6 lines
(not familiar with OVS too, so am just taking it as a "vritual" switch)
Thanks.
Peter
Quoted 8 lines · Yuanhan Liu
Peter,
Thanks for your input, and that sounds reasonable. You just reminded me that the host1's NIC is indeed different with host2's NIC: the ovs bridge mac address is different.
I then had a quick try, setting the two ovs bridge with same mac address, and it works like a charm: the gap is gone :)
Good to know that. :)
I will try to do some tests too using the patchset. Not sure whether I will encounter the same KVM warning (seems related to APIC, however still could not tell more than that). Will update you if there is anything helpful.
Peter
Quoted 2 lines
--yliu
Quoted 10 lines · Peter Xu
Quoted 8 lines · Yuanhan Liu
Peter,
Thanks for your input, and that sounds reasonable. You just reminded me that the host1's NIC is indeed different with host2's NIC: the ovs bridge mac address is different.
I then had a quick try, setting the two ovs bridge with same mac address, and it works like a charm: the gap is gone :)
Quoted 6 lines
Good to know that. :)
I will try to do some tests too using the patchset. Not sure whether I will encounter the same KVM warning (seems related to APIC, however still could not tell more than that). Will update you if there is anything helpful.
Appreciate that! It'd be good if you could test with my v2 patch set:
hopefully I could cook it up by the end of tomorrow.
--yliu
Hello!
Quoted 8 lines
Quoted 7 lines
I _guess_ the problem for ping might be: guest ARP entry for 192.168.100.1 is not updated. Or say, after guest migrated to host2 from host1, guest is still trying to send packet to host1's NIC (no one is telling it to update, right?), so no one is responding the ping. When the entry is expired, guest will resend the ARP request, and host2 will respond this time, with mac address on host2 provided this time. After that, ping works again.
Quoted 5 lines
Peter,
Thanks for your input, and that sounds reasonable. You just reminded me that the host1's NIC is indeed different with host2's NIC: the ovs bridge mac address is different.
Yes, this is indeed what is happening, and actually i already wrote about it. In wireshark it looks exactly like that: the some
PINGs are sent without replies, then the guest redoes ARP, PING replies resume.
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
Quoted 10 lines · Peter Xu
Quoted 3 lines · Pavel Fedin
BTW, it works, and it was my bad. openvswitch was configured incorrectly on the other side, vhost port number was different for
some reason, while ruleset was the same. I reconfigured it and now everything migrates correctly, except increased downtime because of missing GARP (the guest misses some PINGs, then it retries ARP, which brings the link back up).Hi,
When doing the ping, was it from the guest (to another host) or to the guest (from another host)?
Quoted 7 lines
In any case, I still could not understand why the ping loss happened in this test.
If ping from guest, no ARP refresh is required at all?
If ping to guest from outside, when the migration finishes on the target side of qemu,
qemu_self_announce()will be called.
It's supposed to see some ARP requests if I run tcpdump against with the ovs bridge, right? However, in fact, I saw nothing from tcpdump on the target host when the migration is done.
I mean I do find that qemu_annouce_self composes an ARP broadcoast request, but it seems that I didn't catch it on the target host.
Something wrong, or someting I missed?
--yliu
Quoted 10 lines
Although
we might see a warning like "Vhost user backend fails to broadcast fake RARP" (notify is done by hackingvhost_user_receive(), even if notify fails, things will still move on), QEMU should still send a RARP onto the link.Not sure whether I missed anything.
Thanks.
Peter
Hello!
Quoted 5 lines
I mean I do find that
qemu_annouce_selfcomposes an ARP broadcoast request, but it seems that I didn't catch it on the target host.Something wrong, or someting I missed?
To tell the truth, i don't know. I am also learning qemu internals on the fly. Indeed, i see that it should announce itself. But
this brings up a question: why do we need special announce procedure in vhost-user then?
I think you can add some debug output and see how it works in realtime. This is what i normally do when i don't understand in which
sequence things happen.
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
Quoted 9 lines · Pavel Fedin
Hello!
Quoted 5 lines
I mean I do find that
qemu_annouce_selfcomposes an ARP broadcoast request, but it seems that I didn't catch it on the target host.Something wrong, or someting I missed?
To tell the truth, i don't know. I am also learning qemu internals on the fly. Indeed, i see that it should announce itself.
I was acutally asking Peter. Sorry for not making it clear and thanks for your reply, anyway :)
Quoted 2 lines
But
this brings up a question: why do we need special announce procedure in vhost-user then?
Note quite sure. I found Thibaut submitted a patch to send VHOST_USER_SEND_RARP request after migration is done months ago. Thibaut, would you please elaborate it a bit more what should be done on vhost-user backend? To construct a gratuitous ARP request and broadcast it?
Quoted 2 lines
I think you can add some debug output and see how it works in realtime. This is what i normally do when i don't understand in which
sequence things happen.
Thanks.
--yliu
Quoted 6 lines
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
Hello!
Quoted 5 lines
Note quite sure. I found Thibaut submitted a patch to send
VHOST_USER_SEND_RARPrequest after migration is done months ago. Thibaut, would you please elaborate it a bit more what should be done on vhost-user backend? To construct a gratuitous ARP request and broadcast it?
By the way, some more info for you all.
1. I've just examined qemu_announce_self() and i see that IPs are all set to 0 in the packet it generates. It's quite logical because qemu has no idea what address is used by the guest, even more, theoretically it could be not IPv4 at all. But then - how can it work at all, and what's the use for this packet?
2. I tried to work around if by adding VIRTIO_NET_F_GUEST_ANNOUNCE. I expected that the guest will see it and make announcement by itself. But result was quite the opposite - PING stopped working at all, right from the beginning, even without migration.
Can local qemu/DPDK/etc gurus give some explanation?
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
Quoted 2 lines · Pavel Fedin
To tell the truth, i don't know. I am also learning qemu internals on the fly. Indeed, i see that it should announce itself. But
this brings up a question: why do we need special announce procedure in vhost-user then?
I have the same question. Here is my guess...
In customized networks, maybe people are not using ARP at all? When we use DPDK, we directly pass through the network logic inside kernel itself. So logically all the network protocols could be customized by the user of it. In the customized network, maybe there is some other protocol (rather than RARP) that would do the same thing as what ARP/RARP does. So, this SEND_RARP request could give the vhost-user backend a chance to format its own announce packet and broadcast (in the SEND_RARP request, the guest's mac address will be appended).
CCing Victor to better know the truth...
Peter
Quoted 18 lines · Peter Xu
Quoted 1 line · Pavel Fedin
To tell the truth, i don't know. I am also learning qemu internals on
the fly. Indeed, i see that it should announce itself. But
Quoted 1 line
this brings up a question: why do we need special announce procedure in
vhost-user then?
I have the same question. Here is my guess...
In customized networks, maybe people are not using ARP at all? When we use DPDK, we directly pass through the network logic inside kernel itself. So logically all the network protocols could be customized by the user of it. In the customized network, maybe there is some other protocol (rather than RARP) that would do the same thing as what ARP/RARP does. So, this
SEND_RARPrequest could give the vhost-user backend a chance to format its own announce packet and broadcast (in theSEND_RARPrequest, the guest's mac address will be appended).
Quoted 4 lines
CCing Victor to better know the truth...
Peter
Hi,
After a migration, to avoid network outage, the guest must announce its new location to the L2 layer, typically with a GARP. Otherwise requests sent to the guest arrive to the old host until a ARP request is sent (after 30 seconds) or the guest sends some data.
QEMU implementation of self announce after a migration with a vhost backend is the following:
- If the VIRTIO_GUEST_ANNOUNCE feature has been negotiated the guest sends
automatically a GARP.
- Else if the vhost backend implements VHOST_USER_SEND_RARP this request
is sent to the vhost backend. When this message is received the vhost backend must act as it receives a RARP from the guest (purpose of this RARP is to update switches' MAC->port maaping as a GARP). This RARP is a false one, created by the vhost backend,
- Else nothing is done and we have a network outage until a ARP is sent or
the guest sends some data.
VIRTIO_GUEST_ANNOUNCE feature is negotiated if:
- the vhost backend announces the support of this feature. Maybe QEMU can
be updated to support unconditionnaly this feature
- the virtio driver of the guest implements this feature. It is not the
case for old kernel or dpdk virtio pmd.
Regarding dpdk to have a migration of vhost interface with limited network outage we have to:
- Implement management VHOST_USER_SEND_RARP request to emulate a fake
RARP for guest
To do that we have to consider two kinds of guest:
1. Guest with virtio driver implementing VIRTIO_GUEST_ANNOUNCE feature
2. Guest with virtio driver that does not have the VIRTIO_GUEST_ANNOUNCE
feature. This is the case with old kernel or guest running a dpdk (virtio pmd of dpdk does not have this feature)
Guest with VIRTIO_GUEST_ANNOUNCE feature sends automatically some GARP after a migration if this feature has been negotiated. So the only thing to do it is to negotiate the VIRTIO_GUEST_ANNOUNCE feature between QEMU, vhost backend and the guest.
For this kind of guest the vhost-backend must announce the support of VIRTIO_GUEST_ANNOUNCE feature. As vhost-backend has no particular action to do in this case the support of VIRTIO_GUEST_ANNOUNCE feature can be unconditionally set in QEMU in the future.
For guest without VIRTIO_GUEST_ANNOUNCE feature we have to send a fake
RARP: QEMU knows the MAC address of the guest and can create and broadcast a RARP. But in case of vhost-backend QEMU is not able to broadcast this fake RARP and must ask to the vhost backend to do it through the VHOST_USER_SEND_RARP request. When the vhost backend receives this message it must create a fake RARP message (as done by QEMU) and do the appropriate operation as this message has been sent by the guest through the virtio rings.
To solve this point 2 solutions are implemented:
- After the migration the guest automatically sends GARP. This solution
occurs if VIRTIO_GUEST_ANNOUNCE feature has been negotiated between QEMU and the guest.
* VIRTIO_GUEST_ANNOUNCE
Quoted 85 lines · Thibaut Collet
Quoted 18 lines · Peter Xu
Quoted 1 line · Pavel Fedin
To tell the truth, i don't know. I am also learning qemu internals on
the fly. Indeed, i see that it should announce itself. But
Quoted 1 line
this brings up a question: why do we need special announce procedure in
vhost-user then?
I have the same question. Here is my guess...
In customized networks, maybe people are not using ARP at all? When we use DPDK, we directly pass through the network logic inside kernel itself. So logically all the network protocols could be customized by the user of it. In the customized network, maybe there is some other protocol (rather than RARP) that would do the same thing as what ARP/RARP does. So, this
SEND_RARPrequest could give the vhost-user backend a chance to format its own announce packet and broadcast (in theSEND_RARPrequest, the guest's mac address will be appended).Quoted 4 lines
CCing Victor to better know the truth...
Peter
Hi,
After a migration, to avoid network outage, the guest must announce its new location to the L2 layer, typically with a GARP. Otherwise requests sent to the guest arrive to the old host until a ARP request is sent (after 30 seconds) or the guest sends some data.
QEMU implementation of self announce after a migration with a vhost backend is the following:
- If theVIRTIO_GUEST_ANNOUNCEfeature has been negotiated the guest
sends automatically a GARP.
- Else if the vhost backend implementsVHOST_USER_SEND_RARPthis request
is sent to the vhost backend. When this message is received the vhost backend must act as it receives a RARP from the guest (purpose of this RARP is to update switches'MAC->portmaaping as a GARP). This RARP is a false one, created by the vhost backend,
- Else nothing is done and we have a network outage until a ARP is sent
or the guest sends some data.
VIRTIO_GUEST_ANNOUNCEfeature is negotiated if:
- the vhost backend announces the support of this feature. Maybe QEMU
can be updated to support unconditionnaly this feature
- the virtio driver of the guest implements this feature. It is not the
case for old kernel or dpdk virtio pmd.Regarding dpdk to have a migration of vhost interface with limited network outage we have to:
- Implement management
VHOST_USER_SEND_RARPrequest to emulate a fake
RARP for guestTo do that we have to consider two kinds of guest:
1. Guest with virtio driver implementingVIRTIO_GUEST_ANNOUNCEfeature
2. Guest with virtio driver that does not have theVIRTIO_GUEST_ANNOUNCE
feature. This is the case with old kernel or guest running a dpdk (virtio pmd of dpdk does not have this feature)Guest with
VIRTIO_GUEST_ANNOUNCEfeature sends automatically some GARP after a migration if this feature has been negotiated. So the only thing to do it is to negotiate theVIRTIO_GUEST_ANNOUNCEfeature between QEMU, vhost backend and the guest.
For this kind of guest the vhost-backend must announce the support ofVIRTIO_GUEST_ANNOUNCEfeature. As vhost-backend has no particular action to do in this case the support ofVIRTIO_GUEST_ANNOUNCEfeature can be unconditionally set in QEMU in the future.For guest without
VIRTIO_GUEST_ANNOUNCEfeature we have to send a fake
RARP: QEMU knows the MAC address of the guest and can create and broadcast a RARP. But in case of vhost-backend QEMU is not able to broadcast this fake RARP and must ask to the vhost backend to do it through theVHOST_USER_SEND_RARPrequest. When the vhost backend receives this message it must create a fake RARP message (as done by QEMU) and do the appropriate operation as this message has been sent by the guest through the virtio rings.
Quoted 6 lines
To solve this point 2 solutions are implemented:
- After the migration the guest automatically sends GARP. This solution
occurs ifVIRTIO_GUEST_ANNOUNCEfeature has been negotiated between QEMU and the guest.
*VIRTIO_GUEST_ANNOUNCE
Sorry my previous message will be sent by error (it is a draft with rework in progress)
The full explanation are:
Hi,
After a migration, to avoid network outage, the guest must announce its new location to the L2 layer, typically with a GARP. Otherwise requests sent to the guest arrive to the old host until a ARP request is sent (after 30 seconds) or the guest sends some data.
QEMU implementation of self announce after a migration with a vhost backend is the following:
- If the VIRTIO_GUEST_ANNOUNCE feature has been negotiated the guest sends
automatically a GARP.
- Else if the vhost backend implements VHOST_USER_SEND_RARP this request
is sent to the vhost backend. When this message is received the vhost backend must act as it receives a RARP from the guest (purpose of this RARP is to update switches' MAC->port maaping as a GARP). This RARP is a false one, created by the vhost backend,
- Else nothing is done and we have a network outage until a ARP is sent or
the guest sends some data.
VIRTIO_GUEST_ANNOUNCE feature is negotiated if:
- the vhost backend announces the support of this feature. Maybe QEMU can
be updated to support unconditionnaly this feature
- the virtio driver of the guest implements this feature. It is not the
case for old kernel or dpdk virtio pmd.
Regarding dpdk to have a migration of vhost interface with limited network outage we have to:
- In the vhost pmd
* Announce supports of VIRTIO_GUEST_ANNOUNCE feature
* Implement management of VHOST_USER_SEND_RARP request to emulate a
fake RARP if the VIRTIO_GUEST_ANNOUNCE feature is not implemented by the guest
- In the virtio pmd
* Support VIRTIO_GUEST_ANNOUNCE feature to avoid RARP emission by
the host after a migration.
Hope this explanation will help
Regards.
Thibaut.
Hello!
Quoted 8 lines
After a migration, to avoid network outage, the guest must announce its new location to the L2 layer, typically with a GARP. Otherwise requests sent to the guest arrive to the old host until a ARP request is sent (after 30 seconds) or the guest sends some data.
QEMU implementation of self announce after a migration with a vhost backend is the following:
- If theVIRTIO_GUEST_ANNOUNCEfeature has been negotiated the guest sends automatically a GARP.
- Else if the vhost backend implementsVHOST_USER_SEND_RARPthis request is sent to the vhost backend. When this message is received the vhost backend must act as it receives a RARP from the guest (purpose of this RARP is to update switches'MAC->portmaaping as a GARP). This RARP is a false one, created by the vhost backend,
- Else nothing is done and we have a network outage until a ARP is sent or the guest sends some data.
But what is qemu_announce_self() then? It's just unconditionally triggered after migration, but indeed sends some strange thing.
Quoted 2 lines
VIRTIO_GUEST_ANNOUNCEfeature is negotiated if:
- the vhost backend announces the support of this feature. Maybe QEMU can be updated to support unconditionnaly this feature
Wrong. I tried to unconditionally enforce it in qemu (my guest does support it), and the link stopped working at all. I don't understand why.
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
Quoted 11 lines · Pavel Fedin
Hello!
Quoted 8 lines
After a migration, to avoid network outage, the guest must announce its new location to the L2 layer, typically with a GARP. Otherwise requests sent to the guest arrive to the old host until a ARP request is sent (after 30 seconds) or the guest sends some data.
QEMU implementation of self announce after a migration with a vhost backend is the following:
- If theVIRTIO_GUEST_ANNOUNCEfeature has been negotiated the guest sends automatically a GARP.
- Else if the vhost backend implementsVHOST_USER_SEND_RARPthis request is sent to the vhost backend. When this message is received the vhost backend must act as it receives a RARP from the guest (purpose of this RARP is to update switches'MAC->portmaaping as a GARP). This RARP is a false one, created by the vhost backend,
- Else nothing is done and we have a network outage until a ARP is sent or the guest sends some data.
Quoted 6 lines
But what is
qemu_announce_self()then? It's just unconditionally triggered after migration, but indeed sends some strange thing.Quoted 2 lines
VIRTIO_GUEST_ANNOUNCEfeature is negotiated if:
- the vhost backend announces the support of this feature. Maybe QEMU can be updated to support unconditionnaly this featureWrong. I tried to unconditionally enforce it in qemu (my guest does support it), and the link stopped working at all. I don't understand why.
I'm wondering how did you do that? Why do you need enforece it in QEMU? Isn't it already supported so far?
Actually, what's we need to do is to add such feature bit in vhost library, to claim we support it so that the the guest will send a gratuitous ARP when migration is done (check virtio_net_load()).
----
(quoted diff) +0 -0
b/lib/librte_vhost/virtio-net.c
index 03044f6..0ba5045 100644
lib/librte_vhost/virtio-net.c +1 -0
@@ -74,6 +74,7 @@ static struct virtio_net_config_ll *ll_root;#define VHOST_SUPPORTED_FEATURES ((1ULL << VIRTIO_NET_F_MRG_RXBUF) | \ (1ULL << VIRTIO_NET_F_CTRL_VQ) | \ (1ULL << VIRTIO_NET_F_CTRL_RX) | \ + (1ULL << VIRTIO_NET_F_GUEST_ANNOUNCE) | \ (VHOST_SUPPORTS_MQ) | \ (1ULL << VIRTIO_F_VERSION_1) | \ (1ULL << VHOST_F_LOG_ALL) | \
However, I found the GARP is not sent out at all, due to an error I met and reported before:
KVM: injection failed, MSI lost (Operation not permitted)
Which happened at the time QEMU is about to send the interrupt to the guest for announce event. However, it failed, hence no GARP was received.
One thing worth noting is that it happened only when I did live migration on two different hosts (the two hosts happened to be using a same old
kernel: v3.11.10). It works pretty well on same host. So, seems like a KVM bug then?
--yliu
Hello!
Quoted 5 lines
Quoted 1 line
Wrong. I tried to unconditionally enforce it in qemu (my guest does support it), and the
link stopped working at all. I don't understand why.
I'm wondering how did you do that? Why do you need enforece it in QEMU? Isn't it already supported so far?
I mean - qemu first asks vhost-user server (ovs/DPDK in our case) about capabilities, then negotiates them with the guest. And DPDK
doesn't report VIRTIO_NET_F_GUEST_ANNOUNCE, so i just ORed this flag in qemu before the negotiation with guest (because indeed my logic says that the host should not do anything special about it). So the overall effect is the same as in your patch
lib/librte_vhost/virtio-net.c static struct virtio_net_config_ll *ll_root; · line 80
Quoted 13 lines
lib/librte_vhost/virtio-net.c +1
-0@@ -74,6 +74,7 @@ static struct virtio_net_config_ll *ll_root;#define VHOST_SUPPORTED_FEATURES ((1ULL << VIRTIO_NET_F_MRG_RXBUF) | \ (1ULL << VIRTIO_NET_F_CTRL_VQ) | \ (1ULL << VIRTIO_NET_F_CTRL_RX) | \ + (1ULL << VIRTIO_NET_F_GUEST_ANNOUNCE) | \ (VHOST_SUPPORTS_MQ) | \ (1ULL << VIRTIO_F_VERSION_1) | \ (1ULL << VHOST_F_LOG_ALL) | \
But i was somehow wrong and this causes the whole thing to stop working instead. Even after just booting up the network doesn't
work and PINGs do not pass.
Quoted 4 lines
However, I found the GARP is not sent out at all, due to an error I met and reported before:
KVM: injection failed, MSI lost (Operation not permitted)
Interesting, i don't have this problem here. Some bug in your kernel/hardware?
Quoted 4 lines
One thing worth noting is that it happened only when I did live migration on two different hosts (the two hosts happened to be using a same old
kernel: v3.11.10). It works pretty well on same host. So, seems like a KVM bug then?
3.18.9 here and no this problem.
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
Quoted 11 lines · Pavel Fedin
Hello!
Quoted 5 lines
Quoted 1 line
Wrong. I tried to unconditionally enforce it in qemu (my guest does support it), and the
link stopped working at all. I don't understand why.
I'm wondering how did you do that? Why do you need enforece it in QEMU? Isn't it already supported so far?
I mean - qemu first asks vhost-user server (ovs/DPDK in our case) about capabilities, then negotiates them with the guest. And DPDK
doesn't reportVIRTIO_NET_F_GUEST_ANNOUNCE, so i just ORed this flag in qemu before the negotiation with guest (because indeed my logic says that the host should not do anything special about it). So the overall effect is the same as in your patch
I see.
Quoted 17 lines
Quoted 7 lines
lib/librte_vhost/virtio-net.c +0
-0lib/librte_vhost/virtio-net.c static struct virtio_net_config_ll *ll_root; · line 80
Quoted 7 lines
lib/librte_vhost/virtio-net.c +1
-0@@ -74,6 +74,7 @@ static struct virtio_net_config_ll *ll_root;#define VHOST_SUPPORTED_FEATURES ((1ULL << VIRTIO_NET_F_MRG_RXBUF) | \ (1ULL << VIRTIO_NET_F_CTRL_VQ) | \ (1ULL << VIRTIO_NET_F_CTRL_RX) | \ + (1ULL << VIRTIO_NET_F_GUEST_ANNOUNCE) | \ (VHOST_SUPPORTS_MQ) | \ (1ULL << VIRTIO_F_VERSION_1) | \ (1ULL << VHOST_F_LOG_ALL) | \But i was somehow wrong and this causes the whole thing to stop working instead. Even after just booting up the network doesn't
work and PINGs do not pass.
No idea. Maybe you have changed some other configures (such as of ovs) without notice? Or, the ovs bridge interface resets?
BTW, would you please try my v1 patch set with above diff applied to see if the ping loss is still there. You might also want to run tcpdump with the dest host ovs bridge, to see if GARP is actually sent.
Quoted 5 lines
Quoted 5 lines
However, I found the GARP is not sent out at all, due to an error I met and reported before:
KVM: injection failed, MSI lost (Operation not permitted)
I was thinking that may be caused by the difference of my two hosts (a desktop and a server). I will try to find two similar hosts tomorrow to do more tests. Besides that, it'd be great if you could do a more test with above diff applied.
--yliu
Quoted 15 lines
Interesting, i don't have this problem here. Some bug in your kernel/hardware?
Quoted 4 lines
One thing worth noting is that it happened only when I did live migration on two different hosts (the two hosts happened to be using a same old
kernel: v3.11.10). It works pretty well on same host. So, seems like a KVM bug then?3.18.9 here and no this problem.
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
Hello!
Quoted 2 lines
No idea. Maybe you have changed some other configures (such as of ovs) without notice? Or, the ovs bridge interface resets?
I don't touch the ovs at all. Just shut down the guest, rebuild the qemu, reinstall it, run the guest.
Quoted 4 lines
BTW, would you please try my v1 patch set with above diff applied to see if the ping loss is still there. You might also want to run tcpdump with the dest host ovs bridge, to see if GARP is actually sent.
Retested with wireshark running on the host. I used my qemu patch instead, but it should not matter at all:
--- cut ---
hw/virtio/vhost-user.c +6 -1
@@ -480,7 +480,12 @@ static int vhost_user_get_u64(struct vhost_dev *dev, int request, uint64_t *u64)static int vhost_user_get_features (struct vhost_dev *dev,uint64_t *features) { -return vhost_user_get_u64 (dev,VHOST_USER_GET_FEATURES , features); +int ret =vhost_user_get_u64 (dev,VHOST_USER_GET_FEATURES , features); + +if (!ret) { +virtio_add_feature (features,VIRTIO_NET_F_GUEST_ANNOUNCE ); + } +return ret; }static int vhost_user_set_owner (struct vhost_dev *dev)
--- cut ---
So, here are both wireshark captures on the host side:
1. Without the patch
root@nfv_test_x86_64 / # tshark -i ovs-br0
Running as user "root" and group "root". This could be dangerous. Capturing on 'ovs-br0'
1 0.000000 :: -> ff02::16 ICMPv6 90 Multicast Listener Report Message v2 2 0.003304 RealtekU_3b:83:1a -> Broadcast ARP 42 Gratuitous ARP for 192.168.6.2 (Reply) 3 0.669957 :: -> ff02::16 ICMPv6 90 Multicast Listener Report Message v2 4 0.858957 :: -> ff02::1:ff3b:831a ICMPv6 78 Neighbor Solicitation for fe80::5054:ff:fe3b:831a 5 1.858968 fe80::5054:ff:fe3b:831a -> ff02::16 ICMPv6 90 Multicast Listener Report Message v2 6 2.300948 fe80::5054:ff:fe3b:831a -> ff02::16 ICMPv6 90 Multicast Listener Report Message v2 7 2.527088 fe80::5054:ff:fe3b:831a -> ff02::2 ICMPv6 62 Router Solicitation 8 2.527800 RealtekU_3b:83:1a -> Broadcast ARP 42 Gratuitous ARP for 192.168.6.2 (Request) 9 6.526814 fe80::5054:ff:fe3b:831a -> ff02::2 ICMPv6 62 Router Solicitation 10 10.526993 fe80::5054:ff:fe3b:831a -> ff02::2 ICMPv6 62 Router Solicitation 11 15.984632 RealtekU_3b:83:1a -> Broadcast ARP 42 Who has 192.168.6.1? Tell 192.168.6.2 12 15.984643 be:e1:71:c1:47:4d -> RealtekU_3b:83:1a ARP 42 192.168.6.1 is at be:e1:71:c1:47:4d 13 15.984772 192.168.6.2 -> 192.168.6.1 ICMP 98 Echo (ping) request id=0x0477, seq=1/256, ttl=64 14 15.984798 192.168.6.1 -> 192.168.6.2 ICMP 98 Echo (ping) reply id=0x0477, seq=1/256, ttl=64 (request in 13) 15 16.984970 192.168.6.2 -> 192.168.6.1 ICMP 98 Echo (ping) request id=0x0477, seq=2/512, ttl=64 16 16.984991 192.168.6.1 -> 192.168.6.2 ICMP 98 Echo (ping) reply id=0x0477, seq=2/512, ttl=64 (request in 15) 17 17.984956 192.168.6.2 -> 192.168.6.1 ICMP 98 Echo (ping) request id=0x0477, seq=3/768, ttl=64 18 17.984975 192.168.6.1 -> 192.168.6.2 ICMP 98 Echo (ping) reply id=0x0477, seq=3/768, ttl=64 (request in 17) 19 20.994535 be:e1:71:c1:47:4d -> RealtekU_3b:83:1a ARP 42 Who has 192.168.6.2? Tell 192.168.6.1 20 20.994637 RealtekU_3b:83:1a -> be:e1:71:c1:47:4d ARP 42 192.168.6.2 is at 52:54:00:3b:83:1a
^C20 packets captured
2. With the patch
root@nfv_test_x86_64 / # tshark -i ovs-br0
Running as user "root" and group "root". This could be dangerous. Capturing on 'ovs-br0'
1 0.000000 :: -> ff02::16 ICMPv6 90 Multicast Listener Report Message v2 2 0.000969 RealtekU_3b:83:1a -> Broadcast ARP 42 Gratuitous ARP for 192.168.6.2 (Reply) 3 0.156966 :: -> ff02::1:ff3b:831a ICMPv6 78 Neighbor Solicitation for fe80::5054:ff:fe3b:831a 4 0.536948 :: -> ff02::16 ICMPv6 90 Multicast Listener Report Message v2 5 1.156968 fe80::5054:ff:fe3b:831a -> ff02::16 ICMPv6 90 Multicast Listener Report Message v2 6 1.312708 fe80::5054:ff:fe3b:831a -> ff02::2 ICMPv6 62 Router Solicitation 7 1.629960 fe80::5054:ff:fe3b:831a -> ff02::16 ICMPv6 90 Multicast Listener Report Message v2 8 2.314713 RealtekU_3b:83:1a -> Broadcast ARP 42 Gratuitous ARP for 192.168.6.2 (Request) 9 5.313333 fe80::5054:ff:fe3b:831a -> ff02::2 ICMPv6 62 Router Solicitation 10 9.315486 fe80::5054:ff:fe3b:831a -> ff02::2 ICMPv6 62 Router Solicitation 11 21.536450 RealtekU_3b:83:1a -> Broadcast ARP 42 Who has 192.168.6.1? Tell 192.168.6.2 12 21.536461 be:e1:71:c1:47:4d -> RealtekU_3b:83:1a ARP 42 192.168.6.1 is at be:e1:71:c1:47:4d 13 22.538937 RealtekU_3b:83:1a -> Broadcast ARP 42 Who has 192.168.6.1? Tell 192.168.6.2 14 22.538943 be:e1:71:c1:47:4d -> RealtekU_3b:83:1a ARP 42 192.168.6.1 is at be:e1:71:c1:47:4d 15 23.540937 RealtekU_3b:83:1a -> Broadcast ARP 42 Who has 192.168.6.1? Tell 192.168.6.2 16 23.540942 be:e1:71:c1:47:4d -> RealtekU_3b:83:1a ARP 42 192.168.6.1 is at be:e1:71:c1:47:4d 17 25.537519 RealtekU_3b:83:1a -> Broadcast ARP 42 Who has 192.168.6.1? Tell 192.168.6.2 18 25.537525 be:e1:71:c1:47:4d -> RealtekU_3b:83:1a ARP 42 192.168.6.1 is at be:e1:71:c1:47:4d 19 26.538939 RealtekU_3b:83:1a -> Broadcast ARP 42 Who has 192.168.6.1? Tell 192.168.6.2 20 26.538944 be:e1:71:c1:47:4d -> RealtekU_3b:83:1a ARP 42 192.168.6.1 is at be:e1:71:c1:47:4d 21 27.540937 RealtekU_3b:83:1a -> Broadcast ARP 42 Who has 192.168.6.1? Tell 192.168.6.2 22 27.540942 be:e1:71:c1:47:4d -> RealtekU_3b:83:1a ARP 42 192.168.6.1 is at be:e1:71:c1:47:4d 23 29.538475 RealtekU_3b:83:1a -> Broadcast ARP 42 Who has 192.168.6.1? Tell 192.168.6.2 24 29.538482 be:e1:71:c1:47:4d -> RealtekU_3b:83:1a ARP 42 192.168.6.1 is at be:e1:71:c1:47:4d 25 30.538935 RealtekU_3b:83:1a -> Broadcast ARP 42 Who has 192.168.6.1? Tell 192.168.6.2 26 30.538941 be:e1:71:c1:47:4d -> RealtekU_3b:83:1a ARP 42 192.168.6.1 is at be:e1:71:c1:47:4d 27 31.540935 RealtekU_3b:83:1a -> Broadcast ARP 42 Who has 192.168.6.1? Tell 192.168.6.2 28 31.540941 be:e1:71:c1:47:4d -> RealtekU_3b:83:1a ARP 42 192.168.6.1 is at be:e1:71:c1:47:4d
^C28 packets captured
Obviously, the guest simply doesn't read incoming packets. ifconfig for the interface on guest side shows:
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 9 overruns 0 frame 9
BTW, number 9 exactly matches the number of ARP replies from the host. The question is - why? Looks like guest behavior changes
somehow. Is it a bug in guest? It's very strange, because in these sessions i see only one difference in IPv6 packets:
4 0.858957 :: -> ff02::1:ff3b:831a ICMPv6 78 Neighbor Solicitation for fe80::5054:ff:fe3b:831a
This is present in session #1 and missing from session #2. Can it affect the whole thing somehow? But i don't even use IPv6.
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
Quoted 25 lines · Pavel Fedin
Hello!
Quoted 2 lines
No idea. Maybe you have changed some other configures (such as of ovs) without notice? Or, the ovs bridge interface resets?
I don't touch the ovs at all. Just shut down the guest, rebuild the qemu, reinstall it, run the guest.
Quoted 4 lines
BTW, would you please try my v1 patch set with above diff applied to see if the ping loss is still there. You might also want to run tcpdump with the dest host ovs bridge, to see if GARP is actually sent.
Retested with wireshark running on the host. I used my qemu patch instead, but it should not matter at all:
--- cut ---hw/virtio/vhost-user.c +2
-1@@ -480,7 +480,12 @@ static int vhost_user_get_u64(struct vhost_dev *dev, int request, uint64_t *u64)static int vhost_user_get_features (struct vhost_dev *dev,uint64_t *features) { -return vhost_user_get_u64 (dev,VHOST_USER_GET_FEATURES , features); +int ret =vhost_user_get_u64 (dev,VHOST_USER_GET_FEATURES , features); +
hw/virtio/vhost-user.c static int vhost_user_get_u64(struct vhost_dev *dev, int request, uint64_t *u64)
Quoted 10 lines
hw/virtio/vhost-user.c +4
-1+if (!ret) { +virtio_add_feature (features,VIRTIO_NET_F_GUEST_ANNOUNCE ); + } +return ret; } static int vhost_user_set_owner(struct vhost_dev *dev) --- cut --- So, here are both wireshark captures on the host side:
Pavel,
I can reproduce your issue on my side with above patch (and only when F_GUEST_ANNOUNCE is not set at DPDK vhost lib). TBH, I don't know why that happened, the cause could be subtle, and I don't think it's worthwhile to dig it, especially it's not the right way to do it.
So, would you please try to set the F_GUEST_ANNOUNCE flag on DPDK vhost lib side, as my early diff showed and have another test?
On the other hand, I failed to find two identical server, the two closet I found are E5-2695 and E5-2699, However, the MSI lost fatal bug still occurred. I'm out of thoughts what could be the root cause. I'm asking help from som KVM gurus; hopefully they could shine some lights on. Meanwhile, I may need try to debug it.
Since you don't meet such issue, I'd hope you could have a test and tell me how it works :)
Thanks.
--yliu
Hello!
Quoted 4 lines
I can reproduce your issue on my side with above patch (and only when
F_GUEST_ANNOUNCEis not set at DPDK vhost lib). TBH, I don't know why that happened, the cause could be subtle, and I don't think it's worthwhile to dig it, especially it's not the right way to do it.
May be not right, may be it can be done... Actually, i found what was wrong. qemu tries to feed features back to vhost-user viaVHOST_USER_SET_FEATURES, and DPDK barfs on the unknown bit. More tweaking is needed for qemu to do the trick correctly.
Quoted 2 lines
So, would you please try to set the
F_GUEST_ANNOUNCEflag on DPDK vhost lib side, as my early diff showed and have another test?
Tried it, works fine, thank you.
I have almost implemented the workaround in qemu... However now i start to think that you are right. Theoretically, the application
may want to suppress GUEST_ANNOUNCE for some reason. So, let it stay this way. Please include this bit into your v2.
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
Quoted 7 lines · Pavel Fedin
Hello!
Quoted 4 lines
I can reproduce your issue on my side with above patch (and only when
F_GUEST_ANNOUNCEis not set at DPDK vhost lib). TBH, I don't know why that happened, the cause could be subtle, and I don't think it's worthwhile to dig it, especially it's not the right way to do it.
Quoted 7 lines
May be not right, may be it can be done... Actually, i found what was wrong. qemu tries to feed features back to vhost-user via
VHOST_USER_SET_FEATURES, and DPDK barfs on the unknown bit. More tweaking is needed for qemu to do the trick correctly.Quoted 2 lines
So, would you please try to set the
F_GUEST_ANNOUNCEflag on DPDK vhost lib side, as my early diff showed and have another test?Tried it, works fine, thank you.
Thanks for the test.
However, I'm more curious about the ping loss? Did you still see that? And to be more specific, have the wireshark captured the GRAP from the guest? And what's the output of 'grep virtio /proc/interrupts' inside guest?
--yliu
Quoted 8 lines
I have almost implemented the workaround in qemu... However now i start to think that you are right. Theoretically, the application
may want to suppressGUEST_ANNOUNCEfor some reason. So, let it stay this way. Please include this bit into your v2.Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
Hello!
Quoted 3 lines
However, I'm more curious about the ping loss? Did you still see that? And to be more specific, have the wireshark captured the GRAP from the guest?
Yes, everything is fine.
root@nfv_test_x86_64 /var/log/libvirt/qemu # tshark -i ovs-br0 Running as user "root" and group "root". This could be dangerous. Capturing on 'ovs-br0'
1 0.000000 RealtekU_3b:83:1a -> Broadcast ARP 42 Gratuitous ARP for 192.168.6.2 (Request)
2 0.000024 fe80::5054:ff:fe3b:831a -> ff02::1 ICMPv6 86 Neighbor Advertisement fe80::5054:ff:fe3b:831a (ovr) is at
52:54:00:3b:83:1a
3 0.049490 RealtekU_3b:83:1a -> Broadcast ARP 42 Gratuitous ARP for 192.168.6.2 (Request)
4 0.049497 fe80::5054:ff:fe3b:831a -> ff02::1 ICMPv6 86 Neighbor Advertisement fe80::5054:ff:fe3b:831a (ovr) is at
52:54:00:3b:83:1a
5 0.199485 RealtekU_3b:83:1a -> Broadcast ARP 42 Gratuitous ARP for 192.168.6.2 (Request)
6 0.199492 fe80::5054:ff:fe3b:831a -> ff02::1 ICMPv6 86 Neighbor Advertisement fe80::5054:ff:fe3b:831a (ovr) is at
52:54:00:3b:83:1a
7 0.449500 RealtekU_3b:83:1a -> Broadcast ARP 42 Gratuitous ARP for 192.168.6.2 (Request)
8 0.449508 fe80::5054:ff:fe3b:831a -> ff02::1 ICMPv6 86 Neighbor Advertisement fe80::5054:ff:fe3b:831a (ovr) is at
52:54:00:3b:83:1a
9 0.517229 192.168.6.2 -> 192.168.6.1 ICMP 98 Echo (ping) request id=0x04af, seq=70/17920, ttl=64 10 0.517277 192.168.6.1 -> 192.168.6.2 ICMP 98 Echo (ping) reply id=0x04af, seq=70/17920, ttl=64 (request in 9) 11 0.799521 RealtekU_3b:83:1a -> Broadcast ARP 42 Gratuitous ARP for 192.168.6.2 (Request) 12 0.799553 fe80::5054:ff:fe3b:831a -> ff02::1 ICMPv6 86 Neighbor Advertisement fe80::5054:ff:fe3b:831a (ovr) is at 52:54:00:3b:83:1a 13 1.517210 192.168.6.2 -> 192.168.6.1 ICMP 98 Echo (ping) request id=0x04af, seq=71/18176, ttl=64 14 1.517238 192.168.6.1 -> 192.168.6.2 ICMP 98 Echo (ping) reply id=0x04af, seq=71/18176, ttl=64 (request in 13) 15 2.517219 192.168.6.2 -> 192.168.6.1 ICMP 98 Echo (ping) request id=0x04af, seq=72/18432, ttl=64 16 2.517256 192.168.6.1 -> 192.168.6.2 ICMP 98 Echo (ping) reply id=0x04af, seq=72/18432, ttl=64 (request in 15) 17 3.517497 192.168.6.2 -> 192.168.6.1 ICMP 98 Echo (ping) request id=0x04af, seq=73/18688, ttl=64 18 3.517518 192.168.6.1 -> 192.168.6.2 ICMP 98 Echo (ping) reply id=0x04af, seq=73/18688, ttl=64 (request in 17) 19 4.517219 192.168.6.2 -> 192.168.6.1 ICMP 98 Echo (ping) request id=0x04af, seq=74/18944, ttl=64 20 4.517237 192.168.6.1 -> 192.168.6.2 ICMP 98 Echo (ping) reply id=0x04af, seq=74/18944, ttl=64 (request in 19) 21 5.517222 192.168.6.2 -> 192.168.6.1 ICMP 98 Echo (ping) request id=0x04af, seq=75/19200, ttl=64 22 5.517242 192.168.6.1 -> 192.168.6.2 ICMP 98 Echo (ping) reply id=0x04af, seq=75/19200, ttl=64 (request in 21) 23 6.517235 192.168.6.2 -> 192.168.6.1 ICMP 98 Echo (ping) request id=0x04af, seq=76/19456, ttl=64 24 6.517256 192.168.6.1 -> 192.168.6.2 ICMP 98 Echo (ping) reply id=0x04af, seq=76/19456, ttl=64 (request in 23) 25 6.531466 be:e1:71:c1:47:4d -> RealtekU_3b:83:1a ARP 42 Who has 192.168.6.2? Tell 192.168.6.1 26 6.531619 RealtekU_3b:83:1a -> be:e1:71:c1:47:4d ARP 42 192.168.6.2 is at 52:54:00:3b:83:1a 27 7.517212 192.168.6.2 -> 192.168.6.1 ICMP 98 Echo (ping) request id=0x04af, seq=77/19712, ttl=64 28 7.517229 192.168.6.1 -> 192.168.6.2 ICMP 98 Echo (ping) reply id=0x04af, seq=77/19712, ttl=64 (request in 27)
But there's one important detail here. Any replicated network interfaces (LOCAL port in my example) should be fully cloned on both
hosts, including MAC addresses. Otherwise after the migration the guest continues to send packets to old MAC, and, obvious, there's still ping loss until it redoes the ARP for its ping target.
Quoted 1 line
And what's the output of 'grep virtio
/proc/interrupts' inside guest?
11: 0 0 0 0 IO-APIC 11-fasteoi uhci_hcd:usb1, virtio3
24: 0 0 0 0 PCI-MSI 114688-edge virtio2-config 25: 3544 0 0 0 PCI-MSI 114689-edge virtio2-req.0 26: 10 0 0 0 PCI-MSI 49152-edge virtio0-config 27: 852 0 0 0 PCI-MSI 49153-edge virtio0-input.0 28: 3 0 0 0 PCI-MSI 49154-edge virtio0-output.0 29: 10 0 0 0 PCI-MSI 65536-edge virtio1-config 30: 172 0 0 0 PCI-MSI 65537-edge virtio1-input.0 31: 1 0 0 0 PCI-MSI 65538-edge virtio1-output.0
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
Quoted 6 lines · Pavel Fedin
rYR8N8f/ookveMRL7BfPnj5lw+EJZd+uG+v/lZnBuWidyQ4r
g586/P1rPsQw8p6wT+M7LnqvMLZM9eWq2ht53Bd5liqxFGckGmoxFxUnAgC5sFKthAIAAA==Status: O
Content-Length: 4853
Lines: 66
Quoted 7 lines
Hello!
Quoted 3 lines
However, I'm more curious about the ping loss? Did you still see that? And to be more specific, have the wireshark captured the GRAP from the guest?
Yes, everything is fine.
Great!
Quoted 38 lines
root@nfv_test_x86_64
/var/log/libvirt/qemu# tshark -i ovs-br0 Running as user "root" and group "root". This could be dangerous. Capturing on 'ovs-br0'
1 0.000000 RealtekU_3b:83:1a -> Broadcast ARP 42 Gratuitous ARP for 192.168.6.2 (Request)
2 0.000024 fe80::5054:ff:fe3b:831a -> ff02::1 ICMPv6 86 Neighbor Advertisement fe80::5054:ff:fe3b:831a (ovr) is at
52:54:00:3b:83:1a
3 0.049490 RealtekU_3b:83:1a -> Broadcast ARP 42 Gratuitous ARP for 192.168.6.2 (Request)
4 0.049497 fe80::5054:ff:fe3b:831a -> ff02::1 ICMPv6 86 Neighbor Advertisement fe80::5054:ff:fe3b:831a (ovr) is at
52:54:00:3b:83:1a
5 0.199485 RealtekU_3b:83:1a -> Broadcast ARP 42 Gratuitous ARP for 192.168.6.2 (Request)
6 0.199492 fe80::5054:ff:fe3b:831a -> ff02::1 ICMPv6 86 Neighbor Advertisement fe80::5054:ff:fe3b:831a (ovr) is at
52:54:00:3b:83:1a
7 0.449500 RealtekU_3b:83:1a -> Broadcast ARP 42 Gratuitous ARP for 192.168.6.2 (Request)
8 0.449508 fe80::5054:ff:fe3b:831a -> ff02::1 ICMPv6 86 Neighbor Advertisement fe80::5054:ff:fe3b:831a (ovr) is at
52:54:00:3b:83:1a9 0.517229 192.168.6.2 -> 192.168.6.1 ICMP 98 Echo (ping) request id=0x04af, seq=70/17920, ttl=64 10 0.517277 192.168.6.1 -> 192.168.6.2 ICMP 98 Echo (ping) reply id=0x04af, seq=70/17920, ttl=64 (request in 9) 11 0.799521 RealtekU_3b:83:1a -> Broadcast ARP 42 Gratuitous ARP for 192.168.6.2 (Request) 12 0.799553 fe80::5054:ff:fe3b:831a -> ff02::1 ICMPv6 86 Neighbor Advertisement fe80::5054:ff:fe3b:831a (ovr) is at 52:54:00:3b:83:1a 13 1.517210 192.168.6.2 -> 192.168.6.1 ICMP 98 Echo (ping) request id=0x04af, seq=71/18176, ttl=64 14 1.517238 192.168.6.1 -> 192.168.6.2 ICMP 98 Echo (ping) reply id=0x04af, seq=71/18176, ttl=64 (request in 13) 15 2.517219 192.168.6.2 -> 192.168.6.1 ICMP 98 Echo (ping) request id=0x04af, seq=72/18432, ttl=64 16 2.517256 192.168.6.1 -> 192.168.6.2 ICMP 98 Echo (ping) reply id=0x04af, seq=72/18432, ttl=64 (request in 15) 17 3.517497 192.168.6.2 -> 192.168.6.1 ICMP 98 Echo (ping) request id=0x04af, seq=73/18688, ttl=64 18 3.517518 192.168.6.1 -> 192.168.6.2 ICMP 98 Echo (ping) reply id=0x04af, seq=73/18688, ttl=64 (request in 17) 19 4.517219 192.168.6.2 -> 192.168.6.1 ICMP 98 Echo (ping) request id=0x04af, seq=74/18944, ttl=64 20 4.517237 192.168.6.1 -> 192.168.6.2 ICMP 98 Echo (ping) reply id=0x04af, seq=74/18944, ttl=64 (request in 19) 21 5.517222 192.168.6.2 -> 192.168.6.1 ICMP 98 Echo (ping) request id=0x04af, seq=75/19200, ttl=64 22 5.517242 192.168.6.1 -> 192.168.6.2 ICMP 98 Echo (ping) reply id=0x04af, seq=75/19200, ttl=64 (request in 21) 23 6.517235 192.168.6.2 -> 192.168.6.1 ICMP 98 Echo (ping) request id=0x04af, seq=76/19456, ttl=64 24 6.517256 192.168.6.1 -> 192.168.6.2 ICMP 98 Echo (ping) reply id=0x04af, seq=76/19456, ttl=64 (request in 23) 25 6.531466 be:e1:71:c1:47:4d -> RealtekU_3b:83:1a ARP 42 Who has 192.168.6.2? Tell 192.168.6.1 26 6.531619 RealtekU_3b:83:1a -> be:e1:71:c1:47:4d ARP 42 192.168.6.2 is at 52:54:00:3b:83:1a 27 7.517212 192.168.6.2 -> 192.168.6.1 ICMP 98 Echo (ping) request id=0x04af, seq=77/19712, ttl=64 28 7.517229 192.168.6.1 -> 192.168.6.2 ICMP 98 Echo (ping) reply id=0x04af, seq=77/19712, ttl=64 (request in 27)
Quoted 3 lines
But there's one important detail here. Any replicated network interfaces (LOCAL port in my example) should be fully cloned on both
hosts, including MAC addresses. Otherwise after the migration the guest continues to send packets to old MAC, and, obvious, there's still ping loss until it redoes the ARP for its ping target.
I see. And here I care more about whether we can get the GARP from the target guest just after the migration. If you can, everything should be fine.
Quoted 7 lines
Quoted 2 lines
And what's the output of 'grep virtio
/proc/interrupts' inside guest?11: 0 0 0 0 IO-APIC 11-fasteoi uhci_hcd:usb1, virtio3
24: 0 0 0 0 PCI-MSI 114688-edge virtio2-config 25: 3544 0 0 0 PCI-MSI 114689-edge virtio2-req.0 26: 10 0 0 0 PCI-MSI 49152-edge virtio0-config
The GUEST_ANNOUNCE has indeed been triggered. That's great! I just have no idea why I can't get any config IRQ from the guest after the migration. (I can for migratin inside one same host, but not on two hosts).
In my first tries, I just got an error message telling me that the MSI is just lost. I then found it may because I'm using a customized guest kernel. I then switched to the kernel shipped by Fedora 22, I no longer see such error, but I still don't see such interrupt generated inside the guest, either.
It might still be an issue on my side. Even it's not, it's likely a KVM bug, but not from vhost-user. And glad it works on your side :)
So, I will send v2 tomorow.
--yliu
Quoted 25 lines · Thibaut Collet
Quoted 22 lines · Thibaut Collet
Quoted 18 lines · Peter Xu
Quoted 1 line · Pavel Fedin
To tell the truth, i don't know. I am also learning qemu internals on
the fly. Indeed, i see that it should announce itself. But
Quoted 1 line
this brings up a question: why do we need special announce procedure in
vhost-user then?
I have the same question. Here is my guess...
In customized networks, maybe people are not using ARP at all? When we use DPDK, we directly pass through the network logic inside kernel itself. So logically all the network protocols could be customized by the user of it. In the customized network, maybe there is some other protocol (rather than RARP) that would do the same thing as what ARP/RARP does. So, this
SEND_RARPrequest could give the vhost-user backend a chance to format its own announce packet and broadcast (in theSEND_RARPrequest, the guest's mac address will be appended).
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
CCing Victor to better know the truth...
Peter
Hey Thibaut,
First of all, thanks a lot for your lengthy explanation.
Quoted 11 lines
Quoted 11 lines
Hi,
After a migration, to avoid network outage, the guest must announce its new location to the L2 layer, typically with a GARP. Otherwise requests sent to the guest arrive to the old host until a ARP request is sent (after 30 seconds) or the guest sends some data.
QEMU implementation of self announce after a migration with a vhost backend is the following:
- If theVIRTIO_GUEST_ANNOUNCEfeature has been negotiated the guest
sends automatically a GARP.
I'm kind of clear how VIRTIO_GUEST_ANNOUNCE works so far, except that I met a bug, which I will describe in another email.
Quoted 3 lines
Quoted 3 lines
- Else if the vhost backend implements
VHOST_USER_SEND_RARPthis request
is sent to the vhost backend. When this message is received the vhost backend must act as it receives a RARP from the guest (purpose of this RARP
Can you be more specific about this? Say, what kind of acts the vhost backend should do exactly?
Quoted 1 line
Quoted 1 line
is to update switches'
MAC->portmaaping as a GARP).
Isn't it vhost library is not aware of swtich at all? How could we update switches's MAC-port mapping inside vhost library?
Quoted 2 lines
This RARP is a false
Quoted 1 line
one, created by the vhost backend,
I'm a bit confused now. You were just saying "vhost backend must act as it __recevives__ a RARP from the guest", and you are now saying "the RARP is a false one __created__ by the vhost backend".
Thanks.
--yliu
Quoted 72 lines · Yuanhan Liu
Quoted 1 line · Thibaut Collet
On Tue, Dec 15, 2015 at 12:43 PM, Thibaut Collet <
Quoted 8 lines
Quoted 6 lines · wrote:
Quoted 2 lines · Peter Xu
Quoted 1 line · Pavel Fedin
To tell the truth, i don't know. I am also learning qemu internals
on
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
the fly. Indeed, i see that it should announce itself. But
Quoted 1 line
this brings up a question: why do we need special announce
procedure in
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
vhost-user then?
I have the same question. Here is my guess...
In customized networks, maybe people are not using ARP at all? When we use DPDK, we directly pass through the network logic inside kernel itself. So logically all the network protocols could be customized by the user of it. In the customized network, maybe there is some other protocol (rather than RARP) that would do the same thing as what ARP/RARP does. So, this
SEND_RARPrequest could give the vhost-user backend a chance to format its own announce packet and broadcast (in theSEND_RARPrequest, the guest's mac address will be appended).Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
CCing Victor to better know the truth...
Peter
Hey Thibaut,
First of all, thanks a lot for your lengthy explanation.
Quoted 5 lines
Quoted 5 lines
Hi,
After a migration, to avoid network outage, the guest must announce its new location to the L2 layer, typically with a GARP. Otherwise requests sent to the guest arrive to the old host until a ARP request is sent
(after
Quoted 6 lines
Quoted 6 lines
30 seconds) or the guest sends some data.
QEMU implementation of self announce after a migration with a vhost backend is the following:
- If theVIRTIO_GUEST_ANNOUNCEfeature has been negotiated the guest
sends automatically a GARP.I'm kind of clear how
VIRTIO_GUEST_ANNOUNCEworks so far, except that I met a bug, which I will describe in another email.Quoted 1 line
Quoted 1 line
- Else if the vhost backend implements
VHOST_USER_SEND_RARPthisrequest
Quoted 2 lines
Quoted 2 lines
is sent to the vhost backend. When this message is received the vhost backend must act as it receives a RARP from the guest (purpose of this
RARP
Can you be more specific about this? Say, what kind of acts the vhost backend should do exactly?
Quoted 1 line
Quoted 1 line
is to update switches'
MAC->portmaaping as a GARP).Isn't it vhost library is not aware of swtich at all? How could we update switches's MAC-port mapping inside vhost library?
Quoted 2 lines
This RARP is a false
Quoted 1 line
one, created by the vhost backend,
Quoted 8 lines
I'm a bit confused now. You were just saying "vhost backend must act as it
__recevives__a RARP from the guest", and you are now saying "the RARP is a false one__created__by the vhost backend".Thanks.
--yliu
After a migration, to avoid netwotk outage, all interfaces of the guest must send a packet to update switches mapping (ideally a GARP). As some interfaces do not do it QEMU does it in behalf of the guest by sending a RARP (his RARP is not forged by the guest but by QEMU). This is the qemu_self_announce purpose that "spoofs" a RARP to all backend of guest ethernet interfaces. For vhost-user backend, QEMU can not do it directly and asks to the vhost-user backend to do it with the VHOST_USER_SEND_RARP request that contains the MAC address of the guest interface.
Thibaut.
Hello!
Quoted 3 lines
After a migration, to avoid netwotk outage, all interfaces of the guest must send a packet to update switches mapping (ideally a GARP). As some interfaces do not do it QEMU does it in behalf of the guest by sending a RARP (his RARP is not forged by the guest but by QEMU). This is the
qemu_self_announcepurpose that "spoofs" a RARP to all backend of guest ethernet interfaces. For vhost-user backend, QEMU can not do it directly
Aha, see it now. qemu_announce_self() uses qemu_foreach_nic(), which actually iterates only over NET_CLIENT_OPTIONS_KIND_NIC interfaces. I expect these are fully emulated hardware controllers. virtio uses another type (see enum NetClientOptionsKind). So, we can happily ignore qemu_announce_self(), it does not do anything for us. Thanks for pointing it out.
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
Quoted 10 lines · Thibaut Collet
After a migration, to avoid netwotk outage, all interfaces of the guest must send a packet to update switches mapping (ideally a GARP). As some interfaces do not do it QEMU does it in behalf of the guest by sending a RARP (his RARP is not forged by the guest but by QEMU). This is the
qemu_self_announcepurpose that "spoofs" a RARP to all backend of guest ethernet interfaces. For vhost-user backend, QEMU can not do it directly and asks to the vhost-user backend to do it with theVHOST_USER_SEND_RARPrequest that contains the MAC address of the guest interface.Thibaut.
Hi, Thibaut,
Thanks for the explaination.
Two more questions:
1. if vhost-user backend (or say, DPDK) supports GUEST_ANNOUNCE, and send another RARP (or say, GARP, I will use RARP as example), then there will be two RARP later on the line, right? (since the QEMU one is sent unconditionally from qemu_announce_self).
2. if the only thing vhost-user backend is to send another same RARP when got SEND_RARP request, why would it bother if QEMU will unconditionally send one? (or say, I still do not know why we need this SEND_RARP request, if the vhost-user backend is going to do the same thing again as QEMU already does)
Thanks in advance.
Peter
Quoted 14 lines · Peter Xu
Quoted 10 lines · Thibaut Collet
After a migration, to avoid netwotk outage, all interfaces of the guest must send a packet to update switches mapping (ideally a GARP). As some interfaces do not do it QEMU does it in behalf of the guest by sending a RARP (his RARP is not forged by the guest but by QEMU). This is the
qemu_self_announcepurpose that "spoofs" a RARP to all backend of guest ethernet interfaces. For vhost-user backend, QEMU can not do it directly and asks to the vhost-user backend to do it with theVHOST_USER_SEND_RARPrequest that contains the MAC address of the guest interface.Thibaut.
Hi, Thibaut,
Quoted 8 lines
Thanks for the explaination.
Two more questions:
1. if vhost-user backend (or say, DPDK) supports
GUEST_ANNOUNCE, and send another RARP (or say, GARP, I will use RARP as example), then there will be two RARP later on the line, right? (since the QEMU one is sent unconditionally fromqemu_announce_self).
The one send by qemu_announce_self() will be caught by vhost_user_receive(), which ends up invoking vhost_user_migration_done(). And it will be dropped when VIRTIO_NET_F_GUEST_ANNOUNCE is negotiated there.
Quoted 5 lines
2. if the only thing vhost-user backend is to send another same RARP when got
SEND_RARPrequest, why would it bother if QEMU will unconditionally send one? (or say, I still do not know why we need thisSEND_RARPrequest, if the vhost-user backend is going to do the same thing again as QEMU already does)
Because that one is caught by vhost-user, and vhost-user just relays it to the backend when necessary (say when GUEST_ANNOUNCE is not supported)?
--yliu
Hello!
Quoted 4 lines
1. if vhost-user backend (or say, DPDK) supports
GUEST_ANNOUNCE, and send another RARP (or say, GARP, I will use RARP as example), then there will be two RARP later on the line, right? (since the QEMU one is sent unconditionally fromqemu_announce_self).
qemu_announce_self() is NOT unconditional. It applies only to emulated physical NICs and bypasses virtio/vhost. So it will not send anything at all for vhost-user.
Quoted 3 lines
2. if the only thing vhost-user backend is to send another same RARP when got
SEND_RARPrequest, why would it bother if QEMU will unconditionally send one?
See above, it won't send one.
It looks to me like qemu_announce_self() is just a poor man's solution which even doesn't always work (because GARP should reassociate an existing IP with new MAC, shouldn't it? and qemu doesn't know the IP and just sets both src and dst to 0.0.0.0).
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
Quoted 8 lines · Yuanhan Liu
Quoted 2 lines · Peter Xu
If ping to guest from outside, when the migration finishes on the target side of qemu,
qemu_self_announce()will be called.It's supposed to see some ARP requests if I run tcpdump against with the ovs bridge, right? However, in fact, I saw nothing from tcpdump on the target host when the migration is done.
Quoted 5 lines
I mean I do find that
qemu_annouce_selfcomposes an ARP broadcoast request, but it seems that I didn't catch it on the target host.Something wrong, or someting I missed?
AFAIK, it should be RARP rather than ARP request. However, sorry that I do not know the reason for its lossing either.
Btw, I did a very basic live migration using v1 patchset locally today (one host, two QEMU instances attach to the same vhost-user socket), it's working too on my host. :)
Thanks.
Peter
Quoted 13 lines
--yliuQuoted 10 lines
Although
we might see a warning like "Vhost user backend fails to broadcast fake RARP" (notify is done by hackingvhost_user_receive(), even if notify fails, things will still move on), QEMU should still send a RARP onto the link.Not sure whether I missed anything.
Thanks.
Peter