[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 01/10] i386/fw_cfg: move hpet_cfg definition to hpet.c
From: |
Paolo Bonzini |
Subject: |
Re: [PATCH v2 01/10] i386/fw_cfg: move hpet_cfg definition to hpet.c |
Date: |
Thu, 13 Feb 2025 12:25:55 +0100 |
On Mon, Feb 10, 2025 at 3:41 AM Zhao Liu <zhao1.liu@intel.com> wrote:
> diff --git a/hw/i386/fw_cfg.c b/hw/i386/fw_cfg.c
> index d2cb08715a21..546de63123e6 100644
> --- a/hw/i386/fw_cfg.c
> +++ b/hw/i386/fw_cfg.c
> @@ -26,8 +26,6 @@
> #include CONFIG_DEVICES
> #include "target/i386/cpu.h"
>
> -struct hpet_fw_config hpet_cfg = {.count = UINT8_MAX};
This must be kept for the case where HPET is not enabled at all in the
build; removing the FW_CFG_HPET file changes the guest API and I'd
prefer to merge the Rust HPET implementation without having to figure
out the safety of that change.
No need to do anything, I'll just make it
#if !defined(CONFIG_HPET) && !defined(CONFIG_X_HPET_RUST)
const struct hpet_fw_config hpet_fw_cfg = {.count = UINT8_MAX};
#endif
Paolo
- [PATCH v2 00/10] rust: Add HPET timer device, Zhao Liu, 2025/02/09
- [PATCH v2 02/10] rust/qdev: add the macro to define bit property, Zhao Liu, 2025/02/09
- [PATCH v2 03/10] rust/irq: Add a helper to convert [InterruptSource] to pointer, Zhao Liu, 2025/02/09
- [PATCH v2 01/10] i386/fw_cfg: move hpet_cfg definition to hpet.c, Zhao Liu, 2025/02/09
- Re: [PATCH v2 01/10] i386/fw_cfg: move hpet_cfg definition to hpet.c,
Paolo Bonzini <=
- [PATCH v2 05/10] rust: add bindings for memattrs, Zhao Liu, 2025/02/09
- [PATCH v2 04/10] rust: add bindings for gpio_{in|out} initialization, Zhao Liu, 2025/02/09
- [PATCH v2 06/10] rust: add bindings for timer, Zhao Liu, 2025/02/09
- [PATCH v2 07/10] rust/timer/hpet: define hpet_fw_cfg, Zhao Liu, 2025/02/09
- [PATCH v2 08/10] rust/timer/hpet: add basic HPET timer and HPETState, Zhao Liu, 2025/02/09
- [PATCH v2 09/10] rust/timer/hpet: add qom and qdev APIs support, Zhao Liu, 2025/02/09
- [PATCH v2 10/10] i386: enable rust hpet for pc when rust is enabled, Zhao Liu, 2025/02/09