Commit Graph

39 Commits

Author SHA1 Message Date
Bruce Ashfield
d876cfc5bf global: overrides syntax conversion
OEcore/bitbake are moving to use the clearer ":" as an overrides
separator.

This is pass one of updating the meta-virt recipes to use that
syntax.

This has only been minimally build/runtime tested, more changes
will be required for missed overrides, or incorrect conversions

Note: A recent bitbake is required:

    commit 75fad23fc06c008a03414a1fc288a8614c6af9ca
    Author: Richard Purdie <richard.purdie@linuxfoundation.org>
    Date:   Sun Jul 18 12:59:15 2021 +0100

        bitbake: data_smart/parse: Allow ':' characters in variable/function names

        It is becomming increasingly clear we need to find a way to show what
        is/is not an override in our syntax. We need to do this in a way which
        is clear to users, readable and in a way we can transition to.

        The most effective way I've found to this is to use the ":" charater
        to directly replace "_" where an override is being specified. This
        includes "append", "prepend" and "remove" which are effectively special
        override directives.

        This patch simply adds the character to the parser so bitbake accepts
        the value but maps it back to "_" internally so there is no behaviour
        change.

        This change is simple enough it could potentially be backported to older
        version of bitbake meaning layers using the new syntax/markup could
        work with older releases. Even if other no other changes are accepted
        at this time and we don't backport, it does set us on a path where at
        some point in future we could
        require a more explict syntax.

        I've tested this patch by converting oe-core/meta-yocto to the new
        syntax for overrides (9000+ changes) and then seeing that builds
        continue to work with this patch.

        (Bitbake rev: 0dbbb4547cb2570d2ce607e9a53459df3c0ac284)

        Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-08-02 17:17:53 -04:00
Yanfei Xu
9f359865c4 libvirt: uprev v6.3 -> v7.2
This upgrade spans 9 small release. The detailed realese logs could
refer to: https://gitlab.com/libvirt/libvirt/-/blob/master/NEWS.rst

Libvirt's buildsystem has changed to meson, So this upgrade drop some
obsolete patches applied to makefile.

I ran libvirt testcase and ovs testcase for this upgrade, the summary
as follow:

libvirt_test (keyword: ) test results:
*1 Run libvirt_test testing(do_test1)                          PASS
*2 Check result (virsh_local_capabilities)                     PASS
*3 Check result (virsh_local_domcapabilities)                  PASS
*4 Check result (virsh_local_freecell)                         PASS
*5 Check result (virsh_local_help)                             PASS
*6 Check result (virsh_local_hostname)                         PASS
*7 Check result (virsh_local_iface-begin)                      PASS
*8 Check result (virsh_local_iface-commit)                     PASS
*9 Check result (virsh_local_iface-list)                       PASS
*10 Check result (virsh_local_list)                            PASS
*11 Check result (virsh_local_maxvcpus)                        PASS
*12 Check result (virsh_local_net-list)                        PASS
*13 Check result (virsh_local_nodecpumap)                      PASS
*14 Check result (virsh_local_nodecpustats)                    PASS
*15 Check result (virsh_local_nodedev-list)                    PASS
*16 Check result (virsh_local_nodeinfo)                        PASS
*17 Check result (virsh_local_node-memory-tune)                PASS
*18 Check result (virsh_local_nodememstats)                    PASS
*19 Check result (virsh_local_nwfilter-binding-list)           PASS
*20 Check result (virsh_local_nwfilter-list)                   PASS
*21 Check result (virsh_local_pool-capabilities)               PASS
*22 Check result (virsh_local_pool-list)                       PASS
*23 Check result (virsh_local_pwd)                             PASS
*24 Check result (virsh_local_secret-list)                     PASS
*25 Check result (virsh_local_sysinfo)                         PASS
*26 Check result (virsh_local_uri)                             PASS
*27 Check result (virsh_local_version)                         PASS

openvswitch_vm2vm (keyword: qemux86) test results:
*1 openvswitch_vm2vm testing(do_test1)                         PASS
*2 Check result (ovs_vm2vm_boot_guest1)                        PASS
*3 Check result (ovs_vm2vm_boot_guest2)                        PASS
*4 Check result (ovs_vm2vm_netperf_test)                       PASS
*5 Check result (ovs_vm2vm_destroy_guest1)                     PASS
*6 Check result (ovs_vm2vm_destroy_guest2)                     PASS
*7 check testcase call trace(do_check_call_trace)              PASS

