Skip to contentSkip to conversation

xen: do not unmap grant status on suspend when using v1 grant tables

PATCH New Ian Campbell 1 participant 1 message Nov 25, 2009 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen: do not unmap grant status on suspend when using v1 grant tables

grstatus is only used/initialised for v2 grant tables.

Cc Steven Smith <[email protected]>
Cc Jeremy Fitzhardinge <[email protected]>
---
 drivers/xen/grant-table.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/xen/grant-table.c +2 -1
index 2240adf..068cbd6 100644
@@ -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;
 }
 
Signature · 1 line
1.5.6.5