]> xenbits.xensource.com Git - libvirt.git/commit
qemu: increase locked memory limit when a vDPA device is present
authorLaine Stump <laine@redhat.com>
Tue, 23 Mar 2021 18:39:37 +0000 (14:39 -0400)
committerLaine Stump <laine@redhat.com>
Wed, 24 Mar 2021 19:06:08 +0000 (15:06 -0400)
commit98e22ff7493ac920c5ebab63f07cfea7313fd610
tree02a311c4579a34aa0a3d649b1bf8cfed1091ba05
parente7068a0bc21e8799357e5c20b4d35a5361d54997
qemu: increase locked memory limit when a vDPA device is present

Just like VFIO devices, vDPA devices may need to have all guest memory
pages locked/pinned in order to operate properly. In the case of VFIO
devices (including mdev and NVME, which also use VFIO) libvirt
automatically increases the locked memory limit when one of those
devices is present. This patch modifies that code to also increase the
limit if there are any vDPA devices present.

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