1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-23 21:34:54 +03:00
Libvirt native C API and daemons
Go to file
Chris Lalancette a24b1d9eda When doing the conversion to danpb's new memory API, a small bug was
introduced into the qemudNetworkIfaceConnect() function.  In particular, there
is a call:

    if (VIR_ALLOC_N(vm->tapfds, vm->ntapfds+2) < 0)
        goto no_memory;

However, the tapfds structure is used to track *all* of the tap fds, and is
called once for each network that is being attached to the domain.  VIR_ALLOC_N
maps to calloc().  So the first network would work just fine, but if you had
more than one network, subsequent calls to this function would blow away the
stored fd's that were already there and fill them all in with zeros.  This
causes multiple problems, from the qemu domains not starting properly to
improper cleanup on shutdown.  The attached patch just changes the VIR_ALLOC_N()
to a VIR_REALLOC_N(), and everything is happy again.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
2008-06-19 10:38:36 +00:00
build-aux Prepare to use gnulib's c-type module. 2008-05-09 13:46:09 +00:00
docs * configure.in NEWS libvirt.spec* doc/* po/*: making libvirt-0.4.3 2008-06-12 16:10:50 +00:00
gnulib Ignore generated test binaries 2008-05-14 23:56:33 +00:00
include * configure.in NEWS libvirt.spec* doc/* po/*: making libvirt-0.4.3 2008-06-12 16:10:50 +00:00
m4 Use gnulib, starting with its physmem and getaddrinfo modules. 2007-12-05 21:31:07 +00:00
po * configure.in NEWS libvirt.spec* doc/* po/*: making libvirt-0.4.3 2008-06-12 16:10:50 +00:00
proxy Remove all use of strcmp, strncmp in favour of STREQ, STREQLEN, STRPREFIX 2008-05-14 19:51:24 +00:00
python * python/libvir.py python/libvirt-python-api.xml: more python 2008-06-11 07:49:01 +00:00
qemud virDomainMemoryPeek API 2008-06-10 10:43:28 +00:00
src When doing the conversion to danpb's new memory API, a small bug was 2008-06-19 10:38:36 +00:00
tests Fix misc compile warnings 2008-06-12 13:48:29 +00:00
.cvsignore Ignore a few more files 2008-01-02 16:31:21 +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 Avoid new "make syntax-check" failures. 2008-02-25 10:00:16 +00:00
.x-sc_no_have_config_h Enable another syntax-check rule. 2008-02-07 19:20:36 +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_trailing_blank Ignore doc files for syntax check 2008-02-20 15:57:34 +00:00
acinclude.m4 Fix compat for old pkg-config and gnutls 2008-01-22 21:30:05 +00:00
AUTHORS Adding Kaitlin Rupert in the AUTHORS list 2008-06-12 08:56:59 +00:00
autobuild.sh Only run coverage tests if lcov is installed 2008-05-29 20:43:08 +00:00
autogen.sh Remove all trailing blanks; turn on the rule to detect them. 2008-02-05 19:27:37 +00:00
bootstrap Add support for -drive QEMU syntax, and virtio bus / disk type 2008-05-09 16:41:19 +00:00
ChangeLog adding autogen.sh to EXTRA_DIST 2008-06-13 09:08:44 +00:00
configure.in * configure.in NEWS libvirt.spec* doc/* po/*: making libvirt-0.4.3 2008-06-12 16:10:50 +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 General tips for contributing patches 2008-06-02 11:53:23 +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 * configure.in NEWS libvirt.spec* doc/* po/*: making libvirt-0.4.3 2008-06-12 16:10:50 +00:00
Makefile.am adding autogen.sh to EXTRA_DIST 2008-06-13 09:08:44 +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 (sc_prohibit_strcmp): Also prohibit strncmp. 2008-05-15 07:12:43 +00:00
NEWS * src/qemu_conf.c: patch from Kaitlin Rupert, dynamic devices 2008-06-13 07:56:59 +00:00
README Correct typos in the documentation (Atsushi SAKAI) 2008-01-24 10:15:13 +00:00
RENAMES Mon Jun 11 13:25:00 BST 2007 Richard W.M. Jones <rjones@redhat.com> 2007-06-11 12:25:06 +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>