]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_domain: add a PPC64 memLockLimit helper
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Tue, 5 Mar 2019 12:46:07 +0000 (09:46 -0300)
committerErik Skultety <eskultet@redhat.com>
Thu, 7 Mar 2019 14:23:18 +0000 (15:23 +0100)
commit7a686fd2eae8d5674bb1213d8517dc5814fa6bf3
tree25f91bdec885c92df0b70333260c87e5e4b57e38
parentcf7c5212876b2403de5b0fafedec33af4439526e
qemu_domain: add a PPC64 memLockLimit helper

There is a lot of documentation in the comments about how PPC64 handles
passthrough VFIO devices to calculate the @memLockLimit. And more will
be added with the PPC64 NVLink2 support code.

Let's remove the PPC64 code from qemuDomainGetMemLockLimitBytes()
body and put it into a helper function. This will simplify the
flow of qemuDomainGetMemLockLimitBytes() that handles all the other
platforms and improves readability of the PPC64 specifics.

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/qemu/qemu_domain.c