diff options
| author | Greg Kurz | 2020-10-19 10:48:41 +0200 |
|---|---|---|
| committer | David Gibson | 2020-10-27 15:08:53 +0100 |
| commit | 271ced1d62e0c46089fab47c8560c4e550806d69 (patch) | |
| tree | b685fe715c9cfdc8aa39eed3babc688970ac5db7 /include/hw | |
| parent | spapr: Use appropriate getter for PC_DIMM_SLOT_PROP (diff) | |
| download | qemu-271ced1d62e0c46089fab47c8560c4e550806d69.tar.gz qemu-271ced1d62e0c46089fab47c8560c4e550806d69.tar.xz qemu-271ced1d62e0c46089fab47c8560c4e550806d69.zip | |
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 'include/hw')
0 files changed, 0 insertions, 0 deletions
