package configs import ( "fmt" "github.com/HikariKnight/quickpassthrough/internal/logger" "github.com/HikariKnight/quickpassthrough/pkg/fileio" ) // This function adds the disable vfio video output on host option to the config // The function will use the given int as the value for the option func DisableVFIOVideo(i int) { // Get the config config := GetConfig() // Write to logger logger.Printf("Adding vfio_pci.disable_vga=%v to %s", i, config.Path.CMDLINE) // Add to the kernel arguments that we want to disable VFIO video output on the host fileio.AppendContent( fmt.Sprintf( " vfio_pci.disable_vga=%v", i, ), config.Path.CMDLINE, ) }