kvm: Refactor KVMState::max_gsi to gsi_count
commit4e2e4e6355959a1af011167b0db5ac7ffd3adf94
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 16 May 2012 18:41:08 +0000 (16 15:41 -0300)
committerMarcelo Tosatti <mtosatti@redhat.com>
Wed, 16 May 2012 21:04:44 +0000 (16 18:04 -0300)
treea279bae04ff80c626d034ae54e6bdfdfe7d92e71
parent3145fcb6057c82e9d8b57bf86494df6af844c732
kvm: Refactor KVMState::max_gsi to gsi_count

Instead of the bitmap size, store the maximum of GSIs the kernel
support. Move the GSI limit assertion to the API function
kvm_irqchip_add_route and make it stricter.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
kvm-all.c