Signed-off-by: Yanfei Xu <yanfei.xu@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-04-22 10:18:06 -04:00
Martin Jansa
7094239a63 libvirt-python: inherit python3targetconfig
* otherwise libvirt build will incorrectly use host's gcc and fail with:
  gcc: error: unrecognized command line option "-fmacro-prefix-map=/OE/libvirt/6.1.0-r0=/usr/src/debug/libvirt/6.1.0-r0"

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-02-09 08:21:36 -05:00
Martin Jansa
211925d7f4 Revert "libvirt: fix host gcc can't recognized option -fmacro-prefix-map"
This reverts commit 08b5de42f9.

libvirt shouldn't be using host's gcc to build python module, this issue
is caused by missing inherit of python3targetconfig instead added in:
https://git.openembedded.org/openembedded-core/commit/?id=5a118d4e7985fa88f04c3611f8db813f0dafce75

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-02-09 08:21:36 -05:00
Naveen Saini
08b5de42f9 libvirt: fix host gcc can't recognized option -fmacro-prefix-map
libvirt-python picks host gcc (instead of cross gcc) to build shared
library in absense of LD*SHARED flags.

Instead of inherit distutils3-base.class, taking SHARED flags to create
libvirt-python package.

Ref: https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/distutils-common-base.bbclass

Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-11-19 11:05:48 -05:00
sakib.sajal@windriver.com
7b002ac180 libvirt: uprev v6.1.0 -> v6.3.0
Minor update bringing in new features, improvements
and bug fixes.
Most notable changes:
- vbox: removed support for version 5.0 and 5.1 APIs
- vbox: added support for version 6.0 and 6.1 APIs
- qemu: Various embed driver fixes
- qemu: Add virtiofs support
- qemu: support disabling hotplug/unplug of PCIe devices
- xen: Add support for 'passthrough' hypervisor feature

Straightforward uprev, requiring patch refreshes to
remove fuzz.

Build and runtime behaviour is identical to older
version v6.1.0.

ptest summary:
===================================
Testsuite summary for libvirt 6.3.0
===================================
- TOTAL: 129
- PASS:  123
- SKIP:  1
- XFAIL: 0
- FAIL:  5
- XPASS: 0
- ERROR: 0

Failed test:
- virschematest
- domaincapstest
- qemuxml2argvtest
- qemuhotplugtest
- virsh-auth

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-05-19 17:24:41 -04:00
Bruce Ashfield
7a8ee8e986 libvirt: uprev to v6.1.0
Updating libvirt to the next major release series. With this, brings
some changes to the build:

 - add python3-docutils-native to DEPENDS, since it is needed for doc
   building
 - remove a reference to libgnu.la from the Makefiles, since it is not
   needed or provided in the build dependencies
 - remove obselete packageconfig options: xenapi and phyp
 - add an explicit do_compile rule (versus the autotools bbclass
   variant), so we can create some directories before compilation
   starts
 - add ${B}/src to the PKG_CONFIG_PATH to the libvirt.pc file can be
   found during build, as it is queried by libvirt-python
 - with the ability to find the libvirt.pc file, we can also drop the
   manipulations for libvirt_api_xml_path, as it is returned from
   pkg-config queries.
 - clear PKG_CONFIG_SYSROOT_DIR during libvirt-python builds, since
   the libvirt.pc file already provides cflags/includes that are
   contained to the build/src directory structure.

And finally, existing patches are refreshed to remove fuzz.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-03-08 14:34:03 -04:00
Jeremy Puhlman
c487e0f511 libvirt: Use python3-native for python install
Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-02-03 17:08:30 -05:00
Bruce Ashfield
407b822068 libvirt: make python3 safe
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-01-22 15:53:49 +00:00
Bruce Ashfield
cd3767f0b0 libvirt: uprev to 5.5.x
Upgrading to 5.5.x for libvirt.

One pach refresh is required, but otherwise, build and runtime behaviour
is identical to 5.3.x.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-07-12 14:50:34 +00:00
Dengke Du
8e634ac487 libvirt: upgrade to 5.3.0
1. remove the uml configure option because new version libvirt drop it
2. rebase three patches for new source codes

Signed-off-by: Dengke Du <dengke.du@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-05-10 16:42:06 -04:00
Mark Asselstine
9ad042c295 libvirt: uprev from 4.7.0 to 4.9.0
Minor update bringing in new features such as better support for
cgroup v2, vfio AP support, support for XEN suspend/wakeup.

Basic usecases pass and the ptest return similar results we have been
achieving with the last few uprevs:

    ====================================
    Testsuite summary for libvirt 4.9.0
    ====================================
    # TOTAL: 120
    # PASS:  117
    # SKIP:  0
    # XFAIL: 0
    # FAIL:  3
    # XPASS: 0
    # ERROR: 0

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
2018-11-29 12:05:18 -05:00
Mark Asselstine
b3619dec91 libvirt: uprev to v4.7.0
A straight-forward uprev to the latest stable release. As usual basic
runtime sanity tests have been run along with the ptests. The
following is the results of the ptests:

  ====================================
  Testsuite summary for libvirt 4.7.0
  ====================================
  # TOTAL: 120
  # PASS:  117
  # SKIP:  0
  # XFAIL: 0
  # FAIL:  3
  # XPASS: 0
  # ERROR: 0

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2018-09-30 21:31:14 -04:00
Mark Asselstine
2c8e62d5b4 libvirt: uprev to v4.5.0
Although v4.6.0 was just recently released we do not want to jump to
it due to:

https://bugzilla.redhat.com/show_bug.cgi?id=1614569

Unfortunately the mess around the above defect basically renders that
release useless. We will need to keep an eye for either a v4.7.0 or
grab updates off of the 'v4.5-maint' over the coming weeks.

As usual I have tested using qemu and lxc usecases (define, boot and
'virsh console' onto a guest). The ptests results match those of
v4.3.0:

  ======================================
  Testsuite summary for libvirt 4.5.0
  ======================================
  # TOTAL: 119
  # PASS:  114
  # SKIP:  0
  # XFAIL: 0
  # FAIL:  5
  # XPASS: 0
  # ERROR: 0

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2018-08-20 11:35:48 -04:00
Mark Asselstine
343b40ba0d libvirt: uprev to the latest release, v4.3.0
We have been using the 1.3.x release series for a long time now which
has been great for stability but is slowly becoming harder and harder
to track and port bug and CVE fixes. This is a big jump to the latest
upstream release which gives us access to a myriad of fixes as well as
puts us in a better position to contribute to the upstream project
when issues are found.

Several patches have been dropped as they are either no longer valid
against this release or have equivalent updates already applied to the
upstream project. Some patches were consolidated which should ease
future uprevs of this recipe. The majority of the updates were related
to ptest patches, which is not a huge surprise given this code has no
upstream equivalent.

The overall runtime behavior remains much the same from v1.3.5 with
the only notable configuration change being for 'seccomp_sandbox'
which has been disabled here but should possibly be revisited in the
near future.

As usual the normal runtime usecases for qemu/kvm and lxc have been
run successfully along with ptest results which are by and large OK:

    ====================================
    Testsuite summary for libvirt 4.3.0
    ====================================
    # TOTAL: 119
    # PASS:  115
    # SKIP:  0
    # XFAIL: 0
    # FAIL:  4
    # XPASS: 0
    # ERROR: 0

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2018-06-05 12:01:01 -04:00
Paul Barker
e64f378b93 Remove True option to getVar calls
getVar() now defaults to expanding by default.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2017-01-03 10:28:33 -05:00
Kai Kang
af2948e048 libvirt: upgrade 1.3.2 -> 1.3.5
Upgrade libvirt  from 1.3.2 to 1.3.5.

* update checksums and remove PR
* remove trailing whitespace
* remove backport patch 0001-fix-crash-in-getAllDomainStats.patch
* update context of patches
* remove libvirtd.socket from SYSTEMD_SERVICE which doesn't exist anymore
* install test data which ptest requires

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce@zedd.org>
2016-08-04 21:45:53 -04:00
Jeremy Puhlman
357ca45fb1 libvirt: fix python install in multilib case.
Currently libvirt python builds in the multilib case, but fails to
install. Switch from PN to BPN, and fix compile to be consistent.

