Skip to content

Commit

Permalink
xen/grant-table: fix suspend for non-PV guests
Browse files Browse the repository at this point in the history
Commit aa8532c (xen: refactor suspend
pre/post hooks) broke resuming PVHVM (auto-translated physmap) guests.

The gnttab_suspend() would clear the mapping for the grant table
frames, but the ->unmap_frames() call is only applicable to PV guests.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reported-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tested-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
  • Loading branch information
David Vrabel committed Jun 18, 2014
1 parent ea9f927 commit 13cd36a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/xen/grant-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,8 @@ int gnttab_resume(void)

int gnttab_suspend(void)
{
gnttab_interface->unmap_frames();
if (!xen_feature(XENFEAT_auto_translated_physmap))
gnttab_interface->unmap_frames();
return 0;
}

Expand Down

0 comments on commit 13cd36a

Please sign in to comment.