diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2023-03-22 04:37:26 +0300 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2023-03-22 17:46:42 +0300 |
commit | 2fdcc1b324189b5fb20655baebd40cd82e2bdf0c (patch) | |
tree | eb33aa6d616d1ff75c66388fe410dd56cf3da08e /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | f3d90f901d18749dca096719540a075f59240051 (diff) | |
download | linux-2fdcc1b324189b5fb20655baebd40cd82e2bdf0c.tar.xz |
KVM: x86/mmu: Avoid indirect call for get_cr3
Most of the time, calls to get_guest_pgd result in calling
kvm_read_cr3 (the exception is only nested TDP). Hardcode
the default instead of using the get_cr3 function, avoiding
a retpoline if they are enabled.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Mathias Krause <minipli@grsecurity.net>
Link: https://lore.kernel.org/r/20230322013731.102955-2-minipli@grsecurity.net
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions