[DNM] PoC for huge pages in libvirt domain definition
There is no verification if host supports huge pages. There is no verification of any kind of additional libvirt/qemu configuration if it's needed for huge pages. There is no validation of nodeset value at the moment.
Simply if there is VirtletHugePages annotation its value is used to construct data in memoryBacking section of libvirt domain xml (according to https://libvirt.org/formatdomain.html#elementsMemoryBacking).
Whole value is split to sub entries using ";" as separator. Each entry should have 3 values:
- size - as a uint
- unit - single character denoting unit size (K, M, or G)
- nodeset - node ranges (e.g. 0-3), or/and particular node numbers of numa nodes, combined with comma sign (please refer to libvirt docs for details - this part is passed "as is" to domain definition).
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.