]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: add runtime config option for nbdkit
authorJonathon Jongsma <jjongsma@redhat.com>
Wed, 8 Nov 2023 19:14:50 +0000 (13:14 -0600)
committerJonathon Jongsma <jjongsma@redhat.com>
Thu, 4 Jan 2024 20:34:40 +0000 (14:34 -0600)
commit9eabf14afbd429af1be195723fdeab5ccdd0b2cd
tree7d30d4a559b3555929de930d2729b7ad58b1cb4d
parenta43fb797b5481be2bf9ece9f62210f21b8b8ec3b
qemu: add runtime config option for nbdkit

Currently when we build with nbdkit support, libvirt will always try to
use nbdkit to access remote disk sources when it is available. But
without an up-to-date selinux policy allowing this, it will fail.
because the required selinux policies are not yet widely available, we
have disabled nbdkit support on rpm builds for all distributions before
Fedora 40.

Unfortunately, this makes it more difficult to test nbdkit support.
After someone updates to the necessary selinux policies, they would also
need to rebuild libvirt to enable nbdkit support. By introducing a
configure option (nbdkit_config_default), we can build packages with
nbdkit support but have it disabled by default.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Suggested-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
libvirt.spec.in
meson.build
meson_options.txt
src/qemu/libvirtd_qemu.aug
src/qemu/meson.build
src/qemu/qemu.conf.in
src/qemu/qemu_conf.c
src/qemu/qemu_conf.h
src/qemu/qemu_domain.c
src/qemu/test_libvirtd_qemu.aug.in
tests/qemuxml2argvtest.c