Skip to content

Commit

Permalink
kvm: enforce q35 when using emulated sriov
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Feb 22, 2024
1 parent 6461283 commit cc8db10
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kvirt/providers/kvm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,9 @@ def create(self, name, virttype=None, profile='kvirt', flavor=None, plan='kvirt'
ovsxml.format(port_name)
else:
ovsxml.format("")
if nettype == 'igb' and machine == 'pc':
machine = 'q35'
warning(f"Forcing machine type to {machine}")
if nicnuma is not None:
slot = nicslots[nicnuma] + 1
nicslots[nicnuma] = slot
Expand Down

0 comments on commit cc8db10

Please sign in to comment.