diff options
| author | Dr. David Alan Gilbert | 2019-07-30 11:37:18 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2019-07-30 18:07:07 +0200 |
| commit | a58dfba20168dae18650ad70f47af99be55b1c45 (patch) | |
| tree | 71a493c8d8f9c961d156f6724c8a62bc91c2af2a /include/hw/pci | |
| parent | pc-dimm: fix crash when invalid slot number is used (diff) | |
| download | qemu-a58dfba20168dae18650ad70f47af99be55b1c45.tar.gz qemu-a58dfba20168dae18650ad70f47af99be55b1c45.tar.xz qemu-a58dfba20168dae18650ad70f47af99be55b1c45.zip | |
pcie_root_port: Allow ACS to be disabled
ACS was added in 4.0 unconditionally, this breaks migration
compatibility.
Allow ACS to be disabled by adding a property that's
checked by pcie_root_port.
Unfortunately pcie-root-port doesn't have any instance data,
so there's no where for that flag to live, so stuff it into
PCIESlot.
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20190730093719.12958-2-dgilbert@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/pci')
| -rw-r--r-- | include/hw/pci/pcie_port.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/pci/pcie_port.h b/include/hw/pci/pcie_port.h index 09586f4641..7515430087 100644 --- a/include/hw/pci/pcie_port.h +++ b/include/hw/pci/pcie_port.h @@ -53,6 +53,8 @@ struct PCIESlot { PCIExpLinkSpeed speed; PCIExpLinkWidth width; + /* Disable ACS (really for a pcie_root_port) */ + bool disable_acs; QLIST_ENTRY(PCIESlot) next; }; |
