pseries: Don't allow TCE (iommu) tables to be registered with duplicate LIOBNs
commit8b1853e7d8c2bf8c6a9f023ab98ba0e8a38bd086
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 3 Dec 2012 16:42:13 +0000 (3 16:42 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 14 Dec 2012 12:12:55 +0000 (14 13:12 +0100)
tree762f9e6c05e342f2a198216f32a8d710a846f0db
parent3eddc1be1ccb26387f8f960f8a3d8c417064a91f
pseries: Don't allow TCE (iommu) tables to be registered with duplicate LIOBNs

The PAPR specification requires that every bus or device mediated by the
IOMMU have a unique Logical IO Bus Number (LIOBN).  This patch adds a check
to enforce this, which will help catch errors in configuration earlier.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/spapr_iommu.c