This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# Copyright (c) 2021 Luca Anastasio | |
# anastasio<dot>lu<at>gmail<dot>com | |
# Hookscript to avoid taking PCI passed through devices from running VMs | |
# also attaches them to their placeholders after guests are stopped | |
# You can set this via qm with | |
# qm set 100 --hookscript local:snippets/hookscript.pl | |
use strict; |