mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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>
This commit is contained in:
parent
1b063fe2df
commit
759cbb4ee9
3 changed files with 14 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue