summaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2013-11-22 12:12:44 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2013-11-25 11:28:34 +0100
commitfb541ca59c8b55911821c9f794c3dbe5de9ba9d8 (patch)
tree7b34bd0dc927322483b8098fcf483a4420b0fa4c /vl.c
parent607bb022f2a44797cbf40e85e84da4134e2f0e01 (diff)
downloadqemu-fb541ca59c8b55911821c9f794c3dbe5de9ba9d8.tar.gz
kvm: Query KVM for available memory slots
KVM reports the number of available memory slots (KVM_CAP_NR_MEMSLOTS) using the extension interface. Both x86 and s390 implement this, ARM and powerpc do not yet enable it. Convert the static slots array to be dynamically allocated, supporting more slots when available. Default to 32 when KVM_CAP_NR_MEMSLOTS is not implemented. The motivation for this change is to support more assigned devices, where memory mapped PCI MMIO BARs typically take one slot each. Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Reviewed-by: Thomas Huth <thuth@linux.vnet.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'vl.c')
0 files changed, 0 insertions, 0 deletions