Skip to content

Commit

Permalink
Merge pull request autotest#5607 from Yingshun/fix_nodedev
Browse files Browse the repository at this point in the history
virtual_disks: Fix vhostvdpa_disk nodedev xml issue
  • Loading branch information
chloerh authored May 10, 2024
2 parents 1942de4 + a973d4e commit f6d8de9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def check_nodedev_xml(dev_name):
test.log.info(f"TEST_STEP: Check xml for node device - {dev_name}.")
nodexml = nodedev_xml.NodedevXML.new_from_dumpxml(dev_name)
nodedev_attrs = nodexml.fetch_attrs()
nodedev_attrs.update({"cap": {"chardev": nodexml.cap.get_chardev()}})
idx = nodedev_attrs["path"][-1]
exp_attrs = {"driver_name": "vhost_vdpa", "cap_type": "vdpa",
"cap": {"chardev": f"/dev/vhost-vdpa-{idx}"}}
Expand Down

0 comments on commit f6d8de9

Please sign in to comment.