Skip to content

Commit

Permalink
Added EEH test cases for PCI PT NIC devices
Browse files Browse the repository at this point in the history
Added 2 test cases
1. Inject EEH from host console for pci pt device
2. Inject EEH from guest console for pci pt device

Signed-off-by: Tasmiya Nalatwad <[email protected]>
  • Loading branch information
TasmiyaNalatwad committed Jan 23, 2025
1 parent 3808cba commit aaefcda
Show file tree
Hide file tree
Showing 2 changed files with 432 additions and 0 deletions.
51 changes: 51 additions & 0 deletions libvirt/tests/cfg/passthrough/pci/libvirt_pci_passthrough_eeh.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
- libvirt_pci_passthrough_eeh:
virt_test_type = libvirt
provider = io-github-autotest-libvirt
type = libvirt_pci_passthrough_eeh
iteration_val = 2
no s390-virtio
variants:
- Normal_passthrough:
libvirt_pci_SRIOV = no
# Removing SRIOV as of now, as curently we don't test this
#- SRIOV:
# libvirt_pci_SRIOV = yes
# vf_filter = "Virtual Function"
# Enter the no.of Virtual Function's to be cr
# for each Physical Function.
# number_vfs = 4
variants:
- PCI_NIC:
libvirt_pci_device_type = "NIC"
# Please enter the PCI device label for
# a network device. We will attach this
# device to guest. Then this network device
# will be unavailable on host.
# E.g: 0000:05:00.0
libvirt_pci_net_dev_label = "ENTER.YOUR.PCI.LABEL"
libvirt_pci_net_dev_name = "ENTER.YOUR.DEVICE.NAME"
# Please enter the ip what is used by the device
# you are going to attach to guest.
libvirt_pci_net_ip = "ENTER.YOUR.IP"
# Please enter a available ip from the net device.
# We need to ping it after attaching pci device
# to guest to verify this device works well in guest.
libvirt_pci_server_ip = "ENTER.YOUR.SERVER.IP"
# Enter netmask in CIDR notation
libvirt_pci_net_mask = "ENTER.YOUR.NETMASK"
# enter timeout value
timeout = "ENTER.YOUR.TIMEOUT"
model = "ENTER.YOUR.DEVICE.MODEL"
index = "1"
- PCI_STORAGE:
libvirt_pci_device_type = "STORAGE"
# Please enter the PCI device label for
# a storage device. We will attach this
# device to guest.
# E.g: pci_0000_0d_00_0
libvirt_pci_storage_dev_label = "ENTER.YOUR.PCI.LABEL"
variants:
- passthrough_eeh_guest:
eeh_guest = "yes"
- passthrough_suspend_host:
eeh_host = "yes"
Loading

0 comments on commit aaefcda

Please sign in to comment.