Libvirt provides a portable, long term stable C API for managing the virtualization technologies provided by many operating systems. It includes support for QEMU, KVM, Xen, LXC, bhyve, Virtuozzo, VMware vCenter and ESX, VMware Desktop, Hyper-V, VirtualBox and the POWER Hypervisor.
Go to file
Jim Meyering d010b68962 make NUMA-initialization code more portable and more robust
qemudCapsInitNUMA and umlCapsInitNUMA were identical, so this change
factors them into a new function, virCapsInitNUMA, and puts it in
nodeinfo.c.

In addition to factoring out the duplicates, this change also
adjusts that function definition (along with its macros) so
that it works with Fedora 9's numactl version 1, and makes it
so the code will work even if someone builds the kernel with
CONFIG_NR_CPUS > 4096.

Finally, also perform this NUMA initialization for the lxc
and openvz drivers.

* src/nodeinfo.c: Include <stdint.h>, <numa.h> and "memory.h".
(virCapsInitNUMA): Rename from qemudCapsInitNUMA and umlCapsInitNUMA.
(NUMA_MAX_N_CPUS): Define depending on NUMA API version.
(n_bits, MASK_CPU_ISSET): Define, adjust, use uint64 rather than long.
* src/nodeinfo.h: Include "capabilities.h".
(virCapsInitNUMA): Declare it.
* examples/domain-events/events-c/Makefile.am:
* src/Makefile.am: Add $(NUMACTL_CFLAGS) and $(NUMACTL_LIBS) to various
compile/link-related variables.
* src/qemu_conf.c: Include "nodeinfo.h".
(qemudCapsInitNUMA): Remove duplicate code.  Adjust caller.
* src/uml_conf.c (umlCapsInitNUMA): Likewise.
Include "nodeinfo.h".
* src/lxc_conf.c: Include "nodeinfo.h".
(lxcCapsInit): Perform NUMA initialization here, too.
* src/openvz_conf.c (openvzCapsInit): And here.
Include "nodeinfo.h".
* src/libvirt_sym.version.in: Add virCapsInitNUMA so that libvirtd
can link to this function.
2008-12-21 18:55:09 +00:00
build-aux generate .gitignore files from .cvsignore ones 2008-10-17 10:03:15 +00:00
docs make NUMA-initialization code more portable and more robust 2008-12-21 18:55:09 +00:00
examples/domain-events Replace __FUNCTION__ with __func__ for better portability (John Levon) 2008-12-18 12:25:11 +00:00
gnulib * gnulib/tests/test-EOVERFLOW: Remove. 2008-11-24 07:09:36 +00:00
include release of 0.5.1 2008-12-04 15:54:26 +00:00
m4 Use gnulib, starting with its physmem and getaddrinfo modules. 2007-12-05 21:31:07 +00:00
po remove cvs $Id$ strings 2008-12-12 12:45:34 +00:00
proxy Push URI probing logic down into individual drivers 2008-11-17 11:44:51 +00:00
python Replace __FUNCTION__ with __func__ for better portability (John Levon) 2008-12-18 12:25:11 +00:00
qemud Fix unused variable compile warning when polkit is disabled (John Levon) 2008-12-18 12:00:45 +00:00
src make NUMA-initialization code more portable and more robust 2008-12-21 18:55:09 +00:00
tests avoid "make check" failures due to localized error messages 2008-12-20 23:23:50 +00:00
.cvsignore updates from gnulib 2008-10-28 17:47:12 +00:00
.gitignore updates from gnulib 2008-10-28 17:47:12 +00:00
.x-sc_avoid_ctype_macros exempt gnulib from ctype-macros prohibition 2008-10-28 17:36:31 +00:00
.x-sc_avoid_if_before_free Remove more useless if tests before "free"-like functions. 2008-02-07 16:49:29 +00:00
.x-sc_avoid_write exempt gnulib from write-avoidance syntax check 2008-10-28 17:42:41 +00:00
.x-sc_no_have_config_h Enable another syntax-check rule. 2008-02-07 19:20:36 +00:00
.x-sc_prohibit_gethostby syntax-check: prohibit all new uses of gethostby* functions 2008-12-11 15:14:03 +00:00
.x-sc_prohibit_strcmp exempt gnulib/ from "make syntax-check" strcmp prohibition 2008-05-14 21:18:27 +00:00
.x-sc_require_config_h Enable the <config.h>-requiring test; fix violations 2008-01-29 18:15:54 +00:00
.x-sc_require_config_h_first enforce the "include <config.h> first" rule 2008-12-17 17:23:21 +00:00
.x-sc_trailing_blank build: exempt *.ico files from the trailing blank check 2008-10-16 13:28:07 +00:00
acinclude.m4 Fix gcc-ism in python build (John Levon) 2008-12-18 12:20:00 +00:00
AUTHORS add --version support to libvirtd 2008-12-12 07:56:50 +00:00
autobuild.sh Disable UML build on mingw32 2008-11-24 16:50:18 +00:00
autogen.sh Remove all trailing blanks; turn on the rule to detect them. 2008-02-05 19:27:37 +00:00
bootstrap use more gnulib modules 2008-10-28 17:46:07 +00:00
ChangeLog make NUMA-initialization code more portable and more robust 2008-12-21 18:55:09 +00:00
configure.in Convert linker script comments & linker args to be Solaris compat (John Levon) 2008-12-17 21:39:41 +00:00
COPYING.LIB Initial revision 2005-11-02 12:50:21 +00:00
GNUmakefile Sync Makefile rules from coreutils. 2008-03-24 10:20:15 +00:00
HACKING let gcc's -Wformat do its job; avoid "make syntax-check" failure 2008-12-17 17:22:43 +00:00
libvirt.pc.in * libvirt.pc.in: applied patch from Daniel Berrange to fix --cflags 2006-03-24 13:18:12 +00:00
libvirt.spec.in * libvirt.spec.in: fix a conditional bug in spec file #460510, 2008-12-12 07:36:20 +00:00
Makefile.am enforce the "include <config.h> first" rule 2008-12-17 17:23:21 +00:00
Makefile.cfg Remove all use of strcmp, strncmp in favour of STREQ, STREQLEN, STRPREFIX 2008-05-14 19:51:24 +00:00
Makefile.maint Makefile.maint: use $(srcdir), not $(top_srcdir) 2008-12-18 06:45:05 +00:00
mingw32-libvirt.spec.in Disable UML driver on mingw RPM build 2008-11-25 11:27:51 +00:00
NEWS release of 0.5.1 2008-12-04 15:54:26 +00:00
README Correct typos in the documentation (Atsushi SAKAI) 2008-01-24 10:15:13 +00:00
RENAMES remove cvs $Id$ strings 2008-12-12 12:45:34 +00:00
TODO Remove all trailing blanks; turn on the rule to detect them. 2008-02-05 19:27:37 +00:00
virsh.1 Remove a trailing blank. 2008-04-17 08:40:53 +00:00

         LibVirt : simple API for virtualization

  Libvirt is a C toolkit to interact with the virtualization capabilities
of recent versions of Linux (and other OSes). It is free software
available under the GNU Lesser General Public License. Virtualization of
the Linux Operating System means the ability to run multiple instances of
Operating Systems concurrently on a single hardware system where the basic
resources are driven by a Linux instance. The library aim at providing
long term stable C API initially for the Xen paravirtualization but
should be able to integrate other virtualization mechanisms if needed.

Daniel Veillard <veillard@redhat.com>