Re: [Qemu-devel] [PATCH 4/5] ram: Use MigrationStats for statistics

2017-06-06 Thread Peter Xu
On Tue, Jun 06, 2017 at 07:33:45PM +0200, Juan Quintela wrote: > Peter Xu wrote: > > On Mon, Jun 05, 2017 at 01:34:45PM +0100, Dr. David Alan Gilbert wrote: > >> * Juan Quintela (quint...@redhat.com) wrote: > >> > RAM Statistics need to survive migration to make info migrate

Re: [Qemu-devel] [PATCH 4/5] ram: Use MigrationStats for statistics

2017-06-06 Thread Juan Quintela
Peter Xu wrote: > On Mon, Jun 05, 2017 at 01:34:45PM +0100, Dr. David Alan Gilbert wrote: >> * Juan Quintela (quint...@redhat.com) wrote: >> > RAM Statistics need to survive migration to make info migrate work, so we >> > need to store them outside of RAMState. As we already

Re: [Qemu-devel] [PATCH 4/5] ram: Use MigrationStats for statistics

2017-06-06 Thread Peter Xu
On Mon, Jun 05, 2017 at 01:34:45PM +0100, Dr. David Alan Gilbert wrote: > * Juan Quintela (quint...@redhat.com) wrote: > > RAM Statistics need to survive migration to make info migrate work, so we > > need to store them outside of RAMState. As we already have an struct > > with those fields, just

Re: [Qemu-devel] [PATCH 4/5] ram: Use MigrationStats for statistics

2017-06-05 Thread Dr. David Alan Gilbert
* Juan Quintela (quint...@redhat.com) wrote: > RAM Statistics need to survive migration to make info migrate work, so we > need to store them outside of RAMState. As we already have an struct > with those fields, just used them. (MigrationStats and XBZRLECacheStats). > > Signed-off-by: Juan

[Qemu-devel] [PATCH 4/5] ram: Use MigrationStats for statistics

2017-06-01 Thread Juan Quintela
RAM Statistics need to survive migration to make info migrate work, so we need to store them outside of RAMState. As we already have an struct with those fields, just used them. (MigrationStats and XBZRLECacheStats). Signed-off-by: Juan Quintela --- migration/migration.c |