mirror of
https://github.com/HikariKnight/quickpassthrough.git
synced 2025-06-07 18:14:40 -04:00
Compare commits
No commits in common. "main" and "2.1.2" have entirely different histories.
2 changed files with 6 additions and 8 deletions
|
@ -22,10 +22,10 @@ func Set_Dracut() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Write to logger
|
// Write to logger
|
||||||
logger.Printf("Writing to %s:\nforce_drivers+=\" %s \"\n", dracutConf, strings.Join(vfio_modules(), " "))
|
logger.Printf("Writing to %s:\nadd_drivers+=\" %s \"\n", dracutConf, strings.Join(vfio_modules(), " "))
|
||||||
|
|
||||||
// Write the dracut config file
|
// Write the dracut config file
|
||||||
fileio.AppendContent(fmt.Sprintf("force_drivers+=\" %s \"\n", strings.Join(vfio_modules(), " ")), dracutConf)
|
fileio.AppendContent(fmt.Sprintf("add_drivers+=\" %s \"\n", strings.Join(vfio_modules(), " ")), dracutConf)
|
||||||
|
|
||||||
// Get the current kernel arguments we have generated
|
// Get the current kernel arguments we have generated
|
||||||
kernel_args := fileio.ReadFile(config.Path.CMDLINE)
|
kernel_args := fileio.ReadFile(config.Path.CMDLINE)
|
||||||
|
|
|
@ -26,11 +26,9 @@ func genVBIOS_dumper(config *configs.Config) {
|
||||||
scriptdir, _ = os.Getwd()
|
scriptdir, _ = os.Getwd()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Search for a vbios path and generate the vbios dumping script if found
|
// Get the vbios path and generate the vbios dumping script
|
||||||
vbios_paths := lsiommu.GetIOMMU("-g", "-i", config.Gpu_Group, "--rom")
|
vbios_path := lsiommu.GetIOMMU("-g", "-i", config.Gpu_Group, "--rom")[0]
|
||||||
if len(vbios_paths) != 0 {
|
configs.GenerateVBIOSDumper(vbios_path)
|
||||||
configs.GenerateVBIOSDumper(vbios_paths[0])
|
|
||||||
}
|
|
||||||
|
|
||||||
// Make the qemu config folder
|
// Make the qemu config folder
|
||||||
os.Mkdir(fmt.Sprintf("%s/%s", scriptdir, config.Path.QEMU), os.ModePerm)
|
os.Mkdir(fmt.Sprintf("%s/%s", scriptdir, config.Path.QEMU), os.ModePerm)
|
||||||
|
@ -53,7 +51,7 @@ func genVBIOS_dumper(config *configs.Config) {
|
||||||
"rom to the VM along with the card in order to get a functional passthrough.\n",
|
"rom to the VM along with the card in order to get a functional passthrough.\n",
|
||||||
"In many cases you can find your vbios at https://www.techpowerup.com/vgabios/\n",
|
"In many cases you can find your vbios at https://www.techpowerup.com/vgabios/\n",
|
||||||
"\n",
|
"\n",
|
||||||
"If we found a romfile for your GPU you can also attempt to dump your own vbios from TTY using the script in\n",
|
"You can also attempt to dump your own vbios from TTY using the script in\n",
|
||||||
fmt.Sprintf("%s/utils/dump_vbios.sh\n", scriptdir),
|
fmt.Sprintf("%s/utils/dump_vbios.sh\n", scriptdir),
|
||||||
"\n",
|
"\n",
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue