pc-dimm: add vhost slots limit check before commiting to hotplug
commit3fad87881e55aaff659408dcf25fa204f89a7896
authorIgor Mammedov <imammedo@redhat.com>
Tue, 6 Oct 2015 08:37:28 +0000 (6 10:37 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 22 Oct 2015 11:34:48 +0000 (22 14:34 +0300)
tree680288ecc2b6f16f16515f5af9822f8ecb3ddc37
parent2ce68e4cf5be9b5176a3c3c372948d6340724d2d
pc-dimm: add vhost slots limit check before commiting to hotplug

it allows safely cancel memory hotplug if vhost backend
doesn't support necessary amount of memory slots and prevents
QEMU crashing in vhost due to hitting vhost limit on amount
of supported memory ranges.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/mem/pc-dimm.c