qapi: Define PCIe link speed and width properties
commit4695a2c50076879000ddde9f80d07bbcacfa0f26
authorAlex Williamson <alex.williamson@redhat.com>
Wed, 12 Dec 2018 19:39:08 +0000 (12 12:39 -0700)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 19 Dec 2018 21:48:16 +0000 (19 16:48 -0500)
tree36128e0fa00550422f872594ad242df509a6e0ff
parent727b48661f757678f7f42f557ddac072c5a49721
qapi: Define PCIe link speed and width properties

Create properties to be able to define speeds and widths for PCIe
links.  The only tricky bit here is that our get and set callbacks
translate from the fixed QAPI automagic enums to those we define
in PCI code to represent the actual register segment value.

Cc: Eric Blake <eblake@redhat.com>
Tested-by: Geoffrey McRae <geoff@hostfission.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/core/qdev-properties.c
include/hw/qdev-properties.h
qapi/common.json