mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 12:23:53 -06:00
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>
This commit is contained in:
parent
9a96d41007
commit
d015d4cbb4
3 changed files with 16 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue