summaryrefslogtreecommitdiff
path: root/hw/ne2000-isa.c
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2010-06-08 15:24:25 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2010-06-14 15:46:28 -0500
commit3709c1b7ccad238e129c219c0081f1d55330e900 (patch)
treee35792752ffd56d81cbf432ef6452ab7cd52ff55 /hw/ne2000-isa.c
parentc20fd872257fb9abd2ce99741937c0f65aa162b7 (diff)
downloadqemu-3709c1b7ccad238e129c219c0081f1d55330e900.tar.gz
qemu-3709c1b7ccad238e129c219c0081f1d55330e900.tar.bz2
qemu-3709c1b7ccad238e129c219c0081f1d55330e900.zip
Clarify error message when a PCI slot is already in use (v2)
When mistakenly configuring two devices in the same PCI slot, QEMU gives a not entirely obvious message about a 'devfn' being in use: $ qemu -device rtl8139 -device virtio-balloon-pci,bus=pci.0,addr=0x3 qemu-kvm: -device virtio-balloon-pci,bus=pci.0,addr=0x3: PCI: devfn 24 not available for virtio-balloon-pci, in use by rtl8139 The user does not configure 'devfn' numbers, they use slot+function. Thus the error messages should be reported back to the user with that same terminology rather than the internal QEMU terminology. This patch makes it report: $ qemu -device rtl8139 -device virtio-balloon-pci,bus=pci.0,addr=0x3 qemu: -device virtio-balloon-pci,bus=pci.0,addr=0x3.7: PCI: slot 3 function 0 not available for virtio-balloon-pci, in use by rtl8139 Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/ne2000-isa.c')
0 files changed, 0 insertions, 0 deletions