commit | 759048ac20174b34fa7a593f4da2e7fed34e599c | [log] [tgz] |
---|---|---|
author | Bharata B Rao <bharata@linux.vnet.ibm.com> | Tue Jan 27 09:35:00 2015 +0530 |
committer | Michael S. Tsirkin <mst@redhat.com> | Tue Jan 27 14:46:17 2015 +0200 |
tree | 9436f48c8e47db12b3d0b01c4f72c5dc7ffa6eab | |
parent | 07d01c9c1929e43216005fcc8eccea75776ee0d2 [diff] |
pc: Fix DIMMs capacity calculation pc_existing_dimms_capacity() is returning DIMMs count rather than capacity. Fix this to return the capacity. Also consider only realized devices for capacity calculation. Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>