tp-qemu icon indicating copy to clipboard operation
tp-qemu copied to clipboard

vfio_net_boot: Basic test case to test host NIC passthrough

Open PaulYuuu opened this issue 1 year ago • 1 comments

provider: Add the hostdev module to set up host devices for testing.

  1. hostdev: PF/VF instance to manage host device
  2. hostdev.dev_setup: Wrapper to configure host devices, so test cases can use the decorator to set up the environment
  3. hostdev.utils: Utilities during the hostdev test life cycle

vfio_net_boot: Basic test case to test host NIC passthrough

  • This set of test cases is to test host NIC passthrough in to the guest. Passthrough some NICs to vm, and then login via ssh, then ping external IP address from guest.

ID: 1403 Signed-off-by: Yihuang Yu [email protected]

PaulYuuu avatar Aug 22 '23 05:08 PaulYuuu

Depends on:

  1. https://github.com/avocado-framework/avocado-vt/pull/3744
  2. https://github.com/avocado-framework/avocado-vt/pull/3761

PaulYuuu avatar Aug 22 '23 05:08 PaulYuuu

 (1/2) Host_RHEL.m9.u5.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.5.0.aarch64.page_4k.io-github-autotest-qemu.vfio_net_boot.ipv4.vf.one_nic.multi_vms.arm64-pci: STARTED
 (1/2) Host_RHEL.m9.u5.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.5.0.aarch64.page_4k.io-github-autotest-qemu.vfio_net_boot.ipv4.vf.one_nic.multi_vms.arm64-pci: PASS (228.49 s)
 (2/2) Host_RHEL.m9.u5.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.5.0.aarch64.page_64k.io-github-autotest-qemu.vfio_net_boot.ipv4.vf.one_nic.multi_vms.arm64-pci: STARTED
 (2/2) Host_RHEL.m9.u5.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.5.0.aarch64.page_64k.io-github-autotest-qemu.vfio_net_boot.ipv4.vf.one_nic.multi_vms.arm64-pci: PASS (235.85 s)

PaulYuuu avatar Jul 02 '24 01:07 PaulYuuu