From: Ard Biesheuvel <ardb@kernel.org>
To: linux-arm-kernel@lists.infradead.org
Cc: Ard Biesheuvel <ardb@kernel.org>,
will@kernel.org, maz@kernel.org, mark.rutland@arm.com,
catalin.marinas@arm.com, keescook@chromium.org
Subject: [PATCH v3 0/2] arm64: apply G-to-nG conversion for KPTI with MMU enabled
Date: Thu, 21 Apr 2022 16:03:37 +0200 [thread overview]
Message-ID: <20220421140339.1329019-1-ardb@kernel.org> (raw)
This v3 is now a series, after I split off some preparatory refactoring
into a separate patch. Rationale for the series is in patch #2.
Changes since v2 [0]:
- reinstate optimization that avoids descending into the same page
tables repeatedly when KASAN is enabled;
- use broadcast TLB maintenance when doing BBM for the temporary
mappings, to prevent potential TLB conflicts on the secondary cores
that are running from the same set of temporary page tables;
- remove a wait loop in the C code, by using 'num_cpus + 1' as the
signal value rather then 0x0;
- declutter and simplify the asm helper code, to make it more
maintainable.
Cc: will@kernel.org
Cc: maz@kernel.org
Cc: mark.rutland@arm.com
Cc: catalin.marinas@arm.com
Cc: keescook@chromium.org
[0] https://lore.kernel.org/linux-arm-kernel/20220413121848.787565-1-ardb@kernel.org/
Ard Biesheuvel (2):
arm64: kpti-ng: simplify page table traversal logic
arm64: mm: install KPTI nG mappings with MMU enabled
arch/arm64/include/asm/mmu.h | 4 +
arch/arm64/kernel/cpufeature.c | 65 ++++++-
arch/arm64/mm/mmu.c | 8 +-
arch/arm64/mm/proc.S | 190 ++++++++++----------
4 files changed, 161 insertions(+), 106 deletions(-)
--
2.30.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2022-04-21 14:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-21 14:03 Ard Biesheuvel [this message]
2022-04-21 14:03 ` [PATCH v3 1/2] arm64: kpti-ng: simplify page table traversal logic Ard Biesheuvel
2022-05-19 17:09 ` Mark Rutland
2022-05-19 18:08 ` Ard Biesheuvel
2022-04-21 14:03 ` [PATCH v3 2/2] arm64: mm: install KPTI nG mappings with MMU enabled Ard Biesheuvel
2022-05-20 13:00 ` Mark Rutland
2022-05-20 14:15 ` Ard Biesheuvel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220421140339.1329019-1-ardb@kernel.org \
--to=ardb@kernel.org \
--cc=catalin.marinas@arm.com \
--cc=keescook@chromium.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=mark.rutland@arm.com \
--cc=maz@kernel.org \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.