OSDN Git Service

kvm: Add stub for kvm_get_max_memslots()
authorDavid Hildenbrand <david@redhat.com>
Tue, 26 Sep 2023 18:57:30 +0000 (20:57 +0200)
committerDavid Hildenbrand <david@redhat.com>
Thu, 12 Oct 2023 12:15:22 +0000 (14:15 +0200)
commit16ab2eda57233787c2145bc5eaeabcc2852bc4c3
tree8d284303697af277be736fd0171191b94bba29ec
parent766aa0a654d887ad8fed2f116c84a89e20102c14
kvm: Add stub for kvm_get_max_memslots()

We'll need the stub soon from memory device context.

While at it, use "unsigned int" as return value and place the
declaration next to kvm_get_free_memslots().

Message-ID: <20230926185738.277351-11-david@redhat.com>
Reviewed-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
accel/kvm/kvm-all.c
accel/stubs/kvm-stub.c
include/sysemu/kvm.h