
Add the discard flag to libvirt XML when supported by libvirt and qemu, and when using file backed memory. The discard flag causes qemu to discard allocated memory via calling madvise with MADV_REMOVE when using file backed memory, to prevent writing out dirty instance memory. This is a significant performance improvement for shutting down instances that have recently written to significant portions of their memory. As qemu and libvirt do not guarantee the discard is run, this cannot be used for security purposes. Change-Id: Ia7cf4414feb335b3c2e863b4c8b4ff559b275c34 Implements: blueprint libvirt-file-backed-memory
OpenStack Nova Documentation README
Both contributor developer documentation and REST API documentation are sourced here.
Contributor developer docs are built to: https://docs.openstack.org/nova/latest/
API guide docs are built to: https://developer.openstack.org/api-guide/compute/
For more details, see the "Building the Documentation" section of doc/source/contributor/development-environment.rst.