diff options
| author | Bibo Mao <maobibo@loongson.cn> | 2025-06-06 14:30:23 +0800 |
|---|---|---|
| committer | Song Gao <gaosong@loongson.cn> | 2025-06-19 15:44:40 +0800 |
| commit | 412f655566bfadfe85d6f52a7e4420b418f261c3 (patch) | |
| tree | c2566e4535cc0b748a19f48306b58501ea7ceb3c /include/hw/intc | |
| parent | 228c5413fb50ab43644689f4959c3ef1ef7571ea (diff) | |
| download | focaccia-qemu-412f655566bfadfe85d6f52a7e4420b418f261c3.tar.gz focaccia-qemu-412f655566bfadfe85d6f52a7e4420b418f261c3.zip | |
hw/intc/loongarch_ipi: Add kernel irqchip realize function
Function kvm_ipi_realize() is added if kvm_irqchip_in_kernel() return true. It is to create and initialize IPI device in kernel mode. Reviewed-by: Song Gao <gaosong@loongson.cn> Signed-off-by: Bibo Mao <maobibo@loongson.cn> Message-ID: <20250606063033.2557365-4-maobibo@loongson.cn> Signed-off-by: Song Gao <gaosong@loongson.cn>
Diffstat (limited to 'include/hw/intc')
| -rw-r--r-- | include/hw/intc/loongarch_ipi.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/intc/loongarch_ipi.h b/include/hw/intc/loongarch_ipi.h index a7c6bf85d3..608cd09a78 100644 --- a/include/hw/intc/loongarch_ipi.h +++ b/include/hw/intc/loongarch_ipi.h @@ -16,6 +16,7 @@ OBJECT_DECLARE_TYPE(LoongarchIPIState, LoongarchIPIClass, LOONGARCH_IPI) struct LoongarchIPIState { LoongsonIPICommonState parent_obj; + int dev_fd; }; struct LoongarchIPIClass { @@ -24,4 +25,6 @@ struct LoongarchIPIClass { ResettablePhases parent_phases; }; +void kvm_ipi_realize(DeviceState *dev, Error **errp); + #endif |