Igor Mammedov b8865591d4 pc: kvm: check if KVM has free memory slots to avoid abort()
When more memory devices are used than available
KVM memory slots, QEMU crashes with:

kvm_alloc_slot: no free slot available
Aborted (core dumped)

Fix this by checking that KVM has a free slot before
attempting to map memory in guest address space.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2014-11-23 12:11:29 +02:00
..
2014-09-29 10:20:05 +02:00
2014-08-15 19:12:48 +04:00
2014-11-10 14:58:59 +00:00
2014-11-17 11:41:56 +01:00
2014-11-04 23:26:12 +01:00
2014-09-02 22:38:16 +04:00
2014-11-13 16:13:27 +01:00
2014-10-31 17:02:22 +01:00
2014-11-04 23:26:13 +01:00
2014-11-17 11:49:19 +01:00
2014-10-24 12:19:11 +01:00
2014-11-04 23:26:15 +01:00