@@ -142,3 +142,62 @@ region is equal to the memory protection granule advertised by
142
142
| | | +---------------------------------------------+
143
143
| | | | ``INVALID_PARAMETER (-3) `` |
144
144
+---------------------+----------+----+---------------------------------------------+
145
+
146
+ ``ARM_SMCCC_VENDOR_HYP_KVM_DISCOVER_IMPL_VER_FUNC_ID ``
147
+ -------------------------------------------------------
148
+ Request the target CPU implementation version information and the number of target
149
+ implementations for the Guest VM.
150
+
151
+ +---------------------+-------------------------------------------------------------+
152
+ | Presence: | Optional; KVM/ARM64 Guests only |
153
+ +---------------------+-------------------------------------------------------------+
154
+ | Calling convention: | HVC64 |
155
+ +---------------------+----------+--------------------------------------------------+
156
+ | Function ID: | (uint32) | 0xC6000040 |
157
+ +---------------------+----------+--------------------------------------------------+
158
+ | Arguments: | None |
159
+ +---------------------+----------+----+---------------------------------------------+
160
+ | Return Values: | (int64) | R0 | ``SUCCESS (0) `` |
161
+ | | | +---------------------------------------------+
162
+ | | | | ``NOT_SUPPORTED (-1) `` |
163
+ | +----------+----+---------------------------------------------+
164
+ | | (uint64) | R1 | Bits [63:32] Reserved/Must be zero |
165
+ | | | +---------------------------------------------+
166
+ | | | | Bits [31:16] Major version |
167
+ | | | +---------------------------------------------+
168
+ | | | | Bits [15:0] Minor version |
169
+ | +----------+----+---------------------------------------------+
170
+ | | (uint64) | R2 | Number of target implementations |
171
+ | +----------+----+---------------------------------------------+
172
+ | | (uint64) | R3 | Reserved / Must be zero |
173
+ +---------------------+----------+----+---------------------------------------------+
174
+
175
+ ``ARM_SMCCC_VENDOR_HYP_KVM_DISCOVER_IMPL_CPUS_FUNC_ID ``
176
+ -------------------------------------------------------
177
+
178
+ Request the target CPU implementation information for the Guest VM. The Guest kernel
179
+ will use this information to enable the associated errata.
180
+
181
+ +---------------------+-------------------------------------------------------------+
182
+ | Presence: | Optional; KVM/ARM64 Guests only |
183
+ +---------------------+-------------------------------------------------------------+
184
+ | Calling convention: | HVC64 |
185
+ +---------------------+----------+--------------------------------------------------+
186
+ | Function ID: | (uint32) | 0xC6000041 |
187
+ +---------------------+----------+----+---------------------------------------------+
188
+ | Arguments: | (uint64) | R1 | selected implementation index |
189
+ | +----------+----+---------------------------------------------+
190
+ | | (uint64) | R2 | Reserved / Must be zero |
191
+ | +----------+----+---------------------------------------------+
192
+ | | (uint64) | R3 | Reserved / Must be zero |
193
+ +---------------------+----------+----+---------------------------------------------+
194
+ | Return Values: | (int64) | R0 | ``SUCCESS (0) `` |
195
+ | | | +---------------------------------------------+
196
+ | | | | ``INVALID_PARAMETER (-3) `` |
197
+ | +----------+----+---------------------------------------------+
198
+ | | (uint64) | R1 | MIDR_EL1 of the selected implementation |
199
+ | +----------+----+---------------------------------------------+
200
+ | | (uint64) | R2 | REVIDR_EL1 of the selected implementation |
201
+ | +----------+----+---------------------------------------------+
202
+ | | (uint64) | R3 | AIDR_EL1 of the selected implementation |
203
+ +---------------------+----------+----+---------------------------------------------+
0 commit comments