From: Jim Mattson Subject: [PATCH 0/3] Reduce the size of the vmcs_field_to_offset_table Date: Thu, 21 Dec 2017 12:46:20 -0800 Message-ID: <20171221204623.164581-1-jmattson@google.com> Cc: Jim Mattson To: kvm@vger.kernel.org Return-path: Received: from mail-io0-f194.google.com ([209.85.223.194]:38049 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753062AbdLUUrG (ORCPT ); Thu, 21 Dec 2017 15:47:06 -0500 Received: by mail-io0-f194.google.com with SMTP id 87so18224144ior.5 for ; Thu, 21 Dec 2017 12:47:06 -0800 (PST) Sender: kvm-owner@vger.kernel.org List-ID: 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. 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 | 197 +++++++++++++++++++++++++++++++---------------------- 1 file changed, 117 insertions(+), 80 deletions(-) -- 2.15.1.620.gb9897f4670-goog