diff options
author | Heiko Carstens <[email protected]> | 2023-10-24 10:15:19 +0200 |
---|---|---|
committer | Vasily Gorbik <[email protected]> | 2023-10-25 15:08:29 +0200 |
commit | 44d93045247661acbd50b1629e62f415f2747577 (patch) | |
tree | 834dccf7549d4ad42e22b4a512b902e4f4ee5243 /drivers/mtd/lpddr/lpddr_cmds.c | |
parent | e3f4170ccf20ebe2985b8e166184dd2d54220b60 (diff) |
s390/cmma: fix detection of DAT pages
If the cmma no-dat feature is available the kernel page tables are walked
to identify and mark all pages which are used for address translation (all
region, segment, and page tables). In a subsequent loop all other pages are
marked as "no-dat" pages with the ESSA instruction.
This information is visible to the hypervisor, so that the hypervisor can
optimize purging of guest TLB entries. The initial loop however is
incorrect: only the first three of the four pages which belong to segment
and region tables will be marked as being used for DAT. The last page is
incorrectly marked as no-dat.
This can result in incorrect guest TLB flushes.
Fix this by simply marking all four pages.
Cc: <[email protected]>
Reviewed-by: Claudio Imbrenda <[email protected]>
Signed-off-by: Heiko Carstens <[email protected]>
Signed-off-by: Vasily Gorbik <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions