Skip to content

Commit

Permalink
pillar/xen: use better indicator for usb controlle
Browse files Browse the repository at this point in the history
this one checks for IoUSBController and IoUSB and works
better with deprecated models that still use the old type

Signed-off-by: Christoph Ostarek <[email protected]>
  • Loading branch information
christoph-zededa committed Feb 25, 2025
1 parent 15d42fd commit 7c58026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pillar/hypervisor/xen.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ func (ctx xenContext) CreateDomConfig(domainName string,
short := types.PCILongToShort(pa.ioBundle.PciLong)
// USB controller are subject to legacy USB support from
// some BIOS. Use relaxed to get past that.
if pa.ioBundle.Type == types.IoUSBController {
if pa.ioBundle.IsUSBController() {
cfg = cfg + fmt.Sprintf("'%s,rdm_policy=relaxed'",
short)
} else {
Expand Down

0 comments on commit 7c58026

Please sign in to comment.