]> Git Repo - qemu.git/commit - kvm-stub.c
pc: kvm: check if KVM has free memory slots to avoid abort()
authorIgor Mammedov <[email protected]>
Fri, 31 Oct 2014 16:38:32 +0000 (16:38 +0000)
committerMichael S. Tsirkin <[email protected]>
Sun, 23 Nov 2014 10:11:29 +0000 (12:11 +0200)
commitb8865591d4d5680b4f766c25ca1db110320b4d15
tree7961f3f9de5c4dd137bebadd335d7bb5375a6e87
parentc409572678936d3ffa8694f5a1dae531c2212e21
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 <[email protected]>
Acked-by: Paolo Bonzini <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
hw/i386/pc.c
include/sysemu/kvm.h
kvm-all.c
kvm-stub.c
This page took 0.022676 seconds and 4 git commands to generate.