]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit05bc6f06583fe5c36b1a21e8f26cfe3e9c762eb8
tree16bea1eb47bf7e59fc917e03390fc3d263614ccc
parentdf11889c8bded4282d0f1cee77e5bc3e18a6c1ba
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