Skip to content

pci_register_device can fail

Chris Wright kvm 1 version Applied

Status from this message: Applied all three, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2pci nic: pci_register_device can failqemu/hw/e1000.c qemu/hw/eepro100.c qemu/hw/ne2000.c +5 more+24 -00 replies
2/2virtio-blk: virtio_pci_init can failqemu/hw/virtio-blk.c+2 -04 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchMarcelo Tosatti
1/2
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [patch 0/2] pci_register_device can fail

The pci hotadd patches make it easy to trigger segfaults when adding more devices than a single PCI bus can handle. The following 2 patches fix the pci nic devices and virtio-blk device. Now the following the following:

OK bus 0, slot 31, function 0 (devfn 248)
(qemu) pci_add 0 nic model=virtio
Segmentation fault

OK bus 0, slot 31, function 0 (devfn 248) (qemu) pci_add 0 storage file=/mnt/disk1,if=virtio Segmentation fault

become:

OK bus 0, slot 31, function 0 (devfn 248)
(qemu) pci_add 0 nic model=virtio
qemu: Unable to initialze NIC: virtio
failed to add model=virtio

OK bus 0, slot 31, function 0 (devfn 248) (qemu) pci_add 0 storage file=/mnt/disk1,if=virtio failed to add file=/mnt/disk1,if=virtio

thanks,
-chris

Signature · 5 lines
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone