[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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@xxxxxxxxxx>
Cc: Steven Smith <steven.smith@xxxxxxxxxx>
Cc: Jeremy Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.