From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH 15/23] exec.c: initialize memory map Date: Tue, 26 Jul 2011 13:55:56 +0300 Message-ID: <4E2E9D3C.60603@redhat.com> References: <1311602584-23409-1-git-send-email-avi@redhat.com> <1311602584-23409-16-git-send-email-avi@redhat.com> <4E2DC14E.5080408@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org To: Anthony Liguori Return-path: In-Reply-To: <4E2DC14E.5080408@codemonkey.ws> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org List-Id: kvm.vger.kernel.org On 07/25/2011 10:17 PM, Anthony Liguori wrote: >> +static void memory_map_init(void) >> +{ >> + system_memory = qemu_malloc(sizeof(*system_memory)); >> + memory_region_init(system_memory, "system", UINT64_MAX); > > > Would be nice to #define MEM_REG_SIZE_ALL UINT64_MAX > > Without reading the docs, it seems like an odd bit of code otherwise. It's really temporary. It should come from the machine description and specify the processor's system bus width. -- error compiling committee.c: too many arguments to function