From: Suzuki K Poulose <suzuki.poulose@arm.com>
To: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org, will.deacon@arm.com,
mark.rutland@arm.com, marc.zyngier@arm.com,
ynorov@caviumnetworks.com,
Suzuki K Poulose <suzuki.poulose@arm.com>
Subject: [PATCH v3 0/7] arm64: Support for systems without AArch32 state
Date: Thu, 31 Mar 2016 18:27:28 +0100 [thread overview]
Message-ID: <1459445255-15653-1-git-send-email-suzuki.poulose@arm.com> (raw)
This series add checks to make sure that the AArch32 state is
supported before we process the 32bit ID registers. Also
checks the same for COMPAT binary execution.
Applies on top of 4.6-rc1. The series remains unchanged from V3, except
for :
Changes since V2:
- Rebased to 4.6-rc1
- Drop redundant KVM check introduced in V1.
Changes since V1:
- Prevent changing the personality to PER_LINUX32 by adding
wrapper for personality() syscall.
- Add the check to KVM before initialising a AArch32 vcpu
- Tested on hardware.
Btw, linux32 doesn't complain when the personality() syscall fails to change
to PER_LINUX32. You can verify the personality by running
$ cat /proc/cpuinfo
which would still list the 64bit features for the CPUs.
Suzuki K Poulose (6):
arm64: hwcaps: Cleanup naming
arm64: HWCAP: Split COMPAT HWCAP table entries
arm64: Add helpers for detecting AArch32 support at EL0
arm64: cpufeature: Check availability of AArch32
arm64: cpufeature: Track 32bit EL0 support
arm64: Add a wrapper for personality() syscall
Yury Norov (1):
arm64: compat: Check for AArch32 state
arch/arm64/include/asm/cpufeature.h | 15 ++-
arch/arm64/include/asm/elf.h | 3 +-
arch/arm64/include/asm/sysreg.h | 1 +
arch/arm64/kernel/cpufeature.c | 208 ++++++++++++++++++++---------------
arch/arm64/kernel/cpuinfo.c | 37 ++++---
arch/arm64/kernel/sys.c | 10 ++
6 files changed, 165 insertions(+), 109 deletions(-)
--
1.7.9.5
next reply other threads:[~2016-03-31 17:27 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-31 17:27 Suzuki K Poulose [this message]
2016-03-31 17:27 ` [PATCH v3 1/7] arm64: hwcaps: Cleanup naming Suzuki K Poulose
2016-03-31 17:27 ` [PATCH v3 2/7] arm64: HWCAP: Split COMPAT HWCAP table entries Suzuki K Poulose
2016-03-31 17:27 ` [PATCH v3 3/7] arm64: Add helpers for detecting AArch32 support at EL0 Suzuki K Poulose
2016-04-14 16:39 ` Will Deacon
2016-04-14 16:46 ` Suzuki K Poulose
2016-04-14 16:47 ` Will Deacon
2016-03-31 17:27 ` [PATCH v3 4/7] arm64: cpufeature: Check availability of AArch32 Suzuki K Poulose
2016-03-31 17:27 ` [PATCH v3 5/7] arm64: cpufeature: Track 32bit EL0 support Suzuki K Poulose
2016-04-14 16:43 ` Will Deacon
2016-04-14 16:50 ` Suzuki K Poulose
2016-03-31 17:27 ` [PATCH v3 6/7] arm64: Add a wrapper for personality() syscall Suzuki K Poulose
2016-04-14 16:44 ` Will Deacon
2016-04-14 16:47 ` Suzuki K Poulose
2016-03-31 17:27 ` [PATCH v3 7/7] arm64: compat: Check for AArch32 state Suzuki K Poulose
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=1459445255-15653-1-git-send-email-suzuki.poulose@arm.com \
--to=suzuki.poulose@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marc.zyngier@arm.com \
--cc=mark.rutland@arm.com \
--cc=will.deacon@arm.com \
--cc=ynorov@caviumnetworks.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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®