On 05/12/2018 08:32, Andrew Jones wrote:
> On Wed, Dec 05, 2018 at 09:15:51AM +0800, Peng Hao wrote:
>> Return 0 when there is enough kvm_mmu_memory_cache object.
>>
>> Signed-off-by: Peng Hao
>> ---
>> virt/kvm/arm/mmu.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a
On 06/12/2018 23:44, Jeremy Linton wrote:
> From: Mian Yousaf Kaukab
>
> Return status based no ssbd_state and the arm64 SSBS feature.
^^ on
> Return string "Unknown" in case CONFIG_ARM64_SSBD is
> disabled or arch workaround2 is not available
> in the firmware.
>
> Signed
On 14/12/2018 10:36, Will Deacon wrote:
> On Fri, Dec 14, 2018 at 10:34:31AM +0000, Steven Price wrote:
>> On 06/12/2018 23:44, Jeremy Linton wrote:
>>> From: Mian Yousaf Kaukab
>>>
>>> Return status based no ssbd_state and the arm64 SSBS feature.
>>
using such additional "pruning information" in a more robust way, by ensuring
> that the absolutely required harddep modules aren't pruned away.
>
> [1]
> https://lore.kernel.org/dri-devel/4e1e00422a14db4e2a80870afb704405da16fd1b.1718655077.git.dsi...@manjaro.org/T/#u
>
On 25/07/2024 15:29, Lucas De Marchi wrote:
> On Thu, Jul 25, 2024 at 01:37:46PM GMT, Dragan Simic wrote:
>> Panfrost and Lima DRM drivers use devfreq to perform DVFS, which is
>> supported
>> on the associated platforms, while using simple_ondemand devfreq
>> governor by
>> default. This makes th
On 07/04/2021 16:14, Catalin Marinas wrote:
On Wed, Apr 07, 2021 at 11:20:18AM +0100, Steven Price wrote:
On 31/03/2021 19:43, Catalin Marinas wrote:
When a slot is added by the VMM, if it asked for MTE in guest (I guess
that's an opt-in by the VMM, haven't checked the other patche
On 27/02/2019 17:38, Dave Hansen wrote:
> On 2/27/19 9:06 AM, Steven Price wrote:
>> #ifdef CONFIG_SHMEM
>> static int smaps_pte_hole(unsigned long addr, unsigned long end,
>> -struct mm_walk *walk)
>> + __always_unused int
On 27/02/2019 17:40, Martin Schwidefsky wrote:
> On Wed, 27 Feb 2019 17:05:52 +
> Steven Price wrote:
>
>> walk_page_range() is going to be allowed to walk page tables other than
>> those of user space. For this it needs to know when it has reached a
>> 'leaf
On 27/02/2019 18:38, David Miller wrote:
> From: Steven Price
> Date: Wed, 27 Feb 2019 17:05:54 +
>
>> walk_page_range() is going to be allowed to walk page tables other than
>> those of user space. For this it needs to know when it has reached a
>> 'leaf
On 28/02/2019 11:53, Geert Uytterhoeven wrote:
> Hi Mike,
>
> On Thu, Feb 28, 2019 at 12:37 PM Mike Rapoport wrote:
>> On Wed, Feb 27, 2019 at 08:27:40PM +0100, Geert Uytterhoeven wrote:
>>> On Wed, Feb 27, 2019 at 6:07 PM Steven Price wrote:
>>>> walk_pa
On 28/02/2019 02:15, Paul Burton wrote:
> Hi Steven,
>
> On Wed, Feb 27, 2019 at 05:05:45PM +0000, Steven Price wrote:
>> For mips, we don't support large pages on 32 bit so add stubs returning 0.
>
> So far so good :)
>
>> For 64 bit look for _PAGE_HUGE flag
On 28/02/2019 18:55, Paul Burton wrote:
> Hi Steven,
>
> On Thu, Feb 28, 2019 at 12:11:24PM +0000, Steven Price wrote:
>> On 28/02/2019 02:15, Paul Burton wrote:
>>> On Wed, Feb 27, 2019 at 05:05:45PM +, Steven Price wrote:
>>>> For mips, we don't s
On 28/02/2019 19:00, Dave Hansen wrote:
> On 2/28/19 3:28 AM, Steven Price wrote:
>> static int get_level(unsigned long addr, unsigned long end)
>> {
>> /* Add 1 to account for ~0ULL */
>> unsigned long size = (end - addr) + 1;
>> if (size <
On 01/03/2019 12:30, Kirill A. Shutemov wrote:
> On Fri, Mar 01, 2019 at 01:53:01PM +0200, Mike Rapoport wrote:
>> Him Kirill,
>>
>> On Fri, Feb 22, 2019 at 12:06:18AM +0300, Kirill A. Shutemov wrote:
>>> On Thu, Feb 21, 2019 at 05:16:46PM +, Steven Price wrote
On 12/04/2019 15:44, Dave Hansen wrote:
> On 4/10/19 7:56 AM, Steven Price wrote:
>> Gentle ping: who can take this? Is there anything blocking this series?
>
> First of all, I really appreciate that you tried this. Every open-coded
> page walk has a set of common pitfa
Instead of providing our own callbacks for walking the page tables,
switch to using the generic version instead.
Signed-off-by: Steven Price
---
arch/arm64/Kconfig | 1 +
arch/arm64/Kconfig.debug| 19 +-
arch/arm64/include/asm/ptdump.h | 8 +--
arch/arm64/mm
Add a generic version of page table dumping that architectures can
opt-in to
Signed-off-by: Steven Price
---
include/linux/ptdump.h | 19 +
mm/Kconfig.debug | 21 ++
mm/Makefile| 1 +
mm/ptdump.c| 159 +
4 files
Instead of providing our own callbacks for walking the page tables,
switch to using the generic version instead.
Signed-off-by: Steven Price
---
arch/x86/Kconfig | 1 +
arch/x86/Kconfig.debug| 20 +--
arch/x86/mm/Makefile | 4 +-
arch/x86/mm/dump_pagetables.c
p; MMU [=y]
Reported-by: kbuild test robot
Signed-off-by: Steven Price
---
drivers/gpu/drm/panfrost/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/panfrost/Kconfig b/drivers/gpu/drm/panfrost/Kconfig
index 7f5e572daa2d..591611dc4e34 100644
--- a/drive
the desired effect.
So you might want to add a Fixes tag. Otherwise FWIW:
Reviewed-by: Steven Price
Thanks,
Steve
> Signed-off-by: pierre Kuo
> ---
> arch/arm64/mm/init.c | 8 +++-
> 1 file changed, 3 insertions(+), 5 deletions(-)
>
> diff --git a/arch/arm64/mm/init.c b
alls
> to scmi_mbox_chan_setup().
> Therefore, the patch conservatively checks the return value and
> returns -EINVAL when it indeed failed.
>
> Signed-off-by: Kangjie Lu
> Reviewed-by: Steven Price
> ---
> drivers/firmware/arm_scmi/driver.c | 2 ++
> 1 file change
Lu
Reviewed-by: Steven Price
> ---
> v3: remove "unlikely", as suggested by Bjorn Helgaas.
> v2: caller is redefined to accept the error code, as suggested by
> Steven Price
> ---
> drivers/pci/controller/pcie-xilinx.c | 12 ++--
> 1 file changed, 10
On 26/03/2019 07:23, Mukesh Ojha wrote:
>
> On 3/25/2019 11:07 PM, Steven Price wrote:
>> of_parse_phandle_with_args() requires the caller to call of_node_put() on
>> the returned args->np pointer. Otherwise the reference count will remain
>> incremented.
>>
&
(see real_depth() function in
mm/pagewalk.c)
Steven Price (19):
arc: mm: Add p?d_large() definitions
arm64: mm: Add p?d_large() definitions
mips: mm: Add p?d_large() definitions
powerpc: mm: Add p?d_large() definitions
riscv: mm: Add p?d_large() definitions
s390: mm: Add p?d_large() defi
cros which we can reuse for
p?d_large().
CC: Catalin Marinas
CC: Will Deacon
Signed-off-by: Steven Price
---
arch/arm64/include/asm/pgtable.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/include/asm/pgtable.h b/arch/arm64/include/asm/pgtable.h
index de70c1eabf33..6eef345db
, write or execute bit
set on it.
CC: Palmer Dabbelt
CC: Albert Ou
CC: linux-ri...@lists.infradead.org
Signed-off-by: Steven Price
---
arch/riscv/include/asm/pgtable-64.h | 7 +++
arch/riscv/include/asm/pgtable.h| 7 +++
2 files changed, 14 insertions(+)
diff --git a/arch/riscv/i
C: linux-m...@vger.kernel.org
Signed-off-by: Steven Price
Acked-by: Paul Burton
---
arch/mips/include/asm/pgtable-64.h | 8
1 file changed, 8 insertions(+)
diff --git a/arch/mips/include/asm/pgtable-64.h
b/arch/mips/include/asm/pgtable-64.h
index 93a9dce31f25..42162877ac62 100644
--- a/arch/mips/i
ctions, so simply add #defines
to prevent the generic versions (added in a later patch) from being
picked up.
We also need to add corresponding #undefs in dump_pagetables.c. This
code will be removed when x86 is switched over to using the generic
pagewalk code in a later patch.
Signed-off-by: St
re already provided, so
add #defines to prevent the generic versions (added in a later patch)
from being used.
CC: "David S. Miller"
CC: sparcli...@vger.kernel.org
Signed-off-by: Steven Price
Acked-by: David S. Miller
---
arch/sparc/include/asm/pgtable_64.h | 2 ++
1 file changed, 2
re already implemented as static
inline functions. Add a #define so we don't pick up the generic version
introduced in a later patch.
CC: Martin Schwidefsky
CC: Heiko Carstens
CC: linux-s...@vger.kernel.org
Signed-off-by: Steven Price
---
arch/s390/include/asm/pgtable.h | 2 ++
1 file change
for all entries, not
just transparent huge pages.
Signed-off-by: Steven Price
---
include/linux/mm.h | 15 +--
mm/pagewalk.c | 27 ---
2 files changed, 25 insertions(+), 17 deletions(-)
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 76769749
It is useful to be able to skip parts of the page table tree even when
walking without VMAs. Add test_p?d callbacks similar to test_walk but
which are called just before a table at that level is walked. If the
callback returns non-zero then the entire table is skipped.
Signed-off-by: Steven Price
g defaults.
Signed-off-by: Steven Price
---
include/asm-generic/pgtable.h | 19 +++
1 file changed, 19 insertions(+)
diff --git a/include/asm-generic/pgtable.h b/include/asm-generic/pgtable.h
index fa782fba51ee..9c5d0f73db67 100644
--- a/include/asm-generic/pgtable.h
+++ b/i
r.
Remove the requirement to have a vma except when trying to split huge
pages.
Signed-off-by: Steven Price
---
mm/pagewalk.c | 25 +
1 file changed, 17 insertions(+), 8 deletions(-)
diff --git a/mm/pagewalk.c b/mm/pagewalk.c
index 98373a9f88b8..dac0c848b458 10064
user page tables. This fake_mm structure is
initialised with the minimum necessary for the generic page walk code.
Signed-off-by: Steven Price
---
arch/x86/mm/dump_pagetables.c | 36 ---
1 file changed, 21 insertions(+), 15 deletions(-)
diff --git a/arch/x
To enable x86 to use the generic walk_page_range() function, the
callers of ptdump_walk_pgd_level_debugfs() need to pass in the mm_struct.
This means that ptdump_walk_pgd_level_core() is now always passed a
valid pgd, so drop the support for pgd==NULL.
Signed-off-by: Steven Price
---
arch/x86
ned-off-by: Steven Price
---
arch/x86/include/asm/pgtable.h | 2 +-
arch/x86/mm/dump_pagetables.c | 4 ++--
arch/x86/platform/efi/efi_32.c | 2 +-
arch/x86/platform/efi/efi_64.c | 4 ++--
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/i
Now walk_page_range() can walk kernel page tables, we can switch the
arm64 ptdump code over to using it, simplifying the code.
Signed-off-by: Steven Price
---
arch/arm64/mm/dump.c | 117 ++-
1 file changed, 59 insertions(+), 58 deletions(-)
diff --git a
callbacks
which can decide to skip an entire tree of entries
Signed-off-by: Steven Price
---
arch/x86/mm/dump_pagetables.c | 280 ++
1 file changed, 146 insertions(+), 134 deletions(-)
diff --git a/arch/x86/mm/dump_pagetables.c b/arch/x86/mm/dump_pagetables.c
index
: Steven Price
---
arch/x86/mm/dump_pagetables.c | 69 ++-
1 file changed, 35 insertions(+), 34 deletions(-)
diff --git a/arch/x86/mm/dump_pagetables.c b/arch/x86/mm/dump_pagetables.c
index e2b53db92c34..3d12ac031144 100644
--- a/arch/x86/mm/dump_pagetables.c
+++ b/arch
#x27;level' that the page table holes are at.
Signed-off-by: Steven Price
---
arch/x86/mm/dump_pagetables.c | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/arch/x86/mm/dump_pagetables.c b/arch/x86/mm/dump_pagetables.c
index ca270fb00805..e2b53db92c34 100644
--
On 03/04/2019 13:37, Robin Murphy wrote:
> [ +Steve ]
>
> Hi Anshuman,
>
> On 03/04/2019 05:30, Anshuman Khandual wrote:
>> diff --git a/arch/arm64/include/asm/pgtable.h
>> b/arch/arm64/include/asm/pgtable.h
>> index de70c1e..858098e 100644
>> --- a/arch/arm64/include/asm/pgtable.h
>> +++ b/ar
in
mm/pagewalk.c)
Steven Price (20):
arc: mm: Add p?d_large() definitions
arm64: mm: Add p?d_large() definitions
mips: mm: Add p?d_large() definitions
powerpc: mm: Add p?d_large() definitions
KVM: PPC: Book3S HV: Remove pmd_is_leaf()
riscv: mm: Add p?d_large() definitions
s39
e using these page walking macros
is implicitly relying on the page size/number of levels being the same as
the kernel. So it is safe to reuse this for p?d_large() as it is an
architectural restriction.
CC: Catalin Marinas
CC: Will Deacon
Signed-off-by: Steven Price
---
arch/arm64/include/asm/pgtabl
C: linux-m...@vger.kernel.org
Signed-off-by: Steven Price
Acked-by: Paul Burton
---
arch/mips/include/asm/pgtable-64.h | 8
1 file changed, 8 insertions(+)
diff --git a/arch/mips/include/asm/pgtable-64.h
b/arch/mips/include/asm/pgtable-64.h
index 93a9dce31f25..42162877ac62 100644
--- a/arch/mips/i
, so hoist it out of the
CONFIG_TRANSPARENT_HUGEPAGE condition and implement the other levels.
CC: Benjamin Herrenschmidt
CC: Paul Mackerras
CC: Michael Ellerman
CC: linuxppc-...@lists.ozlabs.org
CC: kvm-...@vger.kernel.org
Signed-off-by: Steven Price
---
arch/powerpc/include/asm/book3s/64
re already provided, so
add #defines to prevent the generic versions (added in a later patch)
from being used.
CC: "David S. Miller"
CC: sparcli...@vger.kernel.org
Signed-off-by: Steven Price
Acked-by: David S. Miller
---
arch/sparc/include/asm/pgtable_64.h | 2 ++
1 file changed, 2
re already implemented as static
inline functions. Add a #define so we don't pick up the generic version
introduced in a later patch.
CC: Martin Schwidefsky
CC: Heiko Carstens
CC: linux-s...@vger.kernel.org
Signed-off-by: Steven Price
---
arch/s390/include/asm/pgtable.h | 2 ++
1 file change
ctions, so simply add #defines
to prevent the generic versions (added in a later patch) from being
picked up.
We also need to add corresponding #undefs in dump_pagetables.c. This
code will be removed when x86 is switched over to using the generic
pagewalk code in a later patch.
Signed-off-by: St
, write or execute bit
set on it.
CC: Palmer Dabbelt
CC: Albert Ou
CC: linux-ri...@lists.infradead.org
Signed-off-by: Steven Price
---
arch/riscv/include/asm/pgtable-64.h | 7 +++
arch/riscv/include/asm/pgtable.h| 7 +++
2 files changed, 14 insertions(+)
diff --git a/arch/riscv/i
g defaults.
Signed-off-by: Steven Price
---
include/asm-generic/pgtable.h | 19 +++
1 file changed, 19 insertions(+)
diff --git a/include/asm-generic/pgtable.h b/include/asm-generic/pgtable.h
index fa782fba51ee..9c5d0f73db67 100644
--- a/include/asm-generic/pgtable.h
+++ b/i
r.
Remove the requirement to have a vma except when trying to split huge
pages.
Signed-off-by: Steven Price
---
mm/pagewalk.c | 25 +
1 file changed, 17 insertions(+), 8 deletions(-)
diff --git a/mm/pagewalk.c b/mm/pagewalk.c
index 98373a9f88b8..dac0c848b458 10064
for all entries, not
just transparent huge pages.
Signed-off-by: Steven Price
---
include/linux/mm.h | 15 +--
mm/pagewalk.c | 27 ---
2 files changed, 25 insertions(+), 17 deletions(-)
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 76769749
It is useful to be able to skip parts of the page table tree even when
walking without VMAs. Add test_p?d callbacks similar to test_walk but
which are called just before a table at that level is walked. If the
callback returns non-zero then the entire table is skipped.
Signed-off-by: Steven Price
#x27;level' that the page table holes are at.
Signed-off-by: Steven Price
---
arch/x86/mm/dump_pagetables.c | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/arch/x86/mm/dump_pagetables.c b/arch/x86/mm/dump_pagetables.c
index ca270fb00805..e2b53db92c34 100644
--
Now walk_page_range() can walk kernel page tables, we can switch the
arm64 ptdump code over to using it, simplifying the code.
Signed-off-by: Steven Price
---
arch/arm64/mm/dump.c | 117 ++-
1 file changed, 59 insertions(+), 58 deletions(-)
diff --git a
: Steven Price
---
arch/x86/mm/dump_pagetables.c | 69 ++-
1 file changed, 35 insertions(+), 34 deletions(-)
diff --git a/arch/x86/mm/dump_pagetables.c b/arch/x86/mm/dump_pagetables.c
index e2b53db92c34..3d12ac031144 100644
--- a/arch/x86/mm/dump_pagetables.c
+++ b/arch
To enable x86 to use the generic walk_page_range() function, the
callers of ptdump_walk_pgd_level_debugfs() need to pass in the mm_struct.
This means that ptdump_walk_pgd_level_core() is now always passed a
valid pgd, so drop the support for pgd==NULL.
Signed-off-by: Steven Price
---
arch/x86
user page tables. This fake_mm structure is
initialised with the minimum necessary for the generic page walk code.
Signed-off-by: Steven Price
---
arch/x86/mm/dump_pagetables.c | 36 ---
1 file changed, 21 insertions(+), 15 deletions(-)
diff --git a/arch/x
callbacks
which can decide to skip an entire tree of entries
Signed-off-by: Steven Price
---
arch/x86/mm/dump_pagetables.c | 280 ++
1 file changed, 146 insertions(+), 134 deletions(-)
diff --git a/arch/x86/mm/dump_pagetables.c b/arch/x86/mm/dump_pagetables.c
index
ned-off-by: Steven Price
---
arch/x86/include/asm/pgtable.h | 2 +-
arch/x86/mm/dump_pagetables.c | 4 ++--
arch/x86/platform/efi/efi_32.c | 2 +-
arch/x86/platform/efi/efi_64.c | 4 ++--
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/i
.
Fixes: 23c7b54ca1cd ("PM / devfreq: Fix devfreq_add_device() when drivers are
built as modules.")
Signed-off-by: Steven Price
---
drivers/devfreq/devfreq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfr
Hi all,
Gentle ping: who can take this? Is there anything blocking this series?
Thanks,
Steve
On 03/04/2019 15:16, Steven Price wrote:
> Most architectures current have a debugfs file for dumping the kernel
> page tables. Currently each architecture has to implement custom
> func
pmd_large() is needed.
CC: Vineet Gupta
CC: linux-snps-...@lists.infradead.org
Signed-off-by: Steven Price
---
arch/arc/include/asm/pgtable.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arc/include/asm/pgtable.h b/arch/arc/include/asm/pgtable.h
index cf4be70d5892..0edd27bc7018 10
, so add a stub returning 0.
CC: Guo Ren
Signed-off-by: Steven Price
---
arch/csky/include/asm/pgtable.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/csky/include/asm/pgtable.h b/arch/csky/include/asm/pgtable.h
index edfcbb25fd9f..4ffdb6bfbede 100644
--- a/arch/csky/include/asm/pgtab
e() macros. Add a stub for PUD
as we don't have huge pages at that level.
CC: Russell King
Signed-off-by: Steven Price
---
arch/arm/include/asm/pgtable-2level.h | 1 +
arch/arm/include/asm/pgtable-3level.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/arch/arm/include/asm/pgtable-2
cros which we can reuse for
p?d_large().
CC: Catalin Marinas
CC: Will Deacon
Signed-off-by: Steven Price
---
arch/arm64/include/asm/pgtable.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/include/asm/pgtable.h b/arch/arm64/include/asm/pgtable.h
index de70c1eabf33..6eef345db
() function in
mm/pagewalk.c)
Steven Price (34):
alpha: mm: Add p?d_large() definitions
arc: mm: Add p?d_large() definitions
arm: mm: Add p?d_large() definitions
arm64: mm: Add p?d_large() definitions
c6x: mm: Add p?d_large() definitions
csky: mm: Add p?d_large() definitions
hexagon: mm
s, so add stubs returning 0.
CC: linux-al...@vger.kernel.org
CC: Richard Henderson
CC: Ivan Kokshaysky
CC: Matt Turner
Signed-off-by: Steven Price
---
arch/alpha/include/asm/pgtable.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/alpha/include/asm/pgtable.h b/arch/alpha/includ
level, so implement
stubs returning 0.
CC: Tony Luck
CC: Fenghua Yu
CC: linux-i...@vger.kernel.org
Signed-off-by: Steven Price
---
arch/ia64/include/asm/pgtable.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/ia64/include/asm/pgtable.h b/arch/ia64/include/asm/pgtable.h
index b1
, so add a stub returning 0.
CC: Richard Kuo
CC: linux-hexa...@vger.kernel.org
Signed-off-by: Steven Price
---
arch/hexagon/include/asm/pgtable.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/arch/hexagon/include/asm/pgtable.h
b/arch/hexagon/include/asm/pgtable.h
index 65125d0b02d
ver a large page, so just add stubs.
CC: Mark Salter
CC: Aurelien Jacquiot
CC: linux-c6x-...@linux-c6x.org
Signed-off-by: Steven Price
---
arch/c6x/include/asm/pgtable.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/c6x/include/asm/pgtable.h b/arch/c6x/include/asm/pgtable.
n 32 bit so add stubs returning 0.
For 64 bit look for _PAGE_HUGE flag being set. This means exposing the
flag when !CONFIG_MIPS_HUGE_TLB_SUPPORT.
CC: Ralf Baechle
CC: Paul Burton
CC: James Hogan
CC: linux-m...@vger.kernel.org
Signed-off-by: Steven Price
---
arch/mips/include/asm/pgta
s, so add stubs returning 0.
CC: Jeff Dike
CC: Richard Weinberger
CC: Anton Ivanov
CC: linux...@lists.infradead.org
Signed-off-by: Steven Price
---
arch/um/include/asm/pgtable-3level.h | 1 +
arch/um/include/asm/pgtable.h| 1 +
2 files changed, 2 insertions(+)
diff --git a/arch/um/incl
l Ellerman
CC: linuxppc-...@lists.ozlabs.org
CC: kvm-...@vger.kernel.org
Signed-off-by: Steven Price
---
arch/powerpc/include/asm/book3s/32/pgtable.h | 1 +
arch/powerpc/include/asm/book3s/64/pgtable.h | 27 ---
arch/powerpc/include/asm/nohash/32/pgtable.h | 1 +
.../include/asm
, write or execute bit
set on it.
CC: Palmer Dabbelt
CC: Albert Ou
CC: linux-ri...@lists.infradead.org
Signed-off-by: Steven Price
---
arch/riscv/include/asm/pgtable-64.h | 6 ++
arch/riscv/include/asm/pgtable.h| 6 ++
2 files changed, 12 insertions(+)
diff --git a/arch/riscv/i
s, so add stubs returning 0.
CC: Yoshinori Sato
CC: Rich Felker
CC: linux...@vger.kernel.org
Signed-off-by: Steven Price
---
arch/sh/include/asm/pgtable-3level.h | 1 +
arch/sh/include/asm/pgtable_32.h | 1 +
arch/sh/include/asm/pgtable_64.h | 1 +
3 files changed, 3 insertions(+)
diff
s, so add stubs returning 0
CC: Geert Uytterhoeven
CC: linux-m...@lists.linux-m68k.org
Signed-off-by: Steven Price
---
arch/m68k/include/asm/mcf_pgtable.h | 2 ++
arch/m68k/include/asm/motorola_pgtable.h | 2 ++
arch/m68k/include/asm/pgtable_no.h | 1 +
arch/m68k/include/asm/sun3_pgtable.
, so add a stub returning 0.
CC: Martin Schwidefsky
CC: Heiko Carstens
CC: linux-s...@vger.kernel.org
Signed-off-by: Steven Price
---
arch/s390/include/asm/pgtable.h | 10 ++
1 file changed, 10 insertions(+)
diff --git a/arch/s390/include/asm/pgtable.h b/arch/s390/include/asm/pgtable.h
ind
s, so add stubs returning 0.
CC: "David S. Miller"
CC: sparcli...@vger.kernel.org
Signed-off-by: Steven Price
---
arch/sparc/include/asm/pgtable_32.h | 10 ++
arch/sparc/include/asm/pgtable_64.h | 1 +
2 files changed, 11 insertions(+)
diff --git a/arch/sparc/include/asm/p
, so add a stub returning 0.
CC: Ley Foon Tan
CC: nios2-...@lists.rocketboards.org
Signed-off-by: Steven Price
---
arch/nios2/include/asm/pgtable.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/arch/nios2/include/asm/pgtable.h b/arch/nios2/include/asm/pgtable.h
index db4f7d179220..b6ee
, so add a stub returning 0.
CC: Jonas Bonn
CC: Stefan Kristiansson
CC: Stafford Horne
CC: openr...@lists.librecores.org
Signed-off-by: Steven Price
---
arch/openrisc/include/asm/pgtable.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/openrisc/include/asm/pgtable.h
b/arch/openr
s, so add stubs returning 0.
CC: Greentime Hu
CC: Vincent Chen
Signed-off-by: Steven Price
---
arch/nds32/include/asm/pgtable.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/nds32/include/asm/pgtable.h b/arch/nds32/include/asm/pgtable.h
index 9f52db930c00..202ac93c0a6b 100644
--- a/arc
pages, so add a stub returning 0.
CC: Guan Xuetao
Signed-off-by: Steven Price
---
arch/unicore32/include/asm/pgtable.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/unicore32/include/asm/pgtable.h
b/arch/unicore32/include/asm/pgtable.h
index a4f2bef37e70..b45429df8b99 100644
--- a
s, so add stubs returning 0.
CC: "James E.J. Bottomley"
CC: Helge Deller
CC: linux-par...@vger.kernel.org
Signed-off-by: Steven Price
---
arch/parisc/include/asm/pgtable.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/parisc/include/asm/pgtable.h
b/arch/parisc/in
e pages, so add stubs returning 0.
CC: Michal Simek
Signed-off-by: Steven Price
---
arch/microblaze/include/asm/pgtable.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/microblaze/include/asm/pgtable.h
b/arch/microblaze/include/asm/pgtable.h
index 142d3f004848..044ea7dbb4cc 100644
--- a/
It is useful to be able to skip parts of the page table tree even when
walking without VMAs. Add test_p?d callbacks similar to test_walk but
which are called just before a table at that level is walked. If the
callback returns non-zero then the entire table is skipped.
Signed-off-by: Steven Price
Now walk_page_range() can walk kernel page tables, we can switch the
arm64 ptdump code over to using it, simplifying the code.
Signed-off-by: Steven Price
---
arch/arm64/mm/dump.c | 108 +--
1 file changed, 53 insertions(+), 55 deletions(-)
diff --git a
ned-off-by: Steven Price
---
arch/x86/include/asm/pgtable.h | 2 +-
arch/x86/mm/dump_pagetables.c | 4 ++--
arch/x86/platform/efi/efi_32.c | 2 +-
arch/x86/platform/efi/efi_64.c | 4 ++--
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/i
, so add a stub returning 0.
CC: Chris Zankel
CC: Max Filippov
CC: linux-xte...@linux-xtensa.org
Signed-off-by: Steven Price
---
arch/xtensa/include/asm/pgtable.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/xtensa/include/asm/pgtable.h
b/arch/xtensa/include/asm/pgtable.h
ind
user page tables. This fake_mm structure is
initialised with the minimum necessary for the generic page walk code.
Signed-off-by: Steven Price
---
arch/x86/mm/dump_pagetables.c | 36 ---
1 file changed, 21 insertions(+), 15 deletions(-)
diff --git a/arch/x
for all entries, not
just transparent huge pages.
Signed-off-by: Steven Price
---
include/linux/mm.h | 9 ++---
mm/pagewalk.c | 27 ---
2 files changed, 22 insertions(+), 14 deletions(-)
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 80bb6408fe73..
large().
For x86 move the existing definitions of p?d_large() so that they are
only defined when the corresponding levels are not folded.
Signed-off-by: Steven Price
---
arch/x86/include/asm/pgtable.h | 21 -
include/asm-generic/4level-fixup.h | 1 +
includ
callbacks
which can decide to skip an entire tree of entries
Signed-off-by: Steven Price
---
arch/x86/mm/dump_pagetables.c | 279 ++
1 file changed, 146 insertions(+), 133 deletions(-)
diff --git a/arch/x86/mm/dump_pagetables.c b/arch/x86/mm/dump_pagetables.c
index
at is reported is the actual level where the entry is
missing (ignoring any folding that is in place), i.e. any levels where
PTRS_PER_P?D is set to 1 are ignored.
Note that depth starts at 0 for a PGD so that PUD/PMD/PTE retain their
natural numbers as levels 2/3/4.
Signed-off-by: Steven Price
--
To enable x86 to use the generic walk_page_range() function, the
callers of ptdump_walk_pgd_level_debugfs() need to pass in the mm_struct.
This means that ptdump_walk_pgd_level_core() is now always passed a
valid pgd, so drop the support for pgd==NULL.
Signed-off-by: Steven Price
---
arch/x86
: Steven Price
---
arch/x86/mm/dump_pagetables.c | 69 ++-
1 file changed, 35 insertions(+), 34 deletions(-)
diff --git a/arch/x86/mm/dump_pagetables.c b/arch/x86/mm/dump_pagetables.c
index e3cdc85ce5b6..ecbaf30a6a2f 100644
--- a/arch/x86/mm/dump_pagetables.c
+++ b/arch
r.
Remove the requirement to have a vma except when trying to split huge
pages.
Signed-off-by: Steven Price
---
mm/pagewalk.c | 25 +
1 file changed, 17 insertions(+), 8 deletions(-)
diff --git a/mm/pagewalk.c b/mm/pagewalk.c
index 98373a9f88b8..dac0c848b458 10064
On 11/02/2021 20:21, sonicadvan...@gmail.com wrote:
From: Ryan Houdek
Sorry about the noise. I obviously don't work in this ecosystem.
Didn't get any comments previously so I'm resending
We're just coming up to a merge window, so I expect people are fairly
busy at the moment. Also from a rev
On 08/02/2021 17:31, Peter Maydell wrote:
On Fri, 5 Feb 2021 at 13:58, Steven Price wrote:
The VMM may not wish to have it's own mapping of guest memory mapped
with PROT_MTE because this causes problems if the VMM has tag checking
enabled (the guest controls the tags in physical RAM and
1 - 100 of 604 matches
Mail list logo