I want help making libvirt hook helper tool, hooks for gpu passthrough

I am trying to follow this guide: https://github.com/bryansteiner/gpu-passthrough-tutorial?tab=readme-ov-file#part2

I have idea how to make hooks. I have been looking for videos to just give me some baseline understanding of how to create specific hooks.

The guide shows the hooks and a tree but none of that makes any kind of sense that I can use to make my own hooks to pasthrough and then revert passthrough when I shutdown the VM. I have a Windows 11 VM currently setup and it runs as good as it can with no passthrough.

My system: systemd-boot EndeavourOS Neo-Mercury

Operating System: EndeavourOS 
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2
Kernel Version: 6.16.8-arch3-1 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-6500 CPU @ 3.20GHz
Memory: 32 GiB of RAM (31.2 GiB usable)
Graphics Processor 1: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
Graphics Processor 2: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
Manufacturer: Dell Inc.
Product Name: OptiPlex 3050

My video audio ids for group 2 Nvidia gpu: 10de:1c03, 10de:10f1

Video: 10de:1c03
Audio: 10de:10f1

Any help to point me in the right direction would greatly appreciated.:slightly_smiling_face: