Commit 997308f
committed
mmu_notifier: remove the .change_pte() callback
The scope of set_pte_at_notify() has reduced more and more through the
years. Initially, it was meant for when the change to the PTE was
not bracketed by mmu_notifier_invalidate_range_{start,end}(). However,
that has not been so for over ten years. During all this period
the only implementation of .change_pte() was KVM and it
had no actual functionality, because it was called after
mmu_notifier_invalidate_range_start() zapped the secondary PTE.
Now that this (nonfunctional) user of the .change_pte() callback is
gone, the whole callback can be removed. For now, leave in place
set_pte_at_notify() even though it is just a synonym for set_pte_at().
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-ID: <20240405115815.3226315-4-pbonzini@redhat.com>
Acked-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>1 parent 5257de9 commit 997308f
2 files changed
Lines changed: 2 additions & 61 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | 125 | | |
135 | 126 | | |
136 | 127 | | |
| |||
392 | 383 | | |
393 | 384 | | |
394 | 385 | | |
395 | | - | |
396 | | - | |
397 | 386 | | |
398 | 387 | | |
399 | 388 | | |
| |||
439 | 428 | | |
440 | 429 | | |
441 | 430 | | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | 431 | | |
450 | 432 | | |
451 | 433 | | |
| |||
581 | 563 | | |
582 | 564 | | |
583 | 565 | | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | 566 | | |
605 | 567 | | |
606 | 568 | | |
| |||
650 | 612 | | |
651 | 613 | | |
652 | 614 | | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | 615 | | |
659 | 616 | | |
660 | 617 | | |
| |||
693 | 650 | | |
694 | 651 | | |
695 | 652 | | |
696 | | - | |
697 | 653 | | |
698 | 654 | | |
699 | 655 | | |
700 | 656 | | |
701 | 657 | | |
702 | 658 | | |
703 | 659 | | |
| 660 | + | |
| 661 | + | |
704 | 662 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | 427 | | |
445 | 428 | | |
446 | 429 | | |
| |||
0 commit comments