Commit 468c27a
KVM: SVM: Add a mutex to dump_vmcb() to prevent concurrent output
If multiple VMRUN instructions fail, resulting in calls to dump_vmcb(),
the output can become interleaved and it is impossible to identify which
line of output belongs to which VMCB. Add a mutex to dump_vmcb() so that
the output is serialized.
Signed-off-by: Tom Lendacky <[email protected]>
Acked-by: Borislav Petkov (AMD) <[email protected]>
Tested-by: Kim Phillips <[email protected]>
Link: https://lore.kernel.org/r/a880678afd9488e1dd6017445802712f7c02cc6d.1742477213.git.thomas.lendacky@amd.com
Signed-off-by: Sean Christopherson <[email protected]>1 parent 0e6b677 commit 468c27a
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
| 253 | + | |
| 254 | + | |
252 | 255 | | |
253 | 256 | | |
254 | 257 | | |
| |||
3404 | 3407 | | |
3405 | 3408 | | |
3406 | 3409 | | |
| 3410 | + | |
| 3411 | + | |
3407 | 3412 | | |
3408 | 3413 | | |
3409 | 3414 | | |
| |||
0 commit comments