diff options
author | Bibo Mao <maobibo@loongson.cn> | 2025-06-06 14:30:27 +0800 |
---|---|---|
committer | Song Gao <gaosong@loongson.cn> | 2025-06-19 15:49:22 +0800 |
commit | b758e28974614a15e70fbc983e28fe77852564ee (patch) | |
tree | c7d4a92a4b1c06ca278e978d5a8c767dc8234855 /include | |
parent | 5b0e05b9023793197b82fd6feb275459adc9e10c (diff) | |
download | qemu-b758e28974614a15e70fbc983e28fe77852564ee.zip qemu-b758e28974614a15e70fbc983e28fe77852564ee.tar.gz qemu-b758e28974614a15e70fbc983e28fe77852564ee.tar.bz2 |
hw/intc/loongarch_pch: Add kernel irqchip realize function
Function kvm_pic_realize() is added if kvm_irqchip_in_kernel() return true.
It is to notify KVM kernel to create and initialize PCH PCI device in
kernel mode.
Reviewed-by: Song Gao <gaosong@loongson.cn>
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Message-ID: <20250606063033.2557365-8-maobibo@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/intc/loongarch_pch_pic.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/intc/loongarch_pch_pic.h b/include/hw/intc/loongarch_pch_pic.h index 839a59a..4b52f11 100644 --- a/include/hw/intc/loongarch_pch_pic.h +++ b/include/hw/intc/loongarch_pch_pic.h @@ -16,6 +16,7 @@ OBJECT_DECLARE_TYPE(LoongarchPICState, LoongarchPICClass, LOONGARCH_PIC) struct LoongarchPICState { LoongArchPICCommonState parent_obj; + int dev_fd; }; struct LoongarchPICClass { @@ -25,4 +26,6 @@ struct LoongarchPICClass { ResettablePhases parent_phases; }; +void kvm_pic_realize(DeviceState *dev, Error **errp); + #endif /* HW_LOONGARCH_PCH_PIC_H */ |