Received: from eggs.gnu.org ([2001:4830:134:3::10]:43706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLpqS-0000v5-LY for qemu-devel@nongnu.org; Thu, 24 May 2018 08:59:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLpqO-0008FP-FG for qemu-devel@nongnu.org; Thu, 24 May 2018 08:59:52 -0400 References: <1527091418-11874-1-git-send-email-eric.auger@redhat.com> <22c4e504-a7b4-e6dd-b2cc-618d306b6f0c@redhat.com> From: Laszlo Ersek Message-ID: <550464ac-5155-6311-d0f7-92c7c0813f82@redhat.com> Date: Thu, 24 May 2018 14:59:38 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC 0/2] ARM virt: Support up to 256 PCIe buses List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Auger Eric , Eric Auger , QEMU Developers , qemu-arm , Wei Huang , Andrew Jones , Ard Biesheuvel , Shannon Zhao On 05/24/18 11:11, Peter Maydell wrote: > On 23 May 2018 at 21:52, Laszlo Ersek wrote: >> On 05/23/18 22:40, Auger Eric wrote: >>> On 05/23/2018 07:45 PM, Laszlo Ersek wrote: >> >>>> Regarding the second patch, I do believe we need "more sophistication" >>>> there. For example, I guess it could be possible to distinguish "-cpu >>>> cortex-a15" from "-cpu cortex-a57" somehow, and stick with the low/small >>>> ECAM in the former case. (The 32-bit firmware already runs on cortex-a15 >>>> only, and not on cortex-a57, according to my testing.) >>> >>> So we should detect we are in ACPI boot + aarch32 mode to force legacy >>> ECAM region, right? >> >> Agree about the aarch32 subcondition. >> >> However, "ACPI vs. DT" is not the right "other" subcondition here; >> instead we should (minimally) check "firmware vs. no firmware". See the >> "firmware_loaded" boolean field. > > Won't it also break a guest which is just Linux loaded not via > firmware which is an aarch32 kernel without LPAE support? Does such a thing exist? (I honestly have no clue.) If it does, then there are two options: - don't enable the new ECAM range by default (always take an explicit option), - offer both ECAM ranges and let the guest pick one (I should add that I have no idea whether exposing such *alternatives* is possible via DT and ACPI; i.e., "pick one but not both"). Thanks Laszlo