diff options
| author | Juraj Marcin <jmarcin@redhat.com> | 2024-09-04 12:37:13 +0200 |
|---|---|---|
| committer | David Hildenbrand <david@redhat.com> | 2024-09-24 11:33:35 +0200 |
| commit | 759cbb4ee971da13ddfa8ad73befc2351d542044 (patch) | |
| tree | 0e281b023cf4358b4400488c44ad90c45ae25b7f /include | |
| parent | 1b063fe2df002052cc2d10799764979b8c583480 (diff) | |
| download | focaccia-qemu-759cbb4ee971da13ddfa8ad73befc2351d542044.tar.gz focaccia-qemu-759cbb4ee971da13ddfa8ad73befc2351d542044.zip | |
reset: Add RESET_TYPE_WAKEUP
Some devices need to distinguish cold start reset from waking up from a suspended state. This patch adds new value to the enum, and updates the i386 wakeup method to use this new reset type. Message-ID: <20240904103722.946194-3-jmarcin@redhat.com> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Juraj Marcin <jmarcin@redhat.com> Signed-off-by: David Hildenbrand <david@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/hw/resettable.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/resettable.h b/include/hw/resettable.h index 94f6f22e3c..fd862f1e9f 100644 --- a/include/hw/resettable.h +++ b/include/hw/resettable.h @@ -29,6 +29,7 @@ typedef struct ResettableState ResettableState; * Types of reset. * * + Cold: reset resulting from a power cycle of the object. + * + Wakeup: reset resulting from a wake-up from a suspended state. * * TODO: Support has to be added to handle more types. In particular, * ResettableState structure needs to be expanded. @@ -36,6 +37,7 @@ typedef struct ResettableState ResettableState; typedef enum ResetType { RESET_TYPE_COLD, RESET_TYPE_SNAPSHOT_LOAD, + RESET_TYPE_WAKEUP, RESET_TYPE_S390_CPU_INITIAL, RESET_TYPE_S390_CPU_NORMAL, } ResetType; |