diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-09-29 16:25:59 +0200 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-10-07 03:37:03 +0200 |
| commit | 8fe6ce40190872b4ccb4a3d601f4361b4bcdb0bb (patch) | |
| tree | 10e1d70077cb4fcf50aa8ac0cf1b8cae3b559d55 /include/system/ramblock.h | |
| parent | 34f9b0ad082268e347cee5c4903940e4ea67614f (diff) | |
| download | focaccia-qemu-8fe6ce40190872b4ccb4a3d601f4361b4bcdb0bb.tar.gz focaccia-qemu-8fe6ce40190872b4ccb4a3d601f4361b4bcdb0bb.zip | |
system/ramblock: Move ram_block_discard_*_range() declarations
Keep RAM blocks API in the same header: "system/ramblock.h". Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Acked-by: Peter Xu <peterx@redhat.com> Message-Id: <20251002032812.26069-4-philmd@linaro.org>
Diffstat (limited to 'include/system/ramblock.h')
| -rw-r--r-- | include/system/ramblock.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/system/ramblock.h b/include/system/ramblock.h index 7059b20d91..530c5a2e4c 100644 --- a/include/system/ramblock.h +++ b/include/system/ramblock.h @@ -103,6 +103,10 @@ struct RamBlockAttributes { QLIST_HEAD(, RamDiscardListener) rdl_list; }; +int ram_block_discard_range(RAMBlock *rb, uint64_t start, size_t length); +int ram_block_discard_guest_memfd_range(RAMBlock *rb, uint64_t start, + size_t length); + RamBlockAttributes *ram_block_attributes_create(RAMBlock *ram_block); void ram_block_attributes_destroy(RamBlockAttributes *attr); int ram_block_attributes_state_change(RamBlockAttributes *attr, uint64_t offset, |