diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2024-12-29 11:59:34 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-01-23 11:50:53 +0100 |
commit | f2cb78bdbe5f9ff61366beb216971a8502456c3a (patch) | |
tree | 2554bfcbaa5bf79e6a5bd9ae703ff5b3b9f97a44 /rust/qemu-api/src/module.rs | |
parent | 2537f8309885013c4b04ae7b2888591ba0cb6ca7 (diff) | |
download | qemu-f2cb78bdbe5f9ff61366beb216971a8502456c3a.zip qemu-f2cb78bdbe5f9ff61366beb216971a8502456c3a.tar.gz qemu-f2cb78bdbe5f9ff61366beb216971a8502456c3a.tar.bz2 |
rust: vmstate: implement VMState for scalar types
Scalar types are those that have their own VMStateInfo. This poses
a problem in that references to VMStateInfo can only be included in
associated consts starting with Rust 1.83.0, when the const_refs_static
was stabilized. Removing the requirement is done by placing a limited
list of VMStateInfos in an enum, and going from enum to &VMStateInfo
only when building the VMStateField.
The same thing cannot be done with VMS_STRUCT because the set of
VMStateDescriptions extends to structs defined by the devices.
Therefore, structs and cells cannot yet use vmstate_of!.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/qemu-api/src/module.rs')
0 files changed, 0 insertions, 0 deletions