]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Forbid <memoryBacking><locked> without <memtune><hard_limit>
authorAndrea Bolognani <abologna@redhat.com>
Mon, 6 Feb 2017 16:54:49 +0000 (17:54 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 7 Feb 2017 17:43:10 +0000 (18:43 +0100)
commitc2e60ad0e5124482942164e5fec088157f5e716a
treea5579bb2c513f2ebd436f1525b101b60ec55bfed
parent28a7fd8ac17deab4d95746148e3cfafb620c6669
qemu: Forbid <memoryBacking><locked> without <memtune><hard_limit>

In order for memory locking to work, the hard limit on memory
locking (and usage) has to be set appropriately by the user.

The documentation mentions the requirement already: with this
patch, it's going to be enforced by runtime checks as well,
by forbidding a non-compliant guest from being defined as well
as edited and started.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1316774
src/qemu/qemu_domain.c
tests/qemuxml2argvdata/qemuxml2argv-mlock-on.xml