qapi event: convert DEVICE_DELETED
[qemu/cris-port.git] / qapi-event.json
blobc880d77291e5f5688f127e86cafa7b89dc2c6176
1 ##
2 # @SHUTDOWN
4 # Emitted when the virtual machine has shutdown, possibly indicating that QEMU
5 # is about about to exit.
7 # Note: If the command-line option "-no-shutdown" has been specified, qemu will
8 # not exit, and a STOP event will eventually follow the SHUTDOWN event
10 # Since: 0.12.0
12 { 'event': 'SHUTDOWN' }
15 # @POWERDOWN
17 # Emitted when the virtual machine is powered down through the power control
18 # system, such as via ACPI.
20 # Since: 0.12.0
22 { 'event': 'POWERDOWN' }
25 # @RESET
27 # Emitted when the virtual machine is reset
29 # Since: 0.12.0
31 { 'event': 'RESET' }
34 # @STOP
36 # Emitted when the virtual machine is stopped
38 # Since: 0.12.0
40 { 'event': 'STOP' }
43 # @RESUME
45 # Emitted when the virtual machine resumes execution
47 # Since: 0.12.0
49 { 'event': 'RESUME' }
52 # @SUSPEND
54 # Emitted when guest enters a hardware suspension state, for example, S3 state,
55 # which is sometimes called standby state
57 # Since: 1.1
59 { 'event': 'SUSPEND' }
62 # @SUSPEND_DISK
64 # Emitted when guest enters a hardware suspension state with data saved on
65 # disk, for example, S4 state, which is sometimes called hibernate state
67 # Note: QEMU shuts down (similar to event @SHUTDOWN) when entering this state
69 # Since: 1.2
71 { 'event': 'SUSPEND_DISK' }
74 # @WAKEUP
76 # Emitted when the guest has woken up from suspend state and is running
78 # Since: 1.1
80 { 'event': 'WAKEUP' }
83 # @RTC_CHANGE
85 # Emitted when the guest changes the RTC time.
87 # @offset: offset between base RTC clock (as specified by -rtc base), and
88 #          new RTC clock value
90 # Since: 0.13.0
92 { 'event': 'RTC_CHANGE',
93   'data': { 'offset': 'int' } }
96 # @WATCHDOG
98 # Emitted when the watchdog device's timer is expired
100 # @action: action that has been taken
102 # Note: If action is "reset", "shutdown", or "pause" the WATCHDOG event is
103 # followed respectively by the RESET, SHUTDOWN, or STOP events
105 # Since: 0.13.0
107 { 'event': 'WATCHDOG',
108   'data': { 'action': 'WatchdogExpirationAction' } }
111 # @DEVICE_DELETED
113 # Emitted whenever the device removal completion is acknowledged by the guest.
114 # At this point, it's safe to reuse the specified device ID. Device removal can
115 # be initiated by the guest or by HMP/QMP commands.
117 # @device: #optional, device name
119 # @path: device path
121 # Since: 1.5
123 { 'event': 'DEVICE_DELETED',
124   'data': { '*device': 'str', 'path': 'str' } }