KVM: nVMX: expose INS/OUTS information support
authorJan Dakinevich <jan.dakinevich@gmail.com>
Sun, 4 Sep 2016 18:23:15 +0000 (21:23 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 7 Sep 2016 17:34:30 +0000 (19:34 +0200)
commit9ac7e3e815060efdc86b6d12448200e3c3597e01
treed929c83eb645d099a0cf5420239d495b90a5f098
parent16cb025565fcc9c687d07bf239e57964957b50e8
KVM: nVMX: expose INS/OUTS information support

Expose the feature to L1 hypervisor if host CPU supports it, since
certain hypervisors requires it for own purposes.

According to Intel SDM A.1, if CPU supports the feature,
VMX_INSTRUCTION_INFO field of VMCS will contain detailed information
about INS/OUTS instructions handling. This field is already copied to
VMCS12 for L1 hypervisor (see prepare_vmcs12 routine) independently
feature presence.

Signed-off-by: Jan Dakinevich <jan.dakinevich@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c