aboutsummaryrefslogtreecommitdiff
path: root/rust/wrapper.h
diff options
context:
space:
mode:
authorZhao Liu <zhao1.liu@intel.com>2025-01-25 20:51:32 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2025-02-13 12:51:34 +0100
commitd015d4cbb4d16cf8adc8c10cbd2d0a45f014dad1 (patch)
treed0e0711db0971371137781ed427ffb8a99229795 /rust/wrapper.h
parent9a96d410073df04808c6757fd4aab6cb8684b301 (diff)
downloadqemu-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/wrapper.h')
-rw-r--r--rust/wrapper.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/wrapper.h b/rust/wrapper.h
index a9bc67a..54839ce 100644
--- a/rust/wrapper.h
+++ b/rust/wrapper.h
@@ -62,3 +62,4 @@ typedef enum memory_order {
#include "qapi/error.h"
#include "migration/vmstate.h"
#include "chardev/char-serial.h"
+#include "exec/memattrs.h"