diff options
author | Zhao Liu <zhao1.liu@intel.com> | 2025-01-25 20:51:32 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-02-13 12:51:34 +0100 |
commit | d015d4cbb4d16cf8adc8c10cbd2d0a45f014dad1 (patch) | |
tree | d0e0711db0971371137781ed427ffb8a99229795 /rust/qemu-api/src/zeroable.rs | |
parent | 9a96d410073df04808c6757fd4aab6cb8684b301 (diff) | |
download | qemu-d015d4cbb4d16cf8adc8c10cbd2d0a45f014dad1.zip qemu-d015d4cbb4d16cf8adc8c10cbd2d0a45f014dad1.tar.gz qemu-d015d4cbb4d16cf8adc8c10cbd2d0a45f014dad1.tar.bz2 |
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>
Diffstat (limited to 'rust/qemu-api/src/zeroable.rs')
-rw-r--r-- | rust/qemu-api/src/zeroable.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/qemu-api/src/zeroable.rs b/rust/qemu-api/src/zeroable.rs index 75742b5..9f00960 100644 --- a/rust/qemu-api/src/zeroable.rs +++ b/rust/qemu-api/src/zeroable.rs @@ -101,3 +101,4 @@ impl_zeroable!(crate::bindings::VMStateDescription); impl_zeroable!(crate::bindings::MemoryRegionOps__bindgen_ty_1); impl_zeroable!(crate::bindings::MemoryRegionOps__bindgen_ty_2); impl_zeroable!(crate::bindings::MemoryRegionOps); +impl_zeroable!(crate::bindings::MemTxAttrs); |