Jonathon Jongsma 2a2d586043 qemu: fix memlock without vIOMMU
When there is no vIOMMU, vfio devices don't need to lock the entire guest
memory per-device, but they still need to lock the entire guest memory to
share between all vfio devices. This memory accounting is not shared
with vDPA devices, so it should be added to the memlock limit separately.

Commit 8d5704e2 added support for multiple vfio/vdpa devices but
calculated the limits incorrectly when there were both vdpa and vfio
devices and no vIOMMU. In this case, the memory lock limit was not
increased separately for the vfio devices.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2143838

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
2022-11-21 15:37:41 -06:00
..
2022-06-16 06:43:57 +02:00
2022-06-16 06:43:57 +02:00
2022-06-16 06:43:57 +02:00
2022-11-21 15:37:41 -06:00
2022-06-16 06:43:57 +02:00
2022-06-16 06:43:57 +02:00
2022-11-11 16:48:48 +01:00
2022-06-16 06:43:57 +02:00
2022-06-16 06:43:57 +02:00
2022-06-16 06:43:57 +02:00
2022-06-16 06:43:57 +02:00
2022-06-16 06:43:57 +02:00
2022-06-16 06:43:57 +02:00
2022-06-16 06:43:57 +02:00
2022-06-16 06:43:57 +02:00
2022-11-11 16:48:48 +01:00