mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-01 10:42:11 +00:00
arm64: Exclude nohz_full CPUs from 32bits el0 support
Nohz full CPUs are not a desirable fallback target to run 32bits el0 applications. If present, prefer a set of housekeeping CPUs that can do the job instead. Otherwise just don't support el0 32 bits. Should the need arise, appropriate support can be introduced in the future. Suggested-by: Will Deacon <will@kernel.org> Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
This commit is contained in:
parent
be70893bff
commit
9b0379cd58
@ -153,3 +153,12 @@ asymmetric system, a broken guest at EL1 could still attempt to execute
|
|||||||
mode will return to host userspace with an ``exit_reason`` of
|
mode will return to host userspace with an ``exit_reason`` of
|
||||||
``KVM_EXIT_FAIL_ENTRY`` and will remain non-runnable until successfully
|
``KVM_EXIT_FAIL_ENTRY`` and will remain non-runnable until successfully
|
||||||
re-initialised by a subsequent ``KVM_ARM_VCPU_INIT`` operation.
|
re-initialised by a subsequent ``KVM_ARM_VCPU_INIT`` operation.
|
||||||
|
|
||||||
|
NOHZ FULL
|
||||||
|
---------
|
||||||
|
|
||||||
|
Nohz full CPUs are not a desirable fallback target to run 32bits el0
|
||||||
|
applications. If present, a set of housekeeping CPUs that can do
|
||||||
|
the job instead is preferred. Otherwise 32-bit EL0 is not supported.
|
||||||
|
Should the need arise, appropriate support can be introduced in the
|
||||||
|
future.
|
||||||
|
@ -75,6 +75,7 @@
|
|||||||
#include <linux/cpu.h>
|
#include <linux/cpu.h>
|
||||||
#include <linux/kasan.h>
|
#include <linux/kasan.h>
|
||||||
#include <linux/percpu.h>
|
#include <linux/percpu.h>
|
||||||
|
#include <linux/sched/isolation.h>
|
||||||
|
|
||||||
#include <asm/cpu.h>
|
#include <asm/cpu.h>
|
||||||
#include <asm/cpufeature.h>
|
#include <asm/cpufeature.h>
|
||||||
@ -3742,7 +3743,10 @@ static int enable_mismatched_32bit_el0(unsigned int cpu)
|
|||||||
static int lucky_winner = -1;
|
static int lucky_winner = -1;
|
||||||
|
|
||||||
struct cpuinfo_arm64 *info = &per_cpu(cpu_data, cpu);
|
struct cpuinfo_arm64 *info = &per_cpu(cpu_data, cpu);
|
||||||
bool cpu_32bit = id_aa64pfr0_32bit_el0(info->reg_id_aa64pfr0);
|
bool cpu_32bit = false;
|
||||||
|
|
||||||
|
if (id_aa64pfr0_32bit_el0(info->reg_id_aa64pfr0) && housekeeping_cpu(cpu, HK_TYPE_TICK))
|
||||||
|
cpu_32bit = true;
|
||||||
|
|
||||||
if (cpu_32bit) {
|
if (cpu_32bit) {
|
||||||
cpumask_set_cpu(cpu, cpu_32bit_el0_mask);
|
cpumask_set_cpu(cpu, cpu_32bit_el0_mask);
|
||||||
|
Loading…
Reference in New Issue
Block a user