]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Don't WARN if userspace mucks with RCX during string I/O exit
authorSean Christopherson <seanjc@google.com>
Mon, 25 Oct 2021 20:13:10 +0000 (13:13 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 10 Dec 2021 14:38:02 +0000 (09:38 -0500)
commit734e86e18ab4f9b2e418244c28ed6ba5244f4af3
tree59dcfd2ed145fc9b9706d7c092fd0ee4471ae39e
parent7a0a5057452309dd5fd797b15425f5f974e5be3d
KVM: x86: Don't WARN if userspace mucks with RCX during string I/O exit

Replace a WARN with a comment to call out that userspace can modify RCX
during an exit to userspace to handle string I/O.  KVM doesn't actually
support changing the rep count during an exit, i.e. the scenario can be
ignored, but the WARN needs to go as it's trivial to trigger from
userspace.

Cc: stable@vger.kernel.org
Fixes: 5090d24bca1c ("KVM: x86: split the two parts of emulator_pio_in")
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20211025201311.1881846-2-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c