summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/vmx_shadow_fields.h
diff options
context:
space:
mode:
authorJim Mattson <jmattson@google.com>2017-12-22 12:13:13 -0800
committerRadim Krčmář <rkrcmar@redhat.com>2018-01-16 16:50:03 +0100
commit58e9ffae5efd3ee9b655ee36702f02c36d51ead9 (patch)
tree2828defb787c7e968bff024facdc2370b9a4a69e /arch/x86/kvm/vmx_shadow_fields.h
parentd37f4267a79f7d423103cb9fdd67a4a3a8194335 (diff)
kvm: vmx: Reduce size of vmcs_field_to_offset_table
The vmcs_field_to_offset_table was a rather sparse table of short integers with a maximum index of 0x6c16, amounting to 55342 bytes. Now that we are considering support for multiple VMCS12 formats, it would be unfortunate to replicate that large, sparse table. Rotating the field encoding (as a 16-bit integer) left by 6 reduces that table to 5926 bytes. Suggested-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Jim Mattson <jmattson@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Diffstat (limited to 'arch/x86/kvm/vmx_shadow_fields.h')
0 files changed, 0 insertions, 0 deletions