kvm: vmx: Stop wasting a page for guest_msrs
authorJim Mattson <jmattson@google.com>
Wed, 4 Dec 2019 00:24:42 +0000 (16:24 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 4 Dec 2019 11:23:27 +0000 (12:23 +0100)
commit7d73710d9ca2564f29d291d0b3badc09efdf25e9
tree3faff2296cb15f547fd961b4c468bdda0924771a
parent433f4ba1904100da65a311033f17a9bf586b287e
kvm: vmx: Stop wasting a page for guest_msrs

We will never need more guest_msrs than there are indices in
vmx_msr_index. Thus, at present, the guest_msrs array will not exceed
168 bytes.

Signed-off-by: Jim Mattson <jmattson@google.com>
Reviewed-by: Liran Alon <liran.alon@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/vmx/vmx.h