7 # Emitted when the guest changes the RTC time.
9 # @offset: offset between base RTC clock (as specified by -rtc base), and
12 # Note: This event is rate-limited.
18 # <- { "event": "RTC_CHANGE",
19 # "data": { "offset": 78 },
20 # "timestamp": { "seconds": 1267020223, "microseconds": 435656 } }
23 { 'event': 'RTC_CHANGE',
24 'data': { 'offset': 'int' },
25 'if': 'defined(TARGET_ALPHA) || defined(TARGET_ARM) || defined(TARGET_HPPA) || defined(TARGET_I386) || defined(TARGET_MIPS) || defined(TARGET_MIPS64) || defined(TARGET_MOXIE) || defined(TARGET_PPC) || defined(TARGET_PPC64) || defined(TARGET_S390X) || defined(TARGET_SH4) || defined(TARGET_SPARC)' }
28 # @rtc-reset-reinjection:
30 # This command will reset the RTC interrupt reinjection backlog.
31 # Can be used if another mechanism to synchronize guest time
32 # is in effect, for example QEMU guest agent's guest-set-time
39 # -> { "execute": "rtc-reset-reinjection" }
43 { 'command': 'rtc-reset-reinjection',
44 'if': 'defined(TARGET_I386)' }
50 # An enumeration of SEV state information used during @query-sev.
52 # @uninit: The guest is uninitialized.
54 # @launch-update: The guest is currently being launched; plaintext data and
55 # register state is being imported.
57 # @launch-secret: The guest is currently being launched; ciphertext data
60 # @running: The guest is fully launched or migrated in.
62 # @send-update: The guest is currently being migrated out to another machine.
64 # @receive-update: The guest is currently being migrated from another machine.
69 'data': ['uninit', 'launch-update', 'launch-secret', 'running',
70 'send-update', 'receive-update' ],
71 'if': 'defined(TARGET_I386)' }
76 # Information about Secure Encrypted Virtualization (SEV) support
78 # @enabled: true if SEV is active
80 # @api-major: SEV API major version
82 # @api-minor: SEV API minor version
84 # @build-id: SEV FW build id
86 # @policy: SEV policy value
88 # @state: SEV guest state
90 # @handle: SEV firmware handle
94 { 'struct': 'SevInfo',
95 'data': { 'enabled': 'bool',
97 'api-minor' : 'uint8',
100 'state' : 'SevState',
103 'if': 'defined(TARGET_I386)'
109 # Returns information about SEV
117 # -> { "execute": "query-sev" }
118 # <- { "return": { "enabled": true, "api-major" : 0, "api-minor" : 0,
119 # "build-id" : 0, "policy" : 0, "state" : "running",
123 { 'command': 'query-sev', 'returns': 'SevInfo',
124 'if': 'defined(TARGET_I386)' }
128 # @SevLaunchMeasureInfo:
130 # SEV Guest Launch measurement information
132 # @data: the measurement value encoded in base64
137 { 'struct': 'SevLaunchMeasureInfo', 'data': {'data': 'str'},
138 'if': 'defined(TARGET_I386)' }
141 # @query-sev-launch-measure:
143 # Query the SEV guest launch information.
145 # Returns: The @SevLaunchMeasureInfo for the guest
151 # -> { "execute": "query-sev-launch-measure" }
152 # <- { "return": { "data": "4l8LXeNlSPUDlXPJG5966/8%YZ" } }
155 { 'command': 'query-sev-launch-measure', 'returns': 'SevLaunchMeasureInfo',
156 'if': 'defined(TARGET_I386)' }
162 # The struct describes capability for a Secure Encrypted Virtualization
165 # @pdh: Platform Diffie-Hellman key (base64 encoded)
167 # @cert-chain: PDH certificate chain (base64 encoded)
169 # @cbitpos: C-bit location in page table entry
171 # @reduced-phys-bits: Number of physical Address bit reduction when SEV is
176 { 'struct': 'SevCapability',
177 'data': { 'pdh': 'str',
180 'reduced-phys-bits': 'int'},
181 'if': 'defined(TARGET_I386)' }
184 # @query-sev-capabilities:
186 # This command is used to get the SEV capabilities, and is supported on AMD
187 # X86 platforms only.
189 # Returns: SevCapability objects.
195 # -> { "execute": "query-sev-capabilities" }
196 # <- { "return": { "pdh": "8CCDD8DDD", "cert-chain": "888CCCDDDEE",
197 # "cbitpos": 47, "reduced-phys-bits": 5}}
200 { 'command': 'query-sev-capabilities', 'returns': 'SevCapability',
201 'if': 'defined(TARGET_I386)' }
206 # Dump guest's storage keys
208 # @filename: the path to the file to dump to
210 # This command is only supported on s390 architecture.
216 # -> { "execute": "dump-skeys",
217 # "arguments": { "filename": "/tmp/skeys" } }
218 # <- { "return": {} }
221 { 'command': 'dump-skeys',
222 'data': { 'filename': 'str' },
223 'if': 'defined(TARGET_S390X)' }
228 # The struct describes capability for a specific GIC (Generic
229 # Interrupt Controller) version. These bits are not only decided by
230 # QEMU/KVM software version, but also decided by the hardware that
231 # the program is running upon.
233 # @version: version of GIC to be described. Currently, only 2 and 3
236 # @emulated: whether current QEMU/hardware supports emulated GIC
237 # device in user space.
239 # @kernel: whether current QEMU/hardware supports hardware
240 # accelerated GIC device in kernel.
244 { 'struct': 'GICCapability',
245 'data': { 'version': 'int',
248 'if': 'defined(TARGET_ARM)' }
251 # @query-gic-capabilities:
253 # This command is ARM-only. It will return a list of GICCapability
254 # objects that describe its capability bits.
256 # Returns: a list of GICCapability objects.
262 # -> { "execute": "query-gic-capabilities" }
263 # <- { "return": [{ "version": 2, "emulated": true, "kernel": false },
264 # { "version": 3, "emulated": false, "kernel": true } ] }
267 { 'command': 'query-gic-capabilities', 'returns': ['GICCapability'],
268 'if': 'defined(TARGET_ARM)' }