xemu/hw/pci-host
Felipe Franciosi 64a7b8de42 qom/object: Use common get/set uint helpers
Several objects implemented their own uint property getters and setters,
despite them being straightforward (without any checks/validations on
the values themselves) and identical across objects. This makes use of
an enhanced API for object_property_add_uintXX_ptr() which offers
default setters.

Some of these setters used to update the value even if the type visit
failed (eg. because the value being set overflowed over the given type).
The new setter introduces a check for these errors, not updating the
value if an error occurred. The error is propagated.

Signed-off-by: Felipe Franciosi <felipe@nutanix.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-03-16 23:02:24 +01:00
..
bonito.c hw: replace hw/i386/pc.h with a header just for the i8259 2019-12-17 19:33:49 +01:00
designware.c hw/pci-host/designware: Remove unuseful FALLTHROUGH comment 2020-01-24 20:59:08 +01:00
gpex.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
grackle.c qdev: set properties with device_class_set_props() 2020-01-24 20:59:15 +01:00
i440fx.c hw/pci-host/piix: Include "qemu/range.h" 2020-03-09 15:59:31 +01:00
Kconfig hw/pci-host: Add Kconfig entry to select the IGD Passthrough Host Bridge 2019-12-18 02:34:12 +01:00
Makefile.objs ppc/pnv: Add models for POWER8 PHB3 PCIe Host bridge 2020-02-02 14:07:57 +11:00
pam.c Clean up inclusion of sysemu/sysemu.h 2019-08-16 13:31:53 +02:00
pnv_phb3_msi.c pnv/phb3: Convert 1u to 1ull 2020-02-21 09:15:04 +11:00
pnv_phb3_pbcq.c pnv/phb3: Add missing break statement 2020-02-21 09:15:04 +11:00
pnv_phb3.c ppc/pnv: change the PowerNV machine devices to be non user creatable 2020-02-02 14:07:57 +11:00
pnv_phb4_pec.c pnv/phb4: Fix error path in pnv_pec_realize() 2020-02-21 09:15:04 +11:00
pnv_phb4.c ppc/pnv: change the PowerNV machine devices to be non user creatable 2020-02-02 14:07:57 +11:00
ppce500.c qdev: set properties with device_class_set_props() 2020-01-24 20:59:15 +01:00
prep.c hw/core/loader: Let load_elf() populate a field with CPU-specific flags 2020-01-29 19:28:52 +01:00
q35.c qom/object: Use common get/set uint helpers 2020-03-16 23:02:24 +01:00
sabre.c qdev: set properties with device_class_set_props() 2020-01-24 20:59:15 +01:00
trace-events trace-events: Shorten file names in comments 2019-03-22 16:18:07 +00:00
uninorth.c qdev: set properties with device_class_set_props() 2020-01-24 20:59:15 +01:00
versatile.c qdev: set properties with device_class_set_props() 2020-01-24 20:59:15 +01:00
xen_igd_pt.c hw/pci-host/i440fx: Extract the IGD passthrough host bridge device 2019-12-18 02:34:12 +01:00
xilinx-pcie.c qdev: set properties with device_class_set_props() 2020-01-24 20:59:15 +01:00