Signed-off-by: Bruce Ashfield <bruce@zedd.org>
2016-08-04 21:45:04 -04:00
Roy Li
dc7ab5bea5 libvirt-python: backport a patch to fix crash in getAllDomainStats
Upstream libvirt Commits 1d39dbaf and 827ed9b4 broke the libvirt-python API
by removing virDomainRef() and virDomainFree().  virDomainStatsRecordListFree() will
free that domain pointer and later when virDomain (python object) call
its destructor and tries to free that same pointer again.

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-05-25 09:41:44 -04:00
Yunguo Wei
da65e83a39 libvirt: uprev to 1.3.2
Release notes here http://libvirt.org/news.html.

Signed-off-by: Yunguo Wei <yunguo.wei@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2016-03-31 09:15:25 -04:00
Roy Li
a27d411aef libvirt: upgrade 1.2.17 -> 1.2.19
The release notes is http://libvirt.org/news.html

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-09-16 16:10:10 -04:00
Lei Maohui
c698474360 libvirt: upgrade 1.2.15 -> 1.2.17
Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-08-05 22:34:54 -04:00
Roy Li
1c1be83047 libvirt: upgrade to 1.2.15
Remove libvirt-Fix-cannot-symlink-cpu_map.xml-error.patch, since
rules for install *.xml are changed, the race issue does not exist.

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-05-20 08:09:52 -04:00
Bruce Ashfield
d00ef6ceae libvirt: uprev to 1.2.12
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-01-27 12:44:47 -05:00
Bruce Ashfield
83d8f3e0c5 libvirt: correct libvirt-python checksums
The uprev to 1.2.11 had the incorrect libvirt-pthon checksums, we
correct them here.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-01-20 15:11:57 -05:00
Olivia Yin
65202ced07 libvirt: uprev to v1.2.8
Signed-off-by: Olivia Yin <r63875@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-09-29 10:25:59 -04:00
Bruce Ashfield
9ae9894c15 libvirt: uprev to 1.2.4
Updating the version of libvirt to 1.2.4. Only small changes are required
to the ptest and python chnages for this new version, but otherwise, all
packaging and build optinos are the same.

Sanity tests show no regressions from 1.2.2.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-05-14 18:27:09 -04:00
Mark Asselstine
4d8814f0d1 libvirt: allow separated src and build dirs
Poky commit 69b6eaca3d9b635e8a61a0fdbd814b558e91901d [autotools:
Enable separate builddir by default] enforced separate build
directories, which is supported by automake.  Make some minor updates
to the recipes and upstream source to allow builds to work with
separated src and build directories.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-05-08 12:37:25 -04:00
Mihaela Sendrea
594a85674c libvirt: Update version to 1.2.2
Signed-off-by: Mihaela Sendrea <mihaela.sendrea@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-03-19 10:58:11 -04:00
Bruce Ashfield
41101a7a51 libvirt: fix python packaging race
The tasks responsible for compiling and installing the python support
were racing against packaging. As a result, a clean build would not
have anything in libvirt-python, but subsequent builds would.

By moving to _appends, we control the order and always get properly
packaged.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-05 16:41:55 -05:00
Bruce Ashfield
c72df0a2d1 libvirt-python: update install and packaging
To work with oe-core master, we need to update the libvirt-python
FILES_* specification to properly pick up and package the support
libraries.

We can also follow the lead of distutils and use a common set of
install arguments for the configuration and install of our nested
libvirt-python support.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-05 11:36:10 -05:00
Amy Fong
43fe4b7d0e package libvirt-python
In 1.2.0, libvirt separated the python components into a separate package.

Signed-off-by: Amy Fong <amy.fong@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-05 11:29:12 -05:00
Bruce Ashfield
f542bf79d8 libvirt: uprev to v1.2.0
Upreving libvirt to v1.2.0 released Dec 2, 2013.

As part of this uprev, existing patches that are part of the 1.2 release have
been dropped, and existing functionality checked for regressions.

