diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/s390x/tod.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/hw/s390x/tod.h b/include/hw/s390x/tod.h index 413c0d7c02..cbd7552e7a 100644 --- a/include/hw/s390x/tod.h +++ b/include/hw/s390x/tod.h @@ -31,13 +31,19 @@ typedef struct S390TODState { /* private */ DeviceState parent_obj; - /* unused by KVM implementation */ + /* + * Used by TCG to remember the time base. Used by KVM to backup the TOD + * while the TOD is stopped. + */ S390TOD base; + /* Used by KVM to remember if the TOD is stopped and base is valid. */ + bool stopped; } S390TODState; typedef struct S390TODClass { /* private */ DeviceClass parent_class; + void (*parent_realize)(DeviceState *dev, Error **errp); /* public */ void (*get)(const S390TODState *td, S390TOD *tod, Error **errp); |