pc: explicitly check maxmem limit when adding DIMM
commitb03541fa7722d64a1c961a8467d778d7e086a933
authorIgor Mammedov <imammedo@redhat.com>
Fri, 31 Oct 2014 16:38:41 +0000 (31 16:38 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 24 Nov 2014 18:57:10 +0000 (24 20:57 +0200)
tree101213712a3096f9632832062d2f911e6e489252
parent0c0de1b681bc11a8ebc94bd45e99d6f4e8fafd80
pc: explicitly check maxmem limit when adding DIMM

Currently maxmem limit is not checked and depends on
hotplug region container not being able to fit more RAM
than maxmem. Do check explicitly so that it would
be possible to change hotplug container size later
to deal with fragmentation.

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/i386/pc.c