tools: add option to explicitly enable VirtFS in QEMU build

9pfs support has been a documented feature since Xen 4.9, but QEMU will
not be built with backend support unless VirtFS is enabled, which is
predicated on the libcap and libattr dev packages being installed. This is
not obvious to anyone intending to use 9pfs.

This patch adds an 'enable-9pfs' option to configure which, if specified,
will cause '--enable-virtfs' to be passed to QEMU's configure. This will
cause the dependency on libcap and libattr to be called out if the packages
are not in installed.

For completeness, specifying 'disable-9pfs' will cause '--disable-virtfs' to
be passed to QEMU's confgure and not specifying an option will keep the
previous behaviour of predicating VirtFS on whether the libcap and libattr
packages are installed.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Acked-by: Wei Liu <wei.liu2@citrix.com>
This commit is contained in:
Paul Durrant authored and Wei Liu committed 2018-09-19 18:03:43 +01:00
1 parent 6e395f477f
commit 0cc1283094
4 files changed
+34 -3

No files matched your search

+8 -1
View File
@@ -486,5 +486,12 @@ AS_IF([test "x$systemd" = "xy"], [
])
])
AC_OUTPUT()
AC_ARG_ENABLE([9pfs],
AS_HELP_STRING([--enable-9pfs],
[Explicitly enable 9pfs support in QEMU build (default is to defer to QEMU configure default)]),
[AS_IF([test "x$enable_9pfs" = "xyes"], [ninepfs=y], [ninepfs=n])],[
])
AC_SUBST(ninepfs)
AC_OUTPUT()
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.