pcie_root_port: Allow ACS to be disabled
commita58dfba20168dae18650ad70f47af99be55b1c45
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Tue, 30 Jul 2019 09:37:18 +0000 (30 10:37 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 30 Jul 2019 16:07:07 +0000 (30 12:07 -0400)
tree71a493c8d8f9c961d156f6724c8a62bc91c2af2a
parent22235bb609c18547cf6b215bad1f9d2ec56ad371
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>
hw/pci-bridge/pcie_root_port.c
include/hw/pci/pcie_port.h