aboutsummaryrefslogtreecommitdiff
path: root/rust/qemu-api/src/qdev.rs
diff options
context:
space:
mode:
authorZhao Liu <zhao1.liu@intel.com>2025-02-10 11:00:42 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2025-02-13 12:51:32 +0100
commitf32352ff9ea1ce3bdf432e29a587ccf84b1ec57a (patch)
tree860ae31003b8306f0c3a09c4da20c82085aba9e8 /rust/qemu-api/src/qdev.rs
parent7630ca2a701a0f79728996e660cda06518c97b9b (diff)
downloadqemu-f32352ff9ea1ce3bdf432e29a587ccf84b1ec57a.zip
qemu-f32352ff9ea1ce3bdf432e29a587ccf84b1ec57a.tar.gz
qemu-f32352ff9ea1ce3bdf432e29a587ccf84b1ec57a.tar.bz2
i386/fw_cfg: move hpet_cfg definition to hpet.c
HPET device needs to access and update hpet_cfg variable, but now it is defined in hw/i386/fw_cfg.c and Rust code can't access it. Move hpet_cfg definition to hpet.c (and rename it to hpet_fw_cfg). This allows Rust HPET device implements its own global hpet_fw_cfg variable, and will further reduce the use of unsafe C code access and calls in the Rust HPET implementation. Signed-off-by: Zhao Liu <zhao1.liu@intel.com> Link: https://lore.kernel.org/r/20250210030051.2562726-2-zhao1.liu@intel.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/qemu-api/src/qdev.rs')
0 files changed, 0 insertions, 0 deletions