[PATCH v1 06/34] qemu_domain_namespace: Check for namespace enablement earlier

Ján Tomko jtomko at redhat.com
Fri Jul 24 10:15:23 UTC 2020

On a Wednesday in 2020, Michal Privoznik wrote:
>Functions that create a device node after domain startup (used
>from hotplug) will get a list of paths they want to create and
>eventually call qemuDomainNamespaceMknodPaths() which then checks
>whether domain mount namespace is enabled in the first place.
>Alternatively, on device hotunplug, we might want to delete a
>path inside domain namespace in which case
>qemuDomainNamespaceUnlinkPaths() checks whether the namespace is
>enabled. While this is not dangerous, it certainly burns a couple
>of CPU cycles needlessly.
>Check whether mount namespace is enabled upfront.
>Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> src/qemu/qemu_domain_namespace.c | 39 ++++++++++++++++++++++++++++----
> 1 file changed, 35 insertions(+), 4 deletions(-)

Reviewed-by: Ján Tomko <jtomko at redhat.com>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200724/c493931d/attachment-0001.sig>

More information about the libvir-list mailing list