diff options
author | David Hildenbrand <david@redhat.com> | 2023-09-26 20:57:30 +0200 |
---|---|---|
committer | David Hildenbrand <david@redhat.com> | 2023-10-12 14:15:22 +0200 |
commit | 16ab2eda57233787c2145bc5eaeabcc2852bc4c3 (patch) | |
tree | 8d284303697af277be736fd0171191b94bba29ec /accel/kvm | |
parent | 766aa0a654d887ad8fed2f116c84a89e20102c14 (diff) | |
download | qemu-16ab2eda57233787c2145bc5eaeabcc2852bc4c3.zip qemu-16ab2eda57233787c2145bc5eaeabcc2852bc4c3.tar.gz qemu-16ab2eda57233787c2145bc5eaeabcc2852bc4c3.tar.bz2 |
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>
Diffstat (limited to 'accel/kvm')
-rw-r--r-- | accel/kvm/kvm-all.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index 5937e46..3f7eafe 100644 --- a/accel/kvm/kvm-all.c +++ b/accel/kvm/kvm-all.c @@ -174,7 +174,7 @@ void kvm_resample_fd_notify(int gsi) } } -int kvm_get_max_memslots(void) +unsigned int kvm_get_max_memslots(void) { KVMState *s = KVM_STATE(current_accel()); |