[libvirt] Release of libvirt-0.9.4
by Daniel Veillard
With an extra day of delay but allowing to pick all coverity checks
related patches from Eric, the release is out, I hope it's solid :-)
available as usual at:
ftp://libvirt.org/libvirt/libvirt-0.9.4.tar.gz
along with signed RPMs
This is again a fairly big release with more than 400 commits included,
both new API, improvement and a large amount of fixes:
Features:
- bandwidth QoS control (Michal Privoznik)
- Add new API virDomainBlockPull* (Adam Litke)
- save: new API to manipulate save file images (Eric Blake)
- CPU bandwidth limits support (Wen Congyang)
- allow to send NMI and key event to guests (Lai Jiangshan)
- new API virDomainUndefineFlags (Osier Yang)
- Implement code to attach to external QEMU instances. (Daniel P. Berrange)
- various missing python binding (Hu Tao and Lai Jiangshan)
- bios: Add support for SGA (Michal Privoznik)
Documentation:
- doc: fix confusing statement about required privileges (Eric Blake)
- doc: fix incorrect option in blockjob (Alex Jia)
- Correct the default value of lock_manager in qemu.conf (Guannan Ren)
- libvirt.c: Update outdated description of flags (Michal Privoznik)
- qemu: Improve docs for virsh dump format (Osier Yang)
- qemu: improve thread documentation (Eric Blake)
- doc: Add doc for blockpull and blockjob commands (Osier Yang)
- Fix incorrect implication about list options (Dave Allan)
- Fix typos in virsh.pod file (Daniel P. Berrange)
- network: Fix typo (Osier Yang)
- Break up 'Basic Resources' XML section (Cole Robinson)
- driver.h: Fix two driver documentation mistakes (Wieland Hoffmann)
- doc: Add documentation for new cputune elements period and quota (Wen Congyang)
- doc: Correct documents for iface commands (Osier Yang)
- improve virsh man page synopses (Eric Blake)
- Fix spice documentation typo (Michal Privoznik)
- document dxml argument to migrate2 (Eric Blake)
- website: Point main page links to libvirt driver pages (Dave Allan)
- maint: fix typos (Eric Blake)
- mention EMOTIVE as a libvirt-using app (Eric Blake)
- virsh: Update virsh man page (Supriya Kannery)
- Fix virsh inject-nmi man page (KAMEZAWA Hiroyuki)
- virsh: make destroy sound less scary (Eric Blake)
- minor whitespace cleanups (Eric Blake)
- Add documentation for the seclabel XML element (Daniel P. Berrange)
Portability:
- build: fix include path for cygwin (Eric Blake)
- build: avoid non-portable shell in test setup (Eric Blake)
- tests: Don't use bash if we don't have to (Matthias Bolte)
- freebsd: Fix build problem due to picking up the wrong libvirt.h (Matthias Bolte)
- freebsd: Avoid /bin/true in commandtest (Matthias Bolte)
- freebsd: Add gnulib environ module for the commandtest (Matthias Bolte)
- build: support warnings on RHEL 5 (Eric Blake)
- Build: fix build if HAVE_AVAHI is not defined (Stefan Berger)
- sysinfo: Don't try to run dmidecode on archs missing it (Michal Privoznik)
- udev: Don't try to dump DMI on non-intel archs (Michal Privoznik)
- Fix build when using polkit0 (Jim Fehlig)
- Fix rpm build with sanlock and without QEmu (Daniel Veillard)
- Skip some xen tests if xend is not running (Jim Fehlig)
- build: fix virBufferVasprintf on mingw (Eric Blake)
- Fix compilation of statstest.c during make check (Jim Fehlig)
- Fix compilation error when SASL support is disabled (Jean-Baptiste Rouault)
- tests: Disable networkxml2argvtest when configured without network (Matthias Bolte)
Bug Fixes:
- util: plug memory leak (Eric Blake)
- rpc: avoid null deref (Eric Blake)
- qemu: avoid memory leaks (Eric Blake)
- qemu: plug child process leak on domain core dump (Eric Blake)
- conf: avoid memory leak on disk operations (Eric Blake)
- rpc: avoid crash on error (Eric Blake)
- qemu: avoid null deref on block pull error (Eric Blake)
- rpc: correctly process sasl whitelist globs (Eric Blake)
- screenshot: don't unlink bogus file (Eric Blake)
- python: avoid unlikely sign extension bug (Eric Blake)
- rpc: avoid uninitialized memory use (Eric Blake)
- rpc: avoid double close on error (Eric Blake)
- qemu: Unlink temporary file on failure (Michal Privoznik)
- rpc: avoid libvirtd crash on unexpected client close (Eric Blake)
- virsh: fix memory leak in cmdNetworkInfo (Alex Jia)
- openvz: detect when a domain was shut down from the inside (Jean-Baptiste Rouault)
- qemu: fix crash when mixing sync and async monitor jobs (Eric Blake)
- qemu: fix return value issue (Alex Jia)
- qemu: fix return value issue in qemuDomainSetMemoryParameters (Alex Jia)
- virsh: Fix vol-name and vol-pool commands (Matthias Bolte)
- qemu: Fix a regression of domjobabort (Osier Yang)
- conf: Don't leak the virtual port profile in virNetworkDefFree (Matthias Bolte)
- network: don't forward DNS requests from isolated networks (Laine Stump)
- virsh: avoid missing zero value judgement in cmdBlkiotune (Alex Jia)
- qemu: fix nested job with driver lock held (Eric Blake)
- qemu: Fix memory leak on metadata fetching (Michal Privoznik)
- virsh: fix memory leak in cmdVolPath code (Alex Jia)
- rpc: Fix memory leak in remoteDomainSet*Parameters functions (Matthias Bolte)
- qemu: Recover from interrupted migration (Jiri Denemark)
- python: Properly report errors if virStreamRecv fails (Cole Robinson)
- Fix race in ref counting when handling RPC jobs (Daniel P. Berrange)
- Fix build with gnutls 1.0.x branch (Daniel P. Berrange)
- Add libtasn1-devel as a BuildRequires for libvirt.spec (Daniel P. Berrange)
- Add mutex protection to SASL and TLS modules (Daniel P. Berrange)
- Report error if unable to bind to any socket (Daniel P. Berrange)
- Fix leak of mDNS object in virNetServer (Daniel P. Berrange)
- Fix memory leaks in MDNS code (Daniel P. Berrange)
- python: Handle embedded NUL in stream.send data (Cole Robinson)
- Catch dnsmasq start failures (Guido Günther)
- Fix import of private key with older gnutls (Daniel P. Berrange)
- Fix TLS context tests with expired certs (Daniel P. Berrange)
- Honour filesystem readonly flag & make special FS readonly (Daniel P. Berrange)
- xenapi: Fix double-freeing the session in xenapiClose (Matthias Bolte)
- remote: Fix forgotten comma (Michal Privoznik)
- qemu: fix error message with migrate2 xml (Eric Blake)
- command: avoid leaking fds across fork (Eric Blake)
- error: preserve errno when saving last error (Eric Blake)
- Fix uninitialized variable in QEMU CPU bandwidth code (Daniel P. Berrange)
- fix make syntax-check error (Wen Congyang)
- rpc: Pass through DISPLAY so ssh can launch askpass (Cole Robinson)
- Don't try to close a NULL virNetClientPtr (Guannan Ren)
- Honour key usage/purpose criticality flag (Daniel P. Berrange)
- Fix reporting of errors for p2p migration (Daniel P. Berrange)
- Use a virFreeCallback on virNetSocket to ensure safe release (Daniel P. Berrange)
- Add mutex locking and reference counting to virNetSocket (Daniel P. Berrange)
- util: avoid fds leak when virEventPollAddHandle fail (Alex Jia)
- virsh: avoid double free of domain (Alex Jia)
- build: Fix protocol-structs check in VPATH build (Jiri Denemark)
- Fix now dead cleanup of VMs on libvirtd restart (Daniel P. Berrange)
- qemu: Fix a regression of attaching device (Osier Yang)
- storage: Avoid memory leak on metadata fetching (Michal Privoznik)
- qemu: Don't overwrite errors by closefd in error paths (Jiri Denemark)
- qemu: Save domain status ASAP after creating qemu process (Jiri Denemark)
- util: Avoid duplicating virFileOpenAsNoFork in virFileOpenAs (Jiri Denemark)
- virsh: fix missing prompt message for 'snapshot-delete' command (Nan Zhang)
- Ensure signal handler propagates fatal signals to default handler (Daniel P. Berrange)
- qemu: Fix monitor unlocking in some error paths (Jiri Denemark)
- esx: Initialize all instances of esxVMX_Data to zero (Matthias Bolte)
- qemu: avoid fd leak on core dump failure (Eric Blake)
- domain_conf: Free temporary variable (Michal Privoznik)
- esx: Fix a potential crash (Osier Yang)
- remote: Fix memory leak (Alex Jia)
- kill vm if saving config failed in v3 protocol (Wen Congyang)
- Don't exit if the libvirtd config does not exist (Daniel P. Berrange)
- Fix sending of reply to final RPC message (Daniel P. Berrange)
- Fix leak of remote driver if final 'CLOSE' RPC call fails (Daniel P. Berrange)
- Fix release of outgoing stream confirmation/abort message (Daniel P. Berrange)
- Fix leak of 'msg' object in client stream code (Daniel P. Berrange)
- Fix potential crash in libvirtd with active streams (Daniel P. Berrange)
- Fix mistaken order of server cert/key parameters in constructor (Daniel P. Berrange)
- util: Don't try to fchown files opened as non-root (Jiri Denemark)
- qemu: Don't chown files on NFS share if dynamic_ownership is off (Michal Privoznik)
- python: Fix bogus label placement (Matthias Bolte)
- util: close the ioctl socket at the end of if(Get|Set)MacAddress (Laine Stump)
- pci: initialize state values on reattach (Guannan Ren)
- qemu: Fix virFileMakePath error handling in snapshot creation (Matthias Bolte)
- storage: Do not override the exact error of createRawFile (Osier Yang)
Improvements:
- build: allow caching the input to STATIC_ANALYSIS (Eric Blake)
- fdstream: drop delete argument (Eric Blake)
- save: generate idempotent inactive xml for running domain (Eric Blake)
- conf: make 'vnet' prefix a macro (Eric Blake)
- utils: More useful error message for hook script failure (Osier Yang)
- tests: Unify style of test skipping code (Matthias Bolte)
- save: let qemu driver manipulate save files (Eric Blake)
- save: support qemu modifying xml on domain save/restore (Eric Blake)
- xen: make direct call when there is only one subdriver (Eric Blake)
- xen: reduce callback special cases (Eric Blake)
- xen: cleanup callback struct (Eric Blake)
- libxl: fix build failure due to change in virDomainGraphicsDef (Laine Stump)
- qemu: support type=network in domain graphics <listen> (Laine Stump)
- conf: add <listen> subelement to domain <graphics> element (Laine Stump)
- python: add python binding for virDomainSetMemoryParameters (Hu Tao)
- python: add python binding for virDomainGetMemoryParameters (Hu Tao)
- python: add python binding for virDomainSetBlkioParameters (Hu Tao)
- python: add python binding for virDomainGetBlkioParameters (Hu Tao)
- virsh: expose change-protection during migration (Eric Blake)
- send-key: Implement Python API (Lai Jiangshan)
- qemu: Remove special case for virDomainAbortJob (Jiri Denemark)
- qemu: Remove special case for virDomainSuspend (Jiri Denemark)
- qemu: Remove special case for virDomainMigrateSetMaxDowntime (Jiri Denemark)
- qemu: Remove special case for virDomainMigrateSetMaxSpeed (Jiri Denemark)
- qemu: Remove special case for virDomainBlockStats (Jiri Denemark)
- qemu: Remove special case for virDomainGetBlockInfo (Jiri Denemark)
- qemu: Migration job on source daemon (Jiri Denemark)
- qemu: Migration job on destination daemon (Jiri Denemark)
- qemu: Implement migration job phases (Jiri Denemark)
- bandwidth: Integrate bandwidth into portgroups (Michal Privoznik)
- tools: format percent strings of nodecpustats (Alex Jia)
- set cpu bandwidth for the vm (Wen Congyang)
- virsh: use faster bit search (Eric Blake)
- virsh: make vcpucount use --current consistently (Eric Blake)
- vcpu: teach getVcpusFlags about current (Eric Blake)
- util: change virFile*Pid functions to return < 0 on failure (Laine Stump)
- rename cfs_* to vcpu_* (Wen Congyang)
- python: add Python binding for virDomainGetVcpuPinInfo API (Taku Izumi)
- python: add Python binding for virDomainPinVcpusFlags API (Taku Izumi)
- python: add Python binding for virDomainGetSchedulerParametersFlags API (Taku Izumi)
- python: add Python binding for virDomainGetSchedulerParametersFlags API (Taku Izumi)
- tests: detect gnutls errors (Eric Blake)
- bandwidth: Add domain schema and xml2xml tests (Michal Privoznik)
- bandwidth: Add test cases for network (Michal Privoznik)
- bandwidth: Implement functions to enable and disable QoS (Michal Privoznik)
- bandwidth: Create format functions (Michal Privoznik)
- bandwidth: Add parsing and free functions (Michal Privoznik)
- bandwidth: Declare internal structures (Michal Privoznik)
- bandwidth: Define schema and create documentation (Michal Privoznik)
- network: provide internal API to return IP of a network (Laine Stump)
- util: add an ifaceGetIPAddress to the interface utilities (Laine Stump)
- Pre-create /var/lib/libvirt/sanlock directory (Daniel P. Berrange)
- Refactor mounting of special filesystems (Daniel P. Berrange)
- Pull code for doing a bind mount into separate method (Daniel P. Berrange)
- Fix typos in daemon config file from previous commit (Daniel P. Berrange)
- Add a test case for certificate validation (Daniel P. Berrange)
- Allow certificate sanity checking to be disabled (Daniel P. Berrange)
- remote/ssh: optional "keyfile" parameter. (Oskari Saarenmaa)
- util: make interface.c functions consistently return < 0 on error (Laine Stump)
- Refactor the certification validation code (Daniel P. Berrange)
- Remove call to deprecated gnutls_certificate_type_set_priority (again) (Daniel P. Berrange)
- Ensure that libvirtd shuts down if initialization fails (Daniel P. Berrange)
- Asynchronous event for BlockJob completion (Adam Litke)
- Enable virDomainBlockPull in the python API (Adam Litke)
- Enable the virDomainBlockPull API in virsh (Adam Litke)
- Implement virDomainBlockPull for the qemu driver (Adam Litke)
- Add virDomainBlockPull support to the remote driver (Adam Litke)
- virDomainBlockPull: Implement the main entry points (Adam Litke)
- save: add virsh commands for manipulating save files (Eric Blake)
- save: wire up remote protocol (Eric Blake)
- save: support bypass-cache flag in libvirt-guests init script (Eric Blake)
- save: support bypass-cache flag in qemu.conf (Eric Blake)
- save: support BYPASS_CACHE during qemu save/restore (Eric Blake)
- save: add virFileDirectFd wrapper type (Eric Blake)
- save: let iohelper work on O_DIRECT fds (Eric Blake)
- save: let iohelper handle inherited fd (Eric Blake)
- save: support --xml to virsh save/restore (Eric Blake)
- save: add --bypass-cache flag to virsh save/restore operations (Eric Blake)
- save: wire up trivial save/restore flags implementations (Eric Blake)
- error: add new error type for reflecting partial API support (Eric Blake)
- network: internal API functions to manage assignment of physdev to guest (Laine Stump)
- qemu: use virDomainNetGetActual*() in qemuDomainXMLToNative (Laine Stump)
- qemu: use virDomainNetGetActual*() functions where appropriate (Laine Stump)
- network: separate Start/Shutdown functions for new network types (Laine Stump)
- conf: support abstracted interface info in network XML (Laine Stump)
- conf: support abstracted interface info in domain interface XML (Laine Stump)
- conf: virDomainNetDef points to (rather than contains) virtPortProfile (Laine Stump)
- conf: put virtPortProfile struct / functions in a common location (Laine Stump)
- destroy: Implement internal API for xenapi driver (Michal Privoznik)
- destroy: Implement internal API for xen driver (Michal Privoznik)
- destroy: Implement internal API for vmware driver (Michal Privoznik)
- destroy: Implement internal API for vbox driver (Michal Privoznik)
- destroy: Implement internal API for uml driver (Michal Privoznik)
- destroy: Implement internal API for phyp driver (Michal Privoznik)
- destroy: Implement internal API for openvz driver (Michal Privoznik)
- destroy: Implement internal API for lxc driver (Michal Privoznik)
- destroy: Implement internal API for libxl driver (Michal Privoznik)
- destroy: Implement internal API for ESX driver (Michal Privoznik)
- destroy: Implement internal API for qemu driver (Michal Privoznik)
- destroy: Wire up the remote protocol (Michal Privoznik)
- destroy: Define new public API virDomainDestroyFlags (Michal Privoznik)
- save: wire up remote protocol (Eric Blake)
- save: new public API to bypass file system cache on save/restore (Eric Blake)
- build: rename files.h to virfile.h (Eric Blake)
- command: move all docs into .c file (Eric Blake)
- rpc: Make the dispatch generator handle 'void name(void)' style procedures (Matthias Bolte)
- python: Fix makefile rule for code generation (Matthias Bolte)
- qemu: Implement cfs_period and cfs_quota's modification (Wen Congyang)
- qemu: Implement period and quota tunable XML configuration and parsing (Wen Congyang)
- Update XML Schema for new entries (Wen Congyang)
- cgroup: Implement cpu.cfs_period_us and cpu.cfs_quota_us tuning API (Wen Congyang)
- Introduce the function virCgroupForVcpu (Wen Congyang)
- qemu: send-key: Implement the driver methods (Lai Jiangshan)
- send-key: Expose the new API in virsh (Lai Jiangshan)
- util: add virtkeycode module (Lai Jiangshan)
- util: Add keymaps.csv (Lai Jiangshan)
- Fix checking of key usage/purpose data (Daniel P. Berrange)
- Fix mixed up error messages when reporting TLS certificate problems (Daniel P. Berrange)
- undefine: Extend virsh undefine to support the new flag (Osier Yang)
- undefine: Implement undefineFlags for all other drivers (Osier Yang)
- undefine: Implement internal API for libxl driver (Osier Yang)
- undefine: Implement internal API for qemu driver (Osier Yang)
- undefine: Wire up the remote protocol (Osier Yang)
- undefine: Define the new API (Osier Yang)
- Add sanity checking of basic constraints, key purpose & key usage (Daniel P. Berrange)
- Add some basic sanity checking of certificates before use (Daniel P. Berrange)
- Add an explicit virNetClientClose method (Daniel P. Berrange)
- Add some debugging for virNetClient reference counting (Daniel P. Berrange)
- build: detect doc generation failure (Eric Blake)
- Unregister event callback if a fatal error occurs during dispatch (Daniel P. Berrange)
- Quieten build & ensure API build scripts exit with non-zero status (Daniel P. Berrange)
- virsh: Extend virsh dominfo to display if managed save image exists (Osier Yang)
- libvirt: do not mix internal flags into public API (Eric Blake)
- rpc: Fix typos in rpc generator scripts (Osier Yang)
- build: also track RPC on-wire enum values (Eric Blake)
- build: add syntax check for proper flags use (Eric Blake)
- xen: reject unknown flags (Eric Blake)
- esx: reject unknown flags (Eric Blake)
- virsh: improve option handling (Eric Blake)
- flags: fix domain_conf migration regression (Eric Blake)
- flags: fix qemu migration regression (Eric Blake)
- flags: use common dumpxml flags check (Eric Blake)
- add --cache, --serial, --shareable and --address to attach-disk (Hu Tao)
- Fix error message for missing TLS write function (Daniel P. Berrange)
- Fix reporting of cert validation failures (Daniel P. Berrange)
- Fix error code for storage operations (Dave Allan)
- setvcpus: add "--current" option to "virsh setvcpus" (Taku Izumi)
- setvcpus: extend qemuDomainSetVcpusFlags() to support current flag (Taku Izumi)
- setvcpus: extend virDomainSetVcpusFlags API to support current flag (Taku Izumi)
- Add domain events support to UML driver (Daniel P. Berrange)
- virnetsocket: use new API for uniform child cleanup (Eric Blake)
- fdstream: avoid child process leak on error (Eric Blake)
- command: introduce virPidWait, virPidAbort (Eric Blake)
- update apparmor security driver for new udev paths (Jamie Strandboge)
- xenapi: Improve error reporting in xenapiOpen (Matthias Bolte)
- build: fix VPATH build of todo (Eric Blake)
- build: check for virnetprotocol on-the-wire stability (Eric Blake)
- build: disable some drivers when building without libvirt daemon (Wen Congyang)
- build: avoid ATTRIBUTE_UNUSED in headers (Eric Blake)
- remote: prefer unsigned flags (Eric Blake)
- conf: delete unused flags arguments (Eric Blake)
- virsh: fix previous patch (Jiri Denemark)
- virsh: Make "DEBUG" loglevel the superset (Supriya Kannery)
- virsh: Avoid using magic numbers for logging (Supriya Kannery)
- build: don't hand-roll cloexec code (Eric Blake)
- conf: prefer unsigned flags (Eric Blake)
- python: prefer unsigned flags (Eric Blake)
- node_device: avoid implicit int (Eric Blake)
- virsh, daemon: prefer unsigned flags (Eric Blake)
- xenapi: reject unknown flags (Eric Blake)
- vmware: reject unknown flags (Eric Blake)
- vbox: reject unknown flags (Eric Blake)
- uml: reject unknown flags (Eric Blake)
- test: reject unknown flags (Eric Blake)
- qemu: reject unknown flags (Eric Blake)
- phyp: reject unknown flags (Eric Blake)
- openvz: reject unknown flags (Eric Blake)
- lxc: reject unknown flags (Eric Blake)
- libxl: reject unknown flags (Eric Blake)
- qemu: build failed due to unused variables (Peter Krempa)
- storage: reject unknown flags (Eric Blake)
- node_device: reject unknown flags (Eric Blake)
- util: reject unknown flags, and prefer unsigned flags (Eric Blake)
- libvirt-qemu: use unsigned flags (Eric Blake)
- maint: print flags in hex during debug (Eric Blake)
- maint: exclude more files from syntax check (Eric Blake)
- util: honor anchored names when searching for executables (Eric Blake)
- Remove unused virNetServerProgramErrorHander typedef (Daniel P. Berrange)
- qemu: Consolidate qemuMigrationPrepare{Direct,Tunnel} (Jiri Denemark)
- qemu: Add support for job phase (Jiri Denemark)
- qemu: Recover from interrupted jobs (Jiri Denemark)
- qemu: Save job type in domain status XML (Jiri Denemark)
- qemu: Allow all query commands to be run during long jobs (Jiri Denemark)
- qemu: Consolidate {Enter,Exit}Monitor{,WithDriver} (Jiri Denemark)
- qemu: Consolidate BeginJob{,WithDriver} into a single method (Jiri Denemark)
- qemu: Separate job related data into a new object (Jiri Denemark)
- maint: avoid incremental 'make syntax-check' failure (Eric Blake)
- Skip bugs which are CLOSED in todo list (Daniel P. Berrange)
- Add missing cleanup for transient guests in UML driver (Daniel P. Berrange)
- Add auditing to the UML driver (Daniel P. Berrange)
- Add auditing to the LXC driver (Daniel P. Berrange)
- Add virtualization type in audit messages (Daniel P. Berrange)
- Add auditing of filesystems (Daniel P. Berrange)
- Move qemu_audit.h helpers into shared code (Daniel P. Berrange)
- rpc: Fix compile error due to potentially unused parameter (Matthias Bolte)
- Add monitor API for checking whether KVM is enabled (Daniel P. Berrange)
- Add a method for extracting QEMU argv from /proc (Daniel P. Berrange)
- Change extract pidfile & monitor config from QEMU command line (Daniel P. Berrange)
- Keep pidfile path in qemuDomainObjPrivate struct (Daniel P. Berrange)
- Add a new 'virsh qemu-attach' command. (Daniel P. Berrange)
- Define remote wire protocol & impls for virDomainQemuAttach (Daniel P. Berrange)
- Define a QEMU specific API to attach to a running QEMU process (Daniel P. Berrange)
- qemu: update configuration file (Alex Jia)
- maint: rename virtaudit to match file contents (Eric Blake)
- remote/ssh: support for no_verify. (Oskari Saarenmaa)
- build: also check qemu_protocol for on-the-wire stability (Eric Blake)
- build: avoid requiring -lm (Eric Blake)
- Remove code no longer used after commit df0b57a9 (Jim Fehlig)
- Add domain type checking (Matthias Bolte)
- tests: simplify formatting (Eric Blake)
- Do not drop kernel cmdline for xen pv domains (Jim Fehlig)
- RPC: fix argument's name (Wen Congyang)
- fix typo error (Wen Congyang)
- vbox: Fix logic in storage driver open function (Matthias Bolte)
- tests: Improve output of tests that decide to skip at runtime (Matthias Bolte)
- tests: Fix compressed test output padding logic (Matthias Bolte)
- tests: Use EXIT_AM_SKIP instead of 77 directly (Matthias Bolte)
- rpc: Fix whitespace problem in generated code (Matthias Bolte)
- sanlock: avoid lockspace setup when auto_disk_lease is off (Federico Simoncelli)
- libvirtd: diagnose explicitly requested but missing conf file (Eric Blake)
- qemu: clean up OOM checks (Michael Santos)
- graphics: add support for action_if_connected in qemu (Michal Privoznik)
- microblaze: Add architecture support (John Williams)
- util: drop unused safezero argument (Eric Blake)
- conf: prefer unsigned int for flags (Eric Blake)
- drivers: prefer unsigned int for flags (Eric Blake)
- public API: prefer unsigned int for flags (Eric Blake)
- maint: print flags in hex during debug (Eric Blake)
- build: use gnulib pthread_sigmask (Eric Blake)
- util: rename err_exit to cleanup in interface.c (Laine Stump)
- sysinfo: delete unnecessary white space of sysinfo. (Minoru Usui)
- util: add virTrimSpaces (Eric Blake)
- util: fix virSkipSpaces (Eric Blake)
- Reduce code duplication in virFileMakePath(Helper) (Matthias Bolte)
- apparmor: Finish incomplete renaming of relabel to norelabel (Matthias Bolte)
- Fix default value of security label 'relabel' attribute (Daniel P. Berrange)
- Fix return value semantic of virFileMakePath (Matthias Bolte)
- nodedev: Let check_fc_host_linux report errors to the caller (Matthias Bolte)
- xml: create an RNG file for common types and move some definitions there (Laine Stump)
- docs: sort the file list in the schemas Makefile (Laine Stump)
- qemu: check flags in qemuDomainGetXMLDesc (Laine Stump)
- conf: fix domain parse flags (Laine Stump)
- conf: Fix declaration of virNetworkDNS(Hosts)Def struct (Matthias Bolte)
- Allow for resource relabelling with static labels (Daniel P. Berrange)
- Allow a base label to be specified in dynamic labelling mode (Daniel P. Berrange)
Cleanups:
- qemu: silence coverity false positives (Eric Blake)
- interface: drop dead code (Eric Blake)
- rpc: silence coverity false positives (Eric Blake)
- build: silence coverity false positives (Eric Blake)
- qemu: remove dead code (Eric Blake)
- maint: add missing copyright notices (Eric Blake)
- xen: drop unused callbacks (Eric Blake)
- build: avoid type-punning compiler warning (Eric Blake)
- tests: fix compilation failures (Eric Blake)
- build: Use $(PYTHON) instead of python for the keycode map generator (Matthias Bolte)
- build: fix bugs with destroyFlags patches (Eric Blake)
- util: define MAX (Laine Stump)
- maint: fix typos on guaranteed (Eric Blake)
- build: fix broken build (Eric Blake)
- maint: fix spelling of Red Hat (Eric Blake)
- tests: Fix virshtest failure after dominfo changed (Osier Yang)
Thanks everybody for the work done for this release, be it
documentation, ideas, patches or bug reports !
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel(a)veillard.com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
13 years, 2 months
[libvirt] [PATCH] build: update to latest gnulib
by Eric Blake
I noticed that with 0.9.4, gnulib ended up replacing pthread_sigmask
on glibc, even though glibc's works perfectly fine. It turns out
to have been an upstream gnulib bug.
* .gnulib: Update to latest, for pthread_sigmask fix.
---
This missed the 0.9.4 release; oh well.
* .gnulib 41a7841...7f494c7 (18):
> pthread_sigmask: Actually use results of gl_THREADLIB.
> autoupdate
> maint.mk: relax the default _gl_TS_function_match regexp
> git-version-gen: document that EXTRA_DIST must include .version
> wctype-h: Fix last change.
> frexpl: Update autoconf test.
> sys_utsname: Add support for Minix.
> strings: Add support for Minix.
> wctype-h: Add support for Minix.
> * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
> stdioext: Add support for Minix.
> errno: Port to Minix.
> Work around declaration collisions on Minix.
> Add support for Minix with ACK compiler.
> Documentation about Minix.
> snippet/warn-on-use: Fix indentation.
> tests: test-update-copyright.sh: remove unnecessary "rm" commands
> maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
.gnulib | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/.gnulib b/.gnulib
index 41a7841..7f494c7 160000
--- a/.gnulib
+++ b/.gnulib
@@ -1 +1 @@
-Subproject commit 41a7841a82351f9df3e13b6199a134004d694131
+Subproject commit 7f494c7d725db4a7f3abdef09d4070725487da67
--
1.7.4.4
13 years, 2 months
[libvirt] [PATCH] Fix detection of GnuTLS 1.x.y
by Matthias Bolte
Detection based on gnutls_session doesn't work because GnuTLS 2.x.y
comes with a compat.h that defines gnutls_session to gnutls_session_t.
Instead detect this based on LIBGNUTLS_VERSION_MAJOR.
---
configure.ac | 22 +++++++++++++++-------
1 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/configure.ac b/configure.ac
index c8d291b..6a20366 100644
--- a/configure.ac
+++ b/configure.ac
@@ -834,17 +834,25 @@ fi
AC_SUBST([GNUTLS_CFLAGS])
AC_SUBST([GNUTLS_LIBS])
-dnl Old versions of GnuTLS uses types like 'gnutls_session' instead
-dnl of 'gnutls_session_t'. Try to detect this type if defined so
-dnl that we can offer backwards compatibility.
+dnl Detect GnuTLS 1.x.y and enable backwards compatibility macros if found.
old_cflags="$CFLAGS"
old_libs="$LIBS"
CFLAGS="$CFLAGS $GNUTLS_CFLAGS"
LIBS="$LIBS $GNUTLS_LIBS"
-AC_CHECK_TYPE([gnutls_session],
- AC_DEFINE([GNUTLS_1_0_COMPAT],[],
- [enable GnuTLS 1.0 compatibility macros]),,
- [#include <gnutls/gnutls.h>])
+AC_MSG_CHECKING([whether GnuTLS 1.0 compatibility macros are required])
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <gnutls/gnutls.h>]],
+ [[
+ #if LIBGNUTLS_VERSION_MAJOR < 2
+ # error gnutls 1.x.y detected
+ #endif
+ ]])],
+ [have_gnutlsv1=no],
+ [have_gnutlsv1=yes])
+if test "x$have_gnutlsv1" = xyes; then
+ AC_DEFINE_UNQUOTED([GNUTLS_1_0_COMPAT], 1,
+ [enable GnuTLS 1.0 compatibility macros])
+fi
+AC_MSG_RESULT([$have_gnutlsv1])
CFLAGS="$old_cflags"
LIBS="$old_libs"
--
1.7.4.1
13 years, 2 months
[libvirt] [PATCH 0/n] Coverity run
by Eric Blake
I'm doing another coverity cleanup run; Coverity reported as many
as 75 errors this time around, but that definitely includes some
false positives. I'll add to this thread as I sort through more
reports to see which ones are real, but to get things started:
Eric Blake (3):
rpc: avoid double close on error
rpc: avoid uninitialized memory use
python: avoid unlikely sign extension bug
python/libvirt-override.c | 2 +-
src/rpc/virnetserver.c | 2 +-
src/rpc/virnettlscontext.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
--
1.7.4.4
13 years, 2 months
[libvirt] [PATCH v2] qemu: Unlink temporary file on failure
by Michal Privoznik
Although virFDStreamOpenFile will unlink it once opened, when we hit
error path, we must unlink it by hand.
---
src/qemu/qemu_driver.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 09b2791..c78cdb7 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -2931,7 +2931,10 @@ qemuDomainScreenshot(virDomainPtr dom,
endjob:
VIR_FORCE_CLOSE(tmp_fd);
- VIR_FREE(tmp);
+ if (tmp) {
+ unlink(tmp);
+ VIR_FREE(tmp);
+ }
if (qemuDomainObjEndJob(driver, vm) == 0)
vm = NULL;
--
1.7.3.4
13 years, 2 months
[libvirt] [PATCH] doc: Fix confusing statement about required privileges.
by Peter Krempa
src/libvirt.c: Statement of required hypervisor privileges was
probably edited after writing and word "may" was left in
a confusing place.
---
src/libvirt.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/libvirt.c b/src/libvirt.c
index 941cb47..78f303d 100644
--- a/src/libvirt.c
+++ b/src/libvirt.c
@@ -3269,7 +3269,7 @@ error:
* Dynamically change the target amount of physical memory allocated to a
* domain. If domain is NULL, then this change the amount of memory reserved
* to Domain0 i.e. the domain where the application runs.
- * This function may requires privileged access to the hypervisor.
+ * This function requires privileged access to the hypervisor.
*
* @flags may include VIR_DOMAIN_AFFECT_LIVE or VIR_DOMAIN_AFFECT_CONFIG.
* Both flags may be set. If VIR_DOMAIN_AFFECT_LIVE is set, the change affects
--
1.7.6
13 years, 2 months
[libvirt] [PATCH 0/3 RFC] macvtap: Implement getPhysfn to support sending a port profile message for a VF to its PF
by Roopa Prabhu
This patch tries to fix getPhysFn in macvtap.c to get the physical
function(PF) of the direct attach interface, if the interface is a SR-IOV VF.
It derives the PF/VF relationship from sysfs.
There is some code to do this in node device driver. But it is local
to the node device driver . I did not see a clean way to use some of the
node device stuff here. The node device driver looks at PCI capabilities to
get the same information.
This implementation tries to not get into PCI capability details and
just looks at sysfs paths to derive the PF-VF relationship
This patch series implements the following
01/3 - Add function to get the network interface name of a pci device
02/3 - Add functions to get sriov PF/VF relationship of a network interface
03/3 - macvtap: Fix getPhysfn to get the PF of a direct attach network interface
Signed-off-by: Roopa Prabhu <roprabhu(a)cisco.com>
Signed-off-by: Christian Benvenuti <benve(a)cisco.com>
Signed-off-by: David Wang <dwang2(a)cisco.com>
13 years, 2 months
[libvirt] [PATCH] qemu: Unlink temporary file on failure
by Michal Privoznik
Although virFDStreamOpenFile will unlink it once opened, when we hit
error path, we must unlink it by hand.
---
src/qemu/qemu_driver.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 09b2791..d860cd2 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -2930,6 +2930,7 @@ qemuDomainScreenshot(virDomainPtr dom,
ret = strdup("image/x-portable-pixmap");
endjob:
+ unlink(tmp);
VIR_FORCE_CLOSE(tmp_fd);
VIR_FREE(tmp);
--
1.7.3.4
13 years, 2 months
[libvirt] ANNOUNCE: virt-manager 0.9.0 and virtinst 0.600.0 released
by Cole Robinson
I'm happy to announce two new releases:
virt-manager 0.9.0: virt-manager is a desktop application for managing
KVM and Xen virtual machines via libvirt.
virtinst 0.600.0: virtinst is a collection of command line tools for
provisioning libvirt virtual machines, including virt-install and
virt-clone.
The releases can be downloaded from:
http://virt-manager.org/download.html
The direct download links are:
http://virt-manager.org/download/sources/virt-manager/virt-manager-0.9.0....
http://virt-manager.org/download/sources/virtinst/virtinst-0.600.0.tar.gz
The virt-manager release includes:
- Use a hiding toolbar for fullscreen mode
- Use libguestfs to show guest packagelist and more (Richard W.M. Jones)
- Basic 'New VM' wizard support for LXC guests
- Remote serial console access (with latest libvirt)
- Remote URL guest installs (with latest libvirt)
- Add Hardware: Support <filesystem> devices
- Add Hardware: Support <smartcard> devices (Marc-André Lureau)
- Enable direct interface selection for qemu/kvm (Gerhard Stenzel)
- Allow viewing and changing disk serial number
The virtinst release includes:
- virt-install: Various improvements to enable LXC/container guests:
- New --filesystem option for <filesystem> devices
- New --init option for container <init> path
- New --container option (similar to --paravirt or --hvm)
- virt-install: Make --location remotely (with latest libvirt)
- virt-install: New --smartcard option for <smartcard> devices
(Marc-André Lureau)
- virt-install: New --numatune option for building guest <numatune> XML
- virt-install: option to set --disk error_policy=
- virt-install: option to set --disk serial=
Thanks to everyone who has contributed to this release through testing,
bug reporting, submitting patches, and otherwise sending in feedback!
Thanks,
Cole
13 years, 2 months