]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: simplify qemuDomainGetMemLockLimitBytes()
authorLaine Stump <laine@redhat.com>
Tue, 23 Mar 2021 17:13:33 +0000 (13:13 -0400)
committerLaine Stump <laine@redhat.com>
Wed, 24 Mar 2021 19:06:08 +0000 (15:06 -0400)
commit0789edc86a2f4fd12b41afb7ab7c8a7321142cfa
tree3cc47b78a13fc3ef0c37db2f9b7d590c5722d39a
parent43d8d16161760e59b208ada49c69efad6d2b9a1f
qemu: simplify qemuDomainGetMemLockLimitBytes()

This function goes through a loop checking if each hostdev is a VFIO
or mdev device, and then later it calls virDomainDefHasNVMEDisk(). The
function qemuDomainNeedsVFIO() does exactly the same thing, so let's
just call that instead.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
src/qemu/qemu_domain.c