Move disableVFIOVideo into its own file

This commit is contained in:
HikariKnight 2023-04-09 19:11:30 +02:00
parent 9d131fa566
commit 5f38467e23
2 changed files with 12 additions and 10 deletions

View file

@ -0,0 +1,11 @@
package configs
import "github.com/HikariKnight/quickpassthrough/pkg/fileio"
func DisableVFIOVideo() {
// Get the config
config := GetConfig()
// Add to the kernel arguments that we want to disable VFIO video output on the host
fileio.AppendContent(" vfio_pci.disable_vga=1", config.Path.CMDLINE)
}