diff options
| author | Zhao Liu <zhao1.liu@intel.com> | 2025-09-21 00:05:17 +0800 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-09-22 17:17:19 +0200 |
| commit | a8f080215f79d211c4be0f896ad5f32dbc3b7c03 (patch) | |
| tree | 2721df0931809865eabb76312e7272d840472117 /rust/hw/timer/hpet | |
| parent | 9686aa9a05d9ef25c13ddc0af0123e2fc569b0ac (diff) | |
| download | focaccia-qemu-a8f080215f79d211c4be0f896ad5f32dbc3b7c03.tar.gz focaccia-qemu-a8f080215f79d211c4be0f896ad5f32dbc3b7c03.zip | |
rust/qdev: Test bit property for #property
There's a diference between Rust and C:
Though C macro (e.g., DEFINE_PROP_BIT or DEFINE_PROP_BIT64) always
requires default value, Rust side allows to omit this "default" field
in #property, and provides a default value ("0" - false) for this
field.
This minor difference does not break user habits and should be
acceptable. Therefore, the test cases also cover this scenario.
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Link: https://lore.kernel.org/r/20250920160520.3699591-10-zhao1.liu@intel.com
Diffstat (limited to 'rust/hw/timer/hpet')
0 files changed, 0 insertions, 0 deletions