Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1301798
| From | Mark Rutland <mark.rutland@arm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v9 08/13] arch/arm64: adopt prepare_exit_to_usermode() model from x86 |
| Date | 2016-01-05 19:10 +0100 |
| Message-ID | <qNEds-6sw-7@gated-at.bofh.it> (permalink) |
| References | <qNk54-8oP-13@gated-at.bofh.it> <qNk54-8oP-15@gated-at.bofh.it> <qNk54-8oP-11@gated-at.bofh.it> <qNlXb-1bV-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Jan 04, 2016 at 02:31:42PM -0800, Andy Lutomirski wrote: > On Mon, Jan 4, 2016 at 12:33 PM, Mark Rutland <mark.rutland@arm.com> wrote: > > Hi, > > > > On Mon, Jan 04, 2016 at 02:34:46PM -0500, Chris Metcalf wrote: > >> This change is a prerequisite change for TASK_ISOLATION but also > >> stands on its own for readability and maintainability. > > > > I have also been looking into converting the userspace return path from > > assembly to C [1], for the latter two reasons. Based on that, I have a > > couple of comments. > > > > > > > [1] https://git.kernel.org/cgit/linux/kernel/git/mark/linux.git/log/?h=arm64/entry-deasm > > Neat! > > In case you want to compare notes, I have a branch with the entire > syscall path on x86 in C except for cleanly separated asm fast path > optimizations: > > https://git.kernel.org/cgit/linux/kernel/git/luto/linux.git/log/?h=x86/entry_compat It was in fact your x86 effort that inspired me to look at this! Thanks for the pointer, I'm almost certainly going to steal an idea or two. Currently it looks like arm64's conversion will be less painful than that for x86 as the entry assembly is smaller and relatively uniform. It looks like all but the register save/restore is possible in C. That said, I have yet to stress/validate everything with tracing, irq debugging, and so on, so my confidence may be misplaced. Thanks, Mark. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH v9 08/13] arch/arm64: adopt prepare_exit_to_usermode() model from x86 Mark Rutland <mark.rutland@arm.com> - 2016-01-04 21:40 +0100
Re: [PATCH v9 08/13] arch/arm64: adopt prepare_exit_to_usermode() model from x86 Chris Metcalf <cmetcalf@ezchip.com> - 2016-01-04 22:10 +0100
Re: [PATCH v9 08/13] arch/arm64: adopt prepare_exit_to_usermode() model from x86 Mark Rutland <mark.rutland@arm.com> - 2016-01-05 18:30 +0100
[PATCH 2/2] arm64: factor work_pending state machine to C Mark Rutland <mark.rutland@arm.com> - 2016-01-05 18:40 +0100
Re: [PATCH 2/2] arm64: factor work_pending state machine to C Chris Metcalf <cmetcalf@ezchip.com> - 2016-01-05 20:00 +0100
Re: [PATCH 2/2] arm64: factor work_pending state machine to C Catalin Marinas <catalin.marinas@arm.com> - 2016-01-06 13:40 +0100
Re: [PATCH 2/2] arm64: factor work_pending state machine to C Mark Rutland <mark.rutland@arm.com> - 2016-01-06 13:50 +0100
Re: [PATCH 2/2] arm64: factor work_pending state machine to C Mark Rutland <mark.rutland@arm.com> - 2016-01-06 14:50 +0100
Re: [PATCH 2/2] arm64: factor work_pending state machine to C Catalin Marinas <catalin.marinas@arm.com> - 2016-01-06 15:20 +0100
[PATCH 1/2] arm64: entry: remove pointless SPSR mode check Mark Rutland <mark.rutland@arm.com> - 2016-01-05 18:40 +0100
Re: [PATCH 1/2] arm64: entry: remove pointless SPSR mode check Catalin Marinas <catalin.marinas@arm.com> - 2016-01-06 13:20 +0100
Re: [PATCH v9 08/13] arch/arm64: adopt prepare_exit_to_usermode() model from x86 Andy Lutomirski <luto@amacapital.net> - 2016-01-04 23:40 +0100
Re: [PATCH v9 08/13] arch/arm64: adopt prepare_exit_to_usermode() model from x86 Mark Rutland <mark.rutland@arm.com> - 2016-01-05 19:10 +0100
csiph-web