numa: Teach ram block notifiers about resizeable ram blocks
authorDavid Hildenbrand <david@redhat.com>
Thu, 29 Apr 2021 11:27:00 +0000 (13:27 +0200)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 13 May 2021 17:21:13 +0000 (18:21 +0100)
commit8f44304c76036ac8544468c9306c5b30d1fdd201
treef7243f9d71405efcf1f6288a83d88d3dbe92c674
parent082851a3af1450fa714e9a0a3ca7cb4b9dbd8855
numa: Teach ram block notifiers about resizeable ram blocks

Ram block notifiers are currently not aware of resizes. To properly
handle resizes during migration, 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 <paul@xen.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Cc: xen-devel@lists.xenproject.org
Cc: haxm-team@intel.com
Cc: Paul Durrant <paul@xen.org>
Cc: Stefano Stabellini <sstabellini@kernel.org>
Cc: Anthony Perard <anthony.perard@citrix.com>
Cc: Wenchao Wang <wenchao.wang@intel.com>
Cc: Colin Xu <colin.xu@intel.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20210429112708.12291-3-david@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
hw/core/numa.c
hw/i386/xen/xen-mapcache.c
include/exec/ramlist.h
softmmu/physmem.c
target/i386/hax/hax-mem.c
target/i386/sev.c
util/vfio-helpers.c