resources: virt: Allow hotplugging

This allows hot (un)plugging of CPU's! It also includes some general
cleanups which were necessary to support this as well as some other
features to the virt resource. Hotunplug requires Fedora 25.

It also comes with a mini shell script to help demo this capability.

Many thanks to pkrempa for his help with the libvirt API!
This commit is contained in:
James Shubin
2017-01-10 02:12:51 -05:00
parent 74dfb9d88d
commit bec7f1726f
5 changed files with 603 additions and 139 deletions

View File

@@ -14,7 +14,7 @@ ROOT=$(dirname "${BASH_SOURCE}")/..
cd "${ROOT}"
find_files() {
git ls-files | grep -e '\.sh$' -e '\.bash$'
git ls-files | grep -e '\.sh$' -e '\.bash$' | grep -v 'misc/delta-cpu.sh'
}
bad_files=$(