KVM: nVMX: Refactor IO bitmap checks into helper function
authorOliver Upton <oupton@google.com>
Tue, 4 Feb 2020 23:26:30 +0000 (15:26 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Feb 2020 16:22:23 +0000 (17:22 +0100)
commitc4064f14f744021c3e23266ee9ecab0b7a7795c4
treed6ad8f503f114b837c5609cd61a23334fdac0024
parente5d25003d059649e18a249635ed5ca7a7b1de5ad
KVM: nVMX: Refactor IO bitmap checks into helper function

commit e71237d3ff1abf9f3388337cfebf53b96df2020d upstream.

Checks against the IO bitmap are useful for both instruction emulation
and VM-exit reflection. Refactor the IO bitmap checks into a helper
function.

Signed-off-by: Oliver Upton <oupton@google.com>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/vmx/nested.c
arch/x86/kvm/vmx/nested.h