summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorXianting Tian <xianting.tian@linux.alibaba.com>2022-01-24 03:04:56 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2022-01-24 14:53:37 +0100
commit1625566ec8fd3a42e305c5118df81fb113eb60a7 (patch)
tree8c5fedce2b1ebfbb9cc2b1e61df508b3c7faeb25 /virt
parentx86,kvm/xen: Remove superfluous .fixup usage (diff)
downloadlinux-1625566ec8fd3a42e305c5118df81fb113eb60a7.tar.xz
linux-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)