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

2023-04-13 Thread Stefan Hajnoczi
On Thu, 13 Apr 2023 at 05:04, Hanna Czenczek wrote: > > On 12.04.23 23:14, Stefan Hajnoczi wrote: > > On Tue, Apr 11, 2023 at 05:05:14PM +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

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

2023-04-13 Thread Hanna Czenczek
On 12.04.23 23:14, Stefan Hajnoczi wrote: On Tue, Apr 11, 2023 at 05:05:14PM +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 t

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

2023-04-12 Thread Stefan Hajnoczi
On Tue, Apr 11, 2023 at 05:05:14PM +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 3/4] vhost: Add high-level state save/load functions

2023-04-11 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