mirror of https://gitlab.com/qemu-project/qemu
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
![]() A new field, attributes, was introduced in RAMBlock to link to a RamBlockAttributes object, which centralizes all guest_memfd related information (such as fd and status bitmap) within a RAMBlock. Create and initialize the RamBlockAttributes object upon ram_block_add(). Meanwhile, register the object in the target RAMBlock's MemoryRegion. After that, guest_memfd-backed RAMBlock is associated with the RamDiscardManager interface, and the users can execute RamDiscardManager specific handling. For example, VFIO will register the RamDiscardListener and get notifications when the state_change() helper invokes. As coordinate discarding of RAM with guest_memfd is now supported, only block uncoordinated discard. Tested-by: Alexey Kardashevskiy <aik@amd.com> Reviewed-by: Alexey Kardashevskiy <aik@amd.com> Acked-by: David Hildenbrand <david@redhat.com> Signed-off-by: Chenyi Qiang <chenyi.qiang@intel.com> Link: https://lore.kernel.org/r/20250612082747.51539-6-chenyi.qiang@intel.com Signed-off-by: Peter Xu <peterx@redhat.com> |
5 days ago | |
---|---|---|
.. | ||
hvf | 3 weeks ago | |
kvm | 5 days ago | |
qtest | 2 months ago | |
stubs | 2 months ago | |
tcg | 4 weeks ago | |
xen | 2 months ago | |
Kconfig | 4 months ago | |
accel-blocker.c | 6 months ago | |
accel-common.c | 2 months ago | |
accel-internal.h | 2 months ago | |
accel-system.c | 2 months ago | |
accel-target.c | 2 months ago | |
accel-user.c | 2 months ago | |
dummy-cpus.c | 6 months ago | |
meson.build | 2 months ago |