KVM: nVMX: Check IO instruction VM-exit conditions
authorOliver Upton <oupton@google.com>
Tue, 4 Feb 2020 23:26:31 +0000 (15:26 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Feb 2020 14:42:53 +0000 (15:42 +0100)
commitf3e0dfb310e6a6f0190dbb3d6b337513b548507b
treed848d916bb1ea3b32b68d1f5bb8d72167659790e
parent35523a2d9918e36ad4fa6c9c0176279d7c1f4291
KVM: nVMX: Check IO instruction VM-exit conditions

commit 35a571346a94fb93b5b3b6a599675ef3384bc75c upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/vmx.c