Skip to content

Comments

Provide option to bind VFs to vfio driver#690

Merged
guvenc merged 1 commit intomainfrom
enh/init_script
Jun 25, 2025
Merged

Provide option to bind VFs to vfio driver#690
guvenc merged 1 commit intomainfrom
enh/init_script

Conversation

@byteocean
Copy link
Contributor

@byteocean byteocean commented Jun 16, 2025

#680

This enhanced init script provides extra steps to manually bind VFs to vfio-pci driver, which is automatically done by libvirt.

There are two ways to use this feature:

  1. after rebooting, use this script with --vfio-auto-bind. It creates VFs binding to vfio-pci;
  2. if you already have VFs, terminate/undefine all VMs, and run this script with --vfio-bind-only, it will do binding only.

Copy link
Contributor

@PlagueCZ PlagueCZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems the best way to implement this, just some small details I would address.

@byteocean byteocean force-pushed the enh/init_script branch 2 times, most recently from c8fcaa1 to fcee5bb Compare June 20, 2025 11:46
@byteocean byteocean marked this pull request as ready for review June 20, 2025 14:26
@byteocean byteocean requested a review from a team as a code owner June 20, 2025 14:26
Copy link
Contributor

@PlagueCZ PlagueCZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great now.
Did not test on my hardware though.

@guvenc guvenc added this to the H1/2025 milestone Jun 25, 2025
@guvenc guvenc removed this from the H1/2025 milestone Jun 25, 2025
@guvenc guvenc linked an issue Jun 25, 2025 that may be closed by this pull request
1 task
@guvenc guvenc merged commit d774212 into main Jun 25, 2025
5 checks passed
@guvenc guvenc deleted the enh/init_script branch June 25, 2025 10:15
@github-project-automation github-project-automation bot moved this to Done in Roadmap Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Support cloud-hypervisor by extending init script

3 participants