From patchwork Thu Jul 16 18:02:20 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jordan Justen X-Patchwork-Id: 35932 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 n6GI2SvL006999 for ; Thu, 16 Jul 2009 18:02:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932940AbZGPSCY (ORCPT ); Thu, 16 Jul 2009 14:02:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932916AbZGPSCX (ORCPT ); Thu, 16 Jul 2009 14:02:23 -0400 Received: from mga02.intel.com ([134.134.136.20]:56460 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932901AbZGPSCW (ORCPT ); Thu, 16 Jul 2009 14:02:22 -0400 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 16 Jul 2009 10:51:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.42,412,1243839600"; d="scan'208";a="430835379" Received: from jljusten-desk2.jf.intel.com (HELO localhost.localdomain) ([134.134.19.133]) by orsmga002.jf.intel.com with ESMTP; 16 Jul 2009 11:09:16 -0700 From: Jordan Justen To: kvm-devel Cc: Jordan Justen Subject: [PATCH 1/3] Update qemu-kvm bios to allow for a larger bios image. Date: Thu, 16 Jul 2009 11:02:20 -0700 Message-Id: <1247767342-13519-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 The bios will now reserve more memory via the E820 functions. Previously we reserved: 0xfffbc000-0xfffbcfff - 4KB - KVM kernel module, EPT identity pages tables 0xfffbd000-0xfffbffff - 12KB - KVM bios, VMC TSS Pages 0xfffc0000-0xffffffff - 256KB - Max KVM bios.bin (usually top 128KB is used) Now we will reserve: 0xfeffc000-0xfeffcfff - 4KB - KVM kernel module, EPT identity pages tables 0xfeffd000-0xfeffffff - 12KB - KVM bios, VMC TSS Pages 0xff000000-0xffffffff - 16MB - Max KVM bios.bin Signed-off-by: Jordan Justen --- kvm/bios/rombios.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kvm/bios/rombios.c b/kvm/bios/rombios.c index 6186199..2d0c153 100644 --- a/kvm/bios/rombios.c +++ b/kvm/bios/rombios.c @@ -4596,14 +4596,14 @@ ASM_END case 5: /* 4 pages before the bios, 3 pages for vmx tss pages, * the other page for EPT real mode pagetable */ - set_e820_range(ES, regs.u.r16.di, 0xfffbc000L, - 0xfffc0000L, 0, 0, 2); + set_e820_range(ES, regs.u.r16.di, 0xfeffc000L, + 0xff000000L, 0, 0, 2); regs.u.r32.ebx = 6; break; case 6: - /* 256KB BIOS area at the end of 4 GB */ + /* 16MB BIOS area at the end of 4 GB */ set_e820_range(ES, regs.u.r16.di, - 0xfffc0000L, 0x00000000L ,0, 0, 2); + 0xff000000L, 0x00000000L ,0, 0, 2); if (extra_highbits_memory_size || extra_lowbits_memory_size) regs.u.r32.ebx = 7; else