]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: wean fast IN from emulator_pio_in
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 22 Oct 2021 12:01:36 +0000 (08:01 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jun 2022 16:54:20 +0000 (12:54 -0400)
commit1b7a8a2e25074e2425fa4a9320eacafde286515a
tree5dea3abaa7b16902ad977eb7116301f4a729e5a6
parentd69c49110133dd5bd633f22ffd92040f3e700a19
KVM: x86: wean fast IN from emulator_pio_in

Use __emulator_pio_in() directly for fast PIO instead of bouncing through
emulator_pio_in() now that __emulator_pio_in() fills "val" when handling
in-kernel PIO.  vcpu->arch.pio.count is guaranteed to be '0', so this a
pure nop.

emulator_pio_in_emulated is now the last caller of emulator_pio_in.

No functional change intended.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c