Commit 5b1fb11
committed
KVM: x86/mmu: Plumb a @can_yield parameter into __walk_slot_rmaps()
Add a @can_yield param to __walk_slot_rmaps() to control whether or not
dropping mmu_lock and conditionally rescheduling is allowed. This will
allow using __walk_slot_rmaps() and thus cond_resched() to handle
mmu_notifier invalidations, which usually allow blocking/yielding, but not
when invoked by the OOM killer.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>1 parent 0a37fff commit 5b1fb11
1 file changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1526 | 1526 | | |
1527 | 1527 | | |
1528 | 1528 | | |
1529 | | - | |
| 1529 | + | |
| 1530 | + | |
1530 | 1531 | | |
1531 | 1532 | | |
1532 | 1533 | | |
| |||
1537 | 1538 | | |
1538 | 1539 | | |
1539 | 1540 | | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
1540 | 1544 | | |
1541 | 1545 | | |
1542 | 1546 | | |
| |||
1558 | 1562 | | |
1559 | 1563 | | |
1560 | 1564 | | |
1561 | | - | |
| 1565 | + | |
1562 | 1566 | | |
1563 | 1567 | | |
1564 | 1568 | | |
| |||
6600 | 6604 | | |
6601 | 6605 | | |
6602 | 6606 | | |
6603 | | - | |
| 6607 | + | |
6604 | 6608 | | |
6605 | 6609 | | |
6606 | 6610 | | |
| |||
6888 | 6892 | | |
6889 | 6893 | | |
6890 | 6894 | | |
6891 | | - | |
| 6895 | + | |
6892 | 6896 | | |
6893 | 6897 | | |
6894 | 6898 | | |
| |||
0 commit comments