<html><head></head><body lang="en-GB" style="background-color: rgb(255, 255, 255); line-height: initial;">                                                                                      <div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">First xml is a network definition file - as said earlier, they are one way for managing libvirt networking, which I do not use. Meaning, you do not need it if you want to do it "Bronek's way". However you may need to ensure that qemu helper is defined in libvirt configuration - look my messages from past few days.</div><div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><br></div><div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">Second xml is part of VM definition, a sibling to hostdev nodes etc. You can create this part in virt-manager GUI, no need to edit xml by hand - just make sure to select the bridge you have created.</div><div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><span style="font-size: initial; text-align: initial; line-height: initial;"><br></span></div><div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><span style="font-size: initial; text-align: initial; line-height: initial;"><br></span></div><div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><span style="font-size: initial; text-align: initial; line-height: initial;"><br></span></div><div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><span style="font-size: initial; text-align: initial; line-height: initial;">B.</span></div><div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><br></div><div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><br></div>                                                                                                                                     <div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><br></div>                                                                                                                                                                                                   <div style="font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"></div>                                                                                                                                                                                  <table width="100%" style="background-color:white;border-spacing:0px;"> <tbody><tr><td colspan="2" style="font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);">                           <div style="border-style: solid none none; border-top-color: rgb(181, 196, 223); border-top-width: 1pt; padding: 3pt 0in 0in; font-family: Tahoma, 'BB Alpha Sans', 'Slate Pro'; font-size: 10pt;">  <div><b>From: </b>Garland Key</div><div><b>Sent: </b>Monday, 18 April 2016 23:41</div><div><b>To: </b>Bronek Kozicki</div><div><b>Cc: </b>vfio-users</div><div><b>Subject: </b>Re: [vfio-users] [FEEDBACK NEEDED] Rewriting the Arch wiki article</div></div></td></tr></tbody></table><div style="border-style: solid none none; border-top-color: rgb(186, 188, 209); border-top-width: 1pt; font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);"></div>‎<br><div id="_originalContent" style=""><div dir="ltr"><div>Sorry to pester you with so many questions.  I appreciate your help.<br>‎<br><b>Where should the following configuration be placed?  What is the config filename and path?</b></div><div> </div><blockquote style="font-size:12.8px;margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">I've done the same. Bridge created with NM and used by the VM. You<br>should be able to just select the bridge device. That's the resulting<br>XML for me:<br><br><network connections='1'><br>  <name>default</name><br>  <uuid>278badf4-d33e-493e-b604-083b3dcc2804</uuid><br>  <forward mode='bridge'/><br>  <bridge name='br0'/><br></network><br>‎</blockquote><br style="font-size:12.8px"><span style="font-size:12.8px"><b>Is this placed into your VM XML via virsh?</b><br></span>‎<br style="font-size:12.8px"><span style="font-size:12.8px">    <interface type='bridge'></span><br style="font-size:12.8px"><span style="font-size:12.8px">      <mac address='52:54:01:hi:dd:en'/></span><br style="font-size:12.8px"><span style="font-size:12.8px">      <source bridge='br0'/></span><br style="font-size:12.8px"><span style="font-size:12.8px">      <model type='virtio'/></span><br style="font-size:12.8px"><span style="font-size:12.8px">      <driver queues='8'/></span><br style="font-size:12.8px"><span style="font-size:12.8px">      <address type='pci' domain='0x0000' bus='0x00' slot='0x18' function='0x0'/></span><br style="font-size:12.8px"><span style="font-size:12.8px">    </interface></span><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 18, 2016 at 5:57 PM, Bronek Kozicki <span dir="ltr"><<a href="mailto:brok@spamcop.net" target="_blank">brok@spamcop.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="en-GB" style="background-color:rgb(255,255,255);line-height:initial">                                                                                      <div style="width:100%;font-size:initial;font-family:Calibri,'Slate Pro',sans-serif,sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)">For me setting up networking with an existing bridge "just works", I wrote few days ago on this lis how I've set it up on my machine. Hint: I do not use virsh "networks" capabilities at all - none defined (undefined the default one) and none started. Just my, manually crafted bridge, explicitly used in VM definitions.</div><div style="width:100%;font-size:initial;font-family:Calibri,'Slate Pro',sans-serif,sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)"><br></div><div style="width:100%;font-size:initial;font-family:Calibri,'Slate Pro',sans-serif,sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)"><br></div><div style="width:100%;font-size:initial;font-family:Calibri,'Slate Pro',sans-serif,sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)">B.</div>                                                                                                                                     <div style="width:100%;font-size:initial;font-family:Calibri,'Slate Pro',sans-serif,sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)"><br></div>                                                                                                                                                                                                   <div style="font-size:initial;font-family:Calibri,'Slate Pro',sans-serif,sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)"></div>                                                                                                                                                                                  <table width="100%" style="background-color:white;border-spacing:0px"> <tbody><tr><td colspan="2" style="font-size:initial;text-align:initial;background-color:rgb(255,255,255)">                           <div style="border-style:solid none none;border-top-color:rgb(181,196,223);border-top-width:1pt;padding:3pt 0in 0in;font-family:Tahoma,'BB Alpha Sans','Slate Pro';font-size:10pt">  <div><b>From: </b>Garland Key</div><div><b>Sent: </b>Monday, 18 April 2016 22:21</div><div><b>To: </b>Nicolas Roy-Renaud; vfio-users</div><div><b>Subject: </b>Re: [vfio-users] [FEEDBACK NEEDED] Rewriting the Arch wiki article</div></div></td></tr></tbody></table><div style="border-style:solid none none;border-top-color:rgb(186,188,209);border-top-width:1pt;font-size:initial;text-align:initial;background-color:rgb(255,255,255)"></div><br><div><div dir="ltr">I'm an intermediate Linux user, so this this stuff can be complicated to me sometimes.  Right now I'm having trouble setting up a network bridge that virt-manager will recognize.  I've arrived at the conclusion that this simply isn't possible on Arch.  That said, I can't find any documentation on how to convince qemu to use an existing network bridge.  If you're willing, please add this information as well.  If you already know how, any pointers would be greatly appreciated.<br><br>Best,<br>Garland</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 18, 2016 at 5:14 PM, Garland Key <span dir="ltr"><<a href="mailto:david.garland.key@gmail.com" target="_blank">david.garland.key@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Please add what to do if you have two identical GPUs.  Here is exactly what is needed to make it work.<br><br>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  <br><i><br><font face="monospace, monospace"><b>/etc/modprobe.d/vfio.conf</b></font></i><br><br><span style="font-family:monospace"><span style="color:rgb(0,0,0)">    install vfio-pci /sbin/vfio-pci-override-vga.sh
</span><br>    options vfio-pci disable_vga=1 allow_unsafe_interrupts=1<br><br></span>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <span style="font-family:monospace"><br><br></span><span style="color:rgb(0,0,0);font-family:monospace"><b><i>/sbin/vfio-pci-override-vga.sh</i></b><br></span><span style="font-family:monospace"><br>    </span><span style="font-family:monospace"><span style="color:rgb(0,0,0)">#!/bin/sh
</span><br>
    <br>    for i in $(find /sys/devices/pci* -name boot_vga); do
