diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2013-12-31 22:33:31 +0100 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2014-01-06 16:44:18 +0100 |
commit | 456847533b9ad18baa6685946a2f1e1fa9c05c34 (patch) | |
tree | 54801698862fcee9fa4706dad5e93c8db1a6c414 /arch/arm/xen/enlighten.c | |
parent | xen/grants: Remove gnttab_max_grant_frames dependency on gnttab_init. (diff) | |
download | linux-456847533b9ad18baa6685946a2f1e1fa9c05c34.tar.xz linux-456847533b9ad18baa6685946a2f1e1fa9c05c34.zip |
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>
Diffstat (limited to 'arch/arm/xen/enlighten.c')
0 files changed, 0 insertions, 0 deletions