[RESEND][QEMU PATCH] accel/kvm: Don't use KVM maximum support number to alloc user memslots

2023-04-20 Thread Robert Hoo
Corrects QEMU to properly use what KVM_CAP_NR_MEMSLOTS means, i.e. the maximum user memslots KVM supports. 1. Rename KVMState::nr_slots --> max_slots. 2. Remember nr_slots in each KML. This also decouples each KML, e.g. x86's two KMLs don't need to have same size of slots[]. 3. Change back

[PATCH] accel/kvm: Don't use KVM maximum support number to alloc user memslots

2023-04-09 Thread Robert Hoo
This patch corrects QEMU to properly use what KVM_CAP_NR_MEMSLOTS means, i.e. the maximum user memslots KVM supports. 1. Rename KVMState::nr_slots --> max_slots. 2. Remember nr_slots in each KML. This also decouples each KML, e.g. x86's two KMLs don't need to have same size of slots[]. 3.