KVM: nVMX: include conditional controls in /dev/kvm KVM_GET_MSRS
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Jul 2019 12:39:29 +0000 (14:39 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Jul 2019 15:35:57 +0000 (17:35 +0200)
commit6defc591846d0104d1a95f2fb450bdb05a9e738b
treecb4d13e69656a081b912cf6274283fb4417f16b1
parenta251fb90ab8a3e6efb2b4e14923ddb4421317f65
KVM: nVMX: include conditional controls in /dev/kvm KVM_GET_MSRS

Some secondary controls are automatically enabled/disabled based on the CPUID
values that are set for the guest.  However, they are still available at a
global level and therefore should be present when KVM_GET_MSRS is sent to
/dev/kvm.

Fixes: 1389309c811 ("KVM: nVMX: expose VMX capabilities for nested hypervisors to userspace", 2018-02-26)
Reviewed-by: Liran Alon <liran.alon@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c