diff options
| author | Bibo Mao <maobibo@loongson.cn> | 2025-06-06 14:30:22 +0800 |
|---|---|---|
| committer | Song Gao <gaosong@loongson.cn> | 2025-06-19 15:43:11 +0800 |
| commit | 228c5413fb50ab43644689f4959c3ef1ef7571ea (patch) | |
| tree | e3bda9ea6415e4507ba2721d15eba9ca8828a482 /include/hw/intc | |
| parent | 8bf8814ab1aba0243127bcada19414dddbfe9e51 (diff) | |
| download | focaccia-qemu-228c5413fb50ab43644689f4959c3ef1ef7571ea.tar.gz focaccia-qemu-228c5413fb50ab43644689f4959c3ef1ef7571ea.zip | |
hw/intc/loongarch_extioi: 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 ExtIOI irqchip state from KVM kernel. Reviewed-by: Song Gao <gaosong@loongson.cn> Signed-off-by: Bibo Mao <maobibo@loongson.cn> Message-ID: <20250606063033.2557365-3-maobibo@loongson.cn> Signed-off-by: Song Gao <gaosong@loongson.cn>
Diffstat (limited to 'include/hw/intc')
| -rw-r--r-- | include/hw/intc/loongarch_extioi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/intc/loongarch_extioi.h b/include/hw/intc/loongarch_extioi.h index 69565e14ab..9be1d736ea 100644 --- a/include/hw/intc/loongarch_extioi.h +++ b/include/hw/intc/loongarch_extioi.h @@ -27,5 +27,7 @@ struct LoongArchExtIOIClass { }; void kvm_extioi_realize(DeviceState *dev, Error **errp); +int kvm_extioi_get(void *opaque); +int kvm_extioi_put(void *opaque, int version_id); #endif /* LOONGARCH_EXTIOI_H */ |