[libvirt] [PATCH 0/8] Various KVM PCI device assignment improvements

Mark McLoughlin markmc at redhat.com
Fri Aug 14 15:09:32 UTC 2009


On Fri, 2009-08-14 at 16:41 +0200, Mirko Raasch wrote:
> Hi,
> 
> thanks for you improvements.
> 
> I updated libvirt with git and tried to passthrough two pci devices to a 
> linux guest.
> 
>  <hostdev mode='subsystem' type='pci' managed='yes'>
>       <source>
>         <address domain='0x0000' bus='0x05' slot='0x01' function='0x0'/>
>       </source>
>     </hostdev>
>     <hostdev mode='subsystem' type='pci' managed='yes'>
>       <source>
>         <address domain='0x0000' bus='0x05' slot='0x03' function='0x0'/>
>       </source>
>     </hostdev>
> 
> In the guest, only one of them works and after the shutdown of the 
> guest, i got a segfault on the host.
> 
> libvirtd[15363]: segfault at 38 ip 0000000000421164 sp 00007fff59d1dfb0 
> error 4 in libvirtd[400000+6d000]
> 
> I use kernel 2.6.30-4 on the host.
> 
> What did i wrong?

It's more a question of what *I* did wrong, probably :-)

Did this work before? With what version? Is there any chance you could
use git-bisect to find out what commit introduced the regression?

If not, please run libvirtd from the command line with LIBVIRT_DEBUG and
post the log file somewhere. Also, the guest log file
from /var/log/libvirt/qemu would help

Oh, and lspci -vvvv

Thanks,
Mark.




More information about the libvir-list mailing list