Commit Graph

959 Commits

Author SHA1 Message Date
Bruce Ashfield
7550a05bb0 libvirt: dnsmaqs not to bind to virbr interface
By default dnsmaqs binds to all interfaces, and this causes 2
small issues:

* At boot time, dnsmaqs daemon will start first and binds to virbr
interface, then libvirtd spawns a second dnsmaqs binds to virbr
(in dynamic mode) which binds to virbr:53 proto UDP (but not TCP)
* If some how, libvirtd daemon starts first then dnsmaqs daemon
will fail to start as libvirtd daemon already binds to virbr:53.

This patch tells dnsmasq daemon to leave virbr alone and let
libvirt uses it.

Signed-off-by: Vu Tran <vu.tran@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-03-03 11:59:06 -05:00
Bruce Ashfield
8484b64fa3 libvirt: kill the right dnsmasq daemon
Currently when libvirt daemon is stared, the libvirt startup
script tries to kill the already running dnsmasq daemons
(e.g. from /etc/init.d/dnsmaqs).  Also if
"/etc/init.d/libvirtd start" is invoked more than
one time then this will accidentally kills all the dnsmasq
daemon.

This patch makes sure libvirt startup script to kill only the
dnsmasq that spawned by itself.  Also try to avoid killing
dnsmasq if "/etc/init.d/libvirtd start" runs second time.

Signed-off-by: Barton Wensley <Barton.Wensley@windriver.com>
Signed-off-by: Vu Tran <vu.tran@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-03-03 11:55:14 -05:00
Jonas Eriksson
ce991a62d5 libvirt: Disable polkit driver when there is no x11
To avoid having the default build of libvirt depend on virtual/x11
through polkit and consolekit, check for x11 in DISTRO_FEATURES before
enabling the polkit support in the default PKG_CONFIG.

Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
Acked-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-28 10:43:27 -05:00
Jonas Eriksson
9b5d1d158a libvirt: Use DISTRO_FEATURES to enable Xen support
The Xen drivers in libvirt is needed when the build file system image
and kernel are running as dom0. The parts of the kernel needed to run as
dom0 are controlled by DISTRO_FEATURES, and thus there is no need for
the Xen drivers if DISTRO_FEATURES does not contain 'xen'.

Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
Acked-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-28 10:43:27 -05:00
Jonas Eriksson
5876038def libvirt: Fix selinux DISTRO_FEATURE check
It seems that a $ was forgotten in the DISTRO_FEATURE check for selinux.

Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
Acked-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-28 10:43:26 -05:00
Jonas Eriksson
f60073740c libvirt: Change license to LGPLv2.1+
libvirt is to a large extent licensed under LGPLv2.1 (or later) rather
than GPLv2. From my investigations, there are only some tests and a
couple of files under tools are licensed as GPL. Other than that, files
are generally licensed as LGPL. My recommendation is therefore to set
the default license to LGPLv2.1+, and to add a LICENSE_${PN}-ptest that
is set to LGPLv2.1+ & GPLv2+ if a ptest package is added. This is
preferred to avoid having to specify explicit licenses for every other
package, such as the auto generated libvirt-locale-XX packages.

Signed-off-by: Jonas Eriksson <jonas.eriksson@enea.com>
Acked-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-28 10:43:26 -05:00
Josep Puigdemont
9c6a7d3739 Update Linux Containers to lxc-1.0.0
Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-28 10:43:21 -05:00
Bruce Ashfield
20accf6d7c lxc: add missing patch
As reported by Chris Larson, the recipe went in, but not the patch.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-18 14:42:02 -05:00
Philip Tricca
323c1bb6f4 xen: Add RDEPENDS block for xendomains script.
I can't explain the dependency on xen-scripts-block as the xendomains
script doesn't invoke any of these scripts directly. Still xendomains
hangs indefinitely without them.

Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-11 14:29:17 -05:00
Philip Tricca
543d230ad5 xen: Remove dependency on python-setuptools-native.
oe-core fixed some overlap between the python-setuptools-native and
python-distribute-native recently. This made python-setuptools
obsolite. See: http://patchwork.openembedded.org/patch/66085/
The Xen recipe already DEPENDS on python-distribute-native by
inheriting setuptools so we only need to remove the dependency on
python-setuptools-native.

Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-11 14:29:15 -05:00
Josep Puigdemont
7499d6ce01 lxc: always strdup lxc.rootfs.mount
The reason is that the generic code which handles reading lxc.rootfs.mount
always frees the old value if not NULL. So without this setting
lxc.rootfs.mount = /mnt causes segfault.

This is a backport for lxc-0.9.0 (dora) of the same fix found in
upstream's master, see commits 54c30e29 and 53f3f048.

Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-11 14:29:04 -05: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
142477933d busybox: update bbappend to match oe-core master
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-05 14:17:42 -05:00
Jim Somerville
9e5a34e8cd openvswitch: add more target python substitutions
The TARGET_PYTHON variable is used for script
substitutions to ensure the scripts will be able to properly execute
if the target system has a different path for the python.

