virtio-pci: error out when both legacy and modern modes are disabled
commit3eff376977c457475272a34d243dac6af7cd6a47
authorGreg Kurz <gkurz@linux.vnet.ibm.com>
Fri, 9 Sep 2016 09:00:59 +0000 (9 11:00 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 9 Sep 2016 17:58:34 +0000 (9 20:58 +0300)
tree377d6105c6311397a4251ddad22d2f1b4e0018d0
parent4a1e48becab81020adfb74b22c76a595f2d02a01
virtio-pci: error out when both legacy and modern modes are disabled

Without presuming if we got there because of a user mistake or some
more subtle bug in the tooling, it really does not make sense to
implement a non-functional device.

Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio-pci.c