]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: SEV: Ignore MMIO requests of length '0'
authorSean Christopherson <seanjc@google.com>
Fri, 1 May 2026 20:22:27 +0000 (13:22 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 29 May 2026 18:25:28 +0000 (20:25 +0200)
commit1aa8a6dc7dac8b83234b53518311bf78231f4fa5
tree0d91078f66f920e7a2ca0330448a7f8cc0f81435
parentdb3f2195d29344a3cf1e9dd9ab7f21ced7308cf7
KVM: SEV: Ignore MMIO requests of length '0'

Explicitly ignore MMIO requests of length '0', so that setting up the
software scratch area (and other code) doesn't have to worry about
underflowing the length, and to allow for special casing '0' in the
future.

Fixes: 8f423a80d299 ("KVM: SVM: Support MMIO for an SEV-ES guest")
Cc: stable@vger.kernel.org
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-ID: <20260501202250.2115252-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/sev.c