Re: [PATCH v3 07/11] kentry: Make entry/exit_to_user_mode() arm64-only

2021-03-13 Thread Andy Lutomirski
On Mon, Mar 8, 2021 at 2:06 AM Mark Rutland wrote: > > On Thu, Mar 04, 2021 at 11:06:00AM -0800, Andy Lutomirski wrote: > > exit_to_user_mode() does part, but not all, of the exit-to-user-mode work. > > It's used only by arm64, and arm64 should stop using it (hint, hint!). > > Compile it out on

Re: [PATCH v3 07/11] kentry: Make entry/exit_to_user_mode() arm64-only

2021-03-08 Thread Mark Rutland
On Thu, Mar 04, 2021 at 11:06:00AM -0800, Andy Lutomirski wrote: > exit_to_user_mode() does part, but not all, of the exit-to-user-mode work. > It's used only by arm64, and arm64 should stop using it (hint, hint!). > Compile it out on other architectures to minimize the chance of error. For

[PATCH v3 07/11] kentry: Make entry/exit_to_user_mode() arm64-only

2021-03-04 Thread Andy Lutomirski
exit_to_user_mode() does part, but not all, of the exit-to-user-mode work. It's used only by arm64, and arm64 should stop using it (hint, hint!). Compile it out on other architectures to minimize the chance of error. enter_from_user_mode() is a legacy way to spell kentry_enter_from_user_mode().