From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.120]) by mx.groups.io with SMTP id smtpd.web11.10177.1583800402909875299 for ; Mon, 09 Mar 2020 17:33:23 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XSW+bbFB; spf=pass (domain: redhat.com, ip: 205.139.110.120, mailfrom: lersek@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583800402; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3/gSZaHecDkoVuHcYVC1WW69IwW+9FRCznd6nNWrbTI=; b=XSW+bbFBWdBWbriaV8pHXcWyn+HfIgi/BrqSsr7q7UtgWJogos47aBNJHgfBqphox0scBf KlopXUWQCozrTDoHgJOWV6PWFOiAwgEhUrQbB6i6rLH6U201Q5Imzs19lPRC9tUMj+D3DA h3JOtvlahFP76S2VgSYEDIw3WBYf/I0= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-296-5NTk_LDrNSioFxtF5SgsxA-1; Mon, 09 Mar 2020 20:33:18 -0400 X-MC-Unique: 5NTk_LDrNSioFxtF5SgsxA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7207B8017CC; Tue, 10 Mar 2020 00:33:17 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-76.ams2.redhat.com [10.36.116.76]) by smtp.corp.redhat.com (Postfix) with ESMTP id AB81B60C88; Tue, 10 Mar 2020 00:33:16 +0000 (UTC) Subject: Re: [edk2-devel] [PATCH v4 0/2] ArmPkg/ArmMmuLib: rewrite and improve cache handling with MMU off To: devel@edk2.groups.io, ard.biesheuvel@linaro.org Cc: leif@nuviainc.com References: <20200307083849.8940-1-ard.biesheuvel@linaro.org> From: "Laszlo Ersek" Message-ID: <7727adc8-bfe0-b129-3bdd-3fec4df9a81a@redhat.com> Date: Tue, 10 Mar 2020 01:33:15 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20200307083849.8940-1-ard.biesheuvel@linaro.org> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit On 03/07/20 09:38, Ard Biesheuvel wrote: > I finally got fed up with the state of the AArch64 MMU handling code, and > decided to rewrite it before rebasing the cache invalidation fix onto > it. > > Changes since v3: > - move code for better diffing > - free allocated page tables on failure if it is safe to do so > - some minor style tweaks > - add Leif's ack to #2 > > Ard Biesheuvel (2): > ArmPkg/ArmMmuLib AARCH64: rewrite page table code > ArmPkg/ArmMmuLib AARCH64: invalidate page tables before populating > them > > .../Library/ArmMmuLib/AArch64/ArmMmuLibCore.c | 405 +++++++----------- > 1 file changed, 162 insertions(+), 243 deletions(-) > Commit range a3e25cc8a1dd3d1ea24ed02f90c44221e015e965..748fea6279efc20de3fef483deb4b774f3c34906, via . Thanks Laszlo