From Fedora Project Wiki

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 5: Line 5:
Known bugs include:
Known bugs include:


* [[rhbug:499259|499259]] - svirt denials breaks KVM PCI device assignment
* [https://bugzilla.redhat.com/499259 svirt denials breaks KVM PCI device assignment]
* [[rhbug:499708|499708]] - SELinux blocks libvirtd sysfs writes for virNodeDeviceDettach()/Reattach()/Reset()
: Until this is fixed, all but the nodedev ops test case requires you to run SELinux in permissive mode
: Until this is fixed, all but the nodedev ops test case requires you to run SELinux in permissive mode
* [[rhbug:499352|499352]] - Re-enable CONFIG_DMAR_DEFAULT_ON
* [https://bugzilla.redhat.com/499352 Re-enable CONFIG_DMAR_DEFAULT_ON]
: You will need to boot the host with intel_iommu=on until this is fixed
: You will need to boot the host with intel_iommu=on until this is fixed
* [[rhbug:499267|499267]] - Assigning a PCI device using virt-manager/virt-install fails
* [https://bugzilla.redhat.com/499267 Assigning a PCI device using virt-manager/virt-install fails]
: Fixed in [http://koji.fedoraproject.org/koji/buildinfo?buildID=101049 python-virtinst-0.400.3-8.fc11]
: There is no workaround for this; this affects the virt-manager and virt-install test cases
* [[rhbug:499386|499386]] - libvirt's qemu driver interprets the <hostdev> "managed" attribute incorrectly
: Fixed in [http://koji.fedoraproject.org/koji/buildinfo?buildID=101058 libvirt-0.6.2-6.fc11]
* [[rhbug:499561|499561]] - libvirt does not automatically re-attach an assigned device in the host after guest shutdown
: Workaround is to run <code>virsh nodedev-reattach</code> after the guest has shut down
* [[rhbug:499637|499637]] - IOMMU: no free domain ids
: This may happen after a lot of testing; workaround is to reboot the host
* [[rhbug:499678|499678]] - libvirt should be able to reset a PCI function even if it causes other unused devices/functions to be reset
: multi-function PCI devices without Function Level Reset (FLR) can't currently be used; more code to handle this case is required in libvirt


== Prerequisites ==
== Prerequisites ==


In order to test KVM PCI device assignment, you need:
In order to test KVM PCI device assignment, you need a host machine which has Intel VT-d or AMD IOMMU support.
 
# a host machine which has Intel VT-d or AMD IOMMU support
# the host booted with <code>intel_iommu=on</code> in order to enable VT-d support
# The <code>virt_manage_sysfs</code> selinux boolean enabled - <code>setsebool virt_manage_sysfs on</code>
# At least [https://koji.fedoraproject.org/koji/buildinfo?buildID=101058 libvirt-0.6.2-6.fc11] and [https://koji.fedoraproject.org/koji/buildinfo?buildID=101049 python-virtinst-0.400.3-8.fc11] installed


Please [http://smolts.org/smolt-wiki/Main_Page#Usage upload your smolt profile] using <code>smoltSendProfile</code> and add its URL to the table below.
Please [http://smolts.org/smolt-wiki/Main_Page#Usage upload your smolt profile] using <code>smoltSendProfile</code> and add its URL to the table below.
Line 36: Line 22:
== Tests ==
== Tests ==


The first thing you need to do is choose which PCI device on your KVM host that you will use for testing. Probably the most obvious to test with is a NIC. You'll need the device's nodedev name, and you can find this with
The first thing you need to do is choose which PCI device on your KVM host that you will use for testing. Probably the most obvious to test with is a NIC. You'll need the device's nodedev name, and you can find this with e.g.


<pre>
<pre>
   $> virsh nodedev-list --tree
   $> for iii in $(virsh nodedev-list --cap net); do virsh nodedev-dumpxml $iii | grep parent; done
   computer
   <parent>pci_8086_10bd</parent>
    |
   <parent>computer</parent>
    ...
    +-pci_8086_10bd
    |   |
    |  +-net_00_13_20_f5_f9_5a
    ...
   $> virsh nodedev-dumpxml pci_8086_10bd
   $> virsh nodedev-dumpxml pci_8086_10bd
   <device>
   <device>
Line 89: Line 70:
| [http://www.smolts.org/client/show/pub_0f98ce1f-983e-4825-b8d7-7f366f49fca4 smolt]
| [http://www.smolts.org/client/show/pub_0f98ce1f-983e-4825-b8d7-7f366f49fca4 smolt]
| [http://fpaste.org/paste/11088 lspci]
| [http://fpaste.org/paste/11088 lspci]
| style="background-color: green;" |PASS
| style="background-color: green;" |PASS
| style="background-color: green;" |PASS
| style="background-color: green;" |PASS
| Perfect score! Apart from the known bugs listed above, of course :-)
|-
|-
| [[User:charlesrose|Charles Rose]]
|  
|  
|  
|  
| FAIL
|  
|  
|  
|  
|  
|  
| reset of multi-function device fails. [[rhbug:499678|499678]]
|-
|-
| [[User:smerkx|Stanley Merkx]]
| [http://www.smolts.org/client/show/pub_612115f0-8a1b-4e6c-a6d9-04d53a963620 smolt]
| [http://fpaste.org/paste/12819 lspci]
| style="background-color: green;" |PASS
| style="background-color: red;" |FAIL
|
|
| Assignment of the device fails. [[rhbug:499259|499259]]
|-
|-
|}
|}
[[Category:Fedora 11 Test Days]]
Please note that all contributions to Fedora Project Wiki are considered to be released under the Attribution-Share Alike 4.0 International (see Fedora Project Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please solve the following task below and enter the answer in the box (more info):

Cancel Editing help (opens in new window)