]> git.baikalelectronics.ru Git - kernel.git/commit
vhost: add max_mem_regions module parameter
authorIgor Mammedov <imammedo@redhat.com>
Thu, 2 Jul 2015 13:08:11 +0000 (15:08 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 13 Jul 2015 20:17:19 +0000 (23:17 +0300)
commite2cdb5d7956cf847e941831ec6704ad01ba74e83
treef92250cbd4a9760cb8b69cd349c5e4ee9033b0e8
parentb7f9f1366d00b730aa46f3974b062fb599a6dfb3
vhost: add max_mem_regions module parameter

it became possible to use a bigger amount of memory
slots, which is used by memory hotplug for
registering hotplugged memory.
However QEMU crashes if it's used with more than ~60
pc-dimm devices and vhost-net enabled since host kernel
in module vhost-net refuses to accept more than 64
memory regions.

Allow to tweak limit via max_mem_regions module paramemter
with default value set to 64 slots.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vhost.c