Re: [libvirt PATCH] qemu: fix memlock without vIOMMU

2022-11-18 Thread Laine Stump
On 11/17/22 3:13 PM, Jonathon Jongsma wrote: 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

[libvirt PATCH] qemu: fix memlock without vIOMMU

2022-11-17 Thread Jonathon Jongsma
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