Re: [PATCH v3 19/20] xen/privcmd: Add support for Linux 64KB page granularity

From: Julien Grall
Date: Tue Sep 01 2015 - 13:11:42 EST


Hi Stefano,

On 10/08/15 13:03, Stefano Stabellini wrote:
>> + xen_pfn = xen_page_to_pfn(page);
>> + }
>> + fn(pfn_to_gfn(xen_pfn++), data);
>
> What is the purpose of incrementing xen_pfn here?

Because the Linux page is split into multiple xen_pfn, so we want to get
the next xen_pfn for the next iteration.

Regards,

--
Julien Grall
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/