KVM: struct kvm_memory_slot.id -> short
authorAlex Williamson <alex.williamson@redhat.com>
Mon, 10 Dec 2012 17:33:32 +0000 (10:33 -0700)
committerMarcelo Tosatti <mtosatti@redhat.com>
Fri, 14 Dec 2012 01:25:24 +0000 (23:25 -0200)
commit1e702d9af5d633cf0eca76f6340b3c50fbb5a4e5
treed4ef29de97fc976ed7245c629b6f8a41fd660f86
parent6104f472a5ea287fbdcf4644e74867dfd905a018
KVM: struct kvm_memory_slot.id -> short

We're currently offering a whopping 32 memory slots to user space, an
int is a bit excessive for storing this.  We would like to increase
our memslots, but SHRT_MAX should be more than enough.

Reviewed-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
include/linux/kvm_host.h
virt/kvm/kvm_main.c