27 Commits (master)

Author SHA1 Message Date
Ivan Avdeev 0410193a20 fix qemu script to run a single $HOOKPATH file
A missing space typo prevented detecting presence and validity of a single file at `$HOOKPATH`.
2 years ago
basharkey a1715591ca switch shebang to use environment bash 2 years ago
Sebastiaan 1166bbe123 More instructions 3 years ago
Sebastiaan 8e101eb257 Cosmetics 3 years ago
Sebastiaan 7380ff7301 Add a better hugepages script
This one actually does have a function.
3 years ago
Sebastiaan c8c7ed0e5b Add a comment about how the hugepages allocation script is pointless nowadays and shouldn't be used.
Arch wiki can eat my boot (it's still the best resource though)
3 years ago
Xelibix 601115589c Correct Log Mistake
I made small correction of my last PR
3 years ago
Xelibix 72ba34e636 Fixes nice.sh wrong folder 3 years ago
jolan 947d90b334 adjust quoting and fix empty directory case
This fixes "/etc/libvirt/hooks/qemu: line 27: : command not found"
errors that have been reported due to extraneous quoting.  It also
fixes a case where an empty directory would trigger an attempt to
interpret a null string as a hook script.  Added some extra
validation for the single script case as well.
4 years ago
Benjamin Sherman 57b48906b2 Fix bug with hugepages sys dir
Corrects an error such as this:
/etc/libvirt/hooks/qemu.d/MYVM/prepare/begin/hugepages.sh: line 42: /sys/devices/system/node/node0/hugepages: Is a directory
4 years ago
Shoelaceman 663e8f2061 Move a logging function away from other functions, comment what it does 4 years ago
Shoelaceman f9b4e1c294 Fixed inconsistency in whitespacing 4 years ago
Shoelaceman 58971c6a37 Fix inconsistent tabbing 4 years ago
Shoelaceman 3a0a6e772c Merge alloc_hugepages, and unalloc_hugepages into one script, add checks and logging 4 years ago
Shoelaceman 5a33a6d62d Update author line, update docs 4 years ago
Shoelaceman 79bbd97000 Light code cleanup/restructure 4 years ago
Shoelaceman 6e5d0ca3b1 Check if any hugepages are allocated before unallocating them 4 years ago
Shoelaceman 89ff109d24 Make unalloc_hugepages.sh executable 4 years ago
Sebastiaan Meijer 13b41ce4ef Fix an oopsie 4 years ago
Sebastiaan Meijer a2c83ac81d Rework hook helper script to hopefully be more reliable 4 years ago
Danny Lin 99af92bfc4 hooks: Add CFS nice level adjustment hook
Signed-off-by: Danny Lin <danny@kdrag0n.dev>
5 years ago
Danny Lin 4ac47a2517 hooks: Add cset CPU isolation hook
Signed-off-by: Danny Lin <danny@kdrag0n.dev>
5 years ago
Trent Arcuri d403f0efcb Remove commented lines of code 6 years ago
Stefan Erdmann a431046500 Adding scripts for auto-allocation of HugePages 6 years ago
Sebastiaan Meijer e969bc084f Max search depth should be 1
Signed-off-by: Sebastiaan Meijer <sebastiaan@passthroughpo.st>
7 years ago
Sebastiaan Meijer 7b276e2fd8 Add a hook that automatically switches your display input to your VM.
Signed-off-by: Sebastiaan Meijer <sebastiaan@passthroughpo.st>
7 years ago
Sebastiaan Meijer df93e80b05 Add a new hook handler for libvirt for easier per-VM hooks.
Signed-off-by: Sebastiaan Meijer <sebastiaan@passthroughpo.st>
7 years ago