Page MenuHomeFreeBSD

arm64 pmap: Handle kernel mappings in pmap_remove_l2().
ClosedPublic

Authored by markj on Nov 13 2018, 7:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 17 2024, 5:05 AM
Unknown Object (File)
Feb 6 2024, 12:01 PM
Unknown Object (File)
Dec 20 2023, 1:00 AM
Unknown Object (File)
Dec 13 2023, 4:36 PM
Unknown Object (File)
Nov 23 2023, 8:03 PM
Unknown Object (File)
Nov 22 2023, 6:19 AM
Unknown Object (File)
Nov 20 2023, 9:13 PM
Unknown Object (File)
Nov 12 2023, 9:05 PM
Subscribers

Details

Test Plan

Only compile-tested so far.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

  • Ensure that the existing mapping was destroyed.
  • Fix KASSERT() format string.
markj added reviewers: andrew, alc, kib.
sys/arm64/arm64/pmap.c
2412 ↗(On Diff #50383)

This is the 'break before make', right ? Might be mention the term in the comment above ?

So what would happen with the parallel accesses to the l2 range meantime ?

2417 ↗(On Diff #50383)

... or kernel.

markj added inline comments.
sys/arm64/arm64/pmap.c
2412 ↗(On Diff #50383)

Right, the "break" happens in pmap_remove_l2(). I'll update the comment here.

I believe it will cause a data abort. As we discussed in email, I believe this can already happen with pmap_demote_l2(). My intent here is to fix the problem with superpages in exec_map, which is pageable.

markj marked an inline comment as done.
  • Address kib's feedback.
This revision is now accepted and ready to land.Nov 14 2018, 8:10 PM
sys/arm64/arm64/pmap.c
2401 ↗(On Diff #50419)

I think that this should just be

newl2 = ml3pa | L2_TABLE;

Aside from my one comment, this looks fine. Once that comment is addressed, consider this change "Accepted" by me.

andrew added inline comments.
sys/arm64/arm64/pmap.c
2401 ↗(On Diff #50419)

Yes. ATTR_DEFAULT and ATTR_IDX are only needed on last level entries. The bits they set are ignored on table entries.

  • Remove flags that don't make sense for a table descriptor.
This revision now requires review to proceed.Nov 15 2018, 5:24 PM
This revision is now accepted and ready to land.Nov 15 2018, 5:25 PM
This revision was automatically updated to reflect the committed changes.