From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sasha Levin Subject: Re: [PATCH] kvm tools: fix boot of guests with more than 4gb of ram Date: Tue, 25 Jun 2013 13:02:13 -0400 Message-ID: <51C9CD15.8000503@oracle.com> References: <1372037011-19466-1-git-send-email-sasha.levin@oracle.com> <1372121892.11276.2.camel@concordia> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: penberg@kernel.org, will.deacon@arm.com, kvm@vger.kernel.org To: Michael Ellerman Return-path: Received: from aserp1040.oracle.com ([141.146.126.69]:24633 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751101Ab3FYRCg (ORCPT ); Tue, 25 Jun 2013 13:02:36 -0400 In-Reply-To: <1372121892.11276.2.camel@concordia> Sender: kvm-owner@vger.kernel.org List-ID: On 06/24/2013 08:58 PM, Michael Ellerman wrote: > On Sun, 2013-06-23 at 21:23 -0400, Sasha Levin wrote: >> Commit "kvm tools: virtio: remove hardcoded assumptions >> about guest page size" has introduced a bug that prevented >> guests with more than 4gb of ram from booting. >> >> The issue is that 'pfn' is a 32bit integer, so when multiplying >> it by page size to get the actual page will cause an overflow if >> the pfn referred to a memory area above 4gb. > > Couldn't we just make pfn 64 bit? pfn is passed to us by the guest virtio driver, and is 32 bit. Thanks, Sasha