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> |
||
|---|---|---|
| .. | ||
| a9gtimer.h | ||
| allwinner-a10-pit.h | ||
| arm_mptimer.h | ||
| armv7m_systick.h | ||
| aspeed_timer.h | ||
| avr_timer16.h | ||
| bcm2835_systmr.h | ||
| cadence_ttc.h | ||
| cmsdk-apb-dualtimer.h | ||
| cmsdk-apb-timer.h | ||
| digic-timer.h | ||
| grlib_gptimer.h | ||
| hpet.h | ||
| i8254.h | ||
| i8254_internal.h | ||
| ibex_timer.h | ||
| imx_epit.h | ||
| imx_gpt.h | ||
| mips_gictimer.h | ||
| mss-timer.h | ||
| npcm7xx_timer.h | ||
| nrf51_timer.h | ||
| renesas_cmt.h | ||
| renesas_tmr.h | ||
| sifive_pwm.h | ||
| sse-counter.h | ||
| sse-timer.h | ||
| stellaris-gptm.h | ||
| stm32f2xx_timer.h | ||
| tmu012.h | ||