diff options
| author | Manos Pitsidianakis <manos.pitsidianakis@linaro.org> | 2024-10-25 07:55:50 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-11-05 14:18:16 +0100 |
| commit | 0a65e4124ad9c6dab594d738cac31fd32d19402c (patch) | |
| tree | 38bc823e1ede73b98a953a4e6fae3a7e6ac314ec /rust/qemu-api/meson.build | |
| parent | f60f3670fd15edaa9dc6471dde26703b4417b815 (diff) | |
| download | focaccia-qemu-0a65e4124ad9c6dab594d738cac31fd32d19402c.tar.gz focaccia-qemu-0a65e4124ad9c6dab594d738cac31fd32d19402c.zip | |
rust: add definitions for vmstate
Add a new qemu_api module, `vmstate`. Declare a bunch of Rust macros declared that are equivalent in spirit to the C macros in include/migration/vmstate.h. For example the Rust of equivalent of the C macro: VMSTATE_UINT32(field_name, struct_name) is: vmstate_uint32!(field_name, StructName) This breathtaking development will allow us to reach feature parity between the Rust and C pl011 implementations. Extracted from a patch by Manos Pitsidianakis (https://lore.kernel.org/qemu-devel/20241024-rust-round-2-v1-4-051e7a25b978@linaro.org/). Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/qemu-api/meson.build')
| -rw-r--r-- | rust/qemu-api/meson.build | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/qemu-api/meson.build b/rust/qemu-api/meson.build index 1b0fd40637..3b849f7c41 100644 --- a/rust/qemu-api/meson.build +++ b/rust/qemu-api/meson.build @@ -5,6 +5,7 @@ _qemu_api_rs = static_library( 'src/lib.rs', 'src/definitions.rs', 'src/device_class.rs', + 'src/vmstate.rs', 'src/zeroable.rs', ], {'.' : bindings_rs}, |