Signed-off-by: Jim Somerville <Jim.Somerville@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-05 11:53:13 -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
Bruce Ashfield
75c11b0d02 libvirt: fix python PACKAGECONFIG dependencies
Since python support is separate from the main libvirt build, we
no longer need to trigger configuration options when python
packageconfig support is added, we simply need to add python to the
package depends.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-02-05 11:32:46 -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
8515475890 lxc/autoconf:: allow subdir objects
autoconf-1.14 will fail to configure lxc with the following warning (and
hence error):

  | automake: warnings are treated as errors
  | src/lxc/Makefile.am:79: warning: source file '../include/openpty.c' is in a subdirectory,
  | src/lxc/Makefile.am:79: but option 'subdir-objects' is disabled

So we tell autoconf that subdir objects are fine .. and the issue is solved.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-01-31 15:44:19 -05:00
Bruce Ashfield
0d4fca1ddd libvirt: refresh patches for 1.2.1
The 1.2.1 libvirt update was pushed before the patches were refreshed,
which results in a patching failure.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-01-29 10:32:43 -05:00
Philip Tricca
c93bc0c018 xen: Add libgcc as runtime dependency of xen-xl package.
Much of xl operates fine without libgcc but some operations complain
that pthread_cancel won't work properly without libgcc_s.so.1
installed. The exact text is:

libgcc_s.so.1 must be installed for pthread_cancel to work

Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-01-27 13:52:09 -05:00
Bruce Ashfield
85712e3a2b libvirt: update to 1.2.1
Picking up the latest bugfixes and CVEs via the 1.2.x release of
libvirt.

No external interfaces or functional changes are part of this update.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-01-27 13:50:07 -05:00
Philip Tricca
ab80118391 xen: Add RDEPENDS for xencommons.
Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-01-20 13:06:22 -05:00
Philip Tricca
e84dfcdaae xen: Cleanup watchdog FILES declaration.
Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-01-20 13:06:22 -05:00
Philip Tricca
e5ced4b778 xen: Move supporting files into xencommons and xendomains packages.
Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-01-20 13:06:22 -05:00
Christopher Larson
7f3332a96b iptables: 1.4.19.1 -> 1.4.21
Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-01-14 08:46:59 -05:00
Mark Asselstine
8df6927829 irqbalance: add missing inherit
irqblance's configure script makes use of pkg-config so we need to inherit
pkgconfig or else we may see an error like

./configure: line 12460: syntax error near unexpected token `GLIB,'
./configure: line 12460: `  PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.28)'

during configure.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-12-18 16:40:09 -05:00
Mark Asselstine
65dd8be44e lxc: add missing inherit
lxc's configure script makes use of pkg-config so we need to inherit
pkgconfig or else we may see an error like

./configure: line 5315: syntax error near unexpected token `PYTHONDEV,'
./configure: line 5315: `      PKG_CHECK_MODULES(PYTHONDEV, python3 >= \
                     3.2,,AC_MSG_ERROR([You must install python3-dev]))'

during configure.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-12-18 16:15:48 -05:00
Mark Asselstine
33bfd797a1 libvirt: add missing inherit
libvirt's configure script makes use of pkg-config so we need to inherit
pkgconfig or else we may see an error like

