kvm: virtio-net: saved image requires TUN_F_UFO support
Hello,
i've upgraded some servers from kernel 4.4 to 4.12 - both running Qemu 2.9.1.
If i migrate a VM from a host running kernel 4.4 to a host running 4.12 i get:
kvm: virtio-net: saved image requires TUN_F_UFO support
kvm: Failed to load virtio-net-device:tmp
kvm: Failed to load virtio-net:virtio
kvm: error while loading state for instance 0x0 of device '0000:00:12.0/virtio-net'
kvm: load of migration failed: Invalid argument
while migrating from 4.12 to 4.4 works fine.
Can anybody help? Is this expected?
Greets,
Stefan
Quoted 16 lines · Stefan Priebe - Profihost AG
Hello,
i've upgraded some servers from kernel 4.4 to 4.12 - both running Qemu 2.9.1.
If i migrate a VM from a host running kernel 4.4 to a host running 4.12 i get:
kvm: virtio-net: saved image requires
TUN_F_UFOsupport
kvm: Failed to load virtio-net-device:tmp
kvm: Failed to load virtio-net:virtio
kvm: error while loading state for instance0x0of device '0000:00:12.0/virtio-net'
kvm: load of migration failed: Invalid argument
Quoted 3 lines
while migrating from 4.12 to 4.4 works fine.
Can anybody help? Is this expected?
Can you check why peer_has_ufo failed (in hw/net/virtio-net.c)? Also, did this ioctl fail when the tap device was set up on the 4.12 destination?
int tap_probe_has_ufo(int fd)
{
unsigned offload;
offload = TUN_F_CSUM | TUN_F_UFO;
if (ioctl(fd, TUNSETOFFLOAD, offload) < 0)
return 0;
return 1;
}Thanks,
Paolo
Hi Paolo,
Am 06.11.2017 um 10:40 schrieb Paolo Bonzini:
Quoted 17 lines · Stefan Priebe - Profihost AG
Quoted 16 lines
Hello,
i've upgraded some servers from kernel 4.4 to 4.12 - both running Qemu 2.9.1.
If i migrate a VM from a host running kernel 4.4 to a host running 4.12 i get:
kvm: virtio-net: saved image requires
TUN_F_UFOsupport
kvm: Failed to load virtio-net-device:tmp
kvm: Failed to load virtio-net:virtio
kvm: error while loading state for instance0x0of device '0000:00:12.0/virtio-net'
kvm: load of migration failed: Invalid argument
Quoted 5 lines
Quoted 3 lines
while migrating from 4.12 to 4.4 works fine.
Can anybody help? Is this expected?
Can you check why
peer_has_ufofailed (inhw/net/virtio-net.c)?
May be - how can i archieve this? Patching the code is not a problem if you can give me a hint.
Quoted 12 lines
Also, did this ioctl fail when the tap device was set up on the 4.12 destination? int
tap_probe_has_ufo(int fd){ unsigned offload; offload = TUN_F_CSUM | TUN_F_UFO; if (ioctl(fd, TUNSETOFFLOAD, offload) < 0) return 0; return 1; }
Should there be any kernel output or how can i detect / check it?
Greets,
Stefan
Quoted 4 lines
Thanks,
Paolo
Quoted 36 lines · Stefan Priebe - Profihost AG
Hi Paolo,
Am 06.11.2017 um 10:40 schrieb Paolo Bonzini:
Quoted 17 lines · Stefan Priebe - Profihost AG
Quoted 16 lines
Hello,
i've upgraded some servers from kernel 4.4 to 4.12 - both running Qemu 2.9.1.
If i migrate a VM from a host running kernel 4.4 to a host running 4.12 i get:
kvm: virtio-net: saved image requires
TUN_F_UFOsupport
kvm: Failed to load virtio-net-device:tmp
kvm: Failed to load virtio-net:virtio
kvm: error while loading state for instance0x0of device '0000:00:12.0/virtio-net'
kvm: load of migration failed: Invalid argumentQuoted 5 lines
Quoted 3 lines
while migrating from 4.12 to 4.4 works fine.
Can anybody help? Is this expected?
Can you check why
peer_has_ufofailed (inhw/net/virtio-net.c)?May be - how can i archieve this? Patching the code is not a problem if you can give me a hint.
Quoted 7 lines
Also, did this ioctl fail when the tap device was set up on the 4.12 destination? int
tap_probe_has_ufo(int fd){ unsigned offload; offload = TUN_F_CSUM | TUN_F_UFO;
Quoted 7 lines
Quoted 5 lines
if (ioctl(fd, TUNSETOFFLOAD, offload) < 0) return 0; return 1; }Should there be any kernel output or how can i detect / check it?
For both, the simplest answer is probably just using printf.
Paolo
Hi Paolo,
Am 06.11.2017 um 10:49 schrieb Paolo Bonzini:
Quoted 40 lines · Stefan Priebe - Profihost AG
Quoted 39 lines
Hi Paolo,
Am 06.11.2017 um 10:40 schrieb Paolo Bonzini:
Quoted 17 lines · Stefan Priebe - Profihost AG
Quoted 16 lines
Hello,
i've upgraded some servers from kernel 4.4 to 4.12 - both running Qemu 2.9.1.
If i migrate a VM from a host running kernel 4.4 to a host running 4.12 i get:
kvm: virtio-net: saved image requires
TUN_F_UFOsupport
kvm: Failed to load virtio-net-device:tmp
kvm: Failed to load virtio-net:virtio
kvm: error while loading state for instance0x0of device '0000:00:12.0/virtio-net'
kvm: load of migration failed: Invalid argumentQuoted 5 lines
Quoted 3 lines
while migrating from 4.12 to 4.4 works fine.
Can anybody help? Is this expected?
Can you check why
peer_has_ufofailed (inhw/net/virtio-net.c)?May be - how can i archieve this? Patching the code is not a problem if you can give me a hint.
Quoted 10 lines
Also, did this ioctl fail when the tap device was set up on the 4.12 destination? int
tap_probe_has_ufo(int fd){ unsigned offload; offload = TUN_F_CSUM | TUN_F_UFO; if (ioctl(fd, TUNSETOFFLOAD, offload) < 0) return 0;
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
return 1; }Should there be any kernel output or how can i detect / check it?
For both, the simplest answer is probably just using printf.
arg i missed an important part. The kernel is an opensuse SLE15 one.
I've seen it contains the following patchset:
https://www.spinics.net/lists/netdev/msg443821.html
Greets,
Stefan
HI Paolo,
could this patchset be related?
Greets,
Stefan
Am 06.11.2017 um 10:52 schrieb Stefan Priebe - Profihost AG:
Quoted 58 lines
Hi Paolo,
Am 06.11.2017 um 10:49 schrieb Paolo Bonzini:
Quoted 40 lines · Stefan Priebe - Profihost AG
Quoted 39 lines
Hi Paolo,
Am 06.11.2017 um 10:40 schrieb Paolo Bonzini:
Quoted 17 lines · Stefan Priebe - Profihost AG
Quoted 16 lines
Hello,
i've upgraded some servers from kernel 4.4 to 4.12 - both running Qemu 2.9.1.
If i migrate a VM from a host running kernel 4.4 to a host running 4.12 i get:
kvm: virtio-net: saved image requires
TUN_F_UFOsupport
kvm: Failed to load virtio-net-device:tmp
kvm: Failed to load virtio-net:virtio
kvm: error while loading state for instance0x0of device '0000:00:12.0/virtio-net'
kvm: load of migration failed: Invalid argumentQuoted 5 lines
Quoted 3 lines
while migrating from 4.12 to 4.4 works fine.
Can anybody help? Is this expected?
Can you check why
peer_has_ufofailed (inhw/net/virtio-net.c)?May be - how can i archieve this? Patching the code is not a problem if you can give me a hint.
Quoted 10 lines
Also, did this ioctl fail when the tap device was set up on the 4.12 destination? int
tap_probe_has_ufo(int fd){ unsigned offload; offload = TUN_F_CSUM | TUN_F_UFO; if (ioctl(fd, TUNSETOFFLOAD, offload) < 0) return 0;Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
return 1; }Should there be any kernel output or how can i detect / check it?
For both, the simplest answer is probably just using printf.
arg i missed an important part. The kernel is an opensuse SLE15 one.
I've seen it contains the following patchset:
https://www.spinics.net/lists/netdev/msg443821.htmlGreets,
Stefan
Quoted 3 lines · Stefan Priebe - Profihost AG
HI Paolo,
could this patchset be related?
Uh oh, yes it should. Jason, any ways to fix it? I suppose we need to disable UFO in the newest machine types, but do we also have to do (software) UFO in vhost-net and QEMU for migration compatibility?
Thanks,
Paolo
Quoted 62 lines
Greets,
StefanAm 06.11.2017 um 10:52 schrieb Stefan Priebe - Profihost AG:
Quoted 58 lines
Hi Paolo,
Am 06.11.2017 um 10:49 schrieb Paolo Bonzini:
Quoted 40 lines · Stefan Priebe - Profihost AG
Quoted 39 lines
Hi Paolo,
Am 06.11.2017 um 10:40 schrieb Paolo Bonzini:
Quoted 17 lines · Stefan Priebe - Profihost AG
Quoted 16 lines
Hello,
i've upgraded some servers from kernel 4.4 to 4.12 - both running Qemu 2.9.1.
If i migrate a VM from a host running kernel 4.4 to a host running 4.12 i get:
kvm: virtio-net: saved image requires
TUN_F_UFOsupport
kvm: Failed to load virtio-net-device:tmp
kvm: Failed to load virtio-net:virtio
kvm: error while loading state for instance0x0of device '0000:00:12.0/virtio-net'
kvm: load of migration failed: Invalid argumentQuoted 5 lines
Quoted 3 lines
while migrating from 4.12 to 4.4 works fine.
Can anybody help? Is this expected?
Can you check why
peer_has_ufofailed (inhw/net/virtio-net.c)?May be - how can i archieve this? Patching the code is not a problem if you can give me a hint.
Quoted 10 lines
Also, did this ioctl fail when the tap device was set up on the 4.12 destination? int
tap_probe_has_ufo(int fd){ unsigned offload; offload = TUN_F_CSUM | TUN_F_UFO; if (ioctl(fd, TUNSETOFFLOAD, offload) < 0) return 0;Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
return 1; }Should there be any kernel output or how can i detect / check it?
For both, the simplest answer is probably just using printf.
arg i missed an important part. The kernel is an opensuse SLE15 one.
I've seen it contains the following patchset:
https://www.spinics.net/lists/netdev/msg443821.htmlGreets,
Stefan
Hi Paolo,
Am 06.11.2017 um 12:27 schrieb Paolo Bonzini:
Quoted 8 lines · Stefan Priebe - Profihost AG
Quoted 3 lines
HI Paolo,
could this patchset be related?
Uh oh, yes it should. Jason, any ways to fix it? I suppose we need to disable UFO in the newest machine types, but do we also have to do (software) UFO in vhost-net and QEMU for migration compatibility?
Any news on this?
Greets,
Stefan
Quoted 67 lines
Thanks,
Paolo
Quoted 62 lines
Greets,
StefanAm 06.11.2017 um 10:52 schrieb Stefan Priebe - Profihost AG:
Quoted 58 lines
Hi Paolo,
Am 06.11.2017 um 10:49 schrieb Paolo Bonzini:
Quoted 40 lines · Stefan Priebe - Profihost AG
Quoted 39 lines
Hi Paolo,
Am 06.11.2017 um 10:40 schrieb Paolo Bonzini:
Quoted 17 lines · Stefan Priebe - Profihost AG
Quoted 16 lines
Hello,
i've upgraded some servers from kernel 4.4 to 4.12 - both running Qemu 2.9.1.
If i migrate a VM from a host running kernel 4.4 to a host running 4.12 i get:
kvm: virtio-net: saved image requires
TUN_F_UFOsupport
kvm: Failed to load virtio-net-device:tmp
kvm: Failed to load virtio-net:virtio
kvm: error while loading state for instance0x0of device '0000:00:12.0/virtio-net'
kvm: load of migration failed: Invalid argumentQuoted 5 lines
Quoted 3 lines
while migrating from 4.12 to 4.4 works fine.
Can anybody help? Is this expected?
Can you check why
peer_has_ufofailed (inhw/net/virtio-net.c)?May be - how can i archieve this? Patching the code is not a problem if you can give me a hint.
Quoted 10 lines
Also, did this ioctl fail when the tap device was set up on the 4.12 destination? int
tap_probe_has_ufo(int fd){ unsigned offload; offload = TUN_F_CSUM | TUN_F_UFO; if (ioctl(fd, TUNSETOFFLOAD, offload) < 0) return 0;Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
return 1; }Should there be any kernel output or how can i detect / check it?
For both, the simplest answer is probably just using printf.
arg i missed an important part. The kernel is an opensuse SLE15 one.
I've seen it contains the following patchset:
https://www.spinics.net/lists/netdev/msg443821.htmlGreets,
Stefan
Quoted 6 lines · Stefan Priebe - Profihost AG
Hi Paolo,
Am 06.11.2017 um 12:27 schrieb Paolo Bonzini:
Quoted 3 lines · Stefan Priebe - Profihost AG
Quoted 2 lines
HI Paolo,
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
could this patchset be related?
Uh oh, yes it should. Jason, any ways to fix it? I suppose we need to disable UFO in the newest machine types, but do we also have to do (software) UFO in vhost-net and QEMU for migration compatibility?
Any news on this?
Greets,
Since we probe UFO support, it will be disabled automatically on device startup.
For the issue of migration, I think the only way is trying to fix it in kernel.
Thanks
Am 08.11.2017 um 08:54 schrieb Jason Wang:
Quoted 15 lines · Stefan Priebe - Profihost AG
Quoted 12 lines
Hi Paolo,
Am 06.11.2017 um 12:27 schrieb Paolo Bonzini:
Quoted 7 lines · Stefan Priebe - Profihost AG
Quoted 3 lines
HI Paolo,
could this patchset be related?
Uh oh, yes it should. Jason, any ways to fix it? I suppose we need to disable UFO in the newest machine types, but do we also have to do (software) UFO in vhost-net and QEMU for migration compatibility?
Any news on this?
Quoted 7 lines
Quoted 1 line
Greets,
Since we probe UFO support, it will be disabled automatically on device startup.
For the issue of migration, I think the only way is trying to fix it in kernel.
But 4.14 is around the corner and the patchset is already included. Shouldn't this get fixed before 4.14 is released?
Stefan
Quoted 2 lines
Thanks
Quoted 15 lines · Stefan Priebe - Profihost AG
Am 08.11.2017 um 08:54 schrieb Jason Wang:
Quoted 14 lines · Stefan Priebe - Profihost AG
Quoted 12 lines
Hi Paolo,
Am 06.11.2017 um 12:27 schrieb Paolo Bonzini:
Quoted 7 lines · Stefan Priebe - Profihost AG
Quoted 3 lines
HI Paolo,
could this patchset be related?
Uh oh, yes it should. Jason, any ways to fix it? I suppose we need to disable UFO in the newest machine types, but do we also have to do (software) UFO in vhost-net and QEMU for migration compatibility?
Any news on this?
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
Greets,
Since we probe UFO support, it will be disabled automatically on device startup.
For the issue of migration, I think the only way is trying to fix it in kernel.
But 4.14 is around the corner and the patchset is already included. Shouldn't this get fixed before 4.14 is released?
We will try to seek a solution as soon as possible. If we can't catch 4.14, we will do it for stable for sure.
Thanks
Quoted 3 lines
Stefan
Quoted 1 line
Thanks
Quoted 23 lines · Jason Wang
Quoted 20 lines · Stefan Priebe - Profihost AG
Am 08.11.2017 um 08:54 schrieb Jason Wang:
Quoted 19 lines · Stefan Priebe - Profihost AG
Quoted 6 lines
Hi Paolo,
Am 06.11.2017 um 12:27 schrieb Paolo Bonzini:
Quoted 3 lines · Stefan Priebe - Profihost AG
Quoted 2 lines
HI Paolo,
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
could this patchset be related?
Uh oh, yes it should. Jason, any ways to fix it? I suppose we need to
disable UFO in the newest machine types, but do we also have to do (software) UFO in vhost-net and QEMU for migration compatibility?Any news on this?
Greets,
Since we probe UFO support, it will be disabled automatically on device startup.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
For the issue of migration, I think the only way is trying to fix it in kernel.
But 4.14 is around the corner and the patchset is already included. Shouldn't this get fixed before 4.14 is released?
We will try to seek a solution as soon as possible. If we can't catch 4.14, we will do it for stable for sure.
Jason, can you write to netdev and Cc Linus and me?
Thanks,
Paolo
Quoted 26 lines · Paolo Bonzini
Quoted 25 lines · Jason Wang
Quoted 23 lines · Stefan Priebe - Profihost AG
Am 08.11.2017 um 08:54 schrieb Jason Wang:
Quoted 12 lines · Stefan Priebe - Profihost AG
Quoted 11 lines
Hi Paolo,
Am 06.11.2017 um 12:27 schrieb Paolo Bonzini:
Quoted 8 lines · Stefan Priebe - Profihost AG
Quoted 3 lines
HI Paolo,
could this patchset be related?
Uh oh, yes it should. Jason, any ways to fix it? I suppose we need to
disable UFO in the newest machine types, but do we also have to do (software) UFO in vhost-net and QEMU for migration compatibility?Quoted 8 lines
Quoted 3 lines
Any news on this?
Greets,
Since we probe UFO support, it will be disabled automatically on device startup.
For the issue of migration, I think the only way is trying to fix it in kernel.
But 4.14 is around the corner and the patchset is already included. Shouldn't this get fixed before 4.14 is released?
Quoted 7 lines
Quoted 2 lines
We will try to seek a solution as soon as possible. If we can't catch 4.14, we will do it for stable for sure.
Jason, can you write to netdev and Cc Linus and me?
Thanks,
Paolo
Paolo, see this https://www.spinics.net/lists/netdev/msg465454.html
Just notice this today since I'm not on the cc list.
Thanks
Quoted 35 lines · Jason Wang
Quoted 32 lines · Paolo Bonzini
Quoted 21 lines · Jason Wang
Quoted 19 lines · Stefan Priebe - Profihost AG
Am 08.11.2017 um 08:54 schrieb Jason Wang:
Quoted 18 lines · Stefan Priebe - Profihost AG
Quoted 6 lines
Hi Paolo,
Am 06.11.2017 um 12:27 schrieb Paolo Bonzini:
Quoted 3 lines · Stefan Priebe - Profihost AG
Quoted 2 lines
HI Paolo,
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
could this patchset be related?
Uh oh, yes it should. Jason, any ways to fix it? I suppose we need to
disable UFO in the newest machine types, but do we also have to do (software) UFO in vhost-net and QEMU for migration compatibility?Any news on this?
Greets,
Since we probe UFO support, it will be disabled automatically on device startup.
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
For the issue of migration, I think the only way is trying to fix it in kernel.
But 4.14 is around the corner and the patchset is already included. Shouldn't this get fixed before 4.14 is released?
We will try to seek a solution as soon as possible. If we can't catch 4.14, we will do it for stable for sure.
Jason, can you write to netdev and Cc Linus and me?
Thanks,
Quoted 9 lines
Quoted 1 line
Paolo
Paolo, see this https://www.spinics.net/lists/netdev/msg465454.html
Just notice this today since I'm not on the cc list.
Thanks
An update:
After some discussions on netdev, we will try to bring UFO back partially for just TAP. Willem promise to fix this. 4.14 is too late consider the fix is not trivial, it will go through stable tree.
Thanks
Hello,
Am 10.11.2017 um 05:18 schrieb Jason Wang:
Quoted 50 lines · Jason Wang
Quoted 37 lines · Paolo Bonzini
Quoted 34 lines · Jason Wang
Quoted 22 lines · Stefan Priebe - Profihost AG
Quoted 20 lines
Am 08.11.2017 um 08:54 schrieb Jason Wang:
Quoted 19 lines · Stefan Priebe - Profihost AG
Quoted 6 lines
Hi Paolo,
Am 06.11.2017 um 12:27 schrieb Paolo Bonzini:
Quoted 3 lines · Stefan Priebe - Profihost AG
Quoted 2 lines
HI Paolo,
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
could this patchset be related?
Uh oh, yes it should. Jason, any ways to fix it? I suppose we need to
disable UFO in the newest machine types, but do we also have to do (software) UFO in vhost-net and QEMU for migration compatibility?Any news on this?
Greets,
Since we probe UFO support, it will be disabled automatically on device
startup.Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
For the issue of migration, I think the only way is trying to fix it in
kernel.But 4.14 is around the corner and the patchset is already included. Shouldn't this get fixed before 4.14 is released?
We will try to seek a solution as soon as possible. If we can't catch 4.14, we will do it for stable for sure.
Jason, can you write to netdev and Cc Linus and me?
Thanks,
Quoted 9 lines
Quoted 1 line
Paolo
Paolo, see this https://www.spinics.net/lists/netdev/msg465454.html
Just notice this today since I'm not on the cc list.
Thanks
Quoted 5 lines
An update:
After some discussions on netdev, we will try to bring UFO back partially for just TAP. Willem promise to fix this. 4.14 is too late consider the fix is not trivial, it will go through stable tree.
OK is it save to just revert the UFO patchset for my local branch?
Greets,
Stefan
Quoted 2 lines
Thanks
Quoted 45 lines · Stefan Priebe - Profihost AG
Hello,
Am 10.11.2017 um 05:18 schrieb Jason Wang:
Quoted 42 lines · Jason Wang
Quoted 38 lines · Paolo Bonzini
Quoted 23 lines · Jason Wang
Quoted 22 lines · Stefan Priebe - Profihost AG
Quoted 20 lines
Am 08.11.2017 um 08:54 schrieb Jason Wang:
Quoted 19 lines · Stefan Priebe - Profihost AG
Quoted 6 lines
Hi Paolo,
Am 06.11.2017 um 12:27 schrieb Paolo Bonzini:
Quoted 3 lines · Stefan Priebe - Profihost AG
Quoted 2 lines
HI Paolo,
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
could this patchset be related?
Uh oh, yes it should. Jason, any ways to fix it? I suppose we need to
disable UFO in the newest machine types, but do we also have to do (software) UFO in vhost-net and QEMU for migration compatibility?Any news on this?
Greets,
Since we probe UFO support, it will be disabled automatically on device
startup.Quoted 8 lines
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
For the issue of migration, I think the only way is trying to fix it in
kernel.But 4.14 is around the corner and the patchset is already included. Shouldn't this get fixed before 4.14 is released?
We will try to seek a solution as soon as possible. If we can't catch 4.14, we will do it for stable for sure.
Jason, can you write to netdev and Cc Linus and me?
Paolo, see this https://www.spinics.net/lists/netdev/msg465454.html
Just notice this today since I'm not on the cc list.
Quoted 7 lines
Quoted 5 lines
An update:
After some discussions on netdev, we will try to bring UFO back partially for just TAP. Willem promise to fix this. 4.14 is too late consider the fix is not trivial, it will go through stable tree.
OK is it save to just revert the UFO patchset for my local branch?
Yes, it is.
Paolo
Quoted 8 lines · * Paolo Bonzini ([email protected]) wrote:
Quoted 3 lines · Stefan Priebe - Profihost AG
HI Paolo,
could this patchset be related?
Uh oh, yes it should. Jason, any ways to fix it? I suppose we need to disable UFO in the newest machine types, but do we also have to do (software) UFO in vhost-net and QEMU for migration compatibility?
Was there a solution to this?
Dave
Quoted 68 lines
Thanks,
Paolo
Quoted 62 lines
Greets,
StefanAm 06.11.2017 um 10:52 schrieb Stefan Priebe - Profihost AG:
Quoted 58 lines
Hi Paolo,
Am 06.11.2017 um 10:49 schrieb Paolo Bonzini:
Quoted 40 lines · Stefan Priebe - Profihost AG
Quoted 39 lines
Hi Paolo,
Am 06.11.2017 um 10:40 schrieb Paolo Bonzini:
Quoted 17 lines · Stefan Priebe - Profihost AG
Quoted 16 lines
Hello,
i've upgraded some servers from kernel 4.4 to 4.12 - both running Qemu 2.9.1.
If i migrate a VM from a host running kernel 4.4 to a host running 4.12 i get:
kvm: virtio-net: saved image requires
TUN_F_UFOsupport
kvm: Failed to load virtio-net-device:tmp
kvm: Failed to load virtio-net:virtio
kvm: error while loading state for instance0x0of device '0000:00:12.0/virtio-net'
kvm: load of migration failed: Invalid argumentQuoted 5 lines
Quoted 3 lines
while migrating from 4.12 to 4.4 works fine.
Can anybody help? Is this expected?
Can you check why
peer_has_ufofailed (inhw/net/virtio-net.c)?May be - how can i archieve this? Patching the code is not a problem if you can give me a hint.
Quoted 10 lines
Also, did this ioctl fail when the tap device was set up on the 4.12 destination? int
tap_probe_has_ufo(int fd){ unsigned offload; offload = TUN_F_CSUM | TUN_F_UFO; if (ioctl(fd, TUNSETOFFLOAD, offload) < 0) return 0;Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
return 1; }Should there be any kernel output or how can i detect / check it?
For both, the simplest answer is probably just using printf.
arg i missed an important part. The kernel is an opensuse SLE15 one.
I've seen it contains the following patchset:
https://www.spinics.net/lists/netdev/msg443821.htmlGreets,
Stefan
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK
Hello,
Am 22.11.2017 um 20:41 schrieb Dr. David Alan Gilbert:
Quoted 11 lines · * Paolo Bonzini ([email protected]) wrote:
Quoted 8 lines · Stefan Priebe - Profihost AG
Quoted 3 lines
HI Paolo,
could this patchset be related?
Uh oh, yes it should. Jason, any ways to fix it? I suppose we need to disable UFO in the newest machine types, but do we also have to do (software) UFO in vhost-net and QEMU for migration compatibility?
Was there a solution to this?
it will be this one:
https://patchwork.ozlabs.org/patch/840094/
Stefan
Quoted 73 lines
Dave
Quoted 68 lines
Thanks,
Paolo
Quoted 62 lines
Greets,
StefanAm 06.11.2017 um 10:52 schrieb Stefan Priebe - Profihost AG:
Quoted 58 lines
Hi Paolo,
Am 06.11.2017 um 10:49 schrieb Paolo Bonzini:
Quoted 40 lines · Stefan Priebe - Profihost AG
Quoted 39 lines
Hi Paolo,
Am 06.11.2017 um 10:40 schrieb Paolo Bonzini:
Quoted 17 lines · Stefan Priebe - Profihost AG
Quoted 16 lines
Hello,
i've upgraded some servers from kernel 4.4 to 4.12 - both running Qemu 2.9.1.
If i migrate a VM from a host running kernel 4.4 to a host running 4.12 i get:
kvm: virtio-net: saved image requires
TUN_F_UFOsupport
kvm: Failed to load virtio-net-device:tmp
kvm: Failed to load virtio-net:virtio
kvm: error while loading state for instance0x0of device '0000:00:12.0/virtio-net'
kvm: load of migration failed: Invalid argumentQuoted 5 lines
Quoted 3 lines
while migrating from 4.12 to 4.4 works fine.
Can anybody help? Is this expected?
Can you check why
peer_has_ufofailed (inhw/net/virtio-net.c)?May be - how can i archieve this? Patching the code is not a problem if you can give me a hint.
Quoted 10 lines
Also, did this ioctl fail when the tap device was set up on the 4.12 destination? int
tap_probe_has_ufo(int fd){ unsigned offload; offload = TUN_F_CSUM | TUN_F_UFO; if (ioctl(fd, TUNSETOFFLOAD, offload) < 0) return 0;Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
return 1; }Should there be any kernel output or how can i detect / check it?
For both, the simplest answer is probably just using printf.
arg i missed an important part. The kernel is an opensuse SLE15 one.
I've seen it contains the following patchset:
https://www.spinics.net/lists/netdev/msg443821.htmlGreets,
Stefan--
Dr. David Alan Gilbert / [email protected] / Manchester, UK
Quoted 9 lines · * Stefan Priebe - Profihost AG ([email protected]) wrote:
Hello,
Am 22.11.2017 um 20:41 schrieb Dr. David Alan Gilbert:
Quoted 6 lines · * Paolo Bonzini ([email protected]) wrote:
Quoted 5 lines · Stefan Priebe - Profihost AG
Quoted 3 lines
HI Paolo,
could this patchset be related?
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Uh oh, yes it should. Jason, any ways to fix it? I suppose we need to disable UFO in the newest machine types, but do we also have to do (software) UFO in vhost-net and QEMU for migration compatibility?
Was there a solution to this?
it will be this one:
https://patchwork.ozlabs.org/patch/840094/
Thanks; I've added a link to:
https://wiki.qemu.org/Features/Migration/Troubleshooting#virtio-net:_saved_image_requires_TUN_F_UFO_support
Dave
Quoted 76 lines
Stefan
Quoted 73 lines
Dave
Quoted 68 lines
Thanks,
Paolo
Quoted 62 lines
Greets,
StefanAm 06.11.2017 um 10:52 schrieb Stefan Priebe - Profihost AG:
Quoted 58 lines
Hi Paolo,
Am 06.11.2017 um 10:49 schrieb Paolo Bonzini:
Quoted 40 lines · Stefan Priebe - Profihost AG
Quoted 39 lines
Hi Paolo,
Am 06.11.2017 um 10:40 schrieb Paolo Bonzini:
Quoted 17 lines · Stefan Priebe - Profihost AG
Quoted 16 lines
Hello,
i've upgraded some servers from kernel 4.4 to 4.12 - both running Qemu 2.9.1.
If i migrate a VM from a host running kernel 4.4 to a host running 4.12 i get:
kvm: virtio-net: saved image requires
TUN_F_UFOsupport
kvm: Failed to load virtio-net-device:tmp
kvm: Failed to load virtio-net:virtio
kvm: error while loading state for instance0x0of device '0000:00:12.0/virtio-net'
kvm: load of migration failed: Invalid argumentQuoted 5 lines
Quoted 3 lines
while migrating from 4.12 to 4.4 works fine.
Can anybody help? Is this expected?
Can you check why
peer_has_ufofailed (inhw/net/virtio-net.c)?May be - how can i archieve this? Patching the code is not a problem if you can give me a hint.
Quoted 10 lines
Also, did this ioctl fail when the tap device was set up on the 4.12 destination? int
tap_probe_has_ufo(int fd){ unsigned offload; offload = TUN_F_CSUM | TUN_F_UFO; if (ioctl(fd, TUNSETOFFLOAD, offload) < 0) return 0;Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
return 1; }Should there be any kernel output or how can i detect / check it?
For both, the simplest answer is probably just using printf.
arg i missed an important part. The kernel is an opensuse SLE15 one.
I've seen it contains the following patchset:
https://www.spinics.net/lists/netdev/msg443821.htmlGreets,
Stefan--
Dr. David Alan Gilbert / [email protected] / Manchester, UK
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK