s390x: Fixes for 2.12
- Fix for the s390 cpumodel - Forbid multifunction PCI devices -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAABAgAGBQJatMOXAAoJEBF7vIC1phx8ofwP/15pLFXPs4yoZc9tECaVgDl/ bS8oWfYpeAUWiFAiwrtJDE7vZMTP27G6SCTcswi8Gn1Ny43Eb/gDVi7cLtxsb4aC ekNtpip7oVrq3ZEC6VzvOpfYDIXi8QkMQ02u1Ke2bpkZ3iDhMGly1qOz6dVQCiy8 Md6WjRmxXywmd2jCpBqwIE6z8IUxBm/KG7xCsdpDMU7jHyBDHzyyG1wn3i92bQ8s DUZVFXNSW+zobw1ToFFRKYmmmafeQXIsNT86adhm/yHjosUkNH0RKpVogWWcxFe3 1aRJ+0jaaLJ6tGrBl3VWLyZ0yqlajEXgxTThQlojVGlXXIliRMS0syC/ltYh48dj dEpYXnr9t+4CVxgDRnJyQakRFbqCftGC6aAAkl0JiLo9V+qxwAUiYzprHOXTls/B ki+tgVHbszTDNgS44jwDkt7HAAQaPkATJ4R69rKRxPY0+77kajR+FeXzljAY6lO0 07jOQVKSWEePhaRSHNYXGlOrovcVf91DG+OaoRn932D6y1d5Zi0JOHc8WzfHZ4gu EtNF5IBmRRZe6tNC9+SHdgIbrrLjh/ZUyRv3sgtCRS1mn2jSQqMX8Turb1EsHANl hoiDUIEXZageLegCBjNyt4VTPVqYfYpKnN1CjP931aLMhP+0xQDy7KECKsWOl1pN rQMH8+XvQit6l1sUTTxM =TAcT -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/borntraeger/tags/s390x-20180323' into staging s390x: Fixes for 2.12 - Fix for the s390 cpumodel - Forbid multifunction PCI devices # gpg: Signature made Fri 23 Mar 2018 09:06:31 GMT # gpg: using RSA key 117BBC80B5A61C7C # gpg: Good signature from "Christian Borntraeger (IBM) <borntraeger@de.ibm.com>" # Primary key fingerprint: F922 9381 A334 08F9 DBAB FBCA 117B BC80 B5A6 1C7C * remotes/borntraeger/tags/s390x-20180323: s390x/cpumodel: fix feature groups and breakage of MSA8 s390x/pci: forbid multifunction pci device Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
4c2c101590
@ -816,6 +816,11 @@ static void s390_pcihost_hot_plug(HotplugHandler *hotplug_dev,
|
|||||||
PCIBridge *pb = PCI_BRIDGE(dev);
|
PCIBridge *pb = PCI_BRIDGE(dev);
|
||||||
PCIDevice *pdev = PCI_DEVICE(dev);
|
PCIDevice *pdev = PCI_DEVICE(dev);
|
||||||
|
|
||||||
|
if (pdev->cap_present & QEMU_PCI_CAP_MULTIFUNCTION) {
|
||||||
|
error_setg(errp, "multifunction not supported in s390");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
pci_bridge_map_irq(pb, dev->id, s390_pci_map_irq);
|
pci_bridge_map_irq(pb, dev->id, s390_pci_map_irq);
|
||||||
pci_setup_iommu(&pb->sec_bus, s390_pci_dma_iommu, s);
|
pci_setup_iommu(&pb->sec_bus, s390_pci_dma_iommu, s);
|
||||||
|
|
||||||
@ -835,6 +840,11 @@ static void s390_pcihost_hot_plug(HotplugHandler *hotplug_dev,
|
|||||||
} else if (object_dynamic_cast(OBJECT(dev), TYPE_PCI_DEVICE)) {
|
} else if (object_dynamic_cast(OBJECT(dev), TYPE_PCI_DEVICE)) {
|
||||||
pdev = PCI_DEVICE(dev);
|
pdev = PCI_DEVICE(dev);
|
||||||
|
|
||||||
|
if (pdev->cap_present & QEMU_PCI_CAP_MULTIFUNCTION) {
|
||||||
|
error_setg(errp, "multifunction not supported in s390");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!dev->id) {
|
if (!dev->id) {
|
||||||
/* In the case the PCI device does not define an id */
|
/* In the case the PCI device does not define an id */
|
||||||
/* we generate one based on the PCI address */
|
/* we generate one based on the PCI address */
|
||||||
|
@ -78,6 +78,7 @@ typedef enum {
|
|||||||
S390_FEAT_GROUP_MSA_EXT_6,
|
S390_FEAT_GROUP_MSA_EXT_6,
|
||||||
S390_FEAT_GROUP_MSA_EXT_7,
|
S390_FEAT_GROUP_MSA_EXT_7,
|
||||||
S390_FEAT_GROUP_MSA_EXT_8,
|
S390_FEAT_GROUP_MSA_EXT_8,
|
||||||
|
S390_FEAT_GROUP_MULTIPLE_EPOCH_PTFF,
|
||||||
S390_FEAT_GROUP_MAX,
|
S390_FEAT_GROUP_MAX,
|
||||||
} S390FeatGroup;
|
} S390FeatGroup;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user