KVM: x86: Refactor I/O emulation helpers to provide vcpu-only variant
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 18 Feb 2020 23:29:41 +0000 (15:29 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Mar 2020 16:57:49 +0000 (17:57 +0100)
commit2e3bb4d886c72c0d5336a957ed66882e08f5c14b
tree567552a638d99c54810925c9d43647a7e24f1d71
parent2bde08f9f5f13ef2674674a2e3d7420abd08be33
KVM: x86: Refactor I/O emulation helpers to provide vcpu-only variant

Add variants of the I/O helpers that take a vCPU instead of an emulation
context.  This will eventually allow KVM to limit use of the emulation
context to the full emulation path.

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