Re: [PATCH v12 13/18] xen/grant-table: Refactor gnttab_init

From: David Vrabel
Date: Thu Jan 02 2014 - 06:40:14 EST


On 01/01/14 04:35, Konrad Rzeszutek Wilk wrote:
> We have this odd scenario of where for PV paths we take a shortcut
> but for the HVM paths we first ioremap xen_hvm_resume_frames, then
> assign it to gnttab_shared.addr. This is needed because gnttab_map
> uses gnttab_shared.addr.
>
> Instead of having:
> if (pv)
> return gnttab_map
> if (hvm)
> ...
>
> gnttab_map
>
> Lets move the HVM part before the gnttab_map and remove the
> first call to gnttab_map.
>
> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>

Reviewed-by: David Vrabel <david.vrabel@xxxxxxxxxx>

Again, feel free to apply early.

David
--
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/