On 9/17/25 09:25, Zhao Liu wrote:
Only 3 types supports bit:

u32: qdev_prop_bit
u64: qdev_prop_bit64
OnOffAuto: qdev_prop_on_off_auto_bit64 (not support yet)

Yes, this one needs to wait for QAPI (unless we move OnOffAuto to core code).

So for other types don't support bit, they need default BIT_INFO item,
otherwise, we will meet the error:

  not all trait items implemented, missing: `BIT_INFO`

And this panic can provide richer info about why a type can't support
bit property. (I just refer the implementation of `trait VMState`).

Yep, looks good. I added to rust-next a couple patches that you can rebase on, to use the attrs crate.

Also please add a testcase.

Paolo


Reply via email to