[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 5/6] hw/intc/loongarch_extioi: Remove num-cpu property
From: |
Bibo Mao |
Subject: |
[PULL 5/6] hw/intc/loongarch_extioi: Remove num-cpu property |
Date: |
Thu, 9 Jan 2025 14:58:03 +0800 |
Since cpu number can be acquired from possible_cpu_arch_ids(),
num-cpu property is not necessary. Here remove num-cpu property
for object TYPE_LOONGARCH_EXTIOI_COMMON object.
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
---
hw/intc/loongarch_extioi_common.c | 1 -
hw/loongarch/virt.c | 1 -
2 files changed, 2 deletions(-)
diff --git a/hw/intc/loongarch_extioi_common.c
b/hw/intc/loongarch_extioi_common.c
index 99a091e30b..fd56253d10 100644
--- a/hw/intc/loongarch_extioi_common.c
+++ b/hw/intc/loongarch_extioi_common.c
@@ -95,7 +95,6 @@ static const VMStateDescription vmstate_loongarch_extioi = {
};
static const Property extioi_properties[] = {
- DEFINE_PROP_UINT32("num-cpu", LoongArchExtIOICommonState, num_cpu, 1),
DEFINE_PROP_BIT("has-virtualization-extension", LoongArchExtIOICommonState,
features, EXTIOI_HAS_VIRT_EXTENSION, 0),
};
diff --git a/hw/loongarch/virt.c b/hw/loongarch/virt.c
index 60bd4dc9d3..df56d75a6e 100644
--- a/hw/loongarch/virt.c
+++ b/hw/loongarch/virt.c
@@ -921,7 +921,6 @@ static void virt_irq_init(LoongArchVirtMachineState *lvms)
/* Create EXTIOI device */
extioi = qdev_new(TYPE_LOONGARCH_EXTIOI);
- qdev_prop_set_uint32(extioi, "num-cpu", ms->smp.cpus);
if (virt_is_veiointc_enabled(lvms)) {
qdev_prop_set_bit(extioi, "has-virtualization-extension", true);
}
--
2.43.5
- [PULL 0/6] loongarch-to-apply queue, Bibo Mao, 2025/01/09
- [PULL 6/6] hw/intc/loongarch_extioi: Add irq routing support from physical id, Bibo Mao, 2025/01/09
- [PULL 1/6] hw/core/loader: Use ssize_t for efi zboot unpacker, Bibo Mao, 2025/01/09
- [PULL 4/6] hw/intc/loongarch_extioi: Get cpu number from possible_cpu_arch_ids, Bibo Mao, 2025/01/09
- [PULL 5/6] hw/intc/loongarch_extioi: Remove num-cpu property,
Bibo Mao <=
- [PULL 2/6] hw/loongarch/boot: Support Linux raw boot image, Bibo Mao, 2025/01/09
- [PULL 3/6] target/loongarch: Only support 64bit pte width, Bibo Mao, 2025/01/09
- Re: [PULL 0/6] loongarch-to-apply queue, Stefan Hajnoczi, 2025/01/09