On Wed, 12 Feb 2020 at 14:44, David Hildenbrand <[email protected]> wrote: > > We want to actually resize ram blocks (make everything between > used_length and max_length inaccessible) - however, not all ram block > notifiers will support that. Let's teach the notifier that ram blocks > are indeed resizable, but keep using max_size in the existing notifiers. > > Supply the max_size when adding and removing ram blocks. Also, notify on > resizes. Introduce a way to detect if any registered notifier does not > support resizes - ram_block_notifiers_support_resize() - which we can later > use to fallback to legacy handling if a registered notifier (esp., SEV and > HAX) does not support actual resizes. > > Cc: Richard Henderson <[email protected]> > Cc: Paolo Bonzini <[email protected]> > Cc: "Dr. David Alan Gilbert" <[email protected]> > Cc: Eduardo Habkost <[email protected]> > Cc: Marcel Apfelbaum <[email protected]> > Cc: Stefano Stabellini <[email protected]> > Cc: Anthony Perard <[email protected]> > Cc: Paul Durrant <[email protected]> > Cc: "Michael S. Tsirkin" <[email protected]> > Cc: [email protected] > Cc: Igor Mammedov <[email protected]> > Signed-off-by: David Hildenbrand <[email protected]>
Xen parts... Acked-by: Paul Durrant <[email protected]>
