]> git.ipfire.org Git - thirdparty/qemu.git/commit
rust: add bindings for memattrs
authorZhao Liu <zhao1.liu@intel.com>
Sat, 25 Jan 2025 12:51:32 +0000 (20:51 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 13 Feb 2025 11:51:34 +0000 (12:51 +0100)
commitd015d4cbb4d16cf8adc8c10cbd2d0a45f014dad1
treed0e0711db0971371137781ed427ffb8a99229795
parent9a96d410073df04808c6757fd4aab6cb8684b301
rust: add bindings for memattrs

The MemTxAttrs structure contains bitfield members, and bindgen is
unable to generate an equivalent macro definition for
MEMTXATTRS_UNSPECIFIED.

Therefore, manually define a global constant variable
MEMTXATTRS_UNSPECIFIED to support calls from Rust code.

Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20250125125137.1223277-6-zhao1.liu@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rust/qemu-api/src/memory.rs
rust/qemu-api/src/zeroable.rs
rust/wrapper.h