[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v6 08/10] xen/arm: Add relinquish_p2m_mapping to remove reference on every mapped page



On 12/17/2013 04:27 PM, Julien Grall wrote:
> @@ -343,12 +353,35 @@ static int create_p2m_entries(struct domain *d,
>  
>                      memset(&pte, 0x00, sizeof(pte));
>                      write_pte(&third[third_table_offset(addr)], pte);
> +                    count++;
>                  }
>                  break;
>          }
>  
>          if ( flush )
>              flush_tlb_all_local();
> +
> +        /* Preempt every 2MiB (mapped) or 32 MiB (unmapped) - arbitrary */
> +        if ( op == RELINQUISH && count >= 0x2000 )
> +        {
> +            if ( hypercall_preempt_check() )
> +            {
> +                p2m->next_gfn_to_relinquish = maddr >> PAGE_SHIFT;

Oops, I made a mistake in this patch.

It should be addr instead of maddr.

As it's already in staging, I will send a fix right now.

-- 
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.