]> git.ipfire.org Git - thirdparty/qemu.git/commit
memory: Unify the definiton of ReplayRamPopulate() and ReplayRamDiscard()
authorChenyi Qiang <chenyi.qiang@intel.com>
Thu, 12 Jun 2025 08:27:44 +0000 (16:27 +0800)
committerPeter Xu <peterx@redhat.com>
Mon, 23 Jun 2025 20:03:59 +0000 (16:03 -0400)
commit2205b8466733f8c6e3306c964f31c5a7cac69dfa
tree7a1b35a8bdcbcb763af65476bc0539de2d8aa670
parentff1211154c45c9f7f82116ae9a8c72a848e4a8b5
memory: Unify the definiton of ReplayRamPopulate() and ReplayRamDiscard()

Update ReplayRamDiscard() function to return the result and unify the
ReplayRamPopulate() and ReplayRamDiscard() to ReplayRamDiscardState() at
the same time due to their identical definitions. This unification
simplifies related structures, such as VirtIOMEMReplayData, which makes
it cleaner.

Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@amd.com>
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Signed-off-by: Chenyi Qiang <chenyi.qiang@intel.com>
Link: https://lore.kernel.org/r/20250612082747.51539-4-chenyi.qiang@intel.com
Signed-off-by: Peter Xu <peterx@redhat.com>
hw/virtio/virtio-mem.c
include/system/memory.h
migration/ram.c
system/memory.c