diff options
author | Claudio Imbrenda <imbrenda@linux.vnet.ibm.com> | 2018-04-30 18:33:24 +0200 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2018-07-13 09:48:57 +0200 |
commit | 03133347b4452ef9b1f1456b92f5fafa467c0655 (patch) | |
tree | a39285f6c8ffc10ed38505a3eafad7d394869d0b /virt/kvm | |
parent | KVM: s390: Replace clear_user with kvm_clear_guest (diff) | |
download | linux-03133347b4452ef9b1f1456b92f5fafa467c0655.tar.xz linux-03133347b4452ef9b1f1456b92f5fafa467c0655.zip |
KVM: s390: a utility function for migration
Introduce a utility function that will be used later on for storage
attributes migration, and use it in kvm_main.c to replace existing code
that does the same thing.
Signed-off-by: Claudio Imbrenda <imbrenda@linux.vnet.ibm.com>
Message-Id: <1525106005-13931-2-git-send-email-imbrenda@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'virt/kvm')
-rw-r--r-- | virt/kvm/kvm_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 8b47507faab5..f519eb8d06b1 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -1169,7 +1169,7 @@ int kvm_get_dirty_log_protect(struct kvm *kvm, n = kvm_dirty_bitmap_bytes(memslot); - dirty_bitmap_buffer = dirty_bitmap + n / sizeof(long); + dirty_bitmap_buffer = kvm_second_dirty_bitmap(memslot); memset(dirty_bitmap_buffer, 0, n); spin_lock(&kvm->mmu_lock); |