Commit 9c30fc6
KVM: arm64: Move setting the page as dirty out of the critical section
Move the unlock earlier in user_mem_abort() to shorten the
critical section. This also helps for future refactoring and
reuse of similar code.
This moves out marking the page as dirty outside of the critical
section. That code does not interact with the stage-2 page
tables, which the read lock in the critical section protects.
Signed-off-by: Fuad Tabba <tabba@google.com>
Acked-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20240423150538.2103045-16-tabba@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>1 parent cc81b6d commit 9c30fc6
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1522 | 1522 | | |
1523 | 1523 | | |
1524 | 1524 | | |
1525 | | - | |
| 1525 | + | |
| 1526 | + | |
1526 | 1527 | | |
| 1528 | + | |
1527 | 1529 | | |
1528 | 1530 | | |
1529 | 1531 | | |
| |||
1581 | 1583 | | |
1582 | 1584 | | |
1583 | 1585 | | |
| 1586 | + | |
| 1587 | + | |
1584 | 1588 | | |
1585 | 1589 | | |
1586 | 1590 | | |
1587 | 1591 | | |
1588 | 1592 | | |
1589 | 1593 | | |
1590 | 1594 | | |
1591 | | - | |
1592 | | - | |
1593 | 1595 | | |
1594 | 1596 | | |
1595 | 1597 | | |
| |||
0 commit comments