From patchwork Wed Sep 15 17:14:17 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Arcangeli X-Patchwork-Id: 64856 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 6C134B6EF7 for ; Thu, 16 Sep 2010 03:17:29 +1000 (EST) Received: from localhost ([127.0.0.1]:44972 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ovvbq-000808-9p for incoming@patchwork.ozlabs.org; Wed, 15 Sep 2010 13:17:26 -0400 Received: from [140.186.70.92] (port=34185 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvvYq-0006lh-Fk for qemu-devel@nongnu.org; Wed, 15 Sep 2010 13:14:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvvYp-0008SP-7j for qemu-devel@nongnu.org; Wed, 15 Sep 2010 13:14:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:15307) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OvvYo-0008SJ-Vx for qemu-devel@nongnu.org; Wed, 15 Sep 2010 13:14:19 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o8FHEIm4003332 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 15 Sep 2010 13:14:18 -0400 Received: from random.random (ovpn-113-70.phx2.redhat.com [10.3.113.70]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o8FHEH9H004006; Wed, 15 Sep 2010 13:14:18 -0400 Date: Wed, 15 Sep 2010 19:14:17 +0200 From: Andrea Arcangeli To: qemu-devel@nongnu.org Message-ID: <20100915171417.GN5981@random.random> MIME-Version: 1.0 Content-Disposition: inline X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: Anthony Liguori Subject: [Qemu-devel] [PATCH] add 40-48 physical address range to seabios X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Subject: add 40-48 physical address range to seabios From: Andrea Arcangeli Needed to show >1TB RAM to guests. Signed-off-by: Andrea Arcangeli diff --git a/hw/pc.c b/hw/pc.c index 9c08573..7e1f2e9 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -360,6 +360,7 @@ void pc_cmos_init(ram_addr_t ram_size, ram_addr_t above_4g_mem_size, rtc_set_memory(s, 0x5b, (unsigned int)above_4g_mem_size >> 16); rtc_set_memory(s, 0x5c, (unsigned int)above_4g_mem_size >> 24); rtc_set_memory(s, 0x5d, (uint64_t)above_4g_mem_size >> 32); + rtc_set_memory(s, 0x5e, (uint64_t)above_4g_mem_size >> 40); } if (ram_size > (16 * 1024 * 1024))