summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorXianting Tian <xianting.tian@linux.alibaba.com>2022-01-24 10:04:56 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2022-01-24 08:53:37 -0500
commit1625566ec8fd3a42e305c5118df81fb113eb60a7 (patch)
tree8c5fedce2b1ebfbb9cc2b1e61df508b3c7faeb25 /virt
parentadb759e599990416e42e659c024a654b76c84617 (diff)
downloadlinux-stable-1625566ec8fd3a42e305c5118df81fb113eb60a7.tar.gz
linux-stable-1625566ec8fd3a42e305c5118df81fb113eb60a7.tar.bz2
linux-stable-1625566ec8fd3a42e305c5118df81fb113eb60a7.zip
KVM: remove async parameter of hva_to_pfn_remapped()
The async parameter of hva_to_pfn_remapped() is not used, so remove it. Signed-off-by: Xianting Tian <xianting.tian@linux.alibaba.com> Message-Id: <20220124020456.156386-1-xianting.tian@linux.alibaba.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt')
-rw-r--r--virt/kvm/kvm_main.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 5a1164483e6c..0bbb3cbf6014 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 @@ retry:
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)