All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] kvm: virtio-net: saved image requires TUN_F_UFO support
@ 2017-11-06  9:38 Stefan Priebe - Profihost AG
  2017-11-06  9:40 ` Paolo Bonzini
  0 siblings, 1 reply; 19+ messages in thread
From: Stefan Priebe - Profihost AG @ 2017-11-06  9:38 UTC (permalink / raw)
  To: qemu-devel

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

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Qemu-devel] kvm: virtio-net: saved image requires TUN_F_UFO support
  2017-11-06  9:38 [Qemu-devel] kvm: virtio-net: saved image requires TUN_F_UFO support Stefan Priebe - Profihost AG
@ 2017-11-06  9:40 ` Paolo Bonzini
  2017-11-06  9:48   ` Stefan Priebe - Profihost AG
  0 siblings, 1 reply; 19+ messages in thread
From: Paolo Bonzini @ 2017-11-06  9:40 UTC (permalink / raw)
  To: Stefan Priebe - Profihost AG, qemu-devel

On 06/11/2017 10:38, Stefan Priebe - Profihost AG wrote:
> 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?

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

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Qemu-devel] kvm: virtio-net: saved image requires TUN_F_UFO support
  2017-11-06  9:40 ` Paolo Bonzini
@ 2017-11-06  9:48   ` Stefan Priebe - Profihost AG
  2017-11-06  9:49     ` Paolo Bonzini
  0 siblings, 1 reply; 19+ messages in thread
From: Stefan Priebe - Profihost AG @ 2017-11-06  9:48 UTC (permalink / raw)
  To: Paolo Bonzini, qemu-devel

Hi Paolo,

Am 06.11.2017 um 10:40 schrieb Paolo Bonzini:
> On 06/11/2017 10:38, Stefan Priebe - Profihost AG wrote:
>> 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?
> 
> Can you check why peer_has_ufo failed (in hw/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.

> 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

> Thanks,
> 
> Paolo
> 

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Qemu-devel] kvm: virtio-net: saved image requires TUN_F_UFO support
  2017-11-06  9:48   ` Stefan Priebe - Profihost AG
@ 2017-11-06  9:49     ` Paolo Bonzini
  2017-11-06  9:52       ` Stefan Priebe - Profihost AG
  0 siblings, 1 reply; 19+ messages in thread
From: Paolo Bonzini @ 2017-11-06  9:49 UTC (permalink / raw)
  To: Stefan Priebe - Profihost AG, qemu-devel

On 06/11/2017 10:48, Stefan Priebe - Profihost AG wrote:
> Hi Paolo,
> 
> Am 06.11.2017 um 10:40 schrieb Paolo Bonzini:
>> On 06/11/2017 10:38, Stefan Priebe - Profihost AG wrote:
>>> 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?
>>
>> Can you check why peer_has_ufo failed (in hw/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.
> 
>> 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?

For both, the simplest answer is probably just using printf.

Paolo

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Qemu-devel] kvm: virtio-net: saved image requires TUN_F_UFO support
  2017-11-06  9:49     ` Paolo Bonzini
@ 2017-11-06  9:52       ` Stefan Priebe - Profihost AG
  2017-11-06 11:09         ` Stefan Priebe - Profihost AG
  0 siblings, 1 reply; 19+ messages in thread
From: Stefan Priebe - Profihost AG @ 2017-11-06  9:52 UTC (permalink / raw)
  To: Paolo Bonzini, qemu-devel

Hi Paolo,

Am 06.11.2017 um 10:49 schrieb Paolo Bonzini:
> On 06/11/2017 10:48, Stefan Priebe - Profihost AG wrote:
>> Hi Paolo,
>>
>> Am 06.11.2017 um 10:40 schrieb Paolo Bonzini:
>>> On 06/11/2017 10:38, Stefan Priebe - Profihost AG wrote:
>>>> 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?
>>>
>>> Can you check why peer_has_ufo failed (in hw/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.
>>
>>> 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?
> 
> 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

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Qemu-devel] kvm: virtio-net: saved image requires TUN_F_UFO support
  2017-11-06  9:52       ` Stefan Priebe - Profihost AG
@ 2017-11-06 11:09         ` Stefan Priebe - Profihost AG
  2017-11-06 11:27           ` Paolo Bonzini
  0 siblings, 1 reply; 19+ messages in thread
From: Stefan Priebe - Profihost AG @ 2017-11-06 11:09 UTC (permalink / raw)
  To: Paolo Bonzini, qemu-devel

HI Paolo,

could this patchset be related?

Greets,
Stefan

Am 06.11.2017 um 10:52 schrieb Stefan Priebe - Profihost AG:
> Hi Paolo,
> 
> Am 06.11.2017 um 10:49 schrieb Paolo Bonzini:
>> On 06/11/2017 10:48, Stefan Priebe - Profihost AG wrote:
>>> Hi Paolo,
>>>
>>> Am 06.11.2017 um 10:40 schrieb Paolo Bonzini:
>>>> On 06/11/2017 10:38, Stefan Priebe - Profihost AG wrote:
>>>>> 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?
>>>>
>>>> Can you check why peer_has_ufo failed (in hw/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.
>>>
>>>> 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?
>>
>> 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
> 

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Qemu-devel] kvm: virtio-net: saved image requires TUN_F_UFO support
  2017-11-06 11:09         ` Stefan Priebe - Profihost AG
@ 2017-11-06 11:27           ` Paolo Bonzini
  2017-11-08  6:41             ` Stefan Priebe - Profihost AG
  2017-11-22 19:41             ` Dr. David Alan Gilbert
  0 siblings, 2 replies; 19+ messages in thread
From: Paolo Bonzini @ 2017-11-06 11:27 UTC (permalink / raw)
  To: Stefan Priebe - Profihost AG, qemu-devel,
	Jason Wang (jasowang@redhat.com)

On 06/11/2017 12:09, Stefan Priebe - Profihost AG wrote:
> 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

> Greets,
> Stefan
> 
> Am 06.11.2017 um 10:52 schrieb Stefan Priebe - Profihost AG:
>> Hi Paolo,
>>
>> Am 06.11.2017 um 10:49 schrieb Paolo Bonzini:
>>> On 06/11/2017 10:48, Stefan Priebe - Profihost AG wrote:
>>>> Hi Paolo,
>>>>
>>>> Am 06.11.2017 um 10:40 schrieb Paolo Bonzini:
>>>>> On 06/11/2017 10:38, Stefan Priebe - Profihost AG wrote:
>>>>>> 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?
>>>>>
>>>>> Can you check why peer_has_ufo failed (in hw/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.
>>>>
>>>>> 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?
>>>
>>> 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
>>

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Qemu-devel] kvm: virtio-net: saved image requires TUN_F_UFO support
  2017-11-06 11:27           ` Paolo Bonzini
@ 2017-11-08  6:41             ` Stefan Priebe - Profihost AG
  2017-11-08  7:54               ` Jason Wang
  2017-11-22 19:41             ` Dr. David Alan Gilbert
  1 sibling, 1 reply; 19+ messages in thread
From: Stefan Priebe - Profihost AG @ 2017-11-08  6:41 UTC (permalink / raw)
  To: Paolo Bonzini, qemu-devel, Jason Wang (jasowang@redhat.com)

Hi Paolo,

Am 06.11.2017 um 12:27 schrieb Paolo Bonzini:
> On 06/11/2017 12:09, Stefan Priebe - Profihost AG wrote:
>> 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


> Thanks,
> 
> Paolo
> 
>> Greets,
>> Stefan
>>
>> Am 06.11.2017 um 10:52 schrieb Stefan Priebe - Profihost AG:
>>> Hi Paolo,
>>>
>>> Am 06.11.2017 um 10:49 schrieb Paolo Bonzini:
>>>> On 06/11/2017 10:48, Stefan Priebe - Profihost AG wrote:
>>>>> Hi Paolo,
>>>>>
>>>>> Am 06.11.2017 um 10:40 schrieb Paolo Bonzini:
>>>>>> On 06/11/2017 10:38, Stefan Priebe - Profihost AG wrote:
>>>>>>> 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?
>>>>>>
>>>>>> Can you check why peer_has_ufo failed (in hw/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.
>>>>>
>>>>>> 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?
>>>>
>>>> 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
>>>
> 

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Qemu-devel] kvm: virtio-net: saved image requires TUN_F_UFO support
  2017-11-08  6:41             ` Stefan Priebe - Profihost AG
@ 2017-11-08  7:54               ` Jason Wang
  2017-11-08  8:05                 ` Stefan Priebe - Profihost AG
  0 siblings, 1 reply; 19+ messages in thread
From: Jason Wang @ 2017-11-08  7:54 UTC (permalink / raw)
  To: Stefan Priebe - Profihost AG, Paolo Bonzini, qemu-devel



On 2017年11月08日 15:41, Stefan Priebe - Profihost AG wrote:
> Hi Paolo,
>
> Am 06.11.2017 um 12:27 schrieb Paolo Bonzini:
>> On 06/11/2017 12:09, Stefan Priebe - Profihost AG wrote:
>>> 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,

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

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Qemu-devel] kvm: virtio-net: saved image requires TUN_F_UFO support
  2017-11-08  7:54               ` Jason Wang
@ 2017-11-08  8:05                 ` Stefan Priebe - Profihost AG
  2017-11-08  8:21                   ` Jason Wang
  0 siblings, 1 reply; 19+ messages in thread
From: Stefan Priebe - Profihost AG @ 2017-11-08  8:05 UTC (permalink / raw)
  To: Jason Wang, Paolo Bonzini, qemu-devel


Am 08.11.2017 um 08:54 schrieb Jason Wang:
> 
> 
> On 2017年11月08日 15:41, Stefan Priebe - Profihost AG wrote:
>> Hi Paolo,
>>
>> Am 06.11.2017 um 12:27 schrieb Paolo Bonzini:
>>> On 06/11/2017 12:09, Stefan Priebe - Profihost AG wrote:
>>>> 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,
> 
> 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
> 
> Thanks

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Qemu-devel] kvm: virtio-net: saved image requires TUN_F_UFO support
  2017-11-08  8:05                 ` Stefan Priebe - Profihost AG
@ 2017-11-08  8:21                   ` Jason Wang
  2017-11-08  9:46                     ` Paolo Bonzini
  0 siblings, 1 reply; 19+ messages in thread
From: Jason Wang @ 2017-11-08  8:21 UTC (permalink / raw)
  To: Stefan Priebe - Profihost AG, Paolo Bonzini, qemu-devel



On 2017年11月08日 17:05, Stefan Priebe - Profihost AG wrote:
> Am 08.11.2017 um 08:54 schrieb Jason Wang:
>>
>> On 2017年11月08日 15:41, Stefan Priebe - Profihost AG wrote:
>>> Hi Paolo,
>>>
>>> Am 06.11.2017 um 12:27 schrieb Paolo Bonzini:
>>>> On 06/11/2017 12:09, Stefan Priebe - Profihost AG wrote:
>>>>> 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,
>> 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

>
> Stefan
>> Thanks

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Qemu-devel] kvm: virtio-net: saved image requires TUN_F_UFO support
  2017-11-08  8:21                   ` Jason Wang
@ 2017-11-08  9:46                     ` Paolo Bonzini
  2017-11-08 10:22                       ` Jason Wang
  0 siblings, 1 reply; 19+ messages in thread
From: Paolo Bonzini @ 2017-11-08  9:46 UTC (permalink / raw)
  To: Jason Wang, Stefan Priebe - Profihost AG, qemu-devel

On 08/11/2017 09:21, Jason Wang wrote:
> 
> 
> On 2017年11月08日 17:05, Stefan Priebe - Profihost AG wrote:
>> Am 08.11.2017 um 08:54 schrieb Jason Wang:
>>>
>>> On 2017年11月08日 15:41, Stefan Priebe - Profihost AG wrote:
>>>> Hi Paolo,
>>>>
>>>> Am 06.11.2017 um 12:27 schrieb Paolo Bonzini:
>>>>> On 06/11/2017 12:09, Stefan Priebe - Profihost AG wrote:
>>>>>> 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,
>>> 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.

Jason, can you write to netdev and Cc Linus and me?

Thanks,

Paolo

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Qemu-devel] kvm: virtio-net: saved image requires TUN_F_UFO support
  2017-11-08  9:46                     ` Paolo Bonzini
