KVM: Rename KVMState->nr_slots to nr_slots_max

This value used to reflect the maximum supported memslots from KVM kernel.
Rename it to be clearer.

Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Link: https://lore.kernel.org/r/20240917163835.194664-5-peterx@redhat.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Peter Xu 2024-09-17 12:38:35 -04:00 committed by Paolo Bonzini
parent dbdc00ba5b
commit 943c742868
2 changed files with 8 additions and 8 deletions

View file

@ -103,8 +103,8 @@ struct KVMDirtyRingReaper {
struct KVMState
{
AccelState parent_obj;
int nr_slots;
/* Max number of KVM slots supported */
int nr_slots_max;
int fd;
int vmfd;
int coalesced_mmio;