diff options
| author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2026-06-04 17:43:48 +0400 |
|---|---|---|
| committer | Peter Xu <peterx@redhat.com> | 2026-06-22 17:08:48 -0400 |
| commit | d444e348b11b3f06a2cbbc19281095a9433355bd (patch) | |
| tree | fadab3e8a794f0a75c02bef0ac943299baa1a57a /rust | |
| parent | 43d1320c6ca812a16078132634cad571923e9180 (diff) | |
| download | qemu-d444e348b11b3f06a2cbbc19281095a9433355bd.tar.gz qemu-d444e348b11b3f06a2cbbc19281095a9433355bd.zip | |
system/memory: move RamDiscardManager to separate compilation unit
Extract RamDiscardManager and RamDiscardSource from system/memory.c into
dedicated a unit.
This reduces coupling and allows code that only needs the
RamDiscardManager interface to avoid pulling in all of memory.h
dependencies.
rust-sys bindings are no longer generated for RamDiscardSourceClass at
this point, thus we drop the unneeded InterfaceClass use.
Reviewed-by: Peter Xu <peterx@redhat.com>
Acked-by: David Hildenbrand <david@kernel.org>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260604-rdm5-v5-2-5768e6a0943d@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'rust')
| -rw-r--r-- | rust/bindings/system-sys/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/bindings/system-sys/lib.rs b/rust/bindings/system-sys/lib.rs index 022fe65dd8..30adf683c3 100644 --- a/rust/bindings/system-sys/lib.rs +++ b/rust/bindings/system-sys/lib.rs @@ -20,7 +20,7 @@ use common::Zeroable; use hwcore_sys::{qemu_irq, DeviceClass, DeviceState}; -use qom_sys::{InterfaceClass, Object, ObjectClass}; +use qom_sys::{Object, ObjectClass}; use util_sys::{Error, EventNotifier, QEMUBH}; #[cfg(MESON)] |
