OSDN Git Service

KVM: s390: Fix storage attributes migration with memory slots
authorClaudio Imbrenda <imbrenda@linux.vnet.ibm.com>
Mon, 30 Apr 2018 16:33:25 +0000 (18:33 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 13 Jul 2018 07:48:57 +0000 (09:48 +0200)
commitafdad61615cc37fef91bc70af7ee5b293785fbd6
tree7ff6e123b9b925f7d7a53b66d201dcd5a383e58c
parent03133347b4452ef9b1f1456b92f5fafa467c0655
KVM: s390: Fix storage attributes migration with memory slots

This is a fix for several issues that were found in the original code
for storage attributes migration.

Now no bitmap is allocated to keep track of dirty storage attributes;
the extra bits of the per-memslot bitmap that are always present anyway
are now used for this purpose.

The code has also been refactored a little to improve readability.

Fixes: 190df4a212a ("KVM: s390: CMMA tracking, ESSA emulation, migration mode")
Fixes: 4036e3874a1 ("KVM: s390: ioctls to get and set guest storage attributes")
Acked-by: Janosch Frank <frankja@linux.vnet.ibm.com>
Signed-off-by: Claudio Imbrenda <imbrenda@linux.vnet.ibm.com>
Message-Id: <1525106005-13931-3-git-send-email-imbrenda@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/include/asm/kvm_host.h
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/priv.c