aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-mod.c
diff options
context:
space:
mode:
authorLai Jiangshan <[email protected]>2023-01-13 20:29:10 +0800
committerSean Christopherson <[email protected]>2023-03-16 19:07:37 -0700
commit141705b78381ab1dcb52c84ebb396e434e86b624 (patch)
tree14efa91e9e6e25bee23736dd22aaed8ad2b783da /lib/mpi/mpi-mod.c
parent19ace7d6ca15a4395dd294286fe253a233bbf20a (diff)
KVM: x86/mmu: Track tail count in pte_list_desc to optimize guest fork()
Rework "struct pte_list_desc" and pte_list_{add|remove} to track the tail count, i.e. number of PTEs in non-head descriptors, and to always keep all tail descriptors full so that adding a new entry and counting the number of entries is done in constant time instead of linear time. No visible performace is changed in tests. But pte_list_add() is no longer shown in the perf result for the COWed pages even the guest forks millions of tasks. Signed-off-by: Lai Jiangshan <[email protected]> Link: https://lore.kernel.org/r/[email protected] [sean: reword shortlog, tweak changelog, add lots of comments, add BUG_ON()] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions