Commit dd5cb90e authored by James Morse's avatar James Morse Committed by Zeng Heng
Browse files

x86/resctrl: Allow an architecture to disable pseudo lock

maillist inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8T2RT

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git/log/?h=mpam/snapshot/v6.7-rc2



---------------------------

resctrl's pseudo lock has some copy-to-cache and measurement
functions that are micro-architecture specific. pseudo_lock_fn()
is not at all portable. Label these 'resctrl_arch_' so they stay
under /arch/x86.

Pseudo-lock doesn't work without these, add a Kconfig symbol
to disable it. This ensures that rdtgrp->mode can never be
RDT_MODE_PSEUDO_LOCKED.

Arm's cache-lockdown works in a very different way.
As it isn't possible to disable prefetch or efficiently
restrict the CPUs ability to pull lines into the cache, this
resctrl pseudo_lock stuff isn't going to be used on arm.

Signed-off-by: default avatarJames Morse <james.morse@arm.com>
Signed-off-by: default avatarZeng Heng <zengheng4@huawei.com>
parent 3f0c62bd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment