summary refs log tree commit diff stats
path: root/include/hw
diff options
context:
space:
mode:
authorBibo Mao <maobibo@loongson.cn>2024-11-08 15:42:05 +0800
committerBibo Mao <maobibo@loongson.cn>2024-12-19 15:23:30 +0800
commitff09444a88af9f5d55b9e315aa16d3ace1f25211 (patch)
tree5abe13bf4fe12844555f1b479ced99e7610b91e3 /include/hw
parent272c467a48815e77db89b69dcd251b9f5b22203e (diff)
downloadfocaccia-qemu-ff09444a88af9f5d55b9e315aa16d3ace1f25211.tar.gz
focaccia-qemu-ff09444a88af9f5d55b9e315aa16d3ace1f25211.zip
hw/intc/loongarch_extioi: Add pre_save interface
Add vmstate pre_save interface, which can be used extioi kvm driver
in future.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/intc/loongarch_extioi_common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/intc/loongarch_extioi_common.h b/include/hw/intc/loongarch_extioi_common.h
index d45caa45f2..f6bc778a85 100644
--- a/include/hw/intc/loongarch_extioi_common.h
+++ b/include/hw/intc/loongarch_extioi_common.h
@@ -92,6 +92,7 @@ struct LoongArchExtIOICommonClass {
     SysBusDeviceClass parent_class;
 
     DeviceRealize parent_realize;
+    int (*pre_save)(void *s);
     int (*post_load)(void *s, int version_id);
 };
 #endif /* LOONGARCH_EXTIOI_H */