lkml.org 
[lkml]   [2021]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 1/2] KVM: x86/mmu: Make HVA handler retpoline-friendly
From
Date
On 01/02/21 09:13, Maciej S. Szmigiero wrote:
> static int kvm_handle_hva_range(struct kvm *kvm,
> unsigned long start,
> unsigned long end,
> @@ -1495,8 +1534,9 @@ static int kvm_handle_hva_range(struct kvm *kvm,


> -static int kvm_tdp_mmu_handle_hva_range(struct kvm *kvm, unsigned long start,
> - unsigned long end, unsigned long data,
> - int (*handler)(struct kvm *kvm, struct kvm_memory_slot *slot,
> - struct kvm_mmu_page *root, gfn_t start,
> - gfn_t end, unsigned long data))
> -{

Can you look into just marking these functions __always_inline? This
should help the compiler change (*handler)(...) into a regular function
call.

Paolo

\
 
 \ /
  Last update: 2021-02-01 09:23    [W:0.095 / U:1.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site