[PATCH v2] virtio-net: prevent offloads reset on migration

2019-10-02 Thread Mikhail Sennikovsky
Currently offloads disabled by guest via the VIRTIO_NET_CTRL_GUEST_OFFLOADS_SET command are not preserved on VM migration. Instead all offloads reported by guest features (via VIRTIO_PCI_GUEST_FEATURES) get enabled. What happens is: first the VirtIONet::curr_guest_offloads gets restored and offloa

[PATCH v2] virtio-net: prevent offloads reset on migration

2019-10-02 Thread Mikhail Sennikovsky
Hi all, This is the second version of the patch with the coding style problem fixed. Regards, Mikhail Mikhail Sennikovsky (1): virtio-net: prevent offloads reset on migration hw/display/virtio-gpu-base.c | 3 ++- hw/net/virtio-net.c | 5 +++-- hw/virtio/virtio.c | 11 +++