Commit 946fbfd
KVM: arm64: Make leaf->leaf PTE changes parallel-aware
Convert stage2_map_walker_try_leaf() to use the new break-before-make
helpers, thereby making the handler parallel-aware. As before, avoid the
break-before-make if recreating the existing mapping. Additionally,
retry execution if another vCPU thread is modifying the same PTE.
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Reviewed-by: Ben Gardon <bgardon@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221107215934.1895478-1-oliver.upton@linux.dev1 parent 0ab12f3 commit 946fbfd
1 file changed
Lines changed: 12 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
804 | 804 | | |
805 | 805 | | |
806 | 806 | | |
807 | | - | |
808 | | - | |
809 | | - | |
810 | | - | |
811 | | - | |
812 | | - | |
813 | | - | |
814 | | - | |
815 | | - | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
816 | 815 | | |
817 | | - | |
818 | | - | |
| 816 | + | |
| 817 | + | |
819 | 818 | | |
820 | 819 | | |
821 | 820 | | |
| |||
825 | 824 | | |
826 | 825 | | |
827 | 826 | | |
828 | | - | |
829 | | - | |
830 | | - | |
| 827 | + | |
| 828 | + | |
831 | 829 | | |
832 | 830 | | |
833 | 831 | | |
| |||
0 commit comments