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

Explicitly ignore Port I/O requests of length '0' (or count '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 WARNing on trying
to configure the scratch area with len==0.

Fixes: 291bd20d5d88 ("KVM: SVM: Add initial support for a VMGEXIT VMEXIT")
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-5-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/sev.c