From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by mx.groups.io with SMTP id smtpd.web11.10635.1583570337473297209 for ; Sat, 07 Mar 2020 00:38:58 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=RepCRE0A; spf=pass (domain: linaro.org, ip: 209.85.221.42, mailfrom: ard.biesheuvel@linaro.org) Received: by mail-wr1-f42.google.com with SMTP id r7so5049754wro.2 for ; Sat, 07 Mar 2020 00:38:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=JAQanN+kcpxkbY3uwb1bLFvdGYvJ4zkb4jYiaH7/gXg=; b=RepCRE0AOZeqMun+ngoCx9rej2TNuHuIi7oKLNIoDfzPi4xH3XoTxiFnd2UlTPmdBg Qkw3Og83FXthLEJ1baUlLq8FDE9+uxgKcOpwU2m1DJOlRv/iGqlnW6/2vxaXd76S6YX6 8RAJcWu28V5Nes1T1SSlnArbjdrvYtzHrzGHSmorJwLv/gFDizVPzIumgDsuCBSWKtLu BvRNBogYnF87o1crlYSsZEXtQUbFjAfr6O8tVvl+l6LpiqxzacDU/2PUbkDrTDcrSgKm f2FHZUzGQAlHx3EMD/qxzOqJEIY64kvNHcskEVY/ulnDssCvfcs8Wo6qeIQTTzjEIMO0 FrDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=JAQanN+kcpxkbY3uwb1bLFvdGYvJ4zkb4jYiaH7/gXg=; b=i8wfX9C7zhM9Zh6NHU75u53gxFicWzjXd9lzd7BriVs5MmdeaxOSSF+nXnDbAnmr+u yqwK4NzznFlK3Q81xwd7stUb7IuHtjBzsoBfv1kHBb6Fqaf9eDZK5W/mIlvgVsv085fZ YiW4VVpnLSeV9lzg1BVruo3CB2xpxAVZr1dS9t9jSHfS8qxfdcfP39E8gk5/fMLMlEBI 374/RGOC7+Ppz0lKQTyCDkM1Q9FqOmUG9D9GRPcC9tB6acKdszZ0VCV+Hft07T87JoGY 1eWqlCnQ7ikqXaZgtEda4BxUbaY9nAUF9fH+QS829eZg2XZyi91ud7n8HT+OanLV6EUm /1BA== X-Gm-Message-State: ANhLgQ0CdEJvcZDR+nLyIL3mDuNdMipid5E9bpxqaGwgIaAc0HzzrtzB 6weZ5nKhfPiXDEUuA3nUAU2rHe9jgXzVxw== X-Google-Smtp-Source: ADFU+vtz5MLnajGClFH48P39pOMDJlS/K04AYkr9Cy7Hi5zHqe0mwCtz/CoszZUPOCJ7mozQlZ7lig== X-Received: by 2002:a05:6000:10c8:: with SMTP id b8mr8263198wrx.287.1583570335699; Sat, 07 Mar 2020 00:38:55 -0800 (PST) Return-Path: Received: from e123331-lin.home ([2a01:cb1d:112:6f00:816e:ff0d:fb69:f613]) by smtp.gmail.com with ESMTPSA id t14sm20430953wrp.63.2020.03.07.00.38.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Mar 2020 00:38:54 -0800 (PST) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: leif@nuviainc.com, Ard Biesheuvel Subject: [PATCH v4 0/2] ArmPkg/ArmMmuLib: rewrite and improve cache handling with MMU off Date: Sat, 7 Mar 2020 09:38:47 +0100 Message-Id: <20200307083849.8940-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 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(-) -- 2.17.1