KVM: Define KVM_MEMSLOTS_NUM_MAX_DEFAULT
authorPeter Xu <peterx@redhat.com>
Tue, 17 Sep 2024 16:38:33 +0000 (12:38 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Oct 2024 17:41:30 +0000 (19:41 +0200)
commitb34a908c8f24eedb0a8e5ff486b059b58fd793f4
treecce57451b123d054268c05ff29ebfa54a47a56d5
parent5504a8126115d173687b37e657312a8ffe29fc0c
KVM: Define KVM_MEMSLOTS_NUM_MAX_DEFAULT

Make the default max nr_slots a macro, it's only used when KVM reports
nothing.

Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Link: https://lore.kernel.org/r/20240917163835.194664-3-peterx@redhat.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
accel/kvm/kvm-all.c