Skip to content

Commit 0e6b677

Browse files
tlendackysean-jc
authored andcommitted
KVM: SVM: Include the vCPU ID when dumping a VMCB
Provide the vCPU ID of the VMCB in dump_vmcb(). 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/ee0af5a6c1a49aebb4a8291071c3f68cacf107b2.1742477213.git.thomas.lendacky@amd.com Signed-off-by: Sean Christopherson <[email protected]>
1 parent db26450 commit 0e6b677

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/kvm/svm/svm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3408,8 +3408,8 @@ static void dump_vmcb(struct kvm_vcpu *vcpu)
34083408
sev_es_guest(vcpu->kvm) ? "SEV-ES" :
34093409
sev_guest(vcpu->kvm) ? "SEV" : "SVM";
34103410

3411-
pr_err("%s VMCB %p, last attempted VMRUN on CPU %d\n",
3412-
vm_type, svm->current_vmcb->ptr, vcpu->arch.last_vmentry_cpu);
3411+
pr_err("%s vCPU%u VMCB %p, last attempted VMRUN on CPU %d\n",
3412+
vm_type, vcpu->vcpu_id, svm->current_vmcb->ptr, vcpu->arch.last_vmentry_cpu);
34133413
pr_err("VMCB Control Area:\n");
34143414
pr_err("%-20s%04x\n", "cr_read:", control->intercepts[INTERCEPT_CR] & 0xffff);
34153415
pr_err("%-20s%04x\n", "cr_write:", control->intercepts[INTERCEPT_CR] >> 16);

0 commit comments

Comments
 (0)