]> git.ipfire.org Git - thirdparty/qemu.git/commit
rust: hpet: do not access fields of SysBusDevice
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 25 Feb 2025 09:06:20 +0000 (10:06 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 6 Mar 2025 11:44:47 +0000 (12:44 +0100)
commit09fda8f5dc925ba059aca539163d16796af6a299
tree986909c372b4d8524c0e44fe9f70c807c9d8352d
parentfc22d650d54363b8f2bad56aea1dde773f600067
rust: hpet: do not access fields of SysBusDevice

Fields of SysBusDevice must only be accessed with the BQL taken.  Add
a wrapper that verifies that.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rust/hw/timer/hpet/src/hpet.rs
rust/qemu-api/src/sysbus.rs