Re: [PATCH v3 4/5] vhost: Add high-level state save/load functions

2023-09-25 Thread Stefan Hajnoczi
On Fri, Sep 15, 2023 at 12:25:29PM +0200, Hanna Czenczek wrote: > vhost_save_backend_state() and vhost_load_backend_state() can be used by > vhost front-ends to easily save and load the back-end's state to/from > the migration stream. > > Because we do not know the full state size ahead of time, >

[PATCH v3 4/5] vhost: Add high-level state save/load functions

2023-09-15 Thread Hanna Czenczek
vhost_save_backend_state() and vhost_load_backend_state() can be used by vhost front-ends to easily save and load the back-end's state to/from the migration stream. Because we do not know the full state size ahead of time, vhost_save_backend_state() simply reads the data in 1 MB chunks, and writes