aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2014-05-13 14:02:13 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2014-07-11 09:14:04 +0200
commit44583cba9188b29b20ceeefe8ae23ad19e26d9a4 (patch)
tree5c5566b5d4398cfccc3dc88194dcc6571ffbdebd /tools/perf/scripts/python/export-to-postgresql.py
parentKVM: x86: ensure emulator fetches do not span multiple pages (diff)
downloadlinux-dev-44583cba9188b29b20ceeefe8ae23ad19e26d9a4.tar.xz
linux-dev-44583cba9188b29b20ceeefe8ae23ad19e26d9a4.zip
KVM: x86: use kvm_read_guest_page for emulator accesses
Emulator accesses are always done a page at a time, either by the emulator itself (for fetches) or because we need to query the MMU for address translations. Speed up these accesses by using kvm_read_guest_page and, in the case of fetches, by inlining kvm_read_guest_virt_helper and dropping the loop around kvm_read_guest_page. This final tweak saves 30-100 more clock cycles (4-10%), bringing the count (as measured by kvm-unit-tests) down to 720-1100 clock cycles on a Sandy Bridge Xeon host, compared to 2300-3200 before the whole series and 925-1700 after the first two low-hanging fruit changes. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions