summaryrefslogtreecommitdiff
path: root/hw/i386/kvm
diff options
context:
space:
mode:
authorLin Ma <lma@suse.com>2016-06-16 01:05:27 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2016-06-29 14:03:47 +0200
commitbe968c721ee9df49708691ab58f0e66b394dea82 (patch)
tree6c538a2547fb39dc85eea1a226741fc585cd2c6f /hw/i386/kvm
parent33df7bf3bf43ffa3001cadfe5d5faef2774522d0 (diff)
downloadqemu-be968c721ee9df49708691ab58f0e66b394dea82.tar.gz
qemu-be968c721ee9df49708691ab58f0e66b394dea82.tar.bz2
qemu-be968c721ee9df49708691ab58f0e66b394dea82.zip
pci-assign: Move "Invalid ROM" error message to pci-assign-load-rom.c
In function pci_assign_dev_load_option_rom, For those pci devices don't have 'rom' file under sysfs or if loading ROM from external file, The function returns NULL, and won't set the passed 'size' variable. In these 2 cases, qemu still reports "Invalid ROM" error message, Users may be confused by it. Signed-off-by: Lin Ma <lma@suse.com> Message-Id: <1466010327-22368-1-git-send-email-lma@suse.com> Cc: qemu-stable@nongnu.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/i386/kvm')
-rw-r--r--hw/i386/kvm/pci-assign.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/hw/i386/kvm/pci-assign.c b/hw/i386/kvm/pci-assign.c
index 98997d167c..3623aa1965 100644
--- a/hw/i386/kvm/pci-assign.c
+++ b/hw/i386/kvm/pci-assign.c
@@ -1891,8 +1891,4 @@ static void assigned_dev_load_option_rom(AssignedDevice *dev)
pci_assign_dev_load_option_rom(&dev->dev, OBJECT(dev), &size,
dev->host.domain, dev->host.bus,
dev->host.slot, dev->host.function);
-
- if (!size) {
- error_report("pci-assign: Invalid ROM.");
- }
}