[qemu-xen master] s390x: fix storage attributes migration for non-small guests
Author: Claudio Imbrenda <[hidden email]>
AuthorDate: Thu Jan 18 18:51:44 2018 +0100
Commit: Michael Roth <[hidden email]>
CommitDate: Mon Jan 29 08:28:08 2018 -0600
s390x: fix storage attributes migration for non-small guests
Fix storage attribute migration so that it does not fail for guests
with more than a few GB of RAM.
With such guests, the index in the buffer would go out of bounds,
usually by large amounts, thus receiving -EFAULT from the kernel.
Migration itself would be successful, but storage attributes would then
not be migrated completely.
This patch fixes the out of bounds access, and thus migration of all
storage attributes when the guest have large amounts of memory.