@@ -52,6 +52,10 @@ Available fault injection capabilities
52
52
status code is NVME_SC_INVALID_OPCODE with no retry. The status code and
53
53
retry flag can be set via the debugfs.
54
54
55
+ - fail_tdx
56
+
57
+ inject errors and flipped bits into Intel TDX TDCALL responses.
58
+
55
59
56
60
Configure fault-injection capabilities behavior
57
61
-----------------------------------------------
@@ -195,6 +199,25 @@ configuration of fault-injection capabilities.
195
199
use a negative errno, you better use 'printf' instead of 'echo', e.g.:
196
200
$ printf %#x -12 > retval
197
201
202
+ - /sys/kernel/debug/fail_tdx/tdcall
203
+
204
+ enable flipping bits in TDX TDCALL responses
205
+
206
+ - /sys/kernel/debug/fail_tdx/tderrors
207
+
208
+ enable injecting errors in TDX TDCALL responses
209
+
210
+ - /sys/kernel/debug/fail_tdx/seed
211
+
212
+ set seed for random generator used for flipping bits in TDX TDCALL
213
+ responses. Note that each CPU has its own independent random generator.
214
+
215
+ - /sys/kernel/debug/fail_tdx/num_change_bits
216
+
217
+ number of bits to change with tdcall=1 in TDX TDCALL responses.
218
+ when set to 64 the whole value is replaced with a randon number.
219
+ otherwise the number of bits specified are randomly flipped.
220
+
198
221
Boot option
199
222
^^^^^^^^^^^
200
223
@@ -208,6 +231,8 @@ use the boot option::
208
231
fail_futex=
209
232
mmc_core.fail_request=<interval>,<probability>,<space>,<times>
210
233
234
+ fail_tdx= [seed:N,][tdcall:1,][tderrors:1,][numbits:XX],<interval>,<probability>,<space>,<times>
235
+
211
236
proc entries
212
237
^^^^^^^^^^^^
213
238
0 commit comments