aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCorey Minyard <cminyard@mvista.com>2016-12-22 12:28:23 -0600
committerCorey Minyard <cminyard@mvista.com>2019-02-27 21:06:08 -0600
commit4ab2f2a8aabfea95cc53c64e13b3f67960b27fdf (patch)
treecdffe992b01919724c9320bed2c3646e60d2b540 /include
parent8e995f34031d66666b45b779458cb370e86cfe2d (diff)
downloadqemu-4ab2f2a8aabfea95cc53c64e13b3f67960b27fdf.zip
qemu-4ab2f2a8aabfea95cc53c64e13b3f67960b27fdf.tar.gz
qemu-4ab2f2a8aabfea95cc53c64e13b3f67960b27fdf.tar.bz2
i2c:pm_smbus: Fix state transfer
Transfer the state information for the SMBus registers and internal data so it will work on a VM transfer. Signed-off-by: Corey Minyard <cminyard@mvista.com> Cc: Michael S. Tsirkin <mst@redhat.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/i2c/pm_smbus.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/hw/i2c/pm_smbus.h b/include/hw/i2c/pm_smbus.h
index 7bcca97..fb55c44 100644
--- a/include/hw/i2c/pm_smbus.h
+++ b/include/hw/i2c/pm_smbus.h
@@ -43,4 +43,13 @@ typedef struct PMSMBus {
void pm_smbus_init(DeviceState *parent, PMSMBus *smb, bool force_aux_blk);
+/*
+ * For backwards compatibility on migration, older versions don't have
+ * working migration for pm_smbus, this lets us ignore the migrations
+ * for older machine versions.
+ */
+bool pm_smbus_vmstate_needed(void);
+
+extern const VMStateDescription pmsmb_vmstate;
+
#endif /* PM_SMBUS_H */