Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3337492pxb; Mon, 24 Jan 2022 07:33:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJyvrpNYUAgqTtFfwjJTHJsodx/sXVm4RgKYN8U/vtBQWyiibebzz6OVN+UpCohUpMpx7QcA X-Received: by 2002:a17:902:c702:b0:14a:f1af:15d0 with SMTP id p2-20020a170902c70200b0014af1af15d0mr14531511plp.142.1643038433320; Mon, 24 Jan 2022 07:33:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643038433; cv=none; d=google.com; s=arc-20160816; b=Oce0Tb9ft2+Ne9YaZcjwG5T/inwnQy2GrWlyQOXq+ta/vHJulUEtZzS75P9FwVA/+w lQ9bSZ7khKzHIWIpQvxBvh81hVQPfYtHPeEFXmPkoIfAvcy+VTf/M7WFi60BwE9G8syd Oy6OI7Ult7JuuQ62rByyeH2S1jvgXIlps2yE35wZBN5NL9pW4/oJ/w0Xb7iXqHsk4B5s 34Pqd7qrzlkMCsu1tWeQs56trCQJlLxht0OCo2GTOKXXsOKv4w6G1Kk1BQllpV9cLHCP qWVCEf4pvLrWYShoGeGVASzT+M71ruM3DhUmXuwspEp+H1iJbuLWZd5mKfBiq1S2vQ4P oEuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=f/0XgQE7OKf49mMegAM5KCpbKwdw2IruCp9iSx9Pq3M=; b=dS+eif0QdgaCio9odUfJTU8hWlDg7B/Da0I7GDDPcZdLWWmjk76FgV7oDvJWFQDvSt X2K04RFnQJSoa2bYzk+xAwnRbA5N6obmFfvYydckJRzX2edWozP72Hu0ypnG2TY4WWmq sX73vQlWYLjhxGmEPcBLt4GeCLkpS9NkSo4x9eqddU/OxM3EOfyQzighlh4FskVCDKLc 3r9YG2cRrUXol5skszGiOoPaUtK8FugEmbb4Y3aNyzE4Wlu2JNZm+WbuNbPH1oHcLBw2 ANQlpp+S+YP88NOlFxNVbyTK9q3oE0sKBd8P8a8awSDcq1hHbtXJH9cx5cSlbJt56lWL 3j+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z1si13758281pgi.267.2022.01.24.07.33.40; Mon, 24 Jan 2022 07:33:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235745AbiAXCFD (ORCPT + 99 others); Sun, 23 Jan 2022 21:05:03 -0500 Received: from out30-45.freemail.mail.aliyun.com ([115.124.30.45]:45646 "EHLO out30-45.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232200AbiAXCFC (ORCPT ); Sun, 23 Jan 2022 21:05:02 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04395;MF=xianting.tian@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0V2cEg0T_1642989898; Received: from localhost(mailfrom:xianting.tian@linux.alibaba.com fp:SMTPD_---0V2cEg0T_1642989898) by smtp.aliyun-inc.com(127.0.0.1); Mon, 24 Jan 2022 10:04:58 +0800 From: Xianting Tian To: pbonzini@redhat.com Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Xianting Tian Subject: [PATCH] KVM: remove async parameter of hva_to_pfn_remapped() Date: Mon, 24 Jan 2022 10:04:56 +0800 Message-Id: <20220124020456.156386-1-xianting.tian@linux.alibaba.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The async parameter of hva_to_pfn_remapped() is not used, so remove it. Signed-off-by: Xianting Tian --- 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) -- 2.17.1