]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: SVM: Update dump_ghcb() to use the GHCB snapshot fields
authorTom Lendacky <thomas.lendacky@amd.com>
Mon, 28 Apr 2025 18:55:31 +0000 (13:55 -0500)
committerSean Christopherson <seanjc@google.com>
Fri, 2 May 2025 20:39:33 +0000 (13:39 -0700)
commit5fea0c6c0ebe0a645c247f29fc683852cf51af70
tree6dc6a55997dd8356277decc30d3d612492a64449
parent20a6cff3b283f0601048ace87ad1bc89627e36f2
KVM: SVM: Update dump_ghcb() to use the GHCB snapshot fields

Commit 4e15a0ddc3ff ("KVM: SEV: snapshot the GHCB before accessing it")
updated the SEV code to take a snapshot of the GHCB before using it. But
the dump_ghcb() function wasn't updated to use the snapshot locations.
This results in incorrect output from dump_ghcb() for the "is_valid" and
"valid_bitmap" fields.

Update dump_ghcb() to use the proper locations.

Fixes: 4e15a0ddc3ff ("KVM: SEV: snapshot the GHCB before accessing it")
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Reviewed-by: Liam Merwick <liam.merwick@oracle.com>
Link: https://lore.kernel.org/r/8f03878443681496008b1b37b7c4bf77a342b459.1745866531.git.thomas.lendacky@amd.com
[sean: add comment and snapshot qualifier]
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/sev.c