Ian Campbell
2009-Nov-25 14:45 UTC
[Xen-devel] [PATCH] xen: do not unmap grant status on suspend when using v1 grant tables
grstatus is only used/initialised for v2 grant tables. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Cc: Steven Smith <steven.smith@citrix.com> Cc: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> --- drivers/xen/grant-table.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/xen/grant-table.c b/drivers/xen/grant-table.c index 2240adf..068cbd6 100644 --- a/drivers/xen/grant-table.c +++ b/drivers/xen/grant-table.c @@ -898,7 +898,8 @@ int gnttab_resume(void) int gnttab_suspend(void) { arch_gnttab_unmap(shared.raw, nr_grant_frames); - arch_gnttab_unmap(grstatus, nr_status_frames(nr_grant_frames)); + if (grant_table_version > 1) + arch_gnttab_unmap(grstatus, nr_status_frames(nr_grant_frames)); return 0; } -- 1.5.6.5 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel