[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3.1 24/31] configure: add Linux libnuma detecti
From: |
Hu Tao |
Subject: |
Re: [Qemu-devel] [PATCH v3.1 24/31] configure: add Linux libnuma detection |
Date: |
Thu, 8 May 2014 16:34:22 +0800 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Wed, May 07, 2014 at 05:57:13PM +0300, Michael S. Tsirkin wrote:
> On Tue, May 06, 2014 at 05:27:45PM +0800, Hu Tao wrote:
> > From: Wanlong Gao <address@hidden>
> >
> > Add detection of libnuma (mostly contained in the numactl package)
> > to the configure script. Can be enabled or disabled on the command
> > line, default is use if available.
> >
> > Signed-off-by: Andre Przywara <address@hidden>
> > Signed-off-by: Wanlong Gao <address@hidden>
> > Signed-off-by: Paolo Bonzini <address@hidden>
> > Signed-off-by: Hu Tao <address@hidden>
> > ---
> > configure | 33 +++++++++++++++++++++++++++++++++
> > 1 file changed, 33 insertions(+)
> >
> > diff --git a/configure b/configure
> > index 870c939..c3df5e6 100755
> > --- a/configure
> > +++ b/configure
> > @@ -324,6 +324,7 @@ tpm="no"
> > libssh2=""
> > vhdx=""
> > quorum="no"
> > +numa=""
> >
> > # parse CC options first
> > for opt do
> > @@ -1087,6 +1088,10 @@ for opt do
> > ;;
> > --enable-quorum) quorum="yes"
> > ;;
> > + --disable-numa) numa="no"
> > + ;;
> > + --enable-numa) numa="yes"
> > + ;;
> > *)
> > echo "ERROR: unknown option $opt"
> > echo "Try '$0 --help' for more information"
> > @@ -1354,6 +1359,8 @@ Advanced options (experts only):
> > --enable-vhdx enable support for the Microsoft VHDX image
> > format
> > --disable-quorum disable quorum block filter support
> > --enable-quorum enable quorum block filter support
> > + --disable-numa disable libnuma support
> > + --enable-numa enable libnuma support
> >
> > NOTE: The object files are built at the place where configure is launched
> > EOF
> > @@ -3113,6 +3120,27 @@ if compile_prog "" "" ; then
> > fi
> >
> > ##########################################
> > +# libnuma probe
> > +
> > +if test "$numa" != "no" ; then
> > + numa=no
> > + cat > $TMPC << EOF
> > +#include <numa.h>
> > +int main(void) { return numa_available(); }
> > +EOF
> > +
> > + if compile_prog "" "-lnuma" ; then
> > + numa=yes
> > + libs_softmmu="-lnuma $libs_softmmu"
> > + else
> > + if test "$numa" = "yes" ; then
> > + feature_not_found "linux NUMA (install numactl?)"
>
> Which distro?
> At least for Fedora I think one needs numactl-devel?
Yes, on Fedora the package is called numactl-devel. But, to
follow other similar messages I'll change it into
'install numactl devel'.
Regards,
Hu Tao
- [Qemu-devel] [PATCH v3.1 06/31] man: improve -numa doc, (continued)
- [Qemu-devel] [PATCH v3.1 06/31] man: improve -numa doc, Hu Tao, 2014/05/06
- [Qemu-devel] [PATCH v3.1 16/31] memory: add error propagation to file-based RAM allocation, Hu Tao, 2014/05/06
- [Qemu-devel] [PATCH v3.1 18/31] memory: move RAM_PREALLOC_MASK to exec.c, rename, Hu Tao, 2014/05/06
- [Qemu-devel] [PATCH v3.1 19/31] hostmem: add file-based HostMemoryBackend, Hu Tao, 2014/05/06
- [Qemu-devel] [PATCH v3.1 20/31] hostmem: separate allocation from UserCreatable complete method, Hu Tao, 2014/05/06
- [Qemu-devel] [PATCH v3.1 17/31] memory: move preallocation code out of exec.c, Hu Tao, 2014/05/06
- [Qemu-devel] [PATCH v3.1 14/31] memory: reorganize file-based allocation, Hu Tao, 2014/05/06
- [Qemu-devel] [PATCH v3.1 21/31] hostmem: add merge and dump properties, Hu Tao, 2014/05/06
- [Qemu-devel] [PATCH v3.1 24/31] configure: add Linux libnuma detection, Hu Tao, 2014/05/06
- [Qemu-devel] [PATCH v3.1 25/31] hostmem: add properties for NUMA memory policy, Hu Tao, 2014/05/06
- [Qemu-devel] [PATCH v3.1 31/31] hmp: add info memdev, Hu Tao, 2014/05/06
- [Qemu-devel] [PATCH v3.1 22/31] hostmem: allow preallocation of any memory region, Hu Tao, 2014/05/06
- [Qemu-devel] [PATCH v3.1 29/31] qom: introduce object_property_get_enum and object_property_get_uint16List, Hu Tao, 2014/05/06
- [Qemu-devel] [PATCH v3.1 27/31] qapi: make string input visitor parse int list, Hu Tao, 2014/05/06
- [Qemu-devel] [PATCH v3.1 26/31] Introduce signed range., Hu Tao, 2014/05/06
- [Qemu-devel] [PATCH v3.1 23/31] hostmem: add property to map memory with MAP_SHARED, Hu Tao, 2014/05/06
- [Qemu-devel] [PATCH v3.1 30/31] qmp: add query-memdev, Hu Tao, 2014/05/06