[libvirt] [PATCH v3 1/4] qemu_domain: simplify non-VFIO memLockLimit calc for PPC64

Erik Skultety eskultet at redhat.com
Thu Mar 7 13:38:39 UTC 2019


On Tue, Mar 05, 2019 at 09:46:06AM -0300, Daniel Henrique Barboza wrote:
> passthroughLimit is being calculated even if usesVFIO is false.
> After that, a if/else conditional is used to check if we're going
> to sum it up with baseLimit.
>
> This patch initializes passthroughLimit to zero and always
> return memKB = baseLimit + passthroughLimit. The conditional
> is then used to calculate passthroughLimit if usesVFIO is true.
> This results in some cycles spared for the usesVFIO=false
> scenario, but the real motivation is to make the code simpler
> to add an alternative passthroughLimit formula for NVLink2
> passthrough.
>
> Signed-off-by: Daniel Henrique Barboza <danielhb413 at gmail.com>
> ---
Reviewed-by: Erik Skultety <eskultet at redhat.com>




More information about the libvir-list mailing list