|
@@ -928,6 +928,8 @@ static int kvm_s390_vm_start_migration(struct kvm *kvm)
|
|
|
/* mark all the pages in active slots as dirty */
|
|
/* mark all the pages in active slots as dirty */
|
|
|
for (slotnr = 0; slotnr < slots->used_slots; slotnr++) {
|
|
for (slotnr = 0; slotnr < slots->used_slots; slotnr++) {
|
|
|
ms = slots->memslots + slotnr;
|
|
ms = slots->memslots + slotnr;
|
|
|
|
|
+ if (!ms->dirty_bitmap)
|
|
|
|
|
+ return -EINVAL;
|
|
|
/*
|
|
/*
|
|
|
* The second half of the bitmap is only used on x86,
|
|
* The second half of the bitmap is only used on x86,
|
|
|
* and would be wasted otherwise, so we put it to good
|
|
* and would be wasted otherwise, so we put it to good
|