public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 0/2] pci_register_device can fail
@ 2008-04-21 23:02 Chris Wright
  2008-04-21 23:02 ` [patch 1/2] [PATCH] pci nic: " Chris Wright
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Chris Wright @ 2008-04-21 23:02 UTC (permalink / raw)
  To: kvm-devel; +Cc: Marcelo Tosatti

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
-- 

-------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-04-22 11:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-21 23:02 [patch 0/2] pci_register_device can fail Chris Wright
2008-04-21 23:02 ` [patch 1/2] [PATCH] pci nic: " Chris Wright
2008-04-21 23:02 ` [patch 2/2] [PATCH] virtio-blk: virtio_pci_init " Chris Wright
2008-04-22  3:02   ` Marcelo Tosatti
2008-04-22  5:07     ` Chris Wright
2008-04-22  5:14     ` [patch 3/2] hotadd: lsi_scsi_init " Chris Wright
2008-04-22  6:02       ` Avi Kivity
2008-04-22 11:21 ` [patch 0/2] pci_register_device " Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox