diff options
author | Paolo Bonzini <[email protected]> | 2023-03-22 02:37:26 +0100 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2023-03-22 07:46:42 -0700 |
commit | 2fdcc1b324189b5fb20655baebd40cd82e2bdf0c (patch) | |
tree | eb33aa6d616d1ff75c66388fe410dd56cf3da08e /lib/mpi/mpi-mod.c | |
parent | f3d90f901d18749dca096719540a075f59240051 (diff) |
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 <[email protected]>
Signed-off-by: Mathias Krause <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions