kvm: warn on more invariant breakage
authorPaolo Bonzini <pbonzini@redhat.com>
Sat, 27 Dec 2014 20:08:16 +0000 (21:08 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 28 Dec 2014 09:01:25 +0000 (10:01 +0100)
commitdbaff30940d6ef9bfa5f1f0c819cf3344ed3129f
tree16bea1eb47bf7e59fc917e03390fc3d263614ccc
parentefbeec7098eee2b3d2359d0cc24bbba0436e7f21
kvm: warn on more invariant breakage

Modifying a non-existent slot is not allowed.  Also check that the
first loop doesn't move a deleted slot beyond the used part of
the mslots array.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c