diff options
| author | Bibo Mao <maobibo@loongson.cn> | 2025-06-06 14:30:25 +0800 |
|---|---|---|
| committer | Song Gao <gaosong@loongson.cn> | 2025-06-19 15:46:28 +0800 |
| commit | f936caa315750406f50feb1ac9c93770b47ebe96 (patch) | |
| tree | e414c359a2b1b2f2ecb1a0e9fcc2127908ab7990 /include/hw/intc | |
| parent | 14be318c952ce2c29f2a69204a23c0008f779a3f (diff) | |
| download | focaccia-qemu-f936caa315750406f50feb1ac9c93770b47ebe96.tar.gz focaccia-qemu-f936caa315750406f50feb1ac9c93770b47ebe96.zip | |
hw/intc/loongarch_ipi: Add kernel irqchip save and restore function
Add save and store funtction if kvm_irqchip_in_kernel() return true, it is to get and set IPI irqchip state from KVM kernel. Reviewed-by: Song Gao <gaosong@loongson.cn> Signed-off-by: Bibo Mao <maobibo@loongson.cn> Message-ID: <20250606063033.2557365-6-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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/intc/loongarch_ipi.h b/include/hw/intc/loongarch_ipi.h index 608cd09a78..5175a6b004 100644 --- a/include/hw/intc/loongarch_ipi.h +++ b/include/hw/intc/loongarch_ipi.h @@ -26,5 +26,7 @@ struct LoongarchIPIClass { }; void kvm_ipi_realize(DeviceState *dev, Error **errp); +int kvm_ipi_get(void *opaque); +int kvm_ipi_put(void *opaque, int version_id); #endif |