Re: [RFC 1/2] virtio: new post_load hook

2019-10-11 Thread Alex Bennée
Michael S. Tsirkin writes: > Post load hook in virtio vmsd is called early while device is processed, > and when VirtIODevice core isn't fully initialized. Most device > specific code isn't ready to deal with a device in such state, and > behaves weirdly. > > Add a new post_load hook in a devi

[RFC 1/2] virtio: new post_load hook

2019-10-10 Thread Michael S. Tsirkin
Post load hook in virtio vmsd is called early while device is processed, and when VirtIODevice core isn't fully initialized. Most device specific code isn't ready to deal with a device in such state, and behaves weirdly. Add a new post_load hook in a device class instead. Devices should use this