]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5fa3f032654589114015df93f03b15ea577064a1
tree4ffa230638dd30ef0f82201b3c3a6945bc4f35fd
parent207d2df03d3572b7b23e5a2d07f0c42a9e69c5b4
KVM: s390/cmm: Fix prefix handling for diag 10 balloon

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>
arch/s390/kvm/diag.c