https://bugs.kde.org/show_bug.cgi?id=470978

Mark Wielaard <m...@klomp.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REPORTED                    |CONFIRMED
                 CC|                            |m...@klomp.org
     Ever confirmed|0                           |1

--- Comment #2 from Mark Wielaard <m...@klomp.org> ---
(In reply to Tom Hughes from comment #1)
> Does the kernel provide an API to allow user space to activate this?

The only APIs are running with systctl vm.allocate_psgte=1 systemwide, so all
processes run with 4K page tables,
or adding the (empty) PT_S390_PGSTE phdr segment to the process.

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=23fefe119ceb5fb0c7d3321010620010a4eddb18

> If it doesn't then there isn't much valgrind can do, other than provide an
> option to add that ELF section to the valgrind binary, which would then mean
> all valgrind use would have it activated.

Yeah. Although slightly wasteful just adding PT_S390_PGSTE to valgrind seems
the simplest workaround (it just means there are 4K page tables are always
used).

This is the configure check that qemu used to add it:
https://lists.gnu.org/archive/html/qemu-devel/2017-08/msg04363.html

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to