diff options
| author | Sean Christopherson <seanjc@google.com> | 2026-05-01 13:22:28 -0700 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2026-05-29 20:25:28 +0200 |
| commit | dcf1b2d4b0564a27e4ca7c654871aab4f9620046 (patch) | |
| tree | cc97acdcd184f1be63eeb207805a3c3d843b3457 /include/linux/simple_ring_buffer.h | |
| parent | 1aa8a6dc7dac8b83234b53518311bf78231f4fa5 (diff) | |
KVM: SEV: Reject MMIO requests larger than 8 bytes with GHCB v2+
When using GHCB v2+, reject MMIO requests that are larger than 8 bytes.
Per the GHCB spec:
SW_EXITINFO2 must be less than or equal to 0x7fffffff for version 1 and
less than or equal to 0x8 for all other versions.
Fixes: 4af663c2f64a ("KVM: SEV: Allow per-guest configuration of GHCB protocol version")
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-4-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/linux/simple_ring_buffer.h')
0 files changed, 0 insertions, 0 deletions
