<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Sprechblasentext Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.SprechblasentextZchn
        {mso-style-name:"Sprechblasentext Zchn";
        mso-style-priority:99;
        mso-style-link:Sprechblasentext;
        font-family:"Tahoma","sans-serif";}
span.E-MailFormatvorlage19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.E-MailFormatvorlage20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Good morning,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>there is a typo in my description;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>the line <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>     <address domain='0x0' bus='0x1' slot='0x00' function='0x0'/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>should be<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>     <address domain='0x0' bus='0x2' slot='0x00' function='0x0'/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>That was correct in my xml-file.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Isn’t there anybody how can help me with that?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Regards<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>   Michael Weis<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:DE'>Von:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:DE'> Weis, Michael (DWIE) <br><b>Gesendet:</b> Dienstag, 7. Oktober 2014 11:45<br><b>An:</b> 'libvirt-users@redhat.com'<br><b>Betreff:</b> passthrough of PCI-device<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hello,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>I try to passthrough a PCI-card to a VM named  testvm<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I want to do that with an xml-file named hga.xml including the following content:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><hostdev mode='subsystem' type='pci' managed='yes'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  <source><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>     <address domain='0x0' bus='0x1' slot='0x00' function='0x0'/><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>  </source><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US></hostdev><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>When I execute<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>virsh attach-device testvm hga.xml <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I get the following error:<o:p></o:p></span></p><p class=MsoNormal>Fehler: Fehler beim Anhängen des Geräts von hga.xml<o:p></o:p></p><p class=MsoNormal><span lang=EN-US>(error: error while attaching device from hga.xml)<o:p></o:p></span></p><p class=MsoNormal>Fehler: Interner Fehler: Kann Qemu-Befehl 'device_add' nicht ausführen: Device initialization failed.<o:p></o:p></p><p class=MsoNormal><span lang=EN-US>(error: internal error: cannot execute ‚device_add‘: <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>In the syslog of the host I get the following errors:<o:p></o:p></span></p><p class=MsoNormal>Oct  7 11:32:34 artemis2 journal: Interner Fehler: Kann Qemu-Befehl 'device_add' nicht ausführen: Device initialization failed.<o:p></o:p></p><p class=MsoNormal><span lang=EN-US>Oct  7 11:32:53 artemis2 kernel: ffff880220fadd10 ffffffff810f924a ffff880220fadd28 0000000000000246<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct  7 11:32:53 artemis2 kernel: ffff8800bd07a400 000000007265756d ffffffffa0866ee0 0000000000000000<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct  7 11:32:53 artemis2 kernel: Call Trace:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct  7 11:32:53 artemis2 kernel: [<ffffffff815e237b>] dump_stack+0x19/0x1b<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct  7 11:32:53 artemis2 kernel: [<ffffffff810f924a>] __setup_irq+0x54a/0x570<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct  7 11:32:53 artemis2 kernel: [<ffffffffa0866ee0>] ? virqfd_wakeup+0xc0/0xc0 [vfio_pci]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct  7 11:32:53 artemis2 kernel: [<ffffffff810f93cc>] request_threaded_irq+0xcc/0x170<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct  7 11:32:53 artemis2 kernel: [<ffffffffa0866b8a>] vfio_intx_set_signal+0x10a/0x1f0 [vfio_pci]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct  7 11:32:53 artemis2 kernel: [<ffffffffa08670e8>] vfio_pci_set_intx_trigger+0xc8/0x1b0 [vfio_pci]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct  7 11:32:53 artemis2 kernel: [<ffffffffa086799b>] vfio_pci_set_irqs_ioctl+0x7b/0x100 [vfio_pci]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct  7 11:32:53 artemis2 kernel: [<ffffffff8115d352>] ? memdup_user+0x42/0x70<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct  7 11:32:53 artemis2 kernel: [<ffffffffa0865e74>] vfio_pci_ioctl+0x314/0xa00 [vfio_pci]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct  7 11:32:53 artemis2 kernel: [<ffffffff81194b6a>] ? kmem_cache_alloc+0x1ba/0x1d0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct  7 11:32:53 artemis2 kernel: [<ffffffff811b156c>] ? get_empty_filp+0x5c/0x190<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct  7 11:32:53 artemis2 kernel: [<ffffffff811f1891>] ? fsnotify+0x251/0x350<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct  7 11:32:53 artemis2 kernel: [<ffffffff81251806>] ? security_file_alloc+0x16/0x20<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct  7 11:32:53 artemis2 kernel: [<ffffffff811b15a0>] ? get_empty_filp+0x90/0x190<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct  7 11:32:53 artemis2 kernel: [<ffffffffa084f163>] vfio_device_fops_unl_ioctl+0x23/0x30 [vfio]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct  7 11:32:53 artemis2 kernel: [<ffffffff811c2af5>] do_vfs_ioctl+0x2e5/0x4c0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct  7 11:32:53 artemis2 kernel: [<ffffffff811af780>] ? vfs_write+0x160/0x1e0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct  7 11:32:53 artemis2 kernel: [<ffffffff811c2d71>] SyS_ioctl+0xa1/0xc0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Oct  7 11:32:53 artemis2 kernel: [<ffffffff815f2a59>] system_call_fastpath+0x16/0x1b<o:p></o:p></span></p><p class=MsoNormal>Oct  7 11:32:53 artemis2 journal: Interner Fehler: Kann Qemu-Befehl 'device_add' nicht ausführen: Device initialization failed.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>My version-information:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>OS: CentOS Linux release 7.0.1406 (Core)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Kernel: Linux artemis2 3.10.0-123.8.1.el7.x86_64<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>libvirt-daemon-driver-secret-1.2.8-1.el7.centos.x86_64<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>libvirt-1.2.8-1.el7.centos.x86_64<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>libvirt-daemon-kvm-1.2.8-1.el7.centos.x86_64<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>libvirt-client-1.2.8-1.el7.centos.x86_64<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>libvirt-daemon-driver-qemu-1.2.8-1.el7.centos.x86_64<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>libvirt-daemon-config-network-1.2.8-1.el7.centos.x86_64<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>libvirt-daemon-driver-interface-1.2.8-1.el7.centos.x86_64<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>libvirt-daemon-1.2.8-1.el7.centos.x86_64<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>libvirt-daemon-driver-nodedev-1.2.8-1.el7.centos.x86_64<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>libvirt-daemon-driver-storage-1.2.8-1.el7.centos.x86_64<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>libvirt-daemon-config-nwfilter-1.2.8-1.el7.centos.x86_64<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>libvirt-daemon-driver-network-1.2.8-1.el7.centos.x86_64<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>libvirt-daemon-driver-lxc-1.2.8-1.el7.centos.x86_64<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>libvirt-daemon-driver-nwfilter-1.2.8-1.el7.centos.x86_64<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>The PCI-Card I want to passthrough:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>02:00.0 Ethernet controller: PLX Technology, Inc. Device 235e<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>        Subsystem: PLX Technology, Inc. Device 235e<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>        Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>        </span>Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-<o:p></o:p></p><p class=MsoNormal>        <span lang=EN-US>Interrupt: pin A routed to IRQ 16<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>        Region 0: Memory at f0810000 (32-bit, non-prefetchable) [disabled] [size=256]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>        Region 1: I/O ports at e000 [disabled] [size=256]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>        Region 2: Memory at e0000000 (32-bit, non-prefetchable) [disabled] [size=256M]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>        Region 3: Memory at f0000000 (32-bit, non-prefetchable) [disabled] [size=8M]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>        Expansion ROM at f0800000 [disabled] [size=64K]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>        Capabilities: [40] Power Management version 1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>        Capabilities: [48] CompactPCI hot-swap <?><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>        Capabilities: [4c] Vital Product Data<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>                Unknown large resource type 35, will not decode more.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>        Kernel driver in use: vfio-pci<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Please help.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Best regards<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>   Michael Weis<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div><br clear="both">
PROPRIETARY: This e-mail contains proprietary information some or all of which may be legally privileged.  It is intended for the recipient only.  If an addressing or transmission error has misdirected this e-mail, please notify the authority by replying to this e-mail.  If you are not the intended recipient you must not use, disclose, distribute, copy, print, or rely on this e-mail.<BR>
</body></html>