@ 2017-11-08 10:22                       ` Jason Wang
  2017-11-10  4:18                         ` Jason Wang
  0 siblings, 1 reply; 19+ messages in thread
From: Jason Wang @ 2017-11-08 10:22 UTC (permalink / raw)
  To: Paolo Bonzini, Stefan Priebe - Profihost AG, qemu-devel



On 2017年11月08日 18:46, Paolo Bonzini wrote:
> On 08/11/2017 09:21, Jason Wang wrote:
>>
>> On 2017年11月08日 17:05, Stefan Priebe - Profihost AG wrote:
>>> Am 08.11.2017 um 08:54 schrieb Jason Wang:
>>>> On 2017年11月08日 15:41, Stefan Priebe - Profihost AG wrote:
>>>>> Hi Paolo,
>>>>>
>>>>> Am 06.11.2017 um 12:27 schrieb Paolo Bonzini:
>>>>>> On 06/11/2017 12:09, Stefan Priebe - Profihost AG wrote:
>>>>>>> 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,
>>>> 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.
> 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

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Qemu-devel] kvm: virtio-net: saved image requires TUN_F_UFO support
  2017-11-08 10:22                       ` Jason Wang
@ 2017-11-10  4:18                         ` Jason Wang
  2017-11-11 18:59                           ` Stefan Priebe - Profihost AG
  0 siblings, 1 reply; 19+ messages in thread
From: Jason Wang @ 2017-11-10  4:18 UTC (permalink / raw)
  To: Paolo Bonzini, Stefan Priebe - Profihost AG, qemu-devel



On 2017年11月08日 19:22, Jason Wang wrote:
>
>
> On 2017年11月08日 18:46, Paolo Bonzini wrote:
>> On 08/11/2017 09:21, Jason Wang wrote:
>>>
>>> On 2017年11月08日 17:05, Stefan Priebe - Profihost AG wrote:
>>>> Am 08.11.2017 um 08:54 schrieb Jason Wang:
>>>>> On 2017年11月08日 15:41, Stefan Priebe - Profihost AG wrote:
>>>>>> Hi Paolo,
>>>>>>
>>>>>> Am 06.11.2017 um 12:27 schrieb Paolo Bonzini:
>>>>>>> On 06/11/2017 12:09, Stefan Priebe - Profihost AG wrote:
>>>>>>>> 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,
>>>>> 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.
>> 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
>
>

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

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Qemu-devel] kvm: virtio-net: saved image requires TUN_F_UFO support
  2017-11-10  4:18                         ` Jason Wang
@ 2017-11-11 18:59                           ` Stefan Priebe - Profihost AG
  2017-11-13  8:27                             ` Paolo Bonzini
  0 siblings, 1 reply; 19+ messages in thread
From: Stefan Priebe - Profihost AG @ 2017-11-11 18:59 UTC (permalink / raw)
  To: Jason Wang, Paolo Bonzini, qemu-devel

Hello,

Am 10.11.2017 um 05:18 schrieb Jason Wang:
> 
> 
> On 2017年11月08日 19:22, Jason Wang wrote:
>>
>>
>> On 2017年11月08日 18:46, Paolo Bonzini wrote:
>>> On 08/11/2017 09:21, Jason Wang wrote:
>>>>
>>>> On 2017年11月08日 17:05, Stefan Priebe - Profihost AG wrote:
>>>>> Am 08.11.2017 um 08:54 schrieb Jason Wang:
>>>>>> On 2017年11月08日 15:41, Stefan Priebe - Profihost AG wrote:
>>>>>>> Hi Paolo,
>>>>>>>
>>>>>>> Am 06.11.2017 um 12:27 schrieb Paolo Bonzini:
>>>>>>>> On 06/11/2017 12:09, Stefan Priebe - Profihost AG wrote:
>>>>>>>>> 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,
>>>>>> 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.
>>> 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
>>
>>
> 
> 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

> 
> Thanks

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Qemu-devel] kvm: virtio-net: saved image requires TUN_F_UFO support
  2017-11-11 18:59                           ` Stefan Priebe - Profihost AG
@ 2017-11-13  8:27                             ` Paolo Bonzini
  0 siblings, 0 replies; 19+ messages in thread
