From: Konrad Rzeszutek Wilk Date: Tue, 31 Dec 2013 21:33:31 +0000 (-0500) Subject: xen/grant-table: Refactor gnttab_init X-Git-Tag: v3.14-rc1~126^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=456847533b9ad18baa6685946a2f1e1fa9c05c34;p=pandora-kernel.git xen/grant-table: Refactor gnttab_init 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 Reviewed-by: David Vrabel Acked-by: Stefano Stabellini --- Reading git-diff-tree failed