KVM: nVMX: Check IO instruction VM-exit conditions
authorOliver Upton <oupton@google.com>
Tue, 4 Feb 2020 23:26:31 +0000 (15:26 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 23 Feb 2020 09:16:32 +0000 (10:16 +0100)
commit35a571346a94fb93b5b3b6a599675ef3384bc75c
tree256cca4e944f6ac6b41a9092aff456c2a88caf28
parente71237d3ff1abf9f3388337cfebf53b96df2020d
KVM: nVMX: Check IO instruction VM-exit conditions

Consult the 'unconditional IO exiting' and 'use IO bitmaps' VM-execution
controls when checking instruction interception. If the 'use IO bitmaps'
VM-execution control is 1, check the instruction access against the IO
bitmaps to determine if the instruction causes a VM-exit.

Signed-off-by: Oliver Upton <oupton@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c
arch/x86/kvm/vmx/vmx.c