./configure: line 55867: syntax error near unexpected token `AVAHI,'
./configure: line 55867: `    PKG_CHECK_MODULES(AVAHI, avahi-client >= 0.6.0,'

during configure.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-12-18 16:15:48 -05:00
Mark Asselstine
f826f932e5 openvswitch: add missing inherit
openvswitch requires pkgconfig or you may see an error:

configure.ac:53: error: Please install pkg-config.

during configure.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-12-18 16:15:48 -05:00
Bruce Ashfield
257393291d xen: move populate-volatile.sh postinst to -volatiles package
We really only want this to run if the volatiles package is installed, so
the postinst belongs with that same package.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-12-17 21:06:35 -05:00
Philip Tricca
9a69a0ffdc xen: Break volatiles out into separate package.
The Xen scripts for handling block and vif udev events depend on
directories created by the Xen volatile directories. In a situation
where the 'base' Xen package isn't installed (NDVM etc) these
scripts fail silently. The most simple approach I could come up
with is just breaking the Xen volatiles config out into it's own
package and setting up the logical dependencies.

Creating a new package for just a single file seems like overkill
to me but it's the most straightforward thing I could come up with.

Regards,
Philip

Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-12-17 21:05:40 -05:00
Christopher Larson
dd7091ee30 lxc: kill use of susv2 'head' args
Without enabling INCLUDE_SUSv2 in busybox, we need to use head's -n argument,
rather than -#.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-12-10 11:29:22 -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
Philip Tricca
851a4ae2ce base-files: add xenfs entry to fstab if xen DISTRO_FEATURE is enabled
Xen handles mounting xenfs with an init script. Unfortunately this
script is the same one that starts xenstored and xenconsoled. That's
great for dom0 but a domU may need xenfs but running xenstored/
xenconsoled in a domU makes no sense. A simple fstab entry is
preferrable.

Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-12-04 01:36:19 -05:00
Mark Asselstine
61f1cd9c44 lxc: correct use of PN vs. BPN to fix multilib builds
BPN should be used in place of PN otherwise the fetcher will attempt
to download a file with the multilib prefix,and fail, and S will not
be what is expected, causing patching and other failures.

Signed-off-by: Mark Asselstine <asselsm@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-11-24 00:05:56 -05:00
Chris Patterson
0192b43754 xen-image-minimal: fix syslinux dependency
Install libcom32.c32 when populating syslinux-based images.

When syslinux upgraded to v6, libcom32.c32 became a dependency
for mboot.c32.

Signed-off-by: Chris Patterson <cjp256@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-11-24 00:05:51 -05:00
Yang Shi
ab69477f9d libvirt: Correct IP_PATH
ip is installed into /sbin/ip, but the default path used by libvirt is /bin/ip,
so override IP_PATH in configure.

Signed-off-by: Yang Shi <yang.shi@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-11-19 23:29:57 -05:00
Mark Asselstine
6e915099cc openvswitch: deal with missing RDEPENDS of libpcap
Bitbake was properly detecting a dependency on libpcap but since it
was not an explicit RDEPENDS the libpcap package was not being built
in all cases which had the potential to break rootfs image building.

The obvious solution was to add libpcap to the RDEPENDS but looking
upstream it was found that they have removed the use of this library
for all but FreeBSD since for other systems it is unused. So using the
upstream patch here eliminates the dependency and in turn the issue
described above.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-11-19 23:29:51 -05:00
Bogdan Purcareata
ad150f5655 LXC: setup_netdev: re-read ifindex in LXC_NET_PHYS case
Patch to fix interface netns transition when
assigning a physical interface to a container.
Pushed to the upstream LXC repo, to be included
in future versions of LXC.

Further details in included patch description.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-11-15 00:00:27 -05:00
Bruce Ashfield
a626d480cf openvswitch: make postinst indentation consistent
right or wrong, we shouldn't have a mix of tabs or spaces, so in this
cleanup, we'll make them all tabs.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-11-13 14:01:31 -05:00
Bruce Ashfield
0623683135 ovs: uprev to 2.0.0
We update to the latest 2.0 OVS, but we'll keep the existed (better tested)
version around until this proves to be stable.

As part of this update the openvswitch-add-target-perl-handling.patch has
been refreshed, since one of the scripts it patched is no longer part
of the package.

Finally, we drop PR from the recipe as part of the larger move to PRSERVER
based revision numbers.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-11-13 13:52:42 -05:00
Riku Voipio
8e7d3cc8ae fix inittab install when Xen not in DISTRO_FEATURES
With the latest patch, OE builds may file like:

https://ci.linaro.org/jenkins/job/openembedded-armv7ab-rootfs/gcc_version=4.8,label=oe_persistent_cloud,rootfs=minimal/127/consoleText

By having the "failing" grep within the if block, set -e
in shell code will not bite configurations where meta-virtualization
is included but xen is not in DISTRO_FEATURES.

Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-11-13 12:52:46 -05:00
Chris Patterson
be39b4cced xen: add xen_git recipe.
Added recipe for xen unstable from git repository.

Moved now empty xen-flask and xen-libblktap packages from
required dependencies from xen.inc into xen_4.3.1.bb.

Signed-off-by: Chris Patterson <cjp256@gmail.com>
2013-11-07 22:25:50 -05:00
Chris Patterson
cd1d2e5d44 xen: improve organization with new xen.inc
Moved common recipe bits from xen_4.3.1.bb to xen.inc.

Signed-off-by: Chris Patterson <cjp256@gmail.com>
2013-11-07 20:50:51 -05:00
Chris Patterson
3a506b472b xen: upgrade to 4.3.1
Changelog available at:
http://xenproject.org/downloads/xen-archives/supported-xen-43-series/xen-431.html

Signed-off-by: Chris Patterson <cjp256@gmail.com>
2013-11-07 20:50:46 -05:00
Chris Patterson
72dc92bfa5 xen: rename xen patches directory from xen-4.3.0 to files.
Signed-off-by: Chris Patterson <cjp256@gmail.com>
2013-11-07 20:50:41 -05:00
Chris Patterson
6c2779ae59 xen: remove old patches
Signed-off-by: Chris Patterson <cjp256@gmail.com>
2013-11-07 20:49:43 -05:00
Chris Patterson
949174e964 xen: remove old xen.inc and xen-python.inc
Signed-off-by: Chris Patterson <cjp256@gmail.com>
2013-11-07 20:49:20 -05:00
Chris Patterson
99a6a22bfd xen: remove xen-rt recipe and patches
Signed-off-by: Chris Patterson <cjp256@gmail.com>
2013-11-07 20:48:19 -05:00
Chris Patterson
6296997516 xen: remove xen-hg recipe and patches
Signed-off-by: Chris Patterson <cjp256@gmail.com>
2013-11-07 20:47:58 -05:00