]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: leave vcpu->arch.pio.count alone in emulator_pio_in_out
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Oct 2021 16:29:42 +0000 (12:29 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 22 Oct 2021 14:02:07 +0000 (10:02 -0400)
commit10309f244bf0bac0fbdef70af23e9b2e2c199259
tree84ef4154a0f5b9e7e928c8cacf453fd2c3116406
parentccc4dfa76b9c578666612e59823a89757b2ed96c
KVM: x86: leave vcpu->arch.pio.count alone in emulator_pio_in_out

Currently emulator_pio_in clears vcpu->arch.pio.count twice if
emulator_pio_in_out performs kernel PIO.  Move the clear into
emulator_pio_out where it is actually necessary.

No functional change intended.

Cc: stable@vger.kernel.org
Fixes: a15bb587483f ("KVM: SVM: Support string IO operations for an SEV-ES guest")
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c