pc-dimm: no need to pass the memory region
commitacc7fa17e6fe96bd68ad9af04fde5091383ef25e
authorDavid Hildenbrand <david@redhat.com>
Mon, 23 Apr 2018 16:51:18 +0000 (23 18:51 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 7 May 2018 13:00:02 +0000 (7 10:00 -0300)
tree47e3dd50c4d2c2cbb48645ac2a18d0bdcd3f32da
parentb0c14ec4efe912ae6f14a4802574f7b6b6db0648
pc-dimm: no need to pass the memory region

We can just query it ourselves. When unplugging, we should always be
able to the region (as it was previously plugged). E.g. PPC already
assumed that and used &error_abort.

Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20180423165126.15441-4-david@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/i386/pc.c
hw/mem/pc-dimm.c
hw/ppc/spapr.c
include/hw/mem/pc-dimm.h