]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Relocate MMIO exit stats counting
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 27 Aug 2019 21:40:27 +0000 (14:40 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 24 Sep 2019 11:37:35 +0000 (13:37 +0200)
commit7b7d5b18c1c7027f471b35f7e0a8eb1c81deda76
tree1428a0786d0c957e2cbc823d9eb5a59ec39fac22
parentd5d05b855e6ba0460e5042fe92b5d4bd62e16f9c
KVM: x86: Relocate MMIO exit stats counting

Move the stat.mmio_exits update into x86_emulate_instruction().  This is
both a bug fix, e.g. the current update flows will incorrectly increment
mmio_exits on emulation failure, and a preparatory change to set the
stage for eliminating EMULATE_DONE and company.

Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c