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)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 23 Feb 2020 09:14:40 +0000 (10:14 +0100)
commite71237d3ff1abf9f3388337cfebf53b96df2020d
tree7b2d0cc07cb67c84412525dfa512ddd4812bc2a2
parent07721feee46b4b248402133228235318199b05ec
KVM: nVMX: Refactor IO bitmap checks into helper function

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>
arch/x86/kvm/vmx/nested.c
arch/x86/kvm/vmx/nested.h