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

2023-07-21 Thread Hanna Czenczek
On 21.07.23 17:18, Eugenio Perez Martin wrote: On Wed, Jul 12, 2023 at 1:17 PM 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 f

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

2023-07-21 Thread Eugenio Perez Martin
On Wed, Jul 12, 2023 at 1:17 PM 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, > vhost_s

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

2023-07-20 Thread Hanna Czenczek
On 18.07.23 20:42, Stefan Hajnoczi wrote: On Wed, Jul 12, 2023 at 01:17:01PM +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 v2 3/4] vhost: Add high-level state save/load functions

2023-07-18 Thread Stefan Hajnoczi
On Wed, Jul 12, 2023 at 01:17:01PM +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 v2 3/4] vhost: Add high-level state save/load functions

2023-07-12 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