From: Mark Rutland <mark.rutland@arm.com> To: linux-arm-kernel@lists.infradead.org Cc: marc.zyngier@arm.com, andre.przywara@arm.com, will.deacon@arm.com, dave.martin@arm.com, catalin.marinas@arm.com, kvmarm@lists.cs.columbia.edu Subject: [PATCH 0/3] arm64: alternative: add auto-nop support Date: Wed, 7 Sep 2016 11:07:07 +0100 [thread overview] Message-ID: <1473242830-26246-1-git-send-email-mark.rutland@arm.com> (raw) In some cases where we use pairs of alternative sequences, only one sequence does valuable work, and the other consists solely of NOPs. We have to manually ensure that both sequences are the same size, and some NOP sleds are partially contained unddef ifdefs. Maintaining this balance is tedious, and the presence of these makes the code more painful to read than is necessary. These patches add helpers to handle these cases automatically, making the code more maintainable, and easier to read. Thanks, Mark. Mark Rutland (3): arm64: alternative: add auto-nop infrastructure arm64: use alternative auto-nop arm64/kvm: use alternative auto-nop arch/arm64/include/asm/alternative.h | 71 +++++++++++++++++++++++++++--------- arch/arm64/include/asm/kvm_mmu.h | 10 ++--- arch/arm64/kernel/entry.S | 10 +---- arch/arm64/kvm/hyp.S | 6 +-- arch/arm64/lib/copy_page.S | 13 ++----- arch/arm64/mm/proc.S | 9 +---- 6 files changed, 66 insertions(+), 53 deletions(-) -- 1.9.1
WARNING: multiple messages have this Message-ID (diff)
From: mark.rutland@arm.com (Mark Rutland) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 0/3] arm64: alternative: add auto-nop support Date: Wed, 7 Sep 2016 11:07:07 +0100 [thread overview] Message-ID: <1473242830-26246-1-git-send-email-mark.rutland@arm.com> (raw) In some cases where we use pairs of alternative sequences, only one sequence does valuable work, and the other consists solely of NOPs. We have to manually ensure that both sequences are the same size, and some NOP sleds are partially contained unddef ifdefs. Maintaining this balance is tedious, and the presence of these makes the code more painful to read than is necessary. These patches add helpers to handle these cases automatically, making the code more maintainable, and easier to read. Thanks, Mark. Mark Rutland (3): arm64: alternative: add auto-nop infrastructure arm64: use alternative auto-nop arm64/kvm: use alternative auto-nop arch/arm64/include/asm/alternative.h | 71 +++++++++++++++++++++++++++--------- arch/arm64/include/asm/kvm_mmu.h | 10 ++--- arch/arm64/kernel/entry.S | 10 +---- arch/arm64/kvm/hyp.S | 6 +-- arch/arm64/lib/copy_page.S | 13 ++----- arch/arm64/mm/proc.S | 9 +---- 6 files changed, 66 insertions(+), 53 deletions(-) -- 1.9.1
next reply other threads:[~2016-09-07 9:59 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-09-07 10:07 Mark Rutland [this message] 2016-09-07 10:07 ` [PATCH 0/3] arm64: alternative: add auto-nop support Mark Rutland 2016-09-07 10:07 ` [PATCH 1/3] arm64: alternative: add auto-nop infrastructure Mark Rutland 2016-09-07 10:07 ` Mark Rutland 2016-09-13 8:36 ` Ard Biesheuvel 2016-09-13 8:36 ` Ard Biesheuvel 2016-09-13 8:57 ` Mark Rutland 2016-09-13 8:57 ` Mark Rutland 2016-09-13 8:59 ` Ard Biesheuvel 2016-09-13 8:59 ` Ard Biesheuvel 2016-09-07 10:07 ` [PATCH 2/3] arm64: use alternative auto-nop Mark Rutland 2016-09-07 10:07 ` Mark Rutland 2016-09-07 10:07 ` [PATCH 3/3] arm64/kvm: " Mark Rutland 2016-09-07 10:07 ` Mark Rutland 2016-09-08 11:16 ` Christoffer Dall 2016-09-08 11:16 ` Christoffer Dall 2016-09-08 11:33 ` Mark Rutland 2016-09-08 11:33 ` Mark Rutland
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=1473242830-26246-1-git-send-email-mark.rutland@arm.com \ --to=mark.rutland@arm.com \ --cc=andre.przywara@arm.com \ --cc=catalin.marinas@arm.com \ --cc=dave.martin@arm.com \ --cc=kvmarm@lists.cs.columbia.edu \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=marc.zyngier@arm.com \ --cc=will.deacon@arm.com \ /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: linkBe 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.