From the libvirt release notes:

 Features:
    Add support for gluster pool (Eric Blake),
    Separation of python binding (Daniel P. Berrange),
    vbox: add support for 4.3 APIs (Ryota Ozaki)

 Documentation:
    fix typos in libvirt.h.in (Chen Hanxiao),
    Link libvirt-sandbox from apps page (Daniel P. Berrange),
    Add docs about audit subsystem logging (Daniel P. Berrange),
    virsh: fix doc typos (Nehal J Wani),
    Fix typos in various docs (Nehal J Wani),
    LXC: add securetty related note in Device nodes (Gao feng),
    Fix three minor typos (Yuri Chornoivan),
    storage: fix typo in previous patch (Eric Blake),
    storage: document gluster pool (Eric Blake),
    virDomainReboot: Document that migration might be unsafe (Michal Privoznik),
    delete extra character (Wangyufei (A)),
    maint: fix comment typos. (Eric Blake),
    improve job info details (Eric Blake),
    fix a typo in formatnwfilter.html.in (Chen Hanxiao),
    Improve cgroups docs to cover systemd integration (Daniel P. Berrange),
    fix typos in libvirt.h.in (Chen Hanxiao),
    fix virDomainRestoreFlags description bug (Wang Yufei),
    grammar fixes (Eric Blake),
    add SystemTap to apps using libvirt (Jonathan Lebon),
    fix a typo in formatnwfilter (Chen Hanxiao),
    caps: Fix function docs for virCapabilitiesAddHostNUMACell (Peter Krempa)

Portability:
    tests: fix virpcitest with read-only srcdir (Eric Blake),
    tests: guarantee abs_srcdir in all C tests (Eric Blake),
    look for numad in /usr/sbin (Jim Fehlig),
    build: Don't fail on '&lt;' or '&gt;' with old xmllint (Martin Kletzander),
    spec: fix libvirt-docs subpackage on RHEL-6 (Michael Chapman),
    Don't depend on syslog.service (Guido Günther),
    qemuMonitorJSONGetCPUx86Data: Don't fail on ancient qemus (Michal Privoznik),
    build: work around super-old readline.h (Ryota Ozaki),
    Fix migration with QEMU 1.6 (Michael Avdienko),
    nodeinfo: fix build on non-Linux (Eric Blake)

Bug Fixes:
    vbox: handle errors of virDomainHostdevDefAlloc correctly (Ryota Ozaki),
    vbox: fix incorrect loop condition in vboxHostDeviceGetXMLDesc (Ryota Ozaki),
    Fix memory leak in virNWFilterDefParseXML() (Nehal J Wani),
    Fix memory leak in virDomainDefParseXML() (Nehal J Wani),
    LXC: Ensure security context is set when mounting images (Daniel P. Berrange),
    network: properly update iptables rules during net-update (Laine Stump),
    Fix bug in identifying sub-mounts (Daniel P. Berrange),
    storage: skip selinux cleanup when fd not available (Eric Blake),
    qemu: preserve netdev MAC address during 'domxml-to-native' (Bing Bu Cao),
    storage: don't read storage volumes in nonblock mode (Eric Blake),
    LXC: don't unmount mounts for shared root (Gao feng),
    LXC: fix the problem that libvirt lxc fail to start on latest kernel (Gao feng),
    sasl: Fix authentication when using PLAIN mechanism (Christophe Fergeau),
    Fix invalid read in virNetSASLSessionClientStep debug log (Christophe Fergeau),
    Tie SASL callbacks lifecycle to virNetSessionSASLContext (Christophe Fergeau),
    remote: Don't leak priv->tls object on connection failure (Christophe Fergeau),
    spec: Don't save/restore running VMs on libvirt-client update (Jiri Denemark),
    virsh domxml-from-native to treat SCSI as the bus type for pseries by default (Shivaprasad G Bhat),
    Don't start a nested job in qemuMigrationPrepareAny (Ján Tomko),
    spec: Don't save/restore running VMs on libvirt-client update (Cole Robinson),
    spec: Restrict virt-login-shell usage (Jiri Denemark),
    storage: use valid XML for awkward volume names (Eric Blake),
    storage: Returns earlier if source adapter of the scsi pool is a HBA (Osier Yang),
    libvirt-guests: Run only after libvirtd (Cole Robinson),
    Fix off-by-1 in default SELinux MCS range (Daniel P. Berrange),
    vbox: fix segfault on virsh dumpxml with the existence of USB filters (Ryota Ozaki),
    Add missing 'return 0;' in stub lxcStartFuse() method impl. (Daniel P. Berrange),
    Avoid async signal safety problem in glibc's setxid (Daniel P. Berrange),
    Don't release spice port twice when no TLS port is available (Ján Tomko),
    Properly unref a connection with a close callback (Ján Tomko),
    qemu: Call qemuSetupHostdevCGroup later during hotplug (Jiri Denemark),
    qemuMonitorIO: Don't use @mon after it's unrefed (Michal Privoznik),
    qemuProcessReconnectHelper: Don't create joinable thread (Michal Privoznik),
    virDomainEventCallbackListFree: Don't leak @list->callbacks (Michal Privoznik),
    networkBuildDhcpDaemonCommandLine: Don't leak @configstr and @configfile (Michal Privoznik),
    Disable nwfilter driver when running unprivileged (Ján Tomko),
    libxl: Fix Xen 4.4 libxlVmStart logic (Jason Andryuk),
    qemu: Check for presence of device and properities when getting CPUID (Peter Krempa),
    Fix busy wait loop in LXC container I/O handling (Daniel P. Berrange),
    Don't expose 'none' machine type to capabilities (Daniel P. Berrange),
    Fix mem leak in virQEMUCapsProbeQMPMachineTypes on OOM (Daniel P. Berrange),
    virSecurityLabelDefParseXML: Don't parse label on model='none' (Michal Privoznik),
    virsh-domain: Mark --live and --config mutually exclusive in vcpucount (Peter Krempa),
    qemu: Fix SCSI hotplug on pseries guests (Vitor de Lima),
    pci: properly handle out-of-order SRIOV virtual functions (Laine Stump),
    util: use -w flag when calling iptables (Serge Hallyn),
    storage: Fix a vol-clone bug on ppc64 (Li Zhang),
    qemu: Don't access vm->priv on unlocked domain (Michal Privoznik),
    qemu: Avoid double free of VM (Michal Privoznik),
    Allow root directory in filesystem source dir schema (Ján Tomko),
    qemuMigrationBeginPhase: Check for 'drive-mirror' for NBD (Michal Privoznik),
    conf: fix incorrect error log in virCPUDefIsEqual (Chen Hanxiao),
    qemuMonitorDispose: Reset lastError (Michal Privoznik),
    qemu: clean up migration ports when migration cancelled (Zeng Junliang),
    network: fix connections count in case of allocate failure (Laine Stump),
    virpcitest: Fix variable arguments using in pci_driver_new (Michal Privoznik),
    virpci: Don't error on unbinded devices (Michal Privoznik)

