pci: Validate interfaces on base_class_init
commit2fefa16cec5a719f5cbc26c0672dd2099cd2ed9b
authorEduardo Habkost <ehabkost@redhat.com>
Wed, 27 Sep 2017 19:56:35 +0000 (27 16:56 -0300)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 15 Oct 2017 02:54:43 +0000 (15 05:54 +0300)
tree7ada954d9c586fa014c488d034b3dedc607c476c
parent6d7023763ec8cc7999468769a0c6bf1335dc3bf4
pci: Validate interfaces on base_class_init

Make sure we don't forget to add the Conventional PCI or PCI
Express interface names on PCI device classes in the future.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Revieed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/pci.c