Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Script cleanup, changes to hugepages, romfile specification and more.
Readme touchup Hugepage --help clarification Removed broken quotes from romfile var Removed +1 from hugepage allocation, as in future it could be a 2MB or 1GB difference. Added -vbios as alternative to -romfile flag. Added conditional '[ "$driver" != "vfio-pci" ]' to restorebind in case More script cleanup (various echoing changes, functions for repetitive calls etc) -Hugepages rework to support custom hugepage mountpoints where one may have specified 1G page sizes. However will no longer mount /dev/hugepages on its own anymore as it'll be expected by default on a Linux system. -Hugepages also now supports preallocation now and if enough preallocated pages are free for a guest it'll use what's already present. Useful if someone wants to do `hugepagesz=1G hugepages=10` on their cmdline for early allocation at boot time and mount their own hugetlbfs with -o pagesize=1G and point the script to that. Doing this also skips cache drops and memory compaction -romfile argument added to support using a custom vbios file for when a when GPU pci device is detected and arguments for it get created for qemu. Changed memory-backend-file id for future reference
- Loading branch information