Commit 7ee131e
KVM: x86/mmu: Clear only A-bit (if enabled) when aging TDP MMU SPTEs
Use tdp_mmu_clear_spte_bits() when clearing the Accessed bit in TDP MMU
SPTEs so as to use an atomic-AND instead of XCHG to clear the A-bit.
Similar to the D-bit story, this will allow KVM to bypass
__handle_changed_spte() by ensuring only the A-bit is modified.
Link: https://lore.kernel.org/all/Y9HcHRBShQgjxsQb@google.com
Signed-off-by: Vipin Sharma <vipinsh@google.com>
Reviewed-by: David Matlack <dmatlack@google.com>
[sean: massage changelog]
Link: https://lore.kernel.org/r/20230321220021.2119033-9-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent e730087 commit 7ee131e
1 file changed
Lines changed: 21 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
756 | 756 | | |
757 | 757 | | |
758 | 758 | | |
759 | | - | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | | - | |
764 | | - | |
765 | | - | |
766 | 759 | | |
767 | 760 | | |
768 | 761 | | |
| |||
1248 | 1241 | | |
1249 | 1242 | | |
1250 | 1243 | | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
1251 | 1248 | | |
1252 | 1249 | | |
1253 | 1250 | | |
1254 | 1251 | | |
1255 | | - | |
| 1252 | + | |
1256 | 1253 | | |
1257 | 1254 | | |
1258 | 1255 | | |
1259 | 1256 | | |
1260 | 1257 | | |
1261 | | - | |
1262 | | - | |
1263 | | - | |
1264 | | - | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
1265 | 1264 | | |
1266 | 1265 | | |
1267 | 1266 | | |
1268 | 1267 | | |
1269 | 1268 | | |
1270 | | - | |
1271 | | - | |
| 1269 | + | |
| 1270 | + | |
1272 | 1271 | | |
1273 | | - | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
1274 | 1276 | | |
1275 | 1277 | | |
1276 | | - | |
1277 | | - | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
1278 | 1282 | | |
1279 | 1283 | | |
1280 | 1284 | | |
| |||
0 commit comments