diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2018-12-12 12:38:41 -0700 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2018-12-19 16:48:16 -0500 |
commit | d96a0ac71c7a2332a00da1a496eae6bcb9948502 (patch) | |
tree | 839c59263fa3eb4120a66d81f3e5e424c954f292 /hw/vfio | |
parent | e7176cdbe4d5e4b68459af741d6493886e4dad29 (diff) | |
download | qemu-d96a0ac71c7a2332a00da1a496eae6bcb9948502.zip qemu-d96a0ac71c7a2332a00da1a496eae6bcb9948502.tar.gz qemu-d96a0ac71c7a2332a00da1a496eae6bcb9948502.tar.bz2 |
pcie: Create enums for link speed and width
In preparation for reporting higher virtual link speeds and widths,
create enums and macros to help us manage them.
Cc: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Tested-by: Geoffrey McRae <geoff@hostfission.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Eric Auger <eric.auger@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>
Diffstat (limited to 'hw/vfio')
-rw-r--r-- | hw/vfio/pci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index 5c7bd96..74f9a46 100644 --- a/hw/vfio/pci.c +++ b/hw/vfio/pci.c @@ -1897,7 +1897,8 @@ static int vfio_setup_pcie_cap(VFIOPCIDevice *vdev, int pos, uint8_t size, PCI_EXP_TYPE_ENDPOINT << 4, PCI_EXP_FLAGS_TYPE); vfio_add_emulated_long(vdev, pos + PCI_EXP_LNKCAP, - PCI_EXP_LNK_MLW_1 | PCI_EXP_LNK_LS_25, ~0); + QEMU_PCI_EXP_LNKCAP_MLW(QEMU_PCI_EXP_LNK_X1) | + QEMU_PCI_EXP_LNKCAP_MLS(QEMU_PCI_EXP_LNK_2_5GT), ~0); vfio_add_emulated_word(vdev, pos + PCI_EXP_LNKCTL, 0, ~0); } |