572c2b18e2
This change adds a new hw:locked_memory extra spec and hw_locked_memory image property to contol preventing guest memory from swapping. This change adds docs and extend the flavor validators for the new extra spec. Also add new image property. Blueprint: libvirt-viommu-device Change-Id: Id3779594f0078a5045031aded2ed68ee4301abbd
14 lines
674 B
YAML
14 lines
674 B
YAML
---
|
|
features:
|
|
- |
|
|
Add new ``hw:locked_memory`` extra spec and ``hw_locked_memory`` image
|
|
property to lock memory on libvirt guest. Locking memory marks the guest
|
|
memory allocations as unmovable and unswappable.
|
|
``hw:locked_memory`` extra spec and ``hw_locked_memory`` image property
|
|
accept boolean values in string format like 'Yes' or 'false' value.
|
|
Exception `LockMemoryForbidden` will raise, if you set lock memory value
|
|
but not set either flavor extra spec
|
|
``hw:mem_page_size`` or image property ``hw_mem_page_size``,
|
|
so we can ensure that the scheduler can actually account for this correctly
|
|
and prevent out of memory events.
|