qdev: Use appropriate getter/setters type
commit446de8b68a33834b9130f5ba182e8cdf8749c759
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 7 Jun 2017 16:36:11 +0000 (7 20:36 +0400)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 20 Jun 2017 12:31:32 +0000 (20 14:31 +0200)
tree2978fcd8edfe0a6dc9c64cc165f297591f5cfeb1
parentd528227d4c30869dce6fa81124d12b39bcb987cf
qdev: Use appropriate getter/setters type

Based on the underlying type of the data accessed, use the appropriate
getters/setters:

* AcpiPmInfo members s3_disabled, s4_disabled are bool, member s4_val is
  an uint8_t

* Property ACPI_PCIHP_IO_PROP is defined with
  object_property_add_uint32_ptr()

* Property PCIE_HOST_MCFG_SIZE is implemented with visit_type_uint64()

* PCIDevice property "addr" is backed by PCIDevice member devfn, which
  is an int32_t

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20170607163635.17635-20-marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
[More verbose commit message]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
hw/i386/acpi-build.c
hw/pci-host/gpex.c
hw/pci-host/q35.c
hw/pci-host/xilinx-pcie.c