Commit b8bfcea
committed
gen-dynamic-pci: fix PCI passthrough target guest default value
Fix two issues preventing PCI passthrough configuration from appearing
in generated nodes files:
1. Template generation was producing "None" in YAML files due to
incorrect include path and missing None handling in the Jinja2
template. Fixed by correcting the include path and adding a
replace filter to remove "None" values.
2. PCI passthrough target_guest field was defaulting to empty string,
preventing devices from being assigned to guests. Fixed by setting
the Kconfig default to reference KDEVOPS_HOSTS_PREFIX, which
automatically assigns devices to the configured host prefix (e.g.,
"debian13").
With these fixes, PCI passthrough configuration now correctly appears
in the generated guestfs/kdevops_nodes.yaml file when devices are
enabled and target_guest is properly configured.
Generated-by: Claude AI
Reviewed-by: Chuck Lever <[email protected]>
Signed-off-by: Luis Chamberlain <[email protected]>1 parent a1bedce commit b8bfcea
File tree
3 files changed
+5
-5
lines changed- playbooks
- python/workflows/dynamic-kconfig
- roles/gen_nodes/templates
3 files changed
+5
-5
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
0 commit comments