Hi,the libvirt version is 0.8.3, I just used  "apt-get install libvirt-bin" to install it under debian6.0.1a.<br>Is it  necessary to install 0.8.4 or higher version ?<br><br>Best regards,<br>qinguan<br><br><br><div class="gmail_quote">
在 2011年5月3日 下午4:28,Osier Yang <span dir="ltr"><<a href="mailto:jyang@redhat.com">jyang@redhat.com</a>></span>写道:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
于 2011年05月03日 15:38, guan qin 写道:<br>
<div class="im">> Thanks a lot for your reply sincerely!<br>
> Actually ,if I do as what<br>
> <a href="http://www.linux-kvm.org/page/How_to_assign_devices_with_VT-d_in_KVM" target="_blank">http://www.linux-kvm.org/page/How_to_assign_devices_with_VT-d_in_KVM</a> said,:<br>
> "<br>
> # echo "8086 10b9" > /sys/bus/pci/drivers/pci-stub/new_id<br>
> # echo 0000:01:00.0 > /sys/bus/pci/devices/0000:01:00.0/driver/unbind<br>
> # echo 0000:01:00.0 > /sys/bus/pci/drivers/pci-stub/bind<br>
> "<br>
> Then I can assign a NIC to the VM ,and the VM also can use the NIC to<br>
> access the network.<br>
> But , according the libvirt guide that<br>
> <a href="http://libvirt.org/formatdomain.html#elementsUSB" target="_blank">http://libvirt.org/formatdomain.html#elementsUSB</a> shows:<br>
> "<br>
> When |managed| is "yes" for a PCI device, it is detached from the host<br>
> before being passed on to the guest.<br>
> "<br>
> So should I still "unbind " the device from the host OS driver first ?<br>
> If that ,What's the "detached" meaning ? thanks.<br>
> best regards,<br>
> qinguan<br>
<br>
</div>libvirt trys to detach the PCI device from host as preparation when<br>
starting up the domain, and it also binds the device to pci_stub<br>
driver, so it's strange that you need to do it manually? what's<br>
your libvirt version?<br>
<div class="im"><br>
> 在 2011年5月3日 上午8:47,David White <<a href="mailto:dwhite@speakeasy.net">dwhite@speakeasy.net</a><br>
</div>> <mailto:<a href="mailto:dwhite@speakeasy.net">dwhite@speakeasy.net</a>>>写道:<br>
<div><div></div><div class="h5">><br>
><br>
>     did you 'unbind' the device from the host OS driver?<br>
><br>
><br>
>     On 05/01/2011 01:38 AM, guan qin wrote:<br>
>>     Hi,<br>
>><br>
>>     I encounter a problem that the eth can't be up in the VM by using<br>
>>     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<br>
>>     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、<br>
>>     cmdline...)<br>
>><br>
>>     I can't figure out the reason why the eth is still down? can<br>
>>     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>
>><br>
>>     _______________________________________________<br>
>>     libvirt-users mailing list<br>
</div></div>>>     <a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a>  <mailto:<a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a>><br>
<div><div></div><div class="h5">>>     <a href="https://www.redhat.com/mailman/listinfo/libvirt-users" target="_blank">https://www.redhat.com/mailman/listinfo/libvirt-users</a><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> libvirt-users mailing list<br>
> <a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/libvirt-users" target="_blank">https://www.redhat.com/mailman/listinfo/libvirt-users</a><br>
<br>
</div></div></blockquote></div><br>