KVM: introduce a table to map slot id to index in memslots array