The commit
84f29a9 "xen/arm: Add relinquish_p2m_mapping to remove reference on
every mapped page" doesn't save correctly the next gfn when the hypercall
is preempted.
Instead of storing the next gfn, it store the next mfn. Fix it by using
'addr' instead of 'maddr'.
Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
{
if ( hypercall_preempt_check() )
{
- p2m->next_gfn_to_relinquish = maddr >> PAGE_SHIFT;
+ p2m->next_gfn_to_relinquish = addr >> PAGE_SHIFT;
rc = -EAGAIN;
goto out;
}