KVM: nVMX: Remove param indirection from nested_vmx_check_msr_switch()
authorSean Christopherson <sean.j.christopherson@intel.com>
Wed, 12 Dec 2018 18:30:08 +0000 (13:30 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Dec 2018 17:00:04 +0000 (18:00 +0100)
commitf9b245e182ac9beb40f48faa0fd04ed3f3830d50
tree4703a8462585c7a4fea98912e8e5f6ee8b1db164
parent461b4ba4c7ad79137171de2887e5d4d05a0ec8c1
KVM: nVMX: Remove param indirection from nested_vmx_check_msr_switch()

Passing the enum and doing an indirect lookup is silly when we can
simply pass the field directly.  Remove the "fast path" code in
nested_vmx_check_msr_switch_controls() as it's now nothing more than a
redundant check.

Remove the debug message rather than continue passing the enum for the
address field.  Having debug messages for the MSRs themselves is useful
as MSR legality is a huge space, whereas messing up a physical address
means the VMM is fundamentally broken.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c