Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 914beb9f authored by David Vrabel's avatar David Vrabel
Browse files

x86/xen: add reschedule point when mapping foreign GFNs



Mapping a large range of foreign GFNs can take a long time, add a
reschedule point after each batch of 16 GFNs.

Signed-off-by: default avatarDavid Vrabel <david.vrabel@citrix.com>
Reviewed-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
parent cb9644bf
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2888,6 +2888,7 @@ static int do_remap_gfn(struct vm_area_struct *vma,
		addr += range;
		if (err_ptr)
			err_ptr += batch;
		cond_resched();
	}
out: