v2: https://lists.gnu.org/archive/html/qemu-devel/2018-10/msg00617.html
Changes since v2:
- Add R-b's
- Include "qemu/thread.h" from cpu-defs.h to fix the build error
reported by Alex.
- Eliminate (on average) the performance slowdown. This is achieved by:
+ Switching from a mutex to a spinlock
+ Acquiring the lock only once in tlb_set_page_with_attrs,
instead of acquiring/releasing it several times.
This function is called often enough for memory-hungry
workloads that amortizing the lock acquisition cost
makes sense. I've added a comment about this.
- Add SPEC06int perf numbers to patch 4's commit log.
The series is checkpatch-clean. You can fetch the code from:
https://github.com/cota/qemu/tree/tlb-lock-v3
Thanks,
Emilio