lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c3f775de-9cb5-5f30-3fbc-a5e80c1654de@redhat.com>
Date:   Mon, 1 Feb 2021 09:21:06 +0100
From:   Paolo Bonzini <pbonzini@...hat.com>
To:     "Maciej S. Szmigiero" <mail@...iej.szmigiero.name>,
        Vitaly Kuznetsov <vkuznets@...hat.com>
Cc:     Sean Christopherson <seanjc@...gle.com>,
        Wanpeng Li <wanpengli@...cent.com>,
        Jim Mattson <jmattson@...gle.com>,
        Igor Mammedov <imammedo@...hat.com>,
        Marc Zyngier <maz@...nel.org>,
        James Morse <james.morse@....com>,
        Julien Thierry <julien.thierry.kdev@...il.com>,
        Suzuki K Poulose <suzuki.poulose@....com>,
        Huacai Chen <chenhuacai@...nel.org>,
        Aleksandar Markovic <aleksandar.qemu.devel@...il.com>,
        Paul Mackerras <paulus@...abs.org>,
        Christian Borntraeger <borntraeger@...ibm.com>,
        Janosch Frank <frankja@...ux.ibm.com>,
        David Hildenbrand <david@...hat.com>,
        Cornelia Huck <cohuck@...hat.com>,
        Claudio Imbrenda <imbrenda@...ux.ibm.com>,
        Joerg Roedel <joro@...tes.org>, kvm@...r.kernel.org,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] KVM: x86/mmu: Make HVA handler retpoline-friendly

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