Skip to content

Commit

Permalink
SRIOV: fix "Login timeout expired" because of 256 vcpus
Browse files Browse the repository at this point in the history
The numbers of guest vcpu is better little than the host vcpus' number.
But we don't have this host to match 256 cpus. So after discussing we
decided to use the same host cpus' number to test guest vcpus.

Signed-off-by: Meina Li <[email protected]>
  • Loading branch information
meinaLi committed Dec 24, 2024
1 parent b79fc7b commit 46ba0df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@
with_more_vcpus = "yes"
dma_translation = "off"
eim_dict = {'eim': 'on'}
guest_vcpus = 256
iommu_dict = {'model': 'intel', 'driver': {'intremap': 'on', 'caching_mode': 'on', 'iotlb': 'on', 'dma_translation': '${dma_translation}'}}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from avocado.utils import cpu
from virttest import virsh
from virttest.libvirt_xml import vm_xml

Expand All @@ -23,6 +24,7 @@ def run(test, params, env):
test_obj.setup_iommu_test(iommu_dict=iommu_dict)
if with_more_vcpus:
vmxml = vm_xml.VMXML.new_from_dumpxml(vm_name)
guest_vcpus = cpu.online_count()
vmxml.vcpu = int(guest_vcpus)
vmxml.sync()
test.log.info("TEST STEP2: Start the guest.")
Expand Down

0 comments on commit 46ba0df

Please sign in to comment.