Improvements:
    Pull lxcContainerGetSubtree out into shared virfile module (Daniel P. Berrange),
    Introduce standard methods for sorting strings with qsort (Daniel P. Berrange),
    conf: Export virStorageVolType enum helper functions (Peter Krempa),
    sasl: Replace 'restep' label with 'continue' (Christophe Fergeau),
    storage: probe qcow2 volumes in gluster pool (Eric Blake),
    storage: improve handling of symlinks in gluster (Eric Blake),
    storage: improve allocation stats reported on gluster files (Eric Blake),
    storage: improve directory support in gluster pool (Eric Blake),
    storage: add network-dir as new storage volume type (Eric Blake),
    storage: implement rudimentary glusterfs pool refresh (Eric Blake),
    storage: initial support for linking with libgfapi (Eric Blake),
    storage: expose volume meta-type in XML (Eric Blake),
    storage: allow interleave in volume XML (Eric Blake),
    maint: next release is 1.2.0 (Eric Blake),
    vbox: import vbox_CAPI_v4_3.h from SDK (Ryota Ozaki),
    vbox: pull vboxHostDeviceGetXMLDesc out from vboxDomainGetXMLDesc (Ryota Ozaki),
    vbox: cleanup vboxAttachUSB (Ryota Ozaki),
    lxc: don't do duplicate work when getting pagesize (Chen Hanxiao),
    maint: update to latest gnulib (Eric Blake),
    python: remove virConnectGetCPUModelNames from globals (Doug Goldstein),
    python: remove virConnectGetCPUModelNames from globals (Doug Goldstein),
    qemu: Auto-generate controller for hotplugged hostdev (Eric Farman),
    qemu: Separate calls based on controller bus type (Eric Farman),
    qemu: Rename controller hotplug functions to not be PCI-specific (Eric Farman),
    qemu: Add support for virt machine type with virtio-mmio devices on armv7 (Clark Laughlin),
    maint: enforce comma style usage (Eric Blake),
    maint: fix comma style issues: remaining code (Eric Blake),
    maint: fix comma style issues: remaining drivers (Eric Blake),
    maint: fix comma style issues: vbox (Eric Blake),
    maint: fix comma style issues: python (Eric Blake),
    maint: fix comma style issues: util (Eric Blake),
    maint: fix comma style issues: tests, tools (Eric Blake),
    maint: fix comma style issues: qemu (Eric Blake),
    maint: fix comma style issues: xen (Eric Blake),
    maint: fix comma style issues: conf (Eric Blake),
    maint: fix comma style issues: nwfilter (Eric Blake),
    Error out on unterminated arrays and objects in JSON parser (Ján Tomko),
    Test if JSON parser fails on invalid input (Ján Tomko),
    maint: ship .pl scripts as executables (Eric Blake),
    Fix virsh net-info output for consistency (Hao Liu),
    Add missing break to switch-case block (Doug Goldstein),
    qemumonitorjsontest: Introduce GetNonExistingCPUData test (Michal Privoznik),
    Macro for testing the version you are compiling with (Doug Goldstein),
    Return -1 in virPortAllocatorAcquire if all ports are used (Ján Tomko),
    Add a name to virPortAllocator (Ján Tomko),
    storage: fix RNG validation of gluster via netfs (Eric Blake),
    virsh-secret: Unify list column alignment (Peter Krempa),
    virsh-interface: Unify list column alignment (Peter Krempa),
    virsh-nwfilter: Unify list command column alignment (Peter Krempa),
    virsh-pool: Unify spacing of listing function (Peter Krempa),
    qemu: Change return type of qemuMonitorGetGuestCPU() (Peter Krempa),
    virsh-volume: Unify strigification of volume type (Peter Krempa),
    virsh-volume: Unify alignment of vol-list output columns (Peter Krempa),
    conf: Refactor virDomainDiskSourceDefParse (Peter Krempa),
    conf: Rename virDomainDiskHostDefFree to virDomainDiskHostDefClear (Peter Krempa),
    conf: Split out code to parse the source of a disk definition (Peter Krempa),
    qemuDomainObjStart: Warn on corrupted image (Michal Privoznik),
    util: use size_t instead of unsigned int for num_virtual_functions (Laine Stump),
    qemu: assign PCI address to primary video card (Vitor de Lima),
    qemu: process: Validate specific CPUID flags of a guest (Peter Krempa),
    qemu: Add support for paravirtual spinlocks in the guest (Peter Krempa),
    conf: Refactor storing and usage of feature flags (Peter Krempa),
    cpu: x86: Add internal CPUID features support and KVM feature bits (Peter Krempa),
    qemu: Add monitor APIs to fetch CPUID data from QEMU (Jiri Denemark),
    cpu_x86: Refactor storage of CPUID data to add support for KVM features (Peter Krempa),
    tests: Distribute virpcitestdata (Michal Privoznik),
    tests: Fix virtpcitest in VPATH (Jiri Denemark),
    conf: Refactor virDomainDiskSourcePoolDefParse (Peter Krempa),
    storage: always probe type with buffer (Eric Blake),
    storage: refactor backing chain division of labor (Eric Blake),
    storage: reduce number of stat calls (Eric Blake),
    storage: avoid short reads while chasing backing chain (Eric Blake),
    storage: use simpler 'char *' (Eric Blake),
    test driver: add support for .connectBaselineCPU (Giuseppe Scrivano),
    virpcitest: Introduce testVirPCIDeviceReset (Michal Privoznik),
    virt-login-shell: also build virAtomic.h (Guido Günther),
    storage: recognize gluster as networked file (Eric Blake),
    qemu: don't use deprecated -no-kvm-pit-reinjection (Ján Tomko),
    Resolve Coverity issue regarding not checking return value (John Ferlan),
    Skip any files which are not mounted on the host (Daniel P. Berrange),
    Add flag to lxcBasicMounts to control use in user namespaces (Daniel P. Berrange),
    Remove duplicate entries in lxcBasicMounts array (Daniel P. Berrange),
    Remove pointless 'srcpath' variable in lxcContainerMountBasicFS (Daniel P. Berrange),
    Remove unused 'opts' field from LXC basic mounts struct (Daniel P. Berrange),
    Add virFileIsMountPoint function (Daniel P. Berrange),
    virpcitest: Introduce check for unbinded devices (Michal Privoznik),
    virpcitest: Introduce testVirPCIDeviceReattach (Michal Privoznik),
    virpcitest: Test virPCIDeviceDetach (Michal Privoznik),
    tests: Introduce virpcitest (Michal Privoznik),
    cpu: x86: Parse the CPU feature map only once (Peter Krempa),
    cpu: Export few x86-specific APIs (Jiri Denemark),
    nodeinfo: Remove libnuma include (Peter Krempa),
    numa: Add wrapper of numa_node_to_cpus and use it (Peter Krempa),
    numa: Replace NUMA_MAX_N_CPUS macro with virNumaGetMaxCPUs() (Peter Krempa),
    nodeinfo: Get rid of nodeGetCellMemory (Peter Krempa),
    numa: Introduce virNumaGetNodeMemory and use it instead of numa_node_size64 (Peter Krempa),
    numa: Introduce virNumaGetMaxNode and use it instead of numa_max_node (Peter Krempa),
    nodeinfo: Avoid forward declarations of static functions (Peter Krempa),
    numa: Introduce virNumaIsAvailable and use it instead of numa_available (Peter Krempa)

