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 | |
---|---|---|
.. | ||
arch_init.c | 4 months ago | |
async-teardown.c | 11 months ago | |
balloon.c | 6 months ago | |
bootdevice.c | 6 months ago | |
cpu-timers.c | 2 months ago | |
cpus.c | 2 months ago | |
datadir.c | 2 months ago | |
device_tree-stub.c | 4 months ago | |
device_tree.c | 4 months ago | |
dirtylimit.c | 2 months ago | |
dma-helpers.c | 2 months ago | |
globals-target.c | 4 months ago | |
globals.c | 4 months ago | |
ioport.c | 2 months ago | |
main.c | 1 month ago | |
memory-internal.h | 2 months ago | |
memory.c | 5 days ago | |
memory_ldst.c.inc | 5 months ago | |
memory_mapping.c | 2 months ago | |
meson.build | 5 days ago | |
physmem.c | 5 days ago | |
qdev-monitor.c | 4 months ago | |
qemu-seccomp.c | 6 months ago | |
qtest.c | 2 months ago | |
ram-block-attributes.c | 5 days ago | |
rtc.c | 6 months ago | |
runstate-action.c | 6 months ago | |
runstate-hmp-cmds.c | 5 months ago | |
runstate.c | 1 month ago | |
tpm-hmp-cmds.c | ||
tpm.c | 6 months ago | |
trace-events | 5 days ago | |
trace.h | ||
vl.c | 4 weeks ago | |
watchpoint.c | 2 months ago |