Received: from eggs.gnu.org ([208.118.235.92]:53231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S6Fjl-0004u9-PE for qemu-devel@nongnu.org; Sat, 10 Mar 2012 01:25:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S6Fjj-0000rQ-VT for qemu-devel@nongnu.org; Sat, 10 Mar 2012 01:25:05 -0500 Received: from mx1.redhat.com ([209.132.183.28]:27679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S6Fjj-0000pP-No for qemu-devel@nongnu.org; Sat, 10 Mar 2012 01:25:03 -0500 From: Markus Armbruster References: <1331225951-31306-1-git-send-email-mark.langsdorf@calxeda.com> <4F5A0288.6090809@calxeda.com> <9A556F7F-2721-4D51-80D2-8B9571E4EC0F@suse.de> <4F5A06C8.7020903@calxeda.com> <88D21EA9-1000-48DB-9D7A-437622BE8745@suse.de> <4F5A1378.5040909@suse.de> <4F5A503D.2090304@suse.de> <9AD0A85E-FD72-491E-B405-AFB4B9E58043@suse.de> Date: Sat, 10 Mar 2012 07:24:51 +0100 In-Reply-To: <9AD0A85E-FD72-491E-B405-AFB4B9E58043@suse.de> (Alexander Graf's message of "Fri, 9 Mar 2012 20:04:01 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH] use an unsigned long for the max_sz parameter in load_image_targphys List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Peter Maydell , Mark Langsdorf , Stefan Weil , "qemu-devel@nongnu.org" , Erik Blake , Andreas =?utf-8?Q?F=C3=A4rber?= , David Gibson Alexander Graf writes: [...] > Imagine, your host can only do 32 bit file offsets. You want to > emulate a 64bit guest though. To load an image, you say "load the > image at offset x, max size ". If you use size_t, > it would break for large ram guests, because the size really means > semantically that you want to be able to load into address > [x...ram_size] of the guest's physical memory range. If the host can > actually load images that big is an orthogonal question. A host with 64 bit virtual address space, yet file offsets (and thus file sizes) limited to 32 bits? That's a contrived example if I ever saw one. You need to come up with a remotely practical one to convince me :)