]> www.infradead.org Git - users/hch/misc.git/commit
KVM: SVM: Add a mutex to dump_vmcb() to prevent concurrent output
authorTom Lendacky <thomas.lendacky@amd.com>
Thu, 20 Mar 2025 13:26:53 +0000 (08:26 -0500)
committerSean Christopherson <seanjc@google.com>
Fri, 25 Apr 2025 23:19:54 +0000 (16:19 -0700)
commit468c27ae0215c14bc62c90fa7b2ce2bc9eb4564b
treef4cd7f48498dc3035f7f30668617bc2a26ff6caf
parent0e6b677de730bec4113c466861968e38c4018c50
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 <thomas.lendacky@amd.com>
Acked-by: Borislav Petkov (AMD) <bp@alien8.de>
Tested-by: Kim Phillips <kim.phillips@amd.com>
Link: https://lore.kernel.org/r/a880678afd9488e1dd6017445802712f7c02cc6d.1742477213.git.thomas.lendacky@amd.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/svm.c