Commit 2362506
KVM: arm64: Don't mark "struct page" accessed when making SPTE young
Don't mark pages/folios as accessed in the primary MMU when making a SPTE
young in KVM's secondary MMU, as doing so relies on
kvm_pfn_to_refcounted_page(), and generally speaking is unnecessary and
wasteful. KVM participates in page aging via mmu_notifiers, so there's no
need to push "accessed" updates to the primary MMU.
Dropping use of kvm_set_pfn_accessed() also paves the way for removing
kvm_pfn_to_refcounted_page() and all its users.
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Tested-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20241010182427.1434605-84-seanjc@google.com>1 parent 66bc627 commit 2362506
3 files changed
Lines changed: 4 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
674 | 674 | | |
675 | 675 | | |
676 | 676 | | |
677 | | - | |
678 | | - | |
679 | 677 | | |
680 | | - | |
| 678 | + | |
681 | 679 | | |
682 | 680 | | |
683 | 681 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1245 | 1245 | | |
1246 | 1246 | | |
1247 | 1247 | | |
1248 | | - | |
| 1248 | + | |
1249 | 1249 | | |
1250 | | - | |
1251 | 1250 | | |
1252 | 1251 | | |
1253 | 1252 | | |
1254 | | - | |
| 1253 | + | |
1255 | 1254 | | |
1256 | 1255 | | |
1257 | 1256 | | |
1258 | 1257 | | |
1259 | | - | |
1260 | | - | |
1261 | 1258 | | |
1262 | 1259 | | |
1263 | 1260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1707 | 1707 | | |
1708 | 1708 | | |
1709 | 1709 | | |
1710 | | - | |
1711 | 1710 | | |
1712 | 1711 | | |
1713 | 1712 | | |
1714 | 1713 | | |
1715 | 1714 | | |
1716 | 1715 | | |
1717 | | - | |
| 1716 | + | |
1718 | 1717 | | |
1719 | | - | |
1720 | | - | |
1721 | | - | |
1722 | 1718 | | |
1723 | 1719 | | |
1724 | 1720 | | |
| |||
0 commit comments