]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Remove qemuDomainRequiresMemLock()
authorAndrea Bolognani <abologna@redhat.com>
Tue, 21 Mar 2017 18:52:50 +0000 (19:52 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 28 Mar 2017 08:54:47 +0000 (10:54 +0200)
commit1f7661af8cc26193d2945dba24691e25b69394cc
tree6d6ab7982baa95317932caf30d7b111c72d3dfe1
parent4b67e7a3779a695ad4460874ff6848e086ba08f3
qemu: Remove qemuDomainRequiresMemLock()

Instead of having a separate function, we can simply return
zero from the existing qemuDomainGetMemLockLimitBytes() to
signal the caller that the memory locking limit doesn't need
to be set for the guest.

Having a single function instead of two makes it less likely
that we will use the wrong value, which is exactly what
happened when we started applying the limit that was meant
for VFIO-using guests to <memoryBacking><locked>-using
guests.
src/qemu/qemu_command.c
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h