]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Use namespaces iff available on the host kernel
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 11 Jan 2017 10:05:50 +0000 (11:05 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 11 Jan 2017 17:07:43 +0000 (18:07 +0100)
commit49f326edc0f97e2fab00fd6d76fe792d0e078368
tree97e3ee064438c7fbf0e76a0c5ad10f772ff8a31f
parent41816751a79b075c8404db3bc92d7295d57ab923
qemu: Use namespaces iff available on the host kernel

So far the namespaces were turned on by default unconditionally.
For all non-Linux platforms we provided stub functions that just
ignored whatever namespaces setting there was in qemu.conf and
returned 0 to indicate success. Moreover, we didn't really check
if namespaces are available on the host kernel.

This is suboptimal as we might have ignored user setting.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_conf.c
src/qemu/qemu_domain.c