Re: [PATCH v3 1/2] qdev-properties: Add a new macro to validate bitmask for setter

2021-05-21 Thread Markus Armbruster
Like Xu writes: > The new generic DEFINE_PROP_BITMASK_UINT64 could be used to ensure > that a user-provided property value complies with its bitmask rule > and the default value is recommended to be set in instance_init(). > > Signed-off-by: Like Xu > --- > hw/core/qdev-properties.c| 19 +++

[PATCH v3 1/2] qdev-properties: Add a new macro to validate bitmask for setter

2021-05-07 Thread Like Xu
The new generic DEFINE_PROP_BITMASK_UINT64 could be used to ensure that a user-provided property value complies with its bitmask rule and the default value is recommended to be set in instance_init(). Signed-off-by: Like Xu --- hw/core/qdev-properties.c| 19 +++ include/hw/qd