Use the mmu_notifier_range_blockable() helper function instead of directly dereferencing the range->blockable field. This is done to make it easier to change the mmu_notifier range field. This patch is the outcome of the following coccinelle patch: %<------------------------------------------------------------------- @@ identifier I1, FN; @@ FN(..., struct mmu_notifier_range *I1, ...) { <... -I1->blockable +mmu_notifier_range_blockable(I1) ...> } ------------------------------------------------------------------->% spatch --in-place --sp-file blockable.spatch --dir .
Showing the changes to virt (1 of 8 files). Show all
Unified · Split
| @@ -391,7 +391,8 @@ static int kvm_mmu_notifier_invalidate_range_start(struct mmu_notifier *mn, · 390 unmodified lines | |||
| 391 | spin_unlock(&kvm->mmu_lock); | 391 | spin_unlock(&kvm->mmu_lock); |
| 392 | 392 | ||
| 393 | ret = kvm_arch_mmu_notifier_invalidate_range(kvm, range->start, | 393 | ret = kvm_arch_mmu_notifier_invalidate_range(kvm, range->start, |
| 394 | range->end, range->blockable); | 394 | range->end, |
| 395 | mmu_notifier_range_blockable(range)); | ||
| 395 | 396 | ||
| 396 | srcu_read_unlock(&kvm->srcu, idx); | 397 | srcu_read_unlock(&kvm->srcu, idx); |
| 397 | 398 | ||