Daniel Veillard [Fri, 26 Jun 2009 20:08:07 +0000 (20:08 +0000)]
* src/nodeinfo.c: sometimes libnuma can't handle some topologies,
but those failures should not completely break libvirt, patch
by Dan Berrange, fixes #506590
daniel
Daniel Veillard [Fri, 26 Jun 2009 16:18:59 +0000 (16:18 +0000)]
allow to create storage volumes on disk backend
* src/libvirt_private.syms src/parthelper.c src/storage_backend_disk.c
src/storage_conf.c src/storage_conf.h: allow to create storage
volumes on disk backend, patches by Henrik Persson
* AUTHORS: add Henrik Persson
Daniel
Daniel Veillard [Fri, 26 Jun 2009 15:08:04 +0000 (15:08 +0000)]
big cleanup of the debug configuration option
* src/Makefile.am src/libvirt.c src/libvirt_private.syms src/logging.c
src/logging.h src/util.c src/libvirt_debug.syms: big cleanup of
the debug configuration option and code by Amy Griffis
daniel
Daniel Veillard [Thu, 25 Jun 2009 15:13:25 +0000 (15:13 +0000)]
fix reading of storage pool definitions at startup
* src/storage_conf.c: fix reading of storage pool definitions at startup
patch by Cole Robinson
daniel
Daniel Veillard [Thu, 25 Jun 2009 13:55:58 +0000 (13:55 +0000)]
Fix a couple of state problems
* src/qemu_driver.c: fix a domain state problem after
migration, patch by Federico Simoncelli, fixes #507537
* src/domain_conf.c: fix a transcient domain state problem after
destroy, patch by Federico Simoncelli, fixes #507304
* AUTHORS: add Federico Simoncelli and Javier Fontan
daniel
Daniel Veillard [Wed, 24 Jun 2009 17:32:56 +0000 (17:32 +0000)]
Finish the integration of OpenNebula driver
* configure.in libvirt.spec.in src/Makefile.am
src/opennebula/one_client.[ch] src/opennebula/one_conf.h
src/opennebula/one_driver.[ch] : Finish the integration of OpenNebula,
avoid dependancy on OpenNebula libraries, require xmlrpc-c-devel
and build it by default, based on patch by Javier Fontan and DanB
suggestions
Daniel
Daniel Veillard [Wed, 24 Jun 2009 16:17:10 +0000 (16:17 +0000)]
* src/opennebula/one_conf.c src/opennebula/one_driver.c: fix One
driver compilation issues, patch by Javier Fontan and remove
some tabs in format strings
daniel
Cole Robinson [Mon, 22 Jun 2009 17:19:30 +0000 (17:19 +0000)]
Fix storage handling for custom test driver.
If using a custom test driver, storage pool file parsing was broken, and
storage volume parsing was never implemented. Fix these issues, and add
some examples in docs/
Cole Robinson [Mon, 22 Jun 2009 16:41:34 +0000 (16:41 +0000)]
Refactor storage XML parsing to be consistent with domain/network conf.
The storage driver arranges its parsing routines in a way that make them
difficult to use in the test driver for non-default file parsing. This
refactoring moves things to be consistent with the way domain_conf and
network_conf do things.
Cole Robinson [Mon, 22 Jun 2009 16:39:23 +0000 (16:39 +0000)]
Activate virtual networks initialized in custom test driver.
If specifying a custom test driver, virtual networks were not 'activated'
on driver init. This differs from the behavior of domains and storage pools,
so fix it. Also improve a couple error messages in that area.
Cole Robinson [Mon, 22 Jun 2009 16:37:52 +0000 (16:37 +0000)]
Fix segfault if storage pool has no type attribute (possibly others)
virEnumFromString doesn't check for a NULL string, and will segfault if
passed one. Lots of calling code protects against this, but at least
/pool/@type parsing does not.
Cole Robinson [Mon, 22 Jun 2009 16:33:24 +0000 (16:33 +0000)]
Fix raw storage volume creation for allocation < capacity.
CreateXMLFrom changes accidentally caused all raw volume creation to be
fully allocated (as though allocation == capacity). Fix this.
Also force CreateXMLFrom to maintain the previous behavior: sparseness
should still be maintained since we search for holes when copying, and the
clone behavior hasn't been tested with anything but the broken behavior.
Daniel Veillard [Fri, 19 Jun 2009 12:34:30 +0000 (12:34 +0000)]
extend the configuration parser for VMX syntax
* qemud/qemud.c src/conf.c src/conf.h src/qemu_conf.c src/xen_unified.c
src/xm_internal.c tests/conftest.c tests/xmconfigtest.c: extend
the configuration parser for VMX syntax, patch by Matthias Bolte
Daniel
Cole Robinson [Tue, 16 Jun 2009 15:42:46 +0000 (15:42 +0000)]
Set default emulator in domain_conf.*, rather than the driver.
Rather than numerous instances of:
emulator = vm->def->emulator;
if (!emulator)
emulator = virDomainDefDefaultEmulator(conn, vm->def, driver->caps);
if (!emulator)
return -1;
Set this value at XML parse time in the domain config, so we can depend on
it for all future emulator accesses. There were unchecked accesses in the
qemu driver that were tripping up on this if no emulator was specified in
the XML, see:
Daniel Veillard [Thu, 11 Jun 2009 14:25:19 +0000 (14:25 +0000)]
extract serial number from HAL storage backend
* src/node_device_hal.c src/node_device_conf.[ch]: add support
for serial number in HAL storage backend, patch by Dave Allan
* docs/schemas/nodedev.rng
tests/nodedevschemadata/storage_serial_3600c0ff000d7a2a5d463ff4902000000.xml:
update the schemas and add a test case, also by Dave Allan
Daniel
Mark McLoughlin [Thu, 11 Jun 2009 14:15:49 +0000 (14:15 +0000)]
Detect newer qemu-kvm versions
The KVM version string can be one of the following:
- qemu-kvm-x.y.z in stable releases
- kvm-XX for kvm versions up to kvm-85
- qemu-kvm-devel-XX for kvm version kvm-86 and later
There are only a few of places where we need to detect
differences between KVM versions based on 0.9.1:
1) VNET_HDR introduced in kvm-74
2) -incoming tcp introduced in kvm-79
3) -incoming exec introduced in kvm-80
4) -incoming stdio in all earlier kvm versions
With qemu-kvm-0.10.x, we can now assume that (1) is available
if it's a KVM release, (2) and (3) is always available and
(4) is never available.
So, from now on we should only need to check the qemu version
number and the "is_kvm" flag for detecting feature availability.
We only need the KVM version number for older releases.
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Daniel Veillard [Thu, 11 Jun 2009 13:18:56 +0000 (13:18 +0000)]
find and use kvm-img, qemu-img or qcow-create dynamically
* configure.in src/libvirt_private.syms src/storage_backend_fs.c
src/util.c src/util.h: find and use kvm-img, qemu-img or qcow-create
dynamically at runtime, patch by Doug Goldstein
* AUTHORS: add Doug Goldstein
Daniel
Daniel Veillard [Thu, 4 Jun 2009 13:56:49 +0000 (13:56 +0000)]
Fix a memory error on Xen device removal
* src/xm_internals.c: the memory shrinking on device removal
didn't copy the right amount of memory, patch by Daniel Berrange
fixes #497051
daniel
Daniel Veillard [Tue, 2 Jun 2009 15:12:53 +0000 (15:12 +0000)]
NPIV implementation for node device create and destroy
* src/Makefile.am src/node_device.[ch] src/node_device_conf.[ch]
src/node_device_hal.[ch] src/node_device_hal_linux.c
src/qemu_driver.c src/remote_internal.c src/storage_backend.c
src/virsh.c src/xen_unified.c tests/nodedevxml2xmltest.c
po/POTFILES.in: implementation for node device create and destroy
in NPIV support, patch by David Allan
Daniel
Daniel Veillard [Fri, 29 May 2009 16:51:15 +0000 (16:51 +0000)]
release of libvirt-0.6.4
* configure.in libvirt.spec.in NEWS docs/* po/*: release of
libvirt-0.6.4
* src/libvirt.c src/virterror.c: some comments cleanups
Daniel
Cole Robinson [Fri, 29 May 2009 14:18:57 +0000 (14:18 +0000)]
network driver: Fix regression defining colliding networks at daemon startup.
If two virtual networks have the same hardcoded bridge device (which
prevents them from being active simultaneously) we still want to define
them at daemon startup, so the user has a fighting chance of correcting
the XML error.
Add an extra flag to SetBridge to avoid reporting an error if there is
a bridge collision, and use this when loading network configs at startup.
Daniel Veillard [Fri, 29 May 2009 13:32:06 +0000 (13:32 +0000)]
PPC Qemu Machine Type update
* src/qemu_conf.c docs/schemas/domain.rng
tests/capabilityschemadata/caps-qemu-kvm.xml: PPC Qemu Machine Type
changed from g3bw to g3beige some time ago, patch by Thomas Baker
Daniel
Daniel Veillard [Fri, 29 May 2009 12:27:45 +0000 (12:27 +0000)]
fix storage volume inconsistencies in schema and doc
* docs/schemas/storagevol.rng docs/formatstorage.html[.in]
tests/storagevolschemadata/vol-qcow2.xml: fix storage volume
inconsistencies in schema and document, patch by Ryota Ozaki
daniel
Daniel Veillard [Mon, 25 May 2009 11:56:00 +0000 (11:56 +0000)]
Include the OpenNebula driver
* src/opennebula/one_conf.[ch] src/opennebula/one_driver.[ch]:
the OpenNebula driver
* configure.in include/libvirt/virterror.h qemud/Makefile.am
qemud/qemud.c src/Makefile.am src/domain_conf.[ch] src/driver.h
src/libvirt.c src/virterror.c: integration of the OpenNebula
driver in the libvirt infrastructure
* AUTHORS: add Abel Miguez Rodriguez
daniel
Daniel Veillard [Mon, 25 May 2009 09:44:10 +0000 (09:44 +0000)]
Fix the example code for event handling in C
* examples/domain-events/events-c/event-test.c: fixed the example
code for event handling, patch by Pritesh Kothari
daniel