diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2021-10-25 12:14:31 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-11-02 19:51:02 +0100 |
commit | 9ab39a3d0cec142c424fae4186684fcea90df0de (patch) | |
tree | d4f29c187057cf639d01d4519f5e93b4ca33d6ec /kernel/irq/irqdomain.c | |
parent | eb0461c572e902680383b52c091449f4035e2105 (diff) | |
download | linux-stable-9ab39a3d0cec142c424fae4186684fcea90df0de.tar.gz linux-stable-9ab39a3d0cec142c424fae4186684fcea90df0de.tar.bz2 linux-stable-9ab39a3d0cec142c424fae4186684fcea90df0de.zip |
KVM: SEV-ES: fix another issue with string I/O VMGEXITs
commit 9b0971ca7fc75daca80c0bb6c02e96059daea90a upstream.
If the guest requests string I/O from the hypervisor via VMGEXIT,
SW_EXITINFO2 will contain the REP count. However, sev_es_string_io
was incorrectly treating it as the size of the GHCB buffer in
bytes.
This fixes the "outsw" test in the experimental SEV tests of
kvm-unit-tests.
Cc: stable@vger.kernel.org
Fixes: 7ed9abfe8e9f ("KVM: SVM: Support string IO operations for an SEV-ES guest")
Reported-by: Marc Orr <marcorr@google.com>
Tested-by: Marc Orr <marcorr@google.com>
Reviewed-by: Marc Orr <marcorr@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/irq/irqdomain.c')
0 files changed, 0 insertions, 0 deletions