On 22/12/2017 21:09, Jim Mattson wrote: > The vmcs_field_to_offset_table is quite sparse, with its size determined > by the highest VMCS field encoding (0x6c16 for HOST_RIP). To support multiple > VMCS12 formats, we will need multiple vmcs_field_to_offset_tables, and > it would be a shame to replicate this sparse table. > > Patches 1 and 2 are no longer necessary for v2, but I'm going to leave them > in the patch set, because I still think they are worthwhile. > > Jim Mattson (3): > kvm: vmx: Introduce VMCS12_MAX_FIELD_INDEX > kvm: vmx: Change vmcs_field_type to vmcs_field_width > kvm: vmx: Reduce size of vmcs_field_to_offset_table > > arch/x86/kvm/vmx.c | 86 +++++++++++++++++++++++++++++++----------------------- > 1 file changed, 49 insertions(+), 37 deletions(-) > Looks good, I'll queue it shortly (after I look a bit more into Wanpeng's report). Paolo