hw/pci: fixed hotplug crash when using rombar=0 with devices having romfile
commitdb80c7b974f4ccab56bd5e8ff2248c7339b00c73
authorMarcel Apfelbaum <marcel.a@redhat.com>
Mon, 27 Oct 2014 17:34:42 +0000 (27 19:34 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 2 Nov 2014 11:44:12 +0000 (2 13:44 +0200)
treef2f4b34fa63b51c032cc7dd2547f3173c2b2059c
parent178e785fb4507ec3462dc772bbe08303416ece47
hw/pci: fixed hotplug crash when using rombar=0 with devices having romfile

Hot-plugging a device that has a romfile (either supplied by user
or built-in) using rombar=0 option is a user error,
do not allow the device to be hot-plugged.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/pci.c