Commit 1f99734
KVM: x86/mmu: Remove handle_changed_spte_dirty_log()
Remove handle_changed_spte_dirty_log() as there is no code flow which
sets 4KiB SPTE writable and hit this path. This function marks the page
dirty in a memslot only if new SPTE is 4KiB in size and writable.
Current users of handle_changed_spte_dirty_log() are:
1. set_spte_gfn() - Create only non writable SPTEs.
2. write_protect_gfn() - Change an SPTE to non writable.
3. zap leaf and roots APIs - Everything is 0.
4. handle_removed_pt() - Sets SPTEs to REMOVED_SPTE
5. tdp_mmu_link_sp() - Makes non leaf SPTEs.
There is also no path which creates a writable 4KiB without going
through make_spte() and this functions takes care of marking SPTE dirty
in the memslot if it is PT_WRITABLE.
Signed-off-by: Vipin Sharma <vipinsh@google.com>
Reviewed-by: David Matlack <dmatlack@google.com>
[sean: add blurb to __handle_changed_spte()'s comment]
Link: https://lore.kernel.org/r/20230321220021.2119033-13-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent 0b7cc25 commit 1f99734
1 file changed
Lines changed: 3 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | 348 | | |
367 | 349 | | |
368 | 350 | | |
| |||
516 | 498 | | |
517 | 499 | | |
518 | 500 | | |
519 | | - | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
520 | 504 | | |
521 | 505 | | |
522 | 506 | | |
| |||
613 | 597 | | |
614 | 598 | | |
615 | 599 | | |
616 | | - | |
617 | | - | |
618 | 600 | | |
619 | 601 | | |
620 | 602 | | |
| |||
725 | 707 | | |
726 | 708 | | |
727 | 709 | | |
728 | | - | |
729 | | - | |
730 | 710 | | |
731 | 711 | | |
732 | 712 | | |
| |||
0 commit comments