diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2012-11-29 21:07:59 (GMT) |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2012-11-30 01:30:32 (GMT) |
commit | 5419369ed6bd4cf711fdda5e52a5999b940413f5 (patch) | |
tree | 723920e638aa5adadf5252121b7126e1ad125a44 /REPORTING-BUGS | |
parent | 5a560f8b5ed361c7be783d5a671ea26ca4d6fa01 (diff) | |
download | linux-fsl-qoriq-5419369ed6bd4cf711fdda5e52a5999b940413f5.tar.xz |
KVM: Fix user memslot overlap check
Prior to memory slot sorting this loop compared all of the user memory
slots for overlap with new entries. With memory slot sorting, we're
just checking some number of entries in the array that may or may not
be user slots. Instead, walk all the slots with kvm_for_each_memslot,
which has the added benefit of terminating early when we hit the first
empty slot, and skip comparison to private slots.
Cc: stable@vger.kernel.org
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'REPORTING-BUGS')
0 files changed, 0 insertions, 0 deletions