<div>Thanks a lot for your reply sincerely!</div>
<div> </div>
<div>Actually ,if I do as what <a href="http://www.linux-kvm.org/page/How_to_assign_devices_with_VT-d_in_KVM">http://www.linux-kvm.org/page/How_to_assign_devices_with_VT-d_in_KVM</a> said,:</div>
<div>"</div>
<div>
<li>echo "8086 10b9" > /sys/bus/pci/drivers/pci-stub/new_id 
<li>echo 0000:01:00.0 > /sys/bus/pci/devices/0000:01:00.0/driver/unbind 
<li>echo 0000:01:00.0 > /sys/bus/pci/drivers/pci-stub/bind</li></li></li></div>
<div>"</div>
<div>Then I can assign a NIC to the VM ,and the VM also can use the NIC to access the network.</div>
<div> </div>
<div>
<div>But , according  the libvirt guide that <a href="http://libvirt.org/formatdomain.html#elementsUSB">http://libvirt.org/formatdomain.html#elementsUSB</a> shows:</div>
<div>"</div>
<div>When <code>managed</code> is "yes" for a PCI device, it is detached from the host before being passed on to the guest.</div>
<div>"<br>So should I still "unbind " the device from the host OS driver first ? If that ,What's the "detached" meaning ? thanks.</div>
<div> </div>
<div> </div></div>
<div>best regards,</div>
<div>qinguan</div>
<div> </div>
<div class="gmail_quote">在 2011年5月3日 上午8:47,David White <span dir="ltr"><<a href="mailto:dwhite@speakeasy.net">dwhite@speakeasy.net</a>></span>写道:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div text="#000000" bgcolor="#ffffff"><br>did you 'unbind' the device from the host OS driver? 
<div>
<div></div>
<div class="h5"><br><br>On 05/01/2011 01:38 AM, guan qin wrote: </div></div>
<blockquote type="cite">
<div>
<div></div>
<div class="h5">Hi,<br><br>I encounter a problem that the eth can't be up in the VM by using VT-d.<br>I boot the VM using "virsh create vt_d.xml".<br>The VM could recongize the NIC which was assigned .then I do in VM as follows:<br>
#cat /sys/class/net/eth0/operstate<br>down<br>#ifconfig eth0 up<br>#cat /sys/class/net/eth0/operstate<br>down<br>#ficonfig eth 10.100.0.5<br>#cat /sys/class/net/eth0/operstate<br>down<br>more system information is attached.(uname 、ifconfig 、lspci、cmdline...)<br>
<br>I can't figure out the reason why the eth is still down? can anyone help me ?<br><br>best regards,<br>qinguan<br><br><br><br>vt_d.xml:<br><domain type='kvm'><br>    <name>test</name><br>    <description>just test using sriov!</description><br>
    <os><br>        <type>hvm</type><br>        <boot dev='hd'/><br>    </os><br>    <memory>524288</memory><br>    <currentMemory>524288</currentMemory><br>    <on_poweroff>destroy</on_poweroff><br>
    <on_reboot>restart</on_reboot><br>    <on_crash>restart</on_crash><br>  <br>    <features><pae/><acpi/><apic/></features><br>    <clock offset='utc'/><br>
    <devices><br>        <input type='mouse' bus='usb'/>      <br>        <disk type='file' device='disk'><br>            <source file='/home/qinguan/exp/ubuntu_1.img'/><br>
            <target dev='hda' bus='virtio'/><br>        </disk>    <br>        <emulator>/usr/bin/kvm</emulator><br>        <graphics type='vnc' port='-1'/>      <br>
        <hostdev mode='subsystem' type='pci' managed='yes'><br>            <source><br>                <address bus='0x0' slot='0x19' function='0x0'/><br>            </source><br>
        </hostdev>     <br>    </devices><br></domain><br><br></div></div><pre><fieldset></fieldset>
_______________________________________________
libvirt-users mailing list
<a href="mailto:libvirt-users@redhat.com" target="_blank">libvirt-users@redhat.com</a>
<a href="https://www.redhat.com/mailman/listinfo/libvirt-users" target="_blank">https://www.redhat.com/mailman/listinfo/libvirt-users</a></pre></blockquote><br></div></blockquote></div><br>