diff options
author | Greg Kurz <groug@kaod.org> | 2020-10-19 10:48:41 +0200 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2020-10-28 01:08:53 +1100 |
commit | 271ced1d62e0c46089fab47c8560c4e550806d69 (patch) | |
tree | b685fe715c9cfdc8aa39eed3babc688970ac5db7 /util | |
parent | 581778dd4727df93e3fe810d721e44157f64b97f (diff) | |
download | qemu-271ced1d62e0c46089fab47c8560c4e550806d69.zip qemu-271ced1d62e0c46089fab47c8560c4e550806d69.tar.gz qemu-271ced1d62e0c46089fab47c8560c4e550806d69.tar.bz2 |
spapr: Pass &error_abort when getting some PC DIMM properties
Both PC_DIMM_SLOT_PROP and PC_DIMM_ADDR_PROP are defined in the
default property list of the PC DIMM device class:
DEFINE_PROP_UINT64(PC_DIMM_ADDR_PROP, PCDIMMDevice, addr, 0),
DEFINE_PROP_INT32(PC_DIMM_SLOT_PROP, PCDIMMDevice, slot,
PC_DIMM_UNASSIGNED_SLOT),
They should thus be always gettable for both PC DIMMs and NVDIMMs.
An error in getting them can only be the result of a programming
error. It doesn't make much sense to propagate the error in this
case. Abort instead.
Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <160309732180.2739814.7243774674998010907.stgit@bahia.lan>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'util')
0 files changed, 0 insertions, 0 deletions