KVM: s390/cmm: Fix prefix handling for diag 10 balloon
authorChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 3 Sep 2014 19:23:13 +0000 (21:23 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 10 Sep 2014 10:19:42 +0000 (12:19 +0200)
The old handling of prefix pages was broken in the diag10 ballooner.
We now rely on gmap_discard to check for start > end and do a
slow path if the prefix swap pages are affected:
1. discard the pages from start to prefix
2. discard the absolute 0 pages
3. discard the pages after prefix swap to end

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Thomas Huth <thuth@linux.vnet.ibm.com>

No differences found