]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8bd7d1d4857a3726a8859dc6332cbd6375d37204
treed4ef29de97fc976ed7245c629b6f8a41fd660f86
parente57b1871302bb933715276817cc5ee69a85df3d1
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