From patchwork Thu Jul 16 00:12:14 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jordan Justen X-Patchwork-Id: 35794 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n6G0CJno014905 for ; Thu, 16 Jul 2009 00:12:19 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756554AbZGPAMR (ORCPT ); Wed, 15 Jul 2009 20:12:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756520AbZGPAMR (ORCPT ); Wed, 15 Jul 2009 20:12:17 -0400 Received: from mga14.intel.com ([143.182.124.37]:33968 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750839AbZGPAMQ (ORCPT ); Wed, 15 Jul 2009 20:12:16 -0400 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga102.ch.intel.com with ESMTP; 15 Jul 2009 17:12:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.42,407,1243839600"; d="scan'208";a="165508223" Received: from jljusten-desk2.jf.intel.com (HELO localhost.localdomain) ([134.134.19.133]) by azsmga001.ch.intel.com with ESMTP; 15 Jul 2009 17:12:15 -0700 From: Jordan Justen To: kvm-devel Cc: Jordan Justen Subject: [PATCH] Update KVM kernel module to allow a larger BIOS image. Date: Wed, 15 Jul 2009 17:12:14 -0700 Message-Id: <1247703135-27408-1-git-send-email-jordan.l.justen@intel.com> X-Mailer: git-send-email 1.6.0.4 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Previously the KVM kernel module would allocate the address range of 0xfffbc000-0xfffbcfff for the EPT Indentity Page Tables. This change moves that to 0xfeffc000-0xfeffcfff. Another issue related to this change is the VMC TSS Pages were located at 0xfffbd000-0xfffbffff. This is controlled by the qemu-kvm code. A separate change will move them to 0xfeffd000-0xfeffffff. From a high level, these are the effects of these two changes: Previously, the KVM would only accommodate a 256KB BIOS image. With these changes, the BIOS image may now grow to 16MB. Motivation for making these changes: A larger firmware image size allows alternative BIOS images to be used with KVM. Some possible uses are to enable UEFI firmware or coreboot firmware. Additionally, an alternative firmware might include a linux kernel+initrd payload, which would require several megabytes. Signed-off-by: Jordan Justen --- arch/x86/include/asm/vmx.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/include/asm/vmx.h b/arch/x86/include/asm/vmx.h index 272514c..0086332 100644 --- a/arch/x86/include/asm/vmx.h +++ b/arch/x86/include/asm/vmx.h @@ -372,7 +372,7 @@ enum vmcs_field { #define VMX_EPT_EXECUTABLE_MASK 0x4ull #define VMX_EPT_IGMT_BIT (1ull << 6) -#define VMX_EPT_IDENTITY_PAGETABLE_ADDR 0xfffbc000ul +#define VMX_EPT_IDENTITY_PAGETABLE_ADDR 0xfeffc000ul #define ASM_VMX_VMCLEAR_RAX ".byte 0x66, 0x0f, 0xc7, 0x30"