commit | d36f165d9523a5d151f11888938fcc66a6dd10df | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Fri Oct 18 11:18:25 2024 +0200 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Tue Nov 05 14:18:14 2024 +0100 |
tree | 531195304568083712eb91cbf59452e615458351 | |
parent | 11b8920ed2093848f79f93d106afe8a69a61a523 [diff] |
qdev: make properties array "const" Constify all accesses to qdev properties, except for the ObjectPropertyAccessor itself. This makes it possible to place them in read-only memory, and also lets Rust bindings switch from "static mut" arrays to "static"; which is advantageous, because mutable statics are highly discouraged. Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>