Skip to contentSkip to conversation

i386: Fix the missing Rust HPET configuration option

PATCH In review Zhao Liu 2 participants 3 messages Feb 17, 2025 – Feb 18, 2025 Rust

lore
Share & tools
lore

Zhao Liu

author
#0 lore raw

PATCH 1/1 i386: Fix the missing Rust HPET configuration option

The configuration option of Rust HPET is missing, so that PC machine can't boot with "hpet=on" when QEMU Rust support is enabled.

Add the Rust HPET configuration option.

Fixes d128c341a744 ("i386: enable rust hpet for pc when rust is enabled")
---
 hw/timer/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)
hw/timer/Kconfig +4 -0
index 9ac008453408..c051597180f4 100644
@@ -13,6 +13,10 @@ config HPET
     bool
     default y if PC && !HAVE_RUST
 
+config X_HPET_RUST
+    bool
+    default y if PC && HAVE_RUST
+
 config I8254
     bool
     depends on ISA_BUS
Signature · 1 line
2.34.1
#1 lore raw
Quoted 16 lines · Zhao Liu

The configuration option of Rust HPET is missing, so that PC machine can't boot with "hpet=on" when QEMU Rust support is enabled.

Add the Rust HPET configuration option.

Fixes d128c341a744 ("i386: enable rust hpet for pc when rust is enabled")
---
  hw/timer/Kconfig | 4 ++++
  1 file changed, 4 insertions(+)
hw/timer/Kconfig +0 -0
index 9ac008453408..c051597180f4 100644

hw/timer/Kconfig config HPET · line 22

Quoted 10 lines
hw/timer/Kconfig +4 -0
@@ -13,6 +13,10 @@ config HPET
      bool
      default y if PC && !HAVE_RUST
 
+config X_HPET_RUST
+    bool
+    default y if PC && HAVE_RUST
+
  config I8254
      bool
      depends on ISA_BUS

The config item is already declared in rust/hw/timer/Kconfig, so it's enough to do

rust/hw/timer/Kconfig +1 -0
index afd98033503..42e421317a5 100644
@@ -1,2 +1,3 @@
 config X_HPET_RUST
     bool
+    default y if PC && HAVE_RUST

I applied it with your commit message.

Paolo

author
#2 lore raw
Quoted 12 lines

The config item is already declared in rust/hw/timer/Kconfig, so it's enough to do

rust/hw/timer/Kconfig +1 -0
index afd98033503..42e421317a5 100644
@@ -1,2 +1,3 @@
 config X_HPET_RUST
     bool
+    default y if PC && HAVE_RUST
Quoted 2 lines

I applied it with your commit message.

Ah, thanks! I misunderstood your comment before...

Regards,
Zhao