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

Re: [Xen-devel] [PATCH v2 2/3] xen/arm: Add p2m_pfn_bits



Hi Edgar,

On 30/04/2015 07:06, Edgar E. Iglesias wrote:
      val |= VTCR_T0SZ(0x18); /* 40 bit IPA */
      val |= VTCR_SL0(0x1); /* P2M starts at first level */
  #else /* CONFIG_ARM_64 */
@@ -1557,6 +1561,7 @@ void __init setup_virt_paging(void)

      p2m_root_order = pa_range_info[pa_range].root_order;
      p2m_root_level = 2 - pa_range_info[pa_range].sl0;
+    p2m_pfn_bits = 64 - pa_range_info[pa_range].t0sz;

You are mixing IPA (Intermediate Physical Address) and PFN (Page Frame Number) which have to 2 distinct meaning.

In this case, we are dealing with IPA. Please rename the variable to p2m_ipa_bits and replace PFN by IPA in all the patch.

Regards,

--
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®.