KVM: nVMX: allow setting the VMFUNC controls MSR
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Jul 2019 12:40:40 +0000 (14:40 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Jul 2019 15:36:12 +0000 (17:36 +0200)
commite8a70bd4e92525de459acfa5668c8e1f24664331
tree73ab1cc64f08e8525f83caf7e659596787f859ec
parent6defc591846d0104d1a95f2fb450bdb05a9e738b
KVM: nVMX: allow setting the VMFUNC controls MSR

Allow userspace to set a custom value for the VMFUNC controls MSR, as long
as the capabilities it advertises do not exceed those of the host.

Fixes: 27c42a1bb ("KVM: nVMX: Enable VMFUNC for the L1 hypervisor", 2017-08-03)
Reviewed-by: Liran Alon <liran.alon@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c