<br>            if [ $(cat $i) -eq 0 ]; then
<br>                    GPU=$(dirname $i)
<br>                    AUDIO=$(echo $GPU | sed -e "s/0$/1/")
<br>                   echo "vfio-pci" > $GPU/driver_override
<br>                    if [ -d $AUDIO ]; then
<br>                            echo "vfio-pci" > $AUDIO/driver_override
<br>                    fi
<br>            fi
<br>    done
<br>
    <br>    modprobe -i vfio-pci<br><br></span>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <span style="font-family:monospace"><br>
<br></span>Add the following to <i><font face="monospace, monospace"><b>/etc/mkinitcpio.</b></font><b style="font-family:monospace,monospace">conf</b></i><font face="arial, helvetica, sans-serif"> and then run </font><b style="font-family:monospace,monospace"><i>mkinitcpio -p linux</i></b><font face="monospace, monospace"><b><br></b></font><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><br>    </span></span><span style="font-family:monospace"><span style="color:rgb(0,0,0)">BINARIES="/usr/bin/find /usr/bin/dirname"</span><br></span><span style="color:rgb(0,0,0)"><font face="monospace">    FILES="/sbin/vfio-pci-override-vga.sh"</font><br><br></span>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <br><br><font face="arial, helvetica, sans-serif"><b>Tested Hardware:</b><br><br>Motherboard: <a href="https://www.asus.com/us/Motherboards/SABERTOOTH_X99/" target="_blank">Asus Sabertooth X99</a><br></font>CPU<font face="arial, helvetica, sans-serif">: <span style="color:rgb(0,0,0)"><a href="http://ark.intel.com/products/82931/Intel-Core-i7-5930K-Processor-15M-Cache-up-to-3_70-GHz" target="_blank">Intel Core i7-5930K</a><br></span></font>GPU 1: <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16814125684" target="_blank">GIGABYTE GeForce GTX 970 4GB G1 Gaming OC Edition</a><br>GPU 2: <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16814125684" target="_blank">GIGABYTE GeForce GTX 970 4GB G1 Gaming OC Edition</a><br>RAM: <a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16820233709" target="_blank">32GB Corsair Dominator Platinum DDR4 <font face="arial, helvetica, sans-serif">(CMD16GX4M2A2666C15)</font></a><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 12, 2016 at 3:36 PM, Nicolas Roy-Renaud <span dir="ltr"><<a href="mailto:nicolas.roy-renaud.1@ens.etsmtl.ca" target="_blank">nicolas.roy-renaud.1@ens.etsmtl.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    I'm currently planning a full rewrite of <a href="https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF" target="_blank">the
      article on Arch wiki about PCI passthroughs</a> and, as per Arch
    wiki guidelines, I'm supposed get the approval of other users before
    undergoing such comlex edits. If anyone on this mailing list is an
    Arch wiki collaborator or frequent user, I would appreciate if you
    could <a href="https://wiki.archlinux.org/index.php/Talk:PCI_passthrough_via_OVMF#Page_rewrite" target="_blank">give
      me some feedback on the planned structure</a> and propose
    additional sections or potential user mistakes to highlight. My
    primary objective here is to make most of what's on Alex
    Williamson's blog more straightforward and concise.<br>
    <br>
    I've already rewritten the first two sections ("Prerequisites" and
    "Setting up IOMMU"), and the rest of the article should essentially
    follow the same basic structure and style. Replies here or on the
    wiki's discussion page would be much appreciated.<span><font color="#888888"><br>
    <br>
    -Nicolas<br>
  </font></span></div>

<br>_______________________________________________<br>
vfio-users mailing list<br>
<a href="mailto:vfio-users@redhat.com" target="_blank">vfio-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/vfio-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/vfio-users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
<br></div></div>
</blockquote></div><br></div>
<br><!--end of _originalContent --></div></body></html>