Re: [PATCH v2 06/15] KVM: x86/mmu: Support GFN direct mask
From: Paolo Bonzini
Date: Fri Jun 07 2024 - 04:00:45 EST
On Thu, May 30, 2024 at 11:07 PM Rick Edgecombe
<rick.p.edgecombe@xxxxxxxxx> wrote:
> - u64 nr_pages)
> -{
> - if (!kvm_x86_ops.flush_remote_tlbs_range)
> - return -EOPNOTSUPP;
> -
> - return static_call(kvm_x86_flush_remote_tlbs_range)(kvm, gfn, nr_pages);
> -}
> +int kvm_arch_flush_remote_tlbs_range(struct kvm *kvm, gfn_t gfn, u64 nr_pages);
> #endif /* CONFIG_HYPERV */
Ah, since you are at it please move the prototype out of the #ifdef
CONFIG_HYPERV.
Paolo