Commit 850972b
virt: tdx-guest: Refactor and streamline TDREPORT generation
Consolidate instances (code segments) of TDREPORT generation to improve
readability and maintainability, by refactoring each instance into invoking
a unified subroutine throughout the TDX guest driver. Implement proper
locking around TDG.MR.REPORT and TDG.MR.RTMR.EXTEND to avoid race inside
the TDX module. Preallocate TDREPORT buffer to reduce overhead in
subsequent TDREPORT generation.
Signed-off-by: Cedric Xing <[email protected]>
Acked-by: Dionna Amalie Glaze <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Dan Williams <[email protected]>1 parent 4d2a7bf commit 850972b
1 file changed
+7
-56
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
| 205 | + | |
| 206 | + | |
236 | 207 | | |
237 | 208 | | |
238 | 209 | | |
| |||
293 | 264 | | |
294 | 265 | | |
295 | 266 | | |
296 | | - | |
| 267 | + | |
297 | 268 | | |
298 | 269 | | |
299 | 270 | | |
| |||
318 | 289 | | |
319 | 290 | | |
320 | 291 | | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | 292 | | |
343 | 293 | | |
344 | 294 | | |
345 | 295 | | |
346 | 296 | | |
347 | 297 | | |
348 | | - | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
349 | 302 | | |
350 | 303 | | |
351 | 304 | | |
| |||
375 | 328 | | |
376 | 329 | | |
377 | 330 | | |
378 | | - | |
379 | | - | |
380 | 331 | | |
381 | 332 | | |
382 | 333 | | |
| |||
0 commit comments