From Fedora Project Wiki
(ad sort key) |
(flesh out the test case) |
||
Line 1: | Line 1: | ||
{{QA/Test_Case | {{QA/Test_Case | ||
|description= | |description=This case verifies that a PCI device can be assigned to a KVM guest and used successfully in the guest. | ||
|actions= | |actions= | ||
* Edit an existing guest's configuration using <code>virsh edit</code> | |||
* In the <code>devices</code> section add a <code>hostdev</code> element describing the device using its PCI address | |||
<pre> | |||
<hostdev mode='subsystem' type='pci' managed='yes'> | |||
<source> | |||
<address bus='0x00' slot='0x19' function='0x00'/> | |||
</source> | |||
</hostdev> | |||
</pre> | |||
* Start the guest using <code>virsh start</code> | |||
* Try using the device in the guest - e.g. if it is a NIC, bring it up and ping a remote host | |||
* Shut down the guest | |||
* Check that the device can be used in the host again | |||
|results= | |results= | ||
* The guest should start without any errors | |||
* The device should be usable within the guest | |||
* When the guest has been shut down, the device should be usable in the host | |||
}} | }} | ||
[[Category:Virtualization KVM PCI Device Assignment Test Cases|libvirt]] | [[Category:Virtualization KVM PCI Device Assignment Test Cases|libvirt]] |
Revision as of 20:26, 5 May 2009
Description
This case verifies that a PCI device can be assigned to a KVM guest and used successfully in the guest.
How to test
- Edit an existing guest's configuration using
virsh edit
- In the
devices
section add ahostdev
element describing the device using its PCI address
<hostdev mode='subsystem' type='pci' managed='yes'> <source> <address bus='0x00' slot='0x19' function='0x00'/> </source> </hostdev>
- Start the guest using
virsh start
- Try using the device in the guest - e.g. if it is a NIC, bring it up and ping a remote host
- Shut down the guest
- Check that the device can be used in the host again
Expected Results
- The guest should start without any errors
- The device should be usable within the guest
- When the guest has been shut down, the device should be usable in the host