)]}'
{".zuul.yaml":[{"author":{"_account_id":28006,"name":"teim-ci","display_name":"teim-ci","email":"ci@seanmooney.info","username":"ci-sean-mooney","status":"this is a third-party ci account run by sean-k-mooney on irc\nhosted at zuul.teim.app"},"tag":"autogenerated:zuul:automatic-ci","change_message_id":"ec77cafca7b798356cbf23f7e3172be6dfc4cdaa","unresolved":false,"context_lines":[{"line_number":86,"context_line":"        devstack_localrc:"},{"line_number":87,"context_line":"          PCI_SIM_CREATE_TEST_FLAVORS: false"},{"line_number":88,"context_line":"          ENABLE_PCI_SIM: true"},{"line_number":89,"context_line":"          PCI_SIM_ENABLE_MDEV: true"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"- job:"}],"source_content_type":"text/x-yaml","patch_set":36,"id":"d91f4a9c_167ec15d","line":89,"updated":"2026-10-30 15:21:22.000000000","message":"In cyborg-multinode-tempest, PCI_SIM_ENABLE_MDEV: true is set only under group-vars subnode, and that subnode disables tempest and sets PCI_SIM_CREATE_TEST_FLAVORS: false. The controller inherits cyborg-tempest-base vars, where tempest: true, ENABLE_PCI_SIM: true, and PCI_SIM_ENABLE_MDEV is unset (settings defaults it to False). The new devstack code writes the cyborg_mdev tempest.conf section and creates the mdev device profile/flavor only on a node where PCI_SIM_ENABLE_MDEV is True, but cyborg_configure_tempest and create_pci_sim_test_resources execute only on the controller (test-config phase). Consequently, in this job and its children (cyborg-tempest-py3, cyborg-tempest-srbac), no node ever writes the cyborg_mdev tempest group and no node ever creates the mdev device profile or flavor, even though the commit message states the job is updated to enable mdev in CI with those fixtures.\n\n**Severity**: WARNING | **Confidence**: 0.8\n\n**Impact**: The mdev tempest configuration and mdev fixtures added by this change are inert in the CI jobs it targets: the cyborg_mdev tempest group is never written and the mdev device profile/flavor are never created anywhere in the deployment. If cyborg-tempest-plugin gates mdev tests on the cyborg_mdev group (the same contract the established cyborg_pci group follows), mdev coverage stays skipped while the job configuration suggests it is enabled, hiding the coverage gap; if tests read the missing profile, they fail confusingly.\n\n**Suggestion**:\nSet PCI_SIM_ENABLE_MDEV: true in the job-level vars of cyborg-multinode-tempest (next to ENABLE_PCI_SIM: true from the base) so the node running tempest and create_pci_sim_test_resources also enables mdev, rather than only in group-vars.subnode. Keep subnode-only overrides limited to subnode-specific knobs such as PCI_SIM_CREATE_TEST_FLAVORS: false.","commit_id":"505022159a420676573f728e472535b6fe5aa303"},{"author":{"_account_id":28006,"name":"teim-ci","display_name":"teim-ci","email":"ci@seanmooney.info","username":"ci-sean-mooney","status":"this is a third-party ci account run by sean-k-mooney on irc\nhosted at zuul.teim.app"},"tag":"autogenerated:zuul:automatic-ci","change_message_id":"8af9abfff827e51c4359899095989cd2af7c5744","unresolved":false,"context_lines":[{"line_number":86,"context_line":"        devstack_localrc:"},{"line_number":87,"context_line":"          PCI_SIM_CREATE_TEST_FLAVORS: false"},{"line_number":88,"context_line":"          ENABLE_PCI_SIM: true"},{"line_number":89,"context_line":"          PCI_SIM_ENABLE_MDEV: true"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"- job:"}],"source_content_type":"text/x-yaml","patch_set":37,"id":"b4dec8f6_b0151cc9","line":89,"updated":"2026-11-23 18:59:22.000000000","message":"The change wires mdev into cyborg-multinode-tempest by setting PCI_SIM_ENABLE_MDEV only in the subnode group-vars, but the node that runs tempest and test-config is the primary, where the variable keeps its False default. On the primary, cyborg_configure_tempest skips the [cyborg_mdev] section and create_pci_sim_test_resources skips the mdev device profile and flavor. On the subnode, tempest is disabled and PCI_SIM_CREATE_TEST_FLAVORS is false, so no code path creates them there either. The agent-side plumbing (module load, per-PF personalities, [mdev] device_spec) is exercised on the subnode, but the fixture and tempest-config code this change adds is unreachable in the CI job it modifies, and nothing validates the mdev resource path end to end.\n\n**Severity**: WARNING | **Confidence**: 0.8\n\n**Impact**: A regression in the new mdev wiring (for example a wrong mdev type name in the generated device_spec or a wrong resource class string in the device profile) would pass the cyborg-tempest-py3 job undetected; roughly 60 lines of fixture code added by this change are dead in CI and the stated goal of exercising mdev in CI is only partially met.\n\n**Suggestion**:\nEnable the mdev path on the node that runs tempest as well, for example by setting PCI_SIM_ENABLE_MDEV in the job-level devstack_localrc (not only the subnode group-vars) so the mdev device profile, flavor, and [cyborg_mdev] tempest section are created on the primary; or, if tempest-plugin mdev coverage is planned as a follow-up, say so in the commit message so the current wiring is understood as agent-side only.","commit_id":"0d85b2e868b0e234bb04086f3de66f1fb52f8b59"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"19452dbf370f16a48222d700dc5b0970786ad625","unresolved":true,"context_lines":[{"line_number":26,"context_line":"        c-vol: false"},{"line_number":27,"context_line":"        cinder: false"},{"line_number":28,"context_line":"      devstack_localrc:"},{"line_number":29,"context_line":"        PCI_SIM_SERVICE_MAP: \u00270:uart:nova,1:uart:cyborg\u0027"},{"line_number":30,"context_line":"      tempest_plugins:"},{"line_number":31,"context_line":"        - cyborg-tempest-plugin"},{"line_number":32,"context_line":"      tempest_test_regex: cyborg_tempest_plugin"}],"source_content_type":"text/x-yaml","patch_set":40,"id":"7e681a09_3cd94fdc","line":29,"updated":"2026-11-25 11:31:01.000000000","message":"i assume its either intentilly that the mdev is not enabled here or that it will be adjusted in the next patch wehn we enbale the actull tests that use it","commit_id":"a8eb25575a7d7658e3fedf52db59647c328dcdf0"}],"/COMMIT_MSG":[{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"83e057c5f93cc81d2aaeb5ad24760376733b2a8a","unresolved":true,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Enable mediated device (mdev) configuration alongside the"},{"line_number":10,"context_line":"existing SR-IOV VF path. Users control the mode via DevStack"},{"line_number":11,"context_line":"variables: SR-IOV only, mdev only (NUM_VFS\u003d0), or both."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"When PCI_SIM_ENABLE_MDEV\u003dTrue the plugin builds a per-PF"},{"line_number":14,"context_line":"personalities list using round-robin assignment from enabled"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":38,"id":"88ca2341_c0e97551","line":11,"range":{"start_line":11,"start_character":24,"end_line":11,"end_character":45},"updated":"2026-11-24 14:03:22.000000000","message":"the medevs are emulated withthe VFs as the parent so dies case does not make sense","commit_id":"e9fdbf8801eb69d2b07a99ddb7fc4d7002267ee5"},{"author":{"_account_id":34452,"name":"Joan Gilabert","display_name":"jgilaber","email":"jgilaber@redhat.com","username":"jgilaber"},"change_message_id":"8441096030070bd0e56bb9677fd761626d503076","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Enable mediated device (mdev) configuration alongside the"},{"line_number":10,"context_line":"existing SR-IOV VF path. Users control the mode via DevStack"},{"line_number":11,"context_line":"variables: SR-IOV only, mdev only (NUM_VFS\u003d0), or both."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"When PCI_SIM_ENABLE_MDEV\u003dTrue the plugin builds a per-PF"},{"line_number":14,"context_line":"personalities list using round-robin assignment from enabled"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":38,"id":"1cc0376c_71ae7c52","line":11,"range":{"start_line":11,"start_character":24,"end_line":11,"end_character":45},"in_reply_to":"88ca2341_c0e97551","updated":"2026-11-25 08:31:32.000000000","message":"Done","commit_id":"e9fdbf8801eb69d2b07a99ddb7fc4d7002267ee5"}],"devstack/lib/cyborg":[{"author":{"_account_id":28006,"name":"teim-ci","display_name":"teim-ci","email":"ci@seanmooney.info","username":"ci-sean-mooney","status":"this is a third-party ci account run by sean-k-mooney on irc\nhosted at zuul.teim.app"},"tag":"autogenerated:zuul:automatic-ci","change_message_id":"d51be4dc770a452b95039e9be3f88b430d24fbdd","unresolved":false,"context_lines":[{"line_number":238,"context_line":"        iniset $TEMPEST_CONFIG cyborg_pci product_id 0003"},{"line_number":239,"context_line":"    fi"},{"line_number":240,"context_line":""},{"line_number":241,"context_line":"    if pci_sim_has_assignment mdev:cyborg; then"},{"line_number":242,"context_line":"        iniset $TEMPEST_CONFIG cyborg_mdev device_profile_name $PCI_SIM_CYBORG_MDEV_DEVICE_PROFILE_NAME"},{"line_number":243,"context_line":"        iniset $TEMPEST_CONFIG cyborg_mdev mdev_type $PCI_SIM_MDEV_TYPE"},{"line_number":244,"context_line":"        iniset $TEMPEST_CONFIG cyborg_mdev vendor_id 1d55"}],"source_content_type":"application/octet-stream","patch_set":39,"id":"8d70c197_566cc63b","line":241,"updated":"2026-11-25 08:51:54.000000000","message":"The mdev-facing test wiring added by this change is gated on the node-local PCI_SIM_SERVICE_MAP, but in cyborg-multinode-tempest the mdev PF exists only on the compute subnode while everything that consumes mdev on the test side is produced on the controller. cyborg_configure_tempest runs only where the tempest service is enabled (the controller, since the subnode group-vars set tempest: false) and writes [cyborg_mdev] only if pci_sim_has_assignment mdev:cyborg, which is derived from that node\u0027s own map. Likewise create_pci_sim_cyborg_mdev_device_profile/_flavor are gated on the same node-local check: the controller has no mdev assignment and the subnode sets PCI_SIM_CREATE_TEST_FLAVORS: false. So as configured, neither the [cyborg_mdev] Tempest config nor the mdev device profile/flavor is ever produced, and the subnode mdev enablement this commit adds is not consumable by the job it was added for.\n\n**Severity**: WARNING | **Confidence**: 0.83\n\n**Impact**: In cyborg-tempest-py3 and cyborg-tempest-srbac (both inherit cyborg-multinode-tempest), tempest.conf has no [cyborg_mdev] section and no mdev device profile/flavor exists in the cloud, so the mdev resource class (CUSTOM_MDEV_FAKE_PCI_SRIOV_PF_SIM_ACCEL_SMALL) reported by the subnode agent cannot be requested through a device profile. The stated goal of exercising the generic mdev driver from the multinode Tempest job is not achieved; nothing in the DevStack run fails loudly (whether the external cyborg-tempest-plugin then skips or fails cannot be verified from this repository).\n\n**Suggestion**:\nMake the mdev test wiring node-independent. Either move the mdev PF into the multinode job\u0027s job-level vars so both nodes share map \u00270:uart:nova,1:uart:cyborg,2:mdev:cyborg\u0027 (the controller also runs cyborg-agent), or keep the per-node map but gate cyborg_configure_tempest\u0027s [cyborg_mdev] block and the mdev device profile/flavor creation on an explicit setting (e.g. a PCI_SIM_CONFIGURE_MDEV flag or PCI_SIM_MDEV_TYPE being set) rather than on the tempest node\u0027s local PCI_SIM_PF_ASSIGNMENTS.","commit_id":"6c5ed787505cf9aa13d54e1c204365e366458dc1"},{"author":{"_account_id":34452,"name":"Joan Gilabert","display_name":"jgilaber","email":"jgilaber@redhat.com","username":"jgilaber"},"change_message_id":"815f69b2e035eafe20ad530c36db6a5ef42a09e4","unresolved":false,"context_lines":[{"line_number":238,"context_line":"        iniset $TEMPEST_CONFIG cyborg_pci product_id 0003"},{"line_number":239,"context_line":"    fi"},{"line_number":240,"context_line":""},{"line_number":241,"context_line":"    if pci_sim_has_assignment mdev:cyborg; then"},{"line_number":242,"context_line":"        iniset $TEMPEST_CONFIG cyborg_mdev device_profile_name $PCI_SIM_CYBORG_MDEV_DEVICE_PROFILE_NAME"},{"line_number":243,"context_line":"        iniset $TEMPEST_CONFIG cyborg_mdev mdev_type $PCI_SIM_MDEV_TYPE"},{"line_number":244,"context_line":"        iniset $TEMPEST_CONFIG cyborg_mdev vendor_id 1d55"}],"source_content_type":"application/octet-stream","patch_set":39,"id":"c83c2b76_18b7c84c","line":241,"in_reply_to":"8d70c197_566cc63b","updated":"2026-11-25 09:56:44.000000000","message":"we enable mdevs in the following patch in the chain https://review.opendev.org/c/openstack/cyborg/+/997364 which also has a dependency on the tempest plugin patch that introduces the mdev test. We could configure the mdevs in pci-sim here, but we still need the tempest patch, so the tests would not run anyway","commit_id":"6c5ed787505cf9aa13d54e1c204365e366458dc1"},{"author":{"_account_id":28006,"name":"teim-ci","display_name":"teim-ci","email":"ci@seanmooney.info","username":"ci-sean-mooney","status":"this is a third-party ci account run by sean-k-mooney on irc\nhosted at zuul.teim.app"},"tag":"autogenerated:zuul:automatic-ci","change_message_id":"7fbd56e810bf99a2d4835e83d92ef56a7f1c2cc3","unresolved":false,"context_lines":[{"line_number":238,"context_line":"        iniset $TEMPEST_CONFIG cyborg_pci product_id 0003"},{"line_number":239,"context_line":"    fi"},{"line_number":240,"context_line":""},{"line_number":241,"context_line":"    if pci_sim_has_assignment mdev:cyborg; then"},{"line_number":242,"context_line":"        iniset $TEMPEST_CONFIG cyborg_mdev device_profile_name $PCI_SIM_CYBORG_MDEV_DEVICE_PROFILE_NAME"},{"line_number":243,"context_line":"        iniset $TEMPEST_CONFIG cyborg_mdev mdev_type $PCI_SIM_MDEV_TYPE"},{"line_number":244,"context_line":"        iniset $TEMPEST_CONFIG cyborg_mdev vendor_id 1d55"}],"source_content_type":"application/octet-stream","patch_set":40,"id":"d8672632_d6d58639","line":241,"updated":"2026-11-25 10:15:46.000000000","message":"The new mdev Tempest configuration and mdev device profile/flavor fixtures are gated on the node-local PCI_SIM_SERVICE_MAP, but in the only jobs where mdev is enabled (cyborg-tempest-py3 and cyborg-tempest-srbac via cyborg-multinode-tempest) the mdev PF exists only on the compute subnode, which runs neither Tempest nor fixture creation. The gates therefore never fire on the node where their consumers (tempest.conf, the Cyborg API) live, so the mdev Tempest/test-resource wiring added for CI is inert in the gate jobs.\n\n**Severity**: WARNING | **Confidence**: 0.8\n\n**Impact**: In the voting gate jobs the new cyborg_mdev section and mdev profile/flavor code paths never execute, so CI validates none of the mdev Tempest/test-resource behavior this change adds; mdev is only exercised at the agent level on the subnode (enabled_drivers mdev_driver plus [mdev] device_spec). If cyborg-tempest-plugin tests that read cyborg_mdev (mirroring cyborg_pci) are added or already exist, they will skip or fail in the gate job for lack of the section and fixtures, silently capping the mdev coverage this change is meant to enable. This is a CI coverage limitation, not a functional break of the plugin itself.\n\n**Suggestion**:\nMake the mdev enablement visible to the node that runs Tempest: either also assign an mdev PF on the controller (base vars map, e.g. \u00270:uart:nova,1:uart:cyborg,2:mdev:cyborg\u0027) so cyborg_configure_tempest writes cyborg_mdev and test-config creates the mdev profile/flavor, or gate the cyborg_mdev section and the mdev fixtures on an explicit deployment-wide opt-in (for example PCI_SIM_MDEV_TESTS) instead of the node-local service map. Either way, verify the scenario in the gate log afterward: the cyborg_mdev section present in tempest.conf and both \u0027openstack accelerator device profile show pci-sim-cyborg-mdev-dp\u0027 and \u0027openstack flavor show pci-sim-cyborg-mdev\u0027 succeeding, since the bash libs have no unit-test harness and gate execution is the only assertion.","commit_id":"a8eb25575a7d7658e3fedf52db59647c328dcdf0"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"19452dbf370f16a48222d700dc5b0970786ad625","unresolved":false,"context_lines":[{"line_number":238,"context_line":"        iniset $TEMPEST_CONFIG cyborg_pci product_id 0003"},{"line_number":239,"context_line":"    fi"},{"line_number":240,"context_line":""},{"line_number":241,"context_line":"    if pci_sim_has_assignment mdev:cyborg; then"},{"line_number":242,"context_line":"        iniset $TEMPEST_CONFIG cyborg_mdev device_profile_name $PCI_SIM_CYBORG_MDEV_DEVICE_PROFILE_NAME"},{"line_number":243,"context_line":"        iniset $TEMPEST_CONFIG cyborg_mdev mdev_type $PCI_SIM_MDEV_TYPE"},{"line_number":244,"context_line":"        iniset $TEMPEST_CONFIG cyborg_mdev vendor_id 1d55"}],"source_content_type":"application/octet-stream","patch_set":40,"id":"224896ed_26289371","line":241,"in_reply_to":"d8672632_d6d58639","updated":"2026-11-25 11:31:01.000000000","message":"that is fine its activbated in the next patch since they tests dont exist in master yet","commit_id":"a8eb25575a7d7658e3fedf52db59647c328dcdf0"}],"devstack/lib/pci_sim":[{"author":{"_account_id":28006,"name":"teim-ci","display_name":"teim-ci","email":"ci@seanmooney.info","username":"ci-sean-mooney","status":"this is a third-party ci account run by sean-k-mooney on irc\nhosted at zuul.teim.app"},"tag":"autogenerated:zuul:automatic-ci","change_message_id":"c5cd98e639d7ab9a150de497bf548552d910a1c1","unresolved":false,"context_lines":[{"line_number":525,"context_line":""},{"line_number":526,"context_line":"    [[ \"$PCI_SIM_CONFIGURE_CYBORG_MDEV\" \u003d\u003d True ]] || return 0"},{"line_number":527,"context_line":""},{"line_number":528,"context_line":"    groups\u003d\u0027[{\"resources:CUSTOM_MDEV_FAKE_PCI_SRIOV_PF_SIM_ACCEL_SMALL\":\"1\"}]\u0027"},{"line_number":529,"context_line":"    if ! openstack accelerator device profile list -f value -c name | \\"},{"line_number":530,"context_line":"        grep -qx \"$PCI_SIM_CYBORG_MDEV_DEVICE_PROFILE_NAME\"; then"},{"line_number":531,"context_line":"        openstack accelerator device profile create \\"}],"source_content_type":"application/octet-stream","patch_set":13,"id":"c89fe10d_dc2ad1d1","line":528,"updated":"2026-07-23 17:48:04.000000000","message":"The create_pci_sim_cyborg_mdev_device_profile function hardcodes the resource class CUSTOM_MDEV_FAKE_PCI_SRIOV_PF_SIM_ACCEL_SMALL, while the rest of the mdev configuration (device_spec entries, PCI_SIM_MDEV_TYPE) is driven by the configurable PCI_SIM_MDEV_TYPE variable. If a user changes PCI_SIM_...\n\n**Severity**: SUGGESTION | **Confidence**: 0.8\n\n**Benefit**: If PCI_SIM_MDEV_TYPE is changed to a non-default value, the device profile will reference a Placement resource class that the mdev driver never creates. Flavors using this profile will fail to schedule because no inventory matches the requested resource class.\n\n**Recommendation**:\nDerive the resource class from PCI_SIM_MDEV_TYPE at runtime, e.g.: local type_upper; type_upper\u003d$(echo \"$PCI_SIM_MDEV_TYPE\" | tr \u0027[:lower:]-\u0027 \u0027[:upper:]_\u0027); local rc\u003d\"CUSTOM_MDEV_${type_upper}\"; groups\u003d\"[{\\\"resources:${rc}\\\":\\\"1\\\"}]\"","commit_id":"c9898aab78a166bc6f63a8c744234341a5b59abb"},{"author":{"_account_id":28006,"name":"teim-ci","display_name":"teim-ci","email":"ci@seanmooney.info","username":"ci-sean-mooney","status":"this is a third-party ci account run by sean-k-mooney on irc\nhosted at zuul.teim.app"},"tag":"autogenerated:zuul:automatic-ci","change_message_id":"8d11f9de30e7bccab01ede0b9baf33703032af2c","unresolved":false,"context_lines":[{"line_number":399,"context_line":""},{"line_number":400,"context_line":"    mapfile -t pfs \u003c \u003c(pci_sim_find_devs \"$PCI_SIM_PF_DEVICE_ID\")"},{"line_number":401,"context_line":"    for pf in \"${pfs[@]}\"; do"},{"line_number":402,"context_line":"        if [[ $(pci_sim_pf_mode \"$index\") !\u003d sriov ]]; then"},{"line_number":403,"context_line":"            index\u003d$((index + 1))"},{"line_number":404,"context_line":"        fi"},{"line_number":405,"context_line":"        target\u003d$(pci_sim_pf_target \"$pci_index\")"}],"source_content_type":"application/octet-stream","patch_set":14,"id":"e4b43b02_fc572d60","line":402,"updated":"2026-07-24 06:50:17.000000000","message":"In pci_sim_collect_target_vfs, when a non-sriov PF is detected, the index variable is incremented inside the if block but there is no \u0027continue\u0027 statement, so it is also incremented at the bottom of the loop. This causes index to advance by 2 for each mdev PF, making subsequent pci_sim_pf_mode()...\n\n**Severity**: WARNING | **Confidence**: 0.9\n\n**Impact**: With 4+ PFs in mixed SR-IOV/mdev mode, sriov PFs after the first mdev PF are incorrectly treated as mdev and skipped, causing their VFs to be excluded from Nova/Cyborg configuration. The default 2-PF configuration is unaffected.\n\n**Suggestion**:\nAdd `continue` after `index\u003d$((index + 1))` inside the if block at line 403, matching the pattern in configure_pci_sim_vfs. Also move `pci_index\u003d$((pci_index + 1))` inside an else branch or guard it so it only increments for sriov PFs, matching the comment\u0027s intent.","commit_id":"c75f253365dfadf0bd488f9bc55b418a1ddf0c42"},{"author":{"_account_id":28006,"name":"teim-ci","display_name":"teim-ci","email":"ci@seanmooney.info","username":"ci-sean-mooney","status":"this is a third-party ci account run by sean-k-mooney on irc\nhosted at zuul.teim.app"},"tag":"autogenerated:zuul:automatic-ci","change_message_id":"8d11f9de30e7bccab01ede0b9baf33703032af2c","unresolved":false,"context_lines":[{"line_number":405,"context_line":"        target\u003d$(pci_sim_pf_target \"$pci_index\")"},{"line_number":406,"context_line":"        if [[ $target \u003d\u003d \"$wanted_target\" ]]; then"},{"line_number":407,"context_line":"            mapfile -t pf_vfs \u003c \u003c(pci_sim_find_vfs_for_pf \"$pf\")"},{"line_number":408,"context_line":"            printf \u0027%s \u0027 \"${pf_vfs[@]}\""},{"line_number":409,"context_line":"        fi"},{"line_number":410,"context_line":"        index\u003d$((index + 1))"},{"line_number":411,"context_line":"        pci_index\u003d$((pci_index + 1))"}],"source_content_type":"application/octet-stream","patch_set":14,"id":"d83c22ab_6500c89f","line":408,"updated":"2026-07-24 06:50:17.000000000","message":"The printf format was changed from \u0027%s\\n\u0027 to \u0027%s \u0027 in pci_sim_collect_target_vfs, but callers use mapfile -t (which splits on newlines). This causes all VF addresses to be captured as a single array element, producing malformed Nova and Cyborg PCI configuration entries.\n\n**Severity**: HIGH | **Confidence**: 0.9\n\n**Risk**: When PCI_SIM_ENABLE_MDEV\u003dTrue with NUM_VFS\u003e0 (the default mixed-mode config used in CI), Nova and Cyborg receive a single malformed PCI device_spec entry containing all VF addresses concatenated with spaces. No PCI passthrough or Cyborg VF assignment will function correctly.\n\n**Priority**: Before merge\n**Why This Matters**: When PCI_SIM_ENABLE_MDEV\u003dTrue with NUM_VFS\u003e0 (the default mixed-mode config used in CI), Nova and Cyborg receive a single malformed PCI device_spec entry containing all VF addresses concatenated with spaces. No PCI passthrough or Cyborg VF assignment will function correctly.\n\n**Recommendation**:\nRevert the printf format back to newline-separated output: change `printf \u0027%s \u0027 \"${pf_vfs[@]}\"` to `printf \u0027%s\\n\u0027 \"${pf_vfs[@]}\"`. Alternatively, change callers from mapfile -t to `read -ra` with space-separated parsing, but reverting to newlines is simpler and matches the existing contract.","commit_id":"c75f253365dfadf0bd488f9bc55b418a1ddf0c42"},{"author":{"_account_id":28006,"name":"teim-ci","display_name":"teim-ci","email":"ci@seanmooney.info","username":"ci-sean-mooney","status":"this is a third-party ci account run by sean-k-mooney on irc\nhosted at zuul.teim.app"},"tag":"autogenerated:zuul:automatic-ci","change_message_id":"553baa05793c5d4e8560d41e2d5734998263c94f","unresolved":false,"context_lines":[{"line_number":82,"context_line":"    pci_sim_compute_pf_modes"},{"line_number":83,"context_line":"    local num_unique"},{"line_number":84,"context_line":"    num_unique\u003d$(printf \u0027%s\\n\u0027 \"${PCI_SIM_PF_MODES[@]}\" | sort -u | wc -l)"},{"line_number":85,"context_line":"    if [[ $PCI_SIM_NUM_PFS -lt $num_unique ]]; then"},{"line_number":86,"context_line":"        die $LINENO \"PCI_SIM_NUM_PFS\u003d$PCI_SIM_NUM_PFS is too small for $num_unique device types; need at least one PF per type\""},{"line_number":87,"context_line":"    fi"},{"line_number":88,"context_line":""}],"source_content_type":"application/octet-stream","patch_set":17,"id":"6f4a508e_18168f12","line":85,"updated":"2026-07-29 17:24:11.000000000","message":"The validation check at lines 85-87 compares PCI_SIM_NUM_PFS against the number of unique entries in PCI_SIM_PF_MODES. However, pci_sim_compute_pf_modes always produces exactly PCI_SIM_NUM_PFS entries, so num_unique can never exceed PCI_SIM_NUM_PFS, making the condition permanently false.\n\n**Severity**: SUGGESTION | **Confidence**: 0.9\n\n**Benefit**: The dead check adds complexity without providing any validation. A future maintainer might assume the check guards against certain configurations when it does not.\n\n**Recommendation**:\nRemove the num_unique computation and the subsequent die check (lines 83-87), or replace it with a meaningful validation such as verifying that PCI_SIM_PF_MODE_LIST only contains recognized personality names (e.g., uart, mdev).","commit_id":"9482736763111d2d94cd3f5d87927b914b797430"},{"author":{"_account_id":28006,"name":"teim-ci","display_name":"teim-ci","email":"ci@seanmooney.info","username":"ci-sean-mooney","status":"this is a third-party ci account run by sean-k-mooney on irc\nhosted at zuul.teim.app"},"tag":"autogenerated:zuul:automatic-ci","change_message_id":"553baa05793c5d4e8560d41e2d5734998263c94f","unresolved":false,"context_lines":[{"line_number":275,"context_line":"    pci_sim_configure_personalities"},{"line_number":276,"context_line":"}"},{"line_number":277,"context_line":""},{"line_number":278,"context_line":"function configure_pci_sim_vfs {"},{"line_number":279,"context_line":"    set -x"},{"line_number":280,"context_line":"    local pf vf"},{"line_number":281,"context_line":"    local -a pfs vfs"}],"source_content_type":"application/octet-stream","patch_set":17,"id":"e1772824_5cc30958","line":278,"updated":"2026-07-29 17:24:11.000000000","message":"The function configure_pci_sim_vfs references an `index` variable in its PF loop (line 293) but never declares `local index\u003d0`. Every other function with a similar PF-indexing loop in this file properly declares `local index\u003d0`. Without the declaration, `index` leaks into the global scope and sta...\n\n**Severity**: WARNING | **Confidence**: 0.8\n\n**Impact**: If any function called before configure_pci_sim_vfs sets a global `index` variable, configure_pci_sim_vfs will start iterating from that stale value, causing PF mode lookups to be off by N. This would result in VFs being configured on the wrong PFs. In the current DevStack call chain the bug is l...\n\n**Suggestion**:\nAdd `local index\u003d0` to the local variable declarations at line 280-281, e.g. change `local pf vf` to `local pf vf index` or add a separate `local index\u003d0` line.","commit_id":"9482736763111d2d94cd3f5d87927b914b797430"},{"author":{"_account_id":28006,"name":"teim-ci","display_name":"teim-ci","email":"ci@seanmooney.info","username":"ci-sean-mooney","status":"this is a third-party ci account run by sean-k-mooney on irc\nhosted at zuul.teim.app"},"tag":"autogenerated:zuul:automatic-ci","change_message_id":"97face368ba7c380c79424b1f472e1fd93d3df10","unresolved":false,"context_lines":[{"line_number":80,"context_line":"        fi"},{"line_number":81,"context_line":"    fi"},{"line_number":82,"context_line":"    pci_sim_compute_pf_modes"},{"line_number":83,"context_line":"    local num_unique"},{"line_number":84,"context_line":"    num_unique\u003d$(printf \u0027%s\\n\u0027 \"${PCI_SIM_PF_MODES[@]}\" | sort -u | wc -l)"},{"line_number":85,"context_line":"    if [[ $PCI_SIM_NUM_PFS -lt $num_unique ]]; then"},{"line_number":86,"context_line":"        die $LINENO \"PCI_SIM_NUM_PFS\u003d$PCI_SIM_NUM_PFS is too small for $num_unique device types; need at least one PF per type\""}],"source_content_type":"application/octet-stream","patch_set":18,"id":"6cdb73ec_3023e0e8","line":83,"updated":"2026-07-29 18:20:04.000000000","message":"The validation at lines 83-87 checks \u0027PCI_SIM_NUM_PFS -lt num_unique\u0027 where num_unique is the count of unique values in PCI_SIM_PF_MODES. Since pci_sim_compute_pf_modes always populates exactly PCI_SIM_NUM_PFS entries, num_unique can never exceed PCI_SIM_NUM_PFS, making the condition always false...\n\n**Severity**: SUGGESTION | **Confidence**: 0.8\n\n**Benefit**: Users could configure mdev-only mode with NUM_PFS\u003d1 and NUM_VFS\u003d0, which would silently produce zero mdev PFs (PF0 gets uart) with no validation error. The dead check gives a false sense that type coverage is verified.\n\n**Recommendation**:\nReplace the num_unique check with a direct comparison of the number of enabled device types against PCI_SIM_NUM_PFS. For example, track num_types in pci_sim_compute_pf_modes and validate \u0027num_types \u003c\u003d PCI_SIM_NUM_PFS\u0027, or explicitly check that at least one PF is assigned to each enabled personality.","commit_id":"cb8522c04a82e78c9763724bfd09cf4e0cd9d0e6"},{"author":{"_account_id":28006,"name":"teim-ci","display_name":"teim-ci","email":"ci@seanmooney.info","username":"ci-sean-mooney","status":"this is a third-party ci account run by sean-k-mooney on irc\nhosted at zuul.teim.app"},"tag":"autogenerated:zuul:automatic-ci","change_message_id":"97face368ba7c380c79424b1f472e1fd93d3df10","unresolved":false,"context_lines":[{"line_number":290,"context_line":"    fi"},{"line_number":291,"context_line":""},{"line_number":292,"context_line":"    for pf in \"${pfs[@]}\"; do"},{"line_number":293,"context_line":"        if [[ $(pci_sim_pf_mode \"$index\") !\u003d uart ]]; then"},{"line_number":294,"context_line":"            index\u003d$((index + 1))"},{"line_number":295,"context_line":"            continue"},{"line_number":296,"context_line":"        fi"}],"source_content_type":"application/octet-stream","patch_set":18,"id":"322dd1ad_ca08484b","line":293,"updated":"2026-07-29 18:20:04.000000000","message":"The function configure_pci_sim_vfs uses $index in a for loop to look up PF personalities via pci_sim_pf_mode, but never declares the variable with \u0027local index\u003d0\u0027. Every other function in the file that iterates PF indices properly declares \u0027local index\u003d0\u0027. Without the local declaration, index lea...\n\n**Severity**: WARNING | **Confidence**: 0.9\n\n**Impact**: If a global \u0027index\u0027 variable is set before configure_pci_sim_vfs runs (which DevStack\u0027s shared shell makes possible), the PF personality offset would be wrong, leading to VFs being created on mdev PFs or skipped on uart PFs. This produces an incorrect pci-sim topology.\n\n**Suggestion**:\nAdd \u0027local index\u003d0\u0027 to the function\u0027s local declarations alongside \u0027local pf vf\u0027 at line 280. For example: \u0027local pf vf index\u003d0\u0027.","commit_id":"cb8522c04a82e78c9763724bfd09cf4e0cd9d0e6"},{"author":{"_account_id":28006,"name":"teim-ci","display_name":"teim-ci","email":"ci@seanmooney.info","username":"ci-sean-mooney","status":"this is a third-party ci account run by sean-k-mooney on irc\nhosted at zuul.teim.app"},"tag":"autogenerated:zuul:automatic-ci","change_message_id":"a4f9d3a06c74b5ec50909a26ec9a87e99880e24a","unresolved":false,"context_lines":[{"line_number":14,"context_line":"    local i num_types"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"    if [[ -n \"${PCI_SIM_PF_MODE_LIST:-}\" ]]; then"},{"line_number":17,"context_line":"        IFS\u003d\u0027,\u0027 read -ra PCI_SIM_PF_MODES \u003c\u003c\u003c \"$PCI_SIM_PF_MODE_LIST\""},{"line_number":18,"context_line":"        return 0"},{"line_number":19,"context_line":"    fi"},{"line_number":20,"context_line":""}],"source_content_type":"application/octet-stream","patch_set":20,"id":"4a76b6a1_db6c0d22","line":17,"updated":"2026-07-31 13:16:31.000000000","message":"The pci_sim_compute_pf_modes function parses PCI_SIM_PF_MODE_LIST using \u0027IFS\u003d\u0027,\u0027 read -ra\u0027 which preserves leading/trailing spaces in each token. If a user writes \u0027uart, mdev\u0027 (with a space after the comma), the resulting array element is \u0027 mdev\u0027 rather than \u0027mdev\u0027, causing all downstream compari...\n\n**Severity**: WARNING | **Confidence**: 0.8\n\n**Impact**: If a user provides PCI_SIM_PF_MODE_LIST with spaces after commas (a common convention, e.g. \u0027uart, mdev\u0027), PFs will be silently misconfigured: they will not get SR-IOV VFs, will not be recognized as mdev PFs, and the personality sysfs write will fail without a clear error message. This makes debu...\n\n**Suggestion**:\nTrim whitespace from each token after splitting. For example, after the read, loop over PCI_SIM_PF_MODES and strip spaces, or use parameter expansion like \u0027PCI_SIM_PF_MODES\u003d(${PCI_SIM_PF_MODE_LIST//,/ })\u0027 which naturally handles spaces. Alternatively, add a sed/tr step to remove spaces from PCI_SIM_PF_MODE_LIST before splitting.","commit_id":"54fd30923bf1731436d06160d83a58f7db1cabc7"},{"author":{"_account_id":28006,"name":"teim-ci","display_name":"teim-ci","email":"ci@seanmooney.info","username":"ci-sean-mooney","status":"this is a third-party ci account run by sean-k-mooney on irc\nhosted at zuul.teim.app"},"tag":"autogenerated:zuul:automatic-ci","change_message_id":"57cad9b1f43945bbf7ec7d9f76a7731def660ed6","unresolved":false,"context_lines":[{"line_number":59,"context_line":"# every DevStack phase (plugin.sh re-sources this file for each phase)."},{"line_number":60,"context_line":"pci_sim_compute_pf_modes"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":"function pci_sim_validate_config {"},{"line_number":63,"context_line":"    # The module supports up to 16 fake host bridges/PFs and up to 7 VFs"},{"line_number":64,"context_line":"    # per PF.  Validate early so stack.sh fails before loading the module"},{"line_number":65,"context_line":"    # with a topology the driver will reject."}],"source_content_type":"application/octet-stream","patch_set":21,"id":"ba1e71cf_9eeb83c8","line":62,"updated":"2026-08-03 09:40:39.000000000","message":"When PCI_SIM_ENABLE_MDEV\u003dTrue and PCI_SIM_NUM_PFS\u003d1, the round-robin assignment in pci_sim_compute_pf_modes assigns \u0027uart\u0027 to the only PF (types[0 % 2] \u003d \u0027uart\u0027), resulting in zero mdev PFs without any error or warning. The mdev_driver gets enabled in Cyborg but with no devices to manage.\n\n**Severity**: SUGGESTION | **Confidence**: 0.8\n\n**Benefit**: An operator who sets PCI_SIM_ENABLE_MDEV\u003dTrue and PCI_SIM_NUM_PFS\u003d1 (e.g., to conserve resources) gets zero mdev PFs. The mdev_driver is enabled with no device_spec entries, and the device profile requesting CUSTOM_MDEV_FAKE_PCI_SRIOV_PF_SIM_ACCEL_SMALL has no backing resources, causing confusion...\n\n**Recommendation**:\nAdd a validation check in pci_sim_validate_config for the case where mdev is enabled but no PF would receive the mdev personality. For example: if mdev is enabled and the round-robin would assign zero mdev PFs, either die with an error (suggesting PCI_SIM_PF_MODE_LIST\u003dmdev for single-PF mdev-only setups) or warn the user.","commit_id":"8861d9eac085ad9cf31be922044da67603a1a7bd"},{"author":{"_account_id":28006,"name":"teim-ci","display_name":"teim-ci","email":"ci@seanmooney.info","username":"ci-sean-mooney","status":"this is a third-party ci account run by sean-k-mooney on irc\nhosted at zuul.teim.app"},"tag":"autogenerated:zuul:automatic-ci","change_message_id":"81c0bac2d88a0bc573fb59d55f5db3fe13886f21","unresolved":false,"context_lines":[{"line_number":85,"context_line":"        die $LINENO \"PCI_SIM_MDEV_INSTANCES must be \u003e\u003d 1; got $PCI_SIM_MDEV_INSTANCES\""},{"line_number":86,"context_line":"    fi"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    if [[ \"$PCI_SIM_ENABLE_MDEV\" \u003d\u003d True \u0026\u0026 $PCI_SIM_NUM_VFS -gt 0 \u0026\u0026 \\"},{"line_number":89,"context_line":"          $PCI_SIM_NUM_PFS -lt 2 ]]; then"},{"line_number":90,"context_line":"        die $LINENO \"Mixed SR-IOV/mdev mode requires NUM_PFS \u003e\u003d 2; got $PCI_SIM_NUM_PFS\""},{"line_number":91,"context_line":"    fi"}],"source_content_type":"application/octet-stream","patch_set":25,"id":"28a721c2_1b699fea","line":88,"updated":"2026-09-01 11:15:44.000000000","message":"pci_sim_compute_pf_modes always puts uart first in the round-robin (types\u003d(uart); types+\u003d(mdev)). With PCI_SIM_ENABLE_MDEV\u003dTrue, PCI_SIM_NUM_PFS\u003d1 and PCI_SIM_NUM_VFS\u003d0 the single PF receives the uart personality, so no PF is ever registered as an mdev parent. pci_sim_validate_config only rejects NUM_PFS\u003c2 when NUM_VFS\u003e0 (the \u0027mixed SR-IOV/mdev\u0027 check); the NUM_VFS\u003d0 case passes validation silently. The result is an inconsistent deployment: mdev_driver is enabled, the mdev device profile/flavor and [cyborg_mdev] tempest options reference CUSTOM_MDEV_FAKE_PCI_SRIOV_PF_SIM_ACCEL_SMALL, but no mdev inventory is ever reported to Placement, so anything consuming the mdev flavor fails at scheduling with a resource-not-found error far from the misconfiguration.\n\n**Severity**: WARNING | **Confidence**: 0.8\n\n**Impact**: A supported mdev-only configuration (NUM_VFS\u003d0, single PF) passes stack.sh and only fails later when tempest tests or instances request an accelerator resource class that no host reports, with no diagnostic pointing at the missing mdev PF.\n\n**Suggestion**:\nIn pci_sim_validate_config, after pci_sim_compute_pf_modes, die when PCI_SIM_ENABLE_MDEV is True and no computed mode equals mdev (e.g. \u0027PCI_SIM_ENABLE_MDEV\u003dTrue requires at least one mdev PF; set PCI_SIM_NUM_PFS \u003e\u003d 2 or use PCI_SIM_PF_MODE_LIST\u0027), and note the NUM_PFS requirement in the sample local.conf mdev-only example.","commit_id":"370fd24d01e9867a3dfe97b50eb7efcdd33475c1"},{"author":{"_account_id":28006,"name":"teim-ci","display_name":"teim-ci","email":"ci@seanmooney.info","username":"ci-sean-mooney","status":"this is a third-party ci account run by sean-k-mooney on irc\nhosted at zuul.teim.app"},"tag":"autogenerated:zuul:automatic-ci","change_message_id":"8af9abfff827e51c4359899095989cd2af7c5744","unresolved":false,"context_lines":[{"line_number":85,"context_line":"        die $LINENO \"PCI_SIM_MDEV_INSTANCES must be \u003e\u003d 1; got $PCI_SIM_MDEV_INSTANCES\""},{"line_number":86,"context_line":"    fi"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    if [[ \"$PCI_SIM_ENABLE_MDEV\" \u003d\u003d True \u0026\u0026 $PCI_SIM_NUM_VFS -gt 0 \u0026\u0026 \\"},{"line_number":89,"context_line":"          $PCI_SIM_NUM_PFS -lt 2 ]]; then"},{"line_number":90,"context_line":"        die $LINENO \"Mixed SR-IOV/mdev mode requires NUM_PFS \u003e\u003d 2; got $PCI_SIM_NUM_PFS\""},{"line_number":91,"context_line":"    fi"}],"source_content_type":"application/octet-stream","patch_set":37,"id":"e130349b_f86f74cd","line":88,"updated":"2026-11-23 18:59:22.000000000","message":"pci_sim_compute_pf_modes builds the round-robin list with uart first: types\u003d(uart) then optionally mdev, and mode \u003d types[i % 2] (devstack/lib/pci_sim:21-30). pci_sim_validate_config rejects mixed mode only when PCI_SIM_NUM_VFS \u003e 0 (devstack/lib/pci_sim:88-91). So PCI_SIM_ENABLE_MDEV\u003dTrue with PCI_SIM_NUM_VFS\u003d0 (the documented mdev-only recipe) and PCI_SIM_NUM_PFS\u003d1 passes validation, assigns the single PF the uart personality, and leaves no mdev PF. load_pci_sim still passes mdev_instances to the module and configure_pci_sim_cyborg_mdev_service_config still enables the mdev_driver with an empty device_spec list, so stack.sh completes with zero mdev accelerators and no error.\n\n**Severity**: WARNING | **Confidence**: 0.8\n\n**Impact**: On a one-PF deployment using the documented mdev-only configuration, the feature silently does nothing: no mdev parent is registered, the agent runs mdev_driver with no device_spec and reports no accelerators, and the user only discovers this after debugging a running cloud that stack.sh reported as healthy.\n\n**Suggestion**:\nExtend pci_sim_validate_config to fail (or at least warn) when PCI_SIM_ENABLE_MDEV is True but the computed PCI_SIM_PF_MODES contains no mdev entry, or document in devstack/settings and the sample that mdev-only mode requires at least 2 PFs.","commit_id":"0d85b2e868b0e234bb04086f3de66f1fb52f8b59"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"83e057c5f93cc81d2aaeb5ad24760376733b2a8a","unresolved":true,"context_lines":[{"line_number":9,"context_line":"PCI_SIM_VF_DEVICE_ID\u003d${PCI_SIM_VF_DEVICE_ID:-0x1001}"},{"line_number":10,"context_line":"PCI_SIM_MODULE_NAME\u003d${PCI_SIM_MODULE_NAME:-fake_pci_sriov}"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"function pci_sim_compute_pf_modes {"},{"line_number":13,"context_line":"    local -a types"},{"line_number":14,"context_line":"    local i num_types"},{"line_number":15,"context_line":""}],"source_content_type":"application/octet-stream","patch_set":38,"id":"a09ef181_3b989e39","line":12,"updated":"2026-11-24 14:03:22.000000000","message":"round robbin assingme is ok for now but i have dicussed this with chandan a few tiem\n\neventually i want the devstack intefea ce to take a triplple of PF\u003cindex\u003e:\u003cvf personality:\u003cservice\u003e in a comma seperate list\ni.e. 0:uart:nova,1:mdev:cybrog\n\n\nso in the future once we ahve that parmter PCI_SIM_SERVICE_MAP or whatever we call it this fucniton woudl isntead generate that mappign if its not supplied or it woudl be removed","commit_id":"e9fdbf8801eb69d2b07a99ddb7fc4d7002267ee5"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"19452dbf370f16a48222d700dc5b0970786ad625","unresolved":false,"context_lines":[{"line_number":9,"context_line":"PCI_SIM_VF_DEVICE_ID\u003d${PCI_SIM_VF_DEVICE_ID:-0x1001}"},{"line_number":10,"context_line":"PCI_SIM_MODULE_NAME\u003d${PCI_SIM_MODULE_NAME:-fake_pci_sriov}"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"function pci_sim_compute_pf_modes {"},{"line_number":13,"context_line":"    local -a types"},{"line_number":14,"context_line":"    local i num_types"},{"line_number":15,"context_line":""}],"source_content_type":"application/octet-stream","patch_set":38,"id":"91c59bc3_c8892b4a","line":12,"in_reply_to":"89921ccf_4946ee1e","updated":"2026-11-25 11:31:01.000000000","message":"Acknowledged","commit_id":"e9fdbf8801eb69d2b07a99ddb7fc4d7002267ee5"},{"author":{"_account_id":34452,"name":"Joan Gilabert","display_name":"jgilaber","email":"jgilaber@redhat.com","username":"jgilaber"},"change_message_id":"8441096030070bd0e56bb9677fd761626d503076","unresolved":true,"context_lines":[{"line_number":9,"context_line":"PCI_SIM_VF_DEVICE_ID\u003d${PCI_SIM_VF_DEVICE_ID:-0x1001}"},{"line_number":10,"context_line":"PCI_SIM_MODULE_NAME\u003d${PCI_SIM_MODULE_NAME:-fake_pci_sriov}"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"function pci_sim_compute_pf_modes {"},{"line_number":13,"context_line":"    local -a types"},{"line_number":14,"context_line":"    local i num_types"},{"line_number":15,"context_line":""}],"source_content_type":"application/octet-stream","patch_set":38,"id":"89921ccf_4946ee1e","line":12,"in_reply_to":"a09ef181_3b989e39","updated":"2026-11-25 08:31:32.000000000","message":"I asked an LLM to change this patch to adopt a PCI_SIM_SERVICE_MAP in this patch, I thought it would be faster to introduce that interface now, rather than a temporary one we want to rework anyway","commit_id":"e9fdbf8801eb69d2b07a99ddb7fc4d7002267ee5"},{"author":{"_account_id":28006,"name":"teim-ci","display_name":"teim-ci","email":"ci@seanmooney.info","username":"ci-sean-mooney","status":"this is a third-party ci account run by sean-k-mooney on irc\nhosted at zuul.teim.app"},"tag":"autogenerated:zuul:automatic-ci","change_message_id":"d37f6c056e090496beba3e415bd8e92b8dd5f60a","unresolved":false,"context_lines":[{"line_number":474,"context_line":""},{"line_number":475,"context_line":"    local pf type_dir type_name"},{"line_number":476,"context_line":"    for pf in \"$@\"; do"},{"line_number":477,"context_line":"        for type_dir in /sys/class/mdev_bus/\"$pf\"/mdev_supported_types/*/; do"},{"line_number":478,"context_line":"            [[ -d $type_dir ]] || continue"},{"line_number":479,"context_line":"            type_name\u003d$(basename \"$type_dir\")"},{"line_number":480,"context_line":"            specs+\u003d(\"{\\\"address\\\":\\\"$pf\\\",\\\"mdev_type\\\":\\\"$type_name\\\"}\")"}],"source_content_type":"application/octet-stream","patch_set":38,"id":"b85ea187_44a2b9a2","line":477,"updated":"2026-11-24 13:15:03.000000000","message":"configure_pci_sim_cyborg_mdev enumerates every directory under /sys/class/mdev_bus/\u003cpf\u003e/mdev_supported_types/ and emits one device_spec entry per (PF, type). The pci-sim module registers two mdev types per parent (PCI_SIM_MDEV_NUM_TYPES\u003d2: fake_pci_sriov_pf-sim_accel_small and fake_pci_sriov_pf-sim_accel_large), so with PCI_SIM_ENABLE_MDEV\u003dTrue (which defaults PCI_SIM_CONFIGURE_CYBORG_MDEV to True) the plugin writes two device_spec entries with the same address but different mdev_type. Cyborg\u0027s MdevDeviceSpec.from_config_list explicitly rejects that combination: it raises InvalidMdevDevSpecConfig with \u0027only one mdev type per PCI address is supported\u0027 (cyborg/accelerator/drivers/mdev/devspec.py:213-227, same rule documented in cyborg/conf/mdev.py). GenericMdevDriver.discover() calls from_config_list before any discovery, and the agent\u0027s ResourceTracker.init_host()/discover_all() call drv.discover() with no exception handling (cyborg/agent/resource_tracker.py:84-97) from RPCService.start() -\u003e manager.init_host() (cyborg/common/service.py:53), so the cyborg-agent process dies at startup; update_usage would raise on every periodic cycle as well.\n\n**Severity**: HIGH | **Confidence**: 0.85\n\n**Impact**: On any DevStack deployment that enables mdev with the Cyborg integration (the default when PCI_SIM_ENABLE_MDEV\u003dTrue), the generated cyborg-agent configuration is invalid: the agent raises InvalidMdevDevSpecConfig during init_host and fails to start, or errors on every discovery cycle, so mdev accelerators are never reported to Placement and the mdev flavor/device profile created by this change can never schedule. The mdev CI enablement in .zuul.yaml would hit this on the subnode agent.\n\n**Priority**: Before merge\n**Recommendation**:\nEmit at most one device_spec entry per parent address by filtering the sysfs type loop to the configured type, e.g. skip type dirs whose basename does not equal $PCI_SIM_MDEV_TYPE. That satisfies the one-type-per-address rule and also makes PCI_SIM_MDEV_TYPE actually control what Cyborg is configured with, matching the CUSTOM_MDEV_FAKE_PCI_SRIOV_PF_SIM_ACCEL_SMALL resource class hardcoded in create_pci_sim_cyborg_mdev_device_profile.","commit_id":"e9fdbf8801eb69d2b07a99ddb7fc4d7002267ee5"}],"devstack/local-conf.pci-sim.sample":[{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"83e057c5f93cc81d2aaeb5ad24760376733b2a8a","unresolved":true,"context_lines":[{"line_number":49,"context_line":"#"},{"line_number":50,"context_line":"# mdev-only configuration (no SR-IOV VFs):"},{"line_number":51,"context_line":"# PCI_SIM_ENABLE_MDEV\u003dTrue"},{"line_number":52,"context_line":"# PCI_SIM_NUM_VFS\u003d0"},{"line_number":53,"context_line":"#"},{"line_number":54,"context_line":"# Mixed SR-IOV and mdev (even PFs\u003dsriov, odd PFs\u003dmdev):"},{"line_number":55,"context_line":"# PCI_SIM_ENABLE_MDEV\u003dTrue"}],"source_content_type":"application/octet-stream","patch_set":38,"id":"45d309ac_3ff57446","line":52,"range":{"start_line":52,"start_character":0,"end_line":52,"end_character":19},"updated":"2026-11-24 14:03:22.000000000","message":"this is not corect\n\nif this is set to 0 ther are no parent VF for the mdevs to be created on.","commit_id":"e9fdbf8801eb69d2b07a99ddb7fc4d7002267ee5"},{"author":{"_account_id":34452,"name":"Joan Gilabert","display_name":"jgilaber","email":"jgilaber@redhat.com","username":"jgilaber"},"change_message_id":"8441096030070bd0e56bb9677fd761626d503076","unresolved":false,"context_lines":[{"line_number":49,"context_line":"#"},{"line_number":50,"context_line":"# mdev-only configuration (no SR-IOV VFs):"},{"line_number":51,"context_line":"# PCI_SIM_ENABLE_MDEV\u003dTrue"},{"line_number":52,"context_line":"# PCI_SIM_NUM_VFS\u003d0"},{"line_number":53,"context_line":"#"},{"line_number":54,"context_line":"# Mixed SR-IOV and mdev (even PFs\u003dsriov, odd PFs\u003dmdev):"},{"line_number":55,"context_line":"# PCI_SIM_ENABLE_MDEV\u003dTrue"}],"source_content_type":"application/octet-stream","patch_set":38,"id":"6fc68f7a_6779d97a","line":52,"range":{"start_line":52,"start_character":0,"end_line":52,"end_character":19},"in_reply_to":"45d309ac_3ff57446","updated":"2026-11-25 08:31:32.000000000","message":"Done","commit_id":"e9fdbf8801eb69d2b07a99ddb7fc4d7002267ee5"}],"devstack/plugin.sh":[{"author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"tag":"autogenerated:zuul:check","change_message_id":"cd2cd21d3172680581bc4aca6632a241a988b7f0","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        # services have been started."},{"line_number":49,"context_line":"        # Configure pci-sim Cyborg service settings before starting"},{"line_number":50,"context_line":"        # the agent so it picks up pci_driver and passthrough_whitelist."},{"line_number":51,"context_line":"        if [[ \"$ENABLE_PCI_SIM\" \u003d\u003d True \u0026\u0026"},{"line_number":52,"context_line":"            \"$PCI_SIM_LOAD\" \u003d\u003d True ]]; then"},{"line_number":53,"context_line":"            configure_pci_sim_cyborg_service_config"},{"line_number":54,"context_line":"            configure_pci_sim_cyborg_mdev_service_config"}],"source_content_type":"text/x-sh","patch_set":13,"id":"c1ebe711_409f0ed5","line":51,"updated":"2026-07-23 18:37:20.000000000","message":"pep8: E011 Then keyword is not on same line as if or elif keyword","commit_id":"c9898aab78a166bc6f63a8c744234341a5b59abb"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"19452dbf370f16a48222d700dc5b0970786ad625","unresolved":true,"context_lines":[{"line_number":9,"context_line":"source \"$CYBORG_DEVSTACK_DIR/lib/pci_sim\""},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"case \"$1\" in"},{"line_number":12,"context_line":"\"stack\")"},{"line_number":13,"context_line":"    case \"$2\" in"},{"line_number":14,"context_line":"    \"pre-install\")"},{"line_number":15,"context_line":"        clone_cyborg_client"}],"source_content_type":"text/x-sh","patch_set":40,"id":"b313e12c_14844100","line":12,"range":{"start_line":12,"start_character":1,"end_line":12,"end_character":8},"updated":"2026-11-25 11:31:01.000000000","message":"why did you change the indentaiton fo this \nit was correct before","commit_id":"a8eb25575a7d7658e3fedf52db59647c328dcdf0"},{"author":{"_account_id":34452,"name":"Joan Gilabert","display_name":"jgilaber","email":"jgilaber@redhat.com","username":"jgilaber"},"change_message_id":"5ac2694fe085844a07bfe3b02d3840ffecf4b745","unresolved":true,"context_lines":[{"line_number":9,"context_line":"source \"$CYBORG_DEVSTACK_DIR/lib/pci_sim\""},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"case \"$1\" in"},{"line_number":12,"context_line":"\"stack\")"},{"line_number":13,"context_line":"    case \"$2\" in"},{"line_number":14,"context_line":"    \"pre-install\")"},{"line_number":15,"context_line":"        clone_cyborg_client"}],"source_content_type":"text/x-sh","patch_set":40,"id":"be0ddfe3_90b6bec7","line":12,"range":{"start_line":12,"start_character":1,"end_line":12,"end_character":8},"in_reply_to":"b313e12c_14844100","updated":"2026-11-25 12:24:54.000000000","message":"ugh, some tool does this, I\u0027ve caught it a couple of times, but I missed it in the last submit, since this already has +W, I\u0027ll push a new patch reverting the indentation change","commit_id":"a8eb25575a7d7658e3fedf52db59647c328dcdf0"},{"author":{"_account_id":34452,"name":"Joan Gilabert","display_name":"jgilaber","email":"jgilaber@redhat.com","username":"jgilaber"},"change_message_id":"a22b88a850eeabe8f817ae6b0c5eeff29f105ee6","unresolved":true,"context_lines":[{"line_number":9,"context_line":"source \"$CYBORG_DEVSTACK_DIR/lib/pci_sim\""},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"case \"$1\" in"},{"line_number":12,"context_line":"\"stack\")"},{"line_number":13,"context_line":"    case \"$2\" in"},{"line_number":14,"context_line":"    \"pre-install\")"},{"line_number":15,"context_line":"        clone_cyborg_client"}],"source_content_type":"text/x-sh","patch_set":40,"id":"92c7921e_74b7d8d2","line":12,"range":{"start_line":12,"start_character":1,"end_line":12,"end_character":8},"in_reply_to":"be0ddfe3_90b6bec7","updated":"2026-11-25 12:33:15.000000000","message":"restored in https://review.opendev.org/c/openstack/cyborg/+/1017340","commit_id":"a8eb25575a7d7658e3fedf52db59647c328dcdf0"}],"devstack/settings":[{"author":{"_account_id":28006,"name":"teim-ci","display_name":"teim-ci","email":"ci@seanmooney.info","username":"ci-sean-mooney","status":"this is a third-party ci account run by sean-k-mooney on irc\nhosted at zuul.teim.app"},"tag":"autogenerated:zuul:automatic-ci","change_message_id":"9b8536fb1a453eb95cbbc8c4dd8389864a4f3381","unresolved":false,"context_lines":[{"line_number":110,"context_line":""},{"line_number":111,"context_line":"# Full sysfs mdev type name to configure in Cyborg.  The kernel auto-prefixes"},{"line_number":112,"context_line":"# the PF driver name to the type sysfs_name."},{"line_number":113,"context_line":"PCI_SIM_MDEV_TYPE\u003d${PCI_SIM_MDEV_TYPE:-fake_pci_sriov_pf-sim_accel_small}"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"# Whether this plugin should configure Cyborg\u0027s generic mdev_driver to manage"},{"line_number":116,"context_line":"# pci-sim mdev instances via [agent] enabled_drivers and [mdev] device_spec."}],"source_content_type":"application/octet-stream","patch_set":15,"id":"bdd7e2ea_ed1e483c","line":113,"updated":"2026-07-24 07:29:44.000000000","message":"The PCI_SIM_MDEV_TYPE setting is declared in devstack/settings with a configurable default and a comment describing it as the mdev type to configure in Cyborg. However, no function in devstack/lib/pci_sim or devstack/plugin.sh reads this variable. The device spec entries are discovered dynamicall...\n\n**Severity**: WARNING | **Confidence**: 0.8\n\n**Impact**: A user or operator who sets PCI_SIM_MDEV_TYPE to a different value (e.g., to use sim_accel_large instead) will find that the setting has no effect: the device spec still registers all types dynamically and the test device profile always requests ACCEL_SMALL. This creates a false impression of con...\n\n**Suggestion**:\nEither derive the resource class in create_pci_sim_cyborg_mdev_device_profile from PCI_SIM_MDEV_TYPE (e.g., by uppercasing and prefixing with CUSTOM_MDEV_), or remove the variable and update the comment to clarify that the type name is informational only.","commit_id":"125cf68259dfe26cb7e0d1616a0614134fdedfe6"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"a56418b6a8a5afa599d6e58ca63a3fd2c80f0e39","unresolved":true,"context_lines":[{"line_number":94,"context_line":"# Add mdev to the per-PF personality round-robin.  When True, alternating PFs"},{"line_number":95,"context_line":"# are assigned the mdev personality instead of uart.  Other personalities"},{"line_number":96,"context_line":"# (e.g. NVMe) may be added by future patches."},{"line_number":97,"context_line":"PCI_SIM_ENABLE_MDEV\u003d$(trueorfalse False PCI_SIM_ENABLE_MDEV)"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"# Explicit comma-separated per-PF personality list (e.g. \"uart,uart,mdev\")."},{"line_number":100,"context_line":"# When set, overrides the round-robin computed from PCI_SIM_ENABLE_MDEV."}],"source_content_type":"application/octet-stream","patch_set":19,"id":"cf15071a_eb452be8","line":97,"updated":"2026-07-30 14:22:14.000000000","message":"teim-ci flagged this, this assignment duplicated again on L119.","commit_id":"0318790264b237e392e0f17bbbfd1846c1e3bef7"},{"author":{"_account_id":34452,"name":"Joan Gilabert","display_name":"jgilaber","email":"jgilaber@redhat.com","username":"jgilaber"},"change_message_id":"09908f99a4a1ac201587ed1cead24a455a061fce","unresolved":false,"context_lines":[{"line_number":94,"context_line":"# Add mdev to the per-PF personality round-robin.  When True, alternating PFs"},{"line_number":95,"context_line":"# are assigned the mdev personality instead of uart.  Other personalities"},{"line_number":96,"context_line":"# (e.g. NVMe) may be added by future patches."},{"line_number":97,"context_line":"PCI_SIM_ENABLE_MDEV\u003d$(trueorfalse False PCI_SIM_ENABLE_MDEV)"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"# Explicit comma-separated per-PF personality list (e.g. \"uart,uart,mdev\")."},{"line_number":100,"context_line":"# When set, overrides the round-robin computed from PCI_SIM_ENABLE_MDEV."}],"source_content_type":"application/octet-stream","patch_set":19,"id":"cfbe0b23_c2f61fc0","line":97,"in_reply_to":"cf15071a_eb452be8","updated":"2026-11-24 11:21:50.000000000","message":"Done","commit_id":"0318790264b237e392e0f17bbbfd1846c1e3bef7"},{"author":{"_account_id":28006,"name":"teim-ci","display_name":"teim-ci","email":"ci@seanmooney.info","username":"ci-sean-mooney","status":"this is a third-party ci account run by sean-k-mooney on irc\nhosted at zuul.teim.app"},"tag":"autogenerated:zuul:automatic-ci","change_message_id":"b7ddcbc48deddd307fc49caf744cd844079d2fa6","unresolved":false,"context_lines":[{"line_number":116,"context_line":"# When True and NUM_VFS \u003e 0, odd-indexed PFs become mdev parents while"},{"line_number":117,"context_line":"# even-indexed PFs remain SR-IOV.  When True and NUM_VFS\u003d0, all PFs"},{"line_number":118,"context_line":"# become mdev parents."},{"line_number":119,"context_line":"PCI_SIM_ENABLE_MDEV\u003d$(trueorfalse False PCI_SIM_ENABLE_MDEV)"},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"# Maximum small-type mdev instances per PF (large \u003d instances/4, minimum 1)."},{"line_number":122,"context_line":"PCI_SIM_MDEV_INSTANCES\u003d${PCI_SIM_MDEV_INSTANCES:-8}"}],"source_content_type":"application/octet-stream","patch_set":19,"id":"dba1f0ff_5758c799","line":119,"updated":"2026-07-30 12:40:13.000000000","message":"PCI_SIM_ENABLE_MDEV is assigned the same trueorfalse expression twice within devstack/settings: once in the general personality section (line 97) and again in the dedicated mdev section (line 119). The second assignment silently overwrites the first with an identical value, which is confusing for...\n\n**Severity**: SUGGESTION | **Confidence**: 0.9\n\n**Benefit**: A future maintainer editing one copy may miss the other, leading to inconsistent behavior. Users reading the settings file may be confused about which definition is authoritative.\n\n**Recommendation**:\nRemove the duplicate assignment at line 119 and keep a single PCI_SIM_ENABLE_MDEV definition. Consolidate the mdev-related settings under one section, or move the first definition into the mdev section and remove the second.","commit_id":"0318790264b237e392e0f17bbbfd1846c1e3bef7"},{"author":{"_account_id":28006,"name":"teim-ci","display_name":"teim-ci","email":"ci@seanmooney.info","username":"ci-sean-mooney","status":"this is a third-party ci account run by sean-k-mooney on irc\nhosted at zuul.teim.app"},"tag":"autogenerated:zuul:automatic-ci","change_message_id":"b7ddcbc48deddd307fc49caf744cd844079d2fa6","unresolved":false,"context_lines":[{"line_number":123,"context_line":""},{"line_number":124,"context_line":"# Full sysfs mdev type name to configure in Cyborg.  The kernel auto-prefixes"},{"line_number":125,"context_line":"# the PF driver name to the type sysfs_name."},{"line_number":126,"context_line":"PCI_SIM_MDEV_TYPE\u003d${PCI_SIM_MDEV_TYPE:-fake_pci_sriov_pf-sim_accel_small}"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"# Whether this plugin should configure Cyborg\u0027s generic mdev_driver to manage"},{"line_number":129,"context_line":"# pci-sim mdev instances via [agent] enabled_drivers and [mdev] device_spec."}],"source_content_type":"application/octet-stream","patch_set":19,"id":"5c793d1d_775b9e62","line":126,"updated":"2026-07-30 12:40:13.000000000","message":"PCI_SIM_MDEV_TYPE is introduced in devstack/settings with a default of \u0027fake_pci_sriov_pf-sim_accel_small\u0027, but no function in devstack/lib/pci_sim or devstack/plugin.sh reads or uses this variable. The mdev type discovery in configure_pci_sim_cyborg_mdev uses sysfs globbing over /sys/class/mdev_...\n\n**Severity**: SUGGESTION | **Confidence**: 0.9\n\n**Benefit**: A user who sets PCI_SIM_MDEV_TYPE to filter which mdev type Cyborg manages will see no effect, since the code discovers all available types via sysfs. This dead config is misleading.\n\n**Recommendation**:\nEither remove PCI_SIM_MDEV_TYPE if sysfs globbing is the intended discovery mechanism, or use it to filter the mdev types configured in configure_pci_sim_cyborg_mdev so the variable has a functional purpose.","commit_id":"0318790264b237e392e0f17bbbfd1846c1e3bef7"},{"author":{"_account_id":28006,"name":"teim-ci","display_name":"teim-ci","email":"ci@seanmooney.info","username":"ci-sean-mooney","status":"this is a third-party ci account run by sean-k-mooney on irc\nhosted at zuul.teim.app"},"tag":"autogenerated:zuul:automatic-ci","change_message_id":"8af9abfff827e51c4359899095989cd2af7c5744","unresolved":false,"context_lines":[{"line_number":107,"context_line":"# Maximum small-type mdev instances per PF (large \u003d instances/4, minimum 1)."},{"line_number":108,"context_line":"PCI_SIM_MDEV_INSTANCES\u003d${PCI_SIM_MDEV_INSTANCES:-8}"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":"# Full sysfs mdev type name to configure in Cyborg.  The kernel auto-prefixes"},{"line_number":111,"context_line":"# the PF driver name to the type sysfs_name."},{"line_number":112,"context_line":"PCI_SIM_MDEV_TYPE\u003d${PCI_SIM_MDEV_TYPE:-fake_pci_sriov_pf-sim_accel_small}"},{"line_number":113,"context_line":""}],"source_content_type":"application/octet-stream","patch_set":37,"id":"03920376_4bbb77f5","line":110,"updated":"2026-11-23 18:59:22.000000000","message":"devstack/settings:110-112 introduces PCI_SIM_MDEV_TYPE with the comment \"Full sysfs mdev type name to configure in Cyborg.\" No Cyborg configuration consumes the variable: configure_pci_sim_cyborg_mdev builds [mdev] device_spec from every directory under /sys/class/mdev_bus/\u003cpf\u003e/mdev_supported_types/ (devstack/lib/pci_sim:469-474), so Cyborg always manages both advertised types (fake_pci_sriov_pf-sim_accel_small and -large) regardless of the setting. The only consumer is the tempest section (devstack/lib/cyborg:273). An operator setting PCI_SIM_MDEV_TYPE\u003dfake_pci_sriov_pf-sim_accel_large would expect Cyborg to manage only the large type, but both types are still reported to Placement.\n\n**Severity**: SUGGESTION | **Confidence**: 0.85\n\n**Impact**: The comment misleads operators configuring the plugin and future maintainers about which code path honors the variable; changing PCI_SIM_MDEV_TYPE silently has no effect on Cyborg\u0027s resource reporting, which can lead to a wrong expectation when tuning which mdev types the cloud offers.\n\n**Recommendation**:\nEither correct the comment to state that the value is the mdev type advertised to the tempest plugin for verification while Cyborg manages every type the PF advertises, or honor PCI_SIM_MDEV_TYPE when building [mdev] device_spec if type filtering is the intended behavior.","commit_id":"0d85b2e868b0e234bb04086f3de66f1fb52f8b59"}],"doc/source/contributor/pci-sim/devstack.rst":[{"author":{"_account_id":28006,"name":"teim-ci","display_name":"teim-ci","email":"ci@seanmooney.info","username":"ci-sean-mooney","status":"this is a third-party ci account run by sean-k-mooney on irc\nhosted at zuul.teim.app"},"tag":"autogenerated:zuul:automatic-ci","change_message_id":"d51be4dc770a452b95039e9be3f88b430d24fbdd","unresolved":false,"context_lines":[{"line_number":52,"context_line":"  ``uart:cyborg``, it enables Cyborg\u0027s ``pci_driver`` and adds the VF"},{"line_number":53,"context_line":"  addresses to ``[pci] passthrough_whitelist``."},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"``PCI_SIM_MDEV_TYPE``"},{"line_number":56,"context_line":"  The type Cyborg configures on each ``mdev:cyborg`` parent. Defaults to"},{"line_number":57,"context_line":"  ``fake_pci_sriov_pf-sim_accel_small``."},{"line_number":58,"context_line":""}],"source_content_type":"text/x-rst","patch_set":39,"id":"5f6da6c5_9c217e23","line":55,"updated":"2026-11-25 08:51:54.000000000","message":"This change introduces PCI_SIM_MDEV_INSTANCES (default 8; must be \u003e\u003d 1 whenever the map contains an mdev:cyborg assignment; controls small-type mdev instances per mdev PF, with the large type capped at instances/4, minimum 1), but the \u0027Plugin settings\u0027 section of doc/source/contributor/pci-sim/devstack.rst, rewritten in this same commit to document the mdev support, does not list it. The PCI_SIM_CREATE_TEST_FLAVORS entry also still describes only the uart profile/flavor and does not mention the new mdev device profile and flavor names, and devstack/local-conf.pci-sim.sample quotes the per-PF instance counts (\u0027default 8 instances per PF\u0027) without naming the variable that controls them.\n\n**Severity**: SUGGESTION | **Confidence**: 0.88\n\n**Impact**: An operator who wants more or fewer mdev instances per parent (or hits the \u0027PCI_SIM_MDEV_INSTANCES must be \u003e\u003d 1\u0027 error) cannot discover the knob or its constraint from the documented settings; the docs and implementation for a brand-new configuration option start out divergent.\n\n**Recommendation**:\nAdd a ``PCI_SIM_MDEV_INSTANCES`` entry to the Plugin settings list in devstack.rst (default 8, only used with an mdev:cyborg assignment, must be \u003e\u003d 1, small type gets all of it and the large type instances/4 with a minimum of 1), extend the PCI_SIM_CREATE_TEST_FLAVORS entry to mention the mdev device profile/flavor names, and reference PCI_SIM_MDEV_INSTANCES in the sample\u0027s mdev section.","commit_id":"6c5ed787505cf9aa13d54e1c204365e366458dc1"}]}
