From: Paolo Bonzini <pbonzini@redhat.com>
To: Xianting Tian <xianting.tian@linux.alibaba.com>
Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] KVM: remove async parameter of hva_to_pfn_remapped()
Date: Mon, 24 Jan 2022 14:54:51 +0100 [thread overview]
Message-ID: <f23b9a9d-8d37-9863-50cc-0e0c4befafdb@redhat.com> (raw)
In-Reply-To: <20220124020456.156386-1-xianting.tian@linux.alibaba.com>
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@linux.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
prev parent reply other threads:[~2022-01-24 13:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-24 2:04 Xianting Tian
2022-01-24 13:54 ` Paolo Bonzini [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f23b9a9d-8d37-9863-50cc-0e0c4befafdb@redhat.com \
--to=pbonzini@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=xianting.tian@linux.alibaba.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®