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>
This commit is contained in:
parent
adb759e599
commit
1625566ec8
@ -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,
|
static int hva_to_pfn_remapped(struct vm_area_struct *vma,
|
||||||
unsigned long addr, bool *async,
|
unsigned long addr, bool write_fault,
|
||||||
bool write_fault, bool *writable,
|
bool *writable, kvm_pfn_t *p_pfn)
|
||||||
kvm_pfn_t *p_pfn)
|
|
||||||
{
|
{
|
||||||
kvm_pfn_t pfn;
|
kvm_pfn_t pfn;
|
||||||
pte_t *ptep;
|
pte_t *ptep;
|
||||||
@ -2575,7 +2574,7 @@ kvm_pfn_t hva_to_pfn(unsigned long addr, bool atomic, bool *async,
|
|||||||
if (vma == NULL)
|
if (vma == NULL)
|
||||||
pfn = KVM_PFN_ERR_FAULT;
|
pfn = KVM_PFN_ERR_FAULT;
|
||||||
else if (vma->vm_flags & (VM_IO | VM_PFNMAP)) {
|
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)
|
if (r == -EAGAIN)
|
||||||
goto retry;
|
goto retry;
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user