From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvkXJ-0003ze-4e for qemu-devel@nongnu.org; Mon, 09 Nov 2015 06:22:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZvkXI-0007XX-Dz for qemu-devel@nongnu.org; Mon, 09 Nov 2015 06:22:57 -0500 Received: from mail-yk0-x236.google.com ([2607:f8b0:4002:c07::236]:36086) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvkXI-0007XH-9i for qemu-devel@nongnu.org; Mon, 09 Nov 2015 06:22:56 -0500 Received: by ykba4 with SMTP id a4so258360443ykb.3 for ; Mon, 09 Nov 2015 03:22:55 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <5640812F.4070008@redhat.com> References: <1446747358-18214-1-git-send-email-peter.maydell@linaro.org> <1446747358-18214-10-git-send-email-peter.maydell@linaro.org> <56407AC8.9020100@redhat.com> <56407D82.4090005@redhat.com> <5640812F.4070008@redhat.com> From: Peter Maydell Date: Mon, 9 Nov 2015 11:22:36 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH 09/16] target-arm: Support multiple address spaces in page table walks List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Patch Tracking , QEMU Developers , qemu-arm@nongnu.org, "Edgar E. Iglesias" , =?UTF-8?B?QWxleCBCZW5uw6ll?= , =?UTF-8?Q?Andreas_F=C3=A4rber?= On 9 November 2015 at 11:19, Paolo Bonzini wrote: > > > On 09/11/2015 12:09, Peter Maydell wrote: >>>> >> I could have handled that by making the CPU init code always >>>> >> register two ASes (using the same one twice if the board code >>>> >> only passes one or using system_address_space twice if the >>>> >> board code doesn't pass one at all), but that seemed a bit wasteful. >>> > >>> > I think it's simpler though. Complicating the init code is better than >>> > handling the condition throughout all the helpers... >> It was the overhead of having an extra AddressSpace that concerned >> me (plus it shows up in things like 'info mtree' somewhat confusingly >> if you didn't expect your board to really have 2 ASes). > > I don't think it shows up twice with address_space_init_shareable, does it? Yes, looking at the code you're right. -- PMM