diff options
author | Zhao Liu <zhao1.liu@intel.com> | 2025-02-10 11:00:42 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-02-13 12:51:32 +0100 |
commit | f32352ff9ea1ce3bdf432e29a587ccf84b1ec57a (patch) | |
tree | 860ae31003b8306f0c3a09c4da20c82085aba9e8 /rust/qemu-api/src/qdev.rs | |
parent | 7630ca2a701a0f79728996e660cda06518c97b9b (diff) | |
download | qemu-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