Cleanups:
    Remove obsolete 'tests' makefile target (Daniel P. Berrange),
    Mostly revert "python: remove virConnectGetCPUModelNames from globals" (Daniel P. Berrange),
    Remove redundant braces (Ján Tomko),
    virPCIDeviceBindToStub: Remove unused @oldDriverPath and @oldDriverName (Michal Privoznik)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-12-04 01:36:20 -05:00
Bruce Ashfield
5c9d22f016 libvirt: move python PACKAGECONFIG into main recipe
The libvirt-python.inc manipulation of PACKAGECONFIG meant that the default
configuration options of the libvirt recipe never fired, since the variable
had an assignment and the lazy set of the configuration values never
applied to the build.

Moving the python PACKAGE_CONFIG options into the main recipe, and ensuring
that PACKAGE_CONFIG_${PN} is used for libvirt-python means that most builds
will now use the default configuration.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-08-15 08:49:59 -04:00
Mark Asselstine
a4565b8ce7 libvirt: fix python script's improper paths
libvirt generates several python scripts using its python/generator.py
script. This uses the PYTHON variable, which in our case will be a
full path to the sysroot that will not exist on the target. For this
we are patching libvirt to allow for (but not require) TARGET_PYTHON
to be defined and used when generating these python scripts.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-08-12 23:46:49 -04:00
Yao Zhao
22e7b5e92b fix libvirt-python build problem
The current libvirt's config.log:
configure:65065: checking for python
configure:65083: found /usr/bin/python
configure:65095: result: /usr/bin/python
configure:65116: checking for python version
configure:65123: result: 2.7
configure:65137: checking for python platform
configure:65144: result: linux2
configure:65170: checking for python script directory
configure:65206: result: ${prefix}/lib/python2.7/dist-packages
configure:65215: checking for python extension module directory
configure:65251: result: ${exec_prefix}/lib/python2.7/dist-packages

so it will use host python which may quite different with target python.

remove python_incdir.patch and inherit pythonnative.
use PACKAGECONFIG instead of EXTRA_OECONF.
enable python in full PACKAGECONFIG.

Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-05-03 12:26:06 -07:00
Mihai Prica
7040db74c3 libvirt: Changed python bindings install location
The libvirt-python files were installed to dist-packages and this
is not part of sys.path in yocto so they were not available to
python. Changed this to site-packages.

Signed-off-by: Mihai Prica <mihai.prica@intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-04-18 21:39:24 -07:00
Mihai Prica
93a8aadc0d libvirt: updated to work for other hypervisors
* the package can now be customized using PACKAGECONFIG
* fixed to use target include files for python

Signed-off-by: Mihai Prica <mihai.prica@intel.com>
Signed-off-by: Raymond Danks <ray.danks@se-eng.com>
2012-11-26 16:21:16 -07:00
Raymond Danks
8378d87ced libvirt: Initial package creation.
Signed-off-by: Raymond Danks <ray.danks@se-eng.com>
2012-06-21 15:32:51 -06:00