From: Paolo Bonzini @ 2017-11-13  8:27 UTC (permalink / raw)
  To: Stefan Priebe - Profihost AG, Jason Wang, qemu-devel

On 11/11/2017 19:59, Stefan Priebe - Profihost AG wrote:
> Hello,
> 
> Am 10.11.2017 um 05:18 schrieb Jason Wang:
>>
>>
>> On 2017年11月08日 19:22, Jason Wang wrote:
>>>
>>>
>>> On 2017年11月08日 18:46, Paolo Bonzini wrote:
>>>> On 08/11/2017 09:21, Jason Wang wrote:
>>>>>
>>>>> On 2017年11月08日 17:05, Stefan Priebe - Profihost AG wrote:
>>>>>> Am 08.11.2017 um 08:54 schrieb Jason Wang:
>>>>>>> On 2017年11月08日 15:41, Stefan Priebe - Profihost AG wrote:
>>>>>>>> Hi Paolo,
>>>>>>>>
>>>>>>>> Am 06.11.2017 um 12:27 schrieb Paolo Bonzini:
>>>>>>>>> On 06/11/2017 12:09, Stefan Priebe - Profihost AG wrote:
>>>>>>>>>> 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,
>>>>>>> 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.
>>>> 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.
>>
>> 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

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Qemu-devel] kvm: virtio-net: saved image requires TUN_F_UFO support
  2017-11-06 11:27           ` Paolo Bonzini
  2017-11-08  6:41             ` Stefan Priebe - Profihost AG
@ 2017-11-22 19:41             ` Dr. David Alan Gilbert
  2017-11-22 19:48               ` Stefan Priebe - Profihost AG
  1 sibling, 1 reply; 19+ messages in thread
From: Dr. David Alan Gilbert @ 2017-11-22 19:41 UTC (permalink / raw)
  To: Paolo Bonzini
  Cc: Stefan Priebe - Profihost AG, qemu-devel,
	Jason Wang (jasowang@redhat.com)

* Paolo Bonzini (pbonzini@redhat.com) wrote:
> On 06/11/2017 12:09, Stefan Priebe - Profihost AG wrote:
> > 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

> Thanks,
> 
> Paolo
> 
> > Greets,
> > Stefan
> > 
> > Am 06.11.2017 um 10:52 schrieb Stefan Priebe - Profihost AG:
> >> Hi Paolo,
> >>
> >> Am 06.11.2017 um 10:49 schrieb Paolo Bonzini:
> >>> On 06/11/2017 10:48, Stefan Priebe - Profihost AG wrote:
> >>>> Hi Paolo,
> >>>>
> >>>> Am 06.11.2017 um 10:40 schrieb Paolo Bonzini:
> >>>>> On 06/11/2017 10:38, Stefan Priebe - Profihost AG wrote:
> >>>>>> 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?
> >>>>>
> >>>>> Can you check why peer_has_ufo failed (in hw/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.
> >>>>
> >>>>> 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?
> >>>
> >>> 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
> >>
> 
> 
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Qemu-devel] kvm: virtio-net: saved image requires TUN_F_UFO support
  2017-11-22 19:41             ` Dr. David Alan Gilbert
@ 2017-11-22 19:48               ` Stefan Priebe - Profihost AG
  2017-11-22 19:53                 ` Dr. David Alan Gilbert
  0 siblings, 1 reply; 19+ messages in thread
From: Stefan Priebe - Profihost AG @ 2017-11-22 19:48 UTC (permalink / raw)
  To: Dr. David Alan Gilbert, Paolo Bonzini
  Cc: qemu-devel, Jason Wang (jasowang@redhat.com)

Hello,

Am 22.11.2017 um 20:41 schrieb Dr. David Alan Gilbert:
> * Paolo Bonzini (pbonzini@redhat.com) wrote:
>> On 06/11/2017 12:09, Stefan Priebe - Profihost AG wrote:
>>> 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

> Dave
> 
>> Thanks,
>>
>> Paolo
>>
>>> Greets,
>>> Stefan
>>>
>>> Am 06.11.2017 um 10:52 schrieb Stefan Priebe - Profihost AG:
>>>> Hi Paolo,
>>>>
>>>> Am 06.11.2017 um 10:49 schrieb Paolo Bonzini:
>>>>> On 06/11/2017 10:48, Stefan Priebe - Profihost AG wrote:
>>>>>> Hi Paolo,
>>>>>>
>>>>>> Am 06.11.2017 um 10:40 schrieb Paolo Bonzini:
>>>>>>> On 06/11/2017 10:38, Stefan Priebe - Profihost AG wrote:
>>>>>>>> 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?
>>>>>>>
>>>>>>> Can you check why peer_has_ufo failed (in hw/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.
>>>>>>
>>>>>>> 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?
>>>>>
>>>>> 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
>>>>
>>
>>
> --
> Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
> 

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: [Qemu-devel] kvm: virtio-net: saved image requires TUN_F_UFO support
  2017-11-22 19:48               ` Stefan Priebe - Profihost AG
