]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit37ac41d40cf9df1e5816e454c3f5c72bc041476d
tree3faff2296cb15f547fd961b4c468bdda0924771a
parent404ab6bf3d3feda509fe87feff0380108347feb8
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