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] [day] [month] [year] [list]
Message-ID: <f23b9a9d-8d37-9863-50cc-0e0c4befafdb@redhat.com>
Date:   Mon, 24 Jan 2022 14:54:51 +0100
From:   Paolo Bonzini <pbonzini@...hat.com>
To:     Xianting Tian <xianting.tian@...ux.alibaba.com>
Cc:     kvm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] KVM: remove async parameter of hva_to_pfn_remapped()

On 1/24/22 03:04, Xianting Tian wrote:
> The async parameter of hva_to_pfn_remapped() is not used, so remove it.
> 
> Signed-off-by: Xianting Tian <xianting.tian@...ux.alibaba.com>
> ---
>   virt/kvm/kvm_main.c | 7 +++----
>   1 file changed, 3 insertions(+), 4 deletions(-)
> 
> diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
> index 9a20f2299..876315093 100644
> --- a/virt/kvm/kvm_main.c
> +++ b/virt/kvm/kvm_main.c
> @@ -2463,9 +2463,8 @@ static int kvm_try_get_pfn(kvm_pfn_t pfn)
>   }
>   
>   static int hva_to_pfn_remapped(struct vm_area_struct *vma,
> -			       unsigned long addr, bool *async,
> -			       bool write_fault, bool *writable,
> -			       kvm_pfn_t *p_pfn)
> +			       unsigned long addr, bool write_fault,
> +			       bool *writable, kvm_pfn_t *p_pfn)
>   {
>   	kvm_pfn_t pfn;
>   	pte_t *ptep;
> @@ -2575,7 +2574,7 @@ kvm_pfn_t hva_to_pfn(unsigned long addr, bool atomic, bool *async,
>   	if (vma == NULL)
>   		pfn = KVM_PFN_ERR_FAULT;
>   	else if (vma->vm_flags & (VM_IO | VM_PFNMAP)) {
> -		r = hva_to_pfn_remapped(vma, addr, async, write_fault, writable, &pfn);
> +		r = hva_to_pfn_remapped(vma, addr, write_fault, writable, &pfn);
>   		if (r == -EAGAIN)
>   			goto retry;
>   		if (r < 0)

Queued, thanks.

Paolo

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