Commit 697c89b
KVM: x86/mmu: Consolidate Dirty vs. Writable clearing logic in TDP MMU
Deduplicate the guts of the TDP MMU's clearing of dirty status by
snapshotting whether to check+clear the Dirty bit vs. the Writable bit,
which is the only difference between the two flavors of dirty tracking.
Note, kvm_ad_enabled() is just a wrapper for shadow_accessed_mask, i.e.
is constant after kvm-{intel,amd}.ko is loaded.
Link: https://lore.kernel.org/all/Yz4Qi7cn7TWTWQjj@google.com
Signed-off-by: Vipin Sharma <vipinsh@google.com>
[sean: split to separate patch, apply to dirty log, write changelog]
Link: https://lore.kernel.org/r/20230321220021.2119033-4-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent 5982a53 commit 697c89b
1 file changed
Lines changed: 9 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1607 | 1607 | | |
1608 | 1608 | | |
1609 | 1609 | | |
| 1610 | + | |
1610 | 1611 | | |
1611 | | - | |
1612 | 1612 | | |
1613 | 1613 | | |
1614 | 1614 | | |
| |||
1624 | 1624 | | |
1625 | 1625 | | |
1626 | 1626 | | |
1627 | | - | |
1628 | | - | |
1629 | | - | |
1630 | | - | |
1631 | | - | |
1632 | | - | |
1633 | | - | |
1634 | | - | |
1635 | | - | |
1636 | | - | |
1637 | | - | |
| 1627 | + | |
| 1628 | + | |
1638 | 1629 | | |
1639 | | - | |
| 1630 | + | |
1640 | 1631 | | |
1641 | 1632 | | |
1642 | 1633 | | |
| |||
1678 | 1669 | | |
1679 | 1670 | | |
1680 | 1671 | | |
| 1672 | + | |
| 1673 | + | |
1681 | 1674 | | |
1682 | | - | |
1683 | 1675 | | |
1684 | 1676 | | |
1685 | 1677 | | |
| |||
1697 | 1689 | | |
1698 | 1690 | | |
1699 | 1691 | | |
1700 | | - | |
1701 | | - | |
1702 | | - | |
1703 | | - | |
1704 | | - | |
1705 | | - | |
1706 | | - | |
1707 | | - | |
1708 | | - | |
1709 | | - | |
1710 | | - | |
| 1692 | + | |
| 1693 | + | |
1711 | 1694 | | |
1712 | | - | |
| 1695 | + | |
1713 | 1696 | | |
1714 | 1697 | | |
1715 | 1698 | | |
| |||
0 commit comments