summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaszlo Ersek2014-04-10 10:24:38 +0200
committerLuiz Capitulino2014-05-08 20:19:59 +0200
commitf3455d47046f604f1ca7353dd519ea2d2e5fa798 (patch)
treeb20a2e8db63b202011287e82408cf80e0ab67de2
parentpci-assign: accept Error from pci_add_capability2() (diff)
downloadqemu-f3455d47046f604f1ca7353dd519ea2d2e5fa798.tar.gz
qemu-f3455d47046f604f1ca7353dd519ea2d2e5fa798.tar.xz
qemu-f3455d47046f604f1ca7353dd519ea2d2e5fa798.zip
pci-assign: assignment should fail if we can't read config space
assigned_initfn() get_real_device() read() Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
-rw-r--r--hw/i386/kvm/pci-assign.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/i386/kvm/pci-assign.c b/hw/i386/kvm/pci-assign.c
index f91d4fb8dc..e89bb6a4c1 100644
--- a/hw/i386/kvm/pci-assign.c
+++ b/hw/i386/kvm/pci-assign.c
@@ -576,6 +576,7 @@ again:
goto again;
}
error_report("%s: read failed, errno = %d", __func__, errno);
+ return 1;
}
/* Restore or clear multifunction, this is always controlled by qemu */