physmem: Introduce ram_block_discard_guest_memfd_range()
authorXiaoyao Li <xiaoyao.li@intel.com>
Wed, 20 Mar 2024 08:39:07 +0000 (03:39 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 23 Apr 2024 15:35:26 +0000 (17:35 +0200)
commitb2e9426c04fdd32d93a3a37db6b0c2e67c88c335
treea9834ac90f0493c8a24502d2c6f1c7c97667aa6a
parent852f0048f3ea9f14de18eb279a99fccb6d250e8f
physmem: Introduce ram_block_discard_guest_memfd_range()

When memory page is converted from private to shared, the original
private memory is back'ed by guest_memfd. Introduce
ram_block_discard_guest_memfd_range() for discarding memory in
guest_memfd.

Based on a patch by Isaku Yamahata <isaku.yamahata@intel.com>.

Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Michael Roth <michael.roth@amd.com>
Message-ID: <20240320083945.991426-12-michael.roth@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/exec/cpu-common.h
system/physmem.c