On Wed, Feb 19, 2020 at 05:17:15PM +0100, David Hildenbrand wrote: > Ram block notifiers are currently not aware of resizes. Especially to > handle resizes during migration, but also to implement actually resizeable > ram blocks (make everything between used_length and max_length > inaccessible), we want to teach ram block notifiers about resizeable > ram. > > Introduce the basic infrastructure but keep using max_size in the > existing notifiers. Supply the max_size when adding and removing ram > blocks. Also, notify on resizes. > > Acked-by: Paul Durrant <p...@xen.org> > Cc: Richard Henderson <r...@twiddle.net> > Cc: Paolo Bonzini <pbonz...@redhat.com> > Cc: "Dr. David Alan Gilbert" <dgilb...@redhat.com> > Cc: Eduardo Habkost <ehabk...@redhat.com> > Cc: Marcel Apfelbaum <marcel.apfelb...@gmail.com> > Cc: Stefano Stabellini <sstabell...@kernel.org> > Cc: Anthony Perard <anthony.per...@citrix.com> > Cc: Paul Durrant <p...@xen.org> > Cc: "Michael S. Tsirkin" <m...@redhat.com> > Cc: xen-de...@lists.xenproject.org > Cc: Igor Mammedov <imamm...@redhat.com> > Signed-off-by: David Hildenbrand <da...@redhat.com>
Reviewed-by: Peter Xu <pet...@redhat.com> -- Peter Xu