Konrad Rzeszutek Wilk 456847533b 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 <konrad.wilk@oracle.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
2014-01-06 10:44:18 -05:00
..
2013-06-28 11:19:58 -04:00
2008-12-16 21:50:31 +01:00
2013-06-28 11:19:58 -04:00
2014-01-06 10:07:26 -05:00
2013-06-28 11:19:58 -04:00
2014-01-06 10:07:30 -05:00
2013-06-28 11:19:58 -04:00
2011-12-16 13:29:31 -05:00
2013-07-03 13:12:42 -07:00
2013-06-28 11:19:58 -04:00