@ 2017-11-22 19:53                 ` Dr. David Alan Gilbert
  0 siblings, 0 replies; 19+ messages in thread
From: Dr. David Alan Gilbert @ 2017-11-22 19:53 UTC (permalink / raw)
  To: Stefan Priebe - Profihost AG
  Cc: Paolo Bonzini, qemu-devel, Jason Wang (jasowang@redhat.com)

* Stefan Priebe - Profihost AG (s.priebe@profihost.ag) wrote:
> Hello,
> 
> Am 22.11.2017 um 20:41 schrieb Dr. David Alan Gilbert:
> > * Paolo Bonzini (pbonzini@redhat.com) wrote:
> >> On 06/11/2017 12:09, Stefan Priebe - Profihost AG wrote:
> >>> 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/

Thanks; I've added a link to:
https://wiki.qemu.org/Features/Migration/Troubleshooting#virtio-net:_saved_image_requires_TUN_F_UFO_support

Dave

> 
> Stefan
> 
> > Dave
> > 
> >> Thanks,
> >>
> >> Paolo
> >>
> >>> Greets,
> >>> Stefan
> >>>
> >>> Am 06.11.2017 um 10:52 schrieb Stefan Priebe - Profihost AG:
> >>>> Hi Paolo,
> >>>>
> >>>> Am 06.11.2017 um 10:49 schrieb Paolo Bonzini:
> >>>>> On 06/11/2017 10:48, Stefan Priebe - Profihost AG wrote:
> >>>>>> Hi Paolo,
> >>>>>>
> >>>>>> Am 06.11.2017 um 10:40 schrieb Paolo Bonzini:
> >>>>>>> On 06/11/2017 10:38, Stefan Priebe - Profihost AG wrote:
> >>>>>>>> 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?
> >>>>>>>
> >>>>>>> Can you check why peer_has_ufo failed (in hw/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.
> >>>>>>
> >>>>>>> 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?
> >>>>>
> >>>>> 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
> >>>>
> >>
> >>
> > --
> > Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
> > 
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2017-11-22 19:53 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-06  9:38 [Qemu-devel] kvm: virtio-net: saved image requires TUN_F_UFO support Stefan Priebe - Profihost AG
2017-11-06  9:40 ` Paolo Bonzini
2017-11-06  9:48   ` Stefan Priebe - Profihost AG
2017-11-06  9:49     ` Paolo Bonzini
2017-11-06  9:52       ` Stefan Priebe - Profihost AG
2017-11-06 11:09         ` Stefan Priebe - Profihost AG
2017-11-06 11:27           ` Paolo Bonzini
2017-11-08  6:41             ` Stefan Priebe - Profihost AG
2017-11-08  7:54               ` Jason Wang
2017-11-08  8:05                 ` Stefan Priebe - Profihost AG
2017-11-08  8:21                   ` Jason Wang
2017-11-08  9:46                     ` Paolo Bonzini
2017-11-08 10:22                       ` Jason Wang
2017-11-10  4:18                         ` Jason Wang
2017-11-11 18:59                           ` Stefan Priebe - Profihost AG
2017-11-13  8:27                             ` Paolo Bonzini
2017-11-22 19:41             ` Dr. David Alan Gilbert
2017-11-22 19:48               ` Stefan Priebe - Profihost AG
2017-11-22 19:53                 ` Dr. David Alan Gilbert

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.