Commit Graph

653 Commits

Author SHA1 Message Date
Xiangyu Chen
33e6cb346f libvirt: skip buildpath QA check for libvirt-python-dbg
The /usr/lib64/python3.11/site-packages/.debug/libvirtmod_lxc*.so
libraries with build path embedded, and the setup.py doesn't respect
our CFLAGS with -ffile-prefix-map argument, so try to skip the
libvirt-python-dbg buildpath check until that solved.

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-01-20 12:56:09 -05:00
Bruce Ashfield
4853645ef9 xen-tools: move var-lib-xenstored.mount to be version specific
We adjusted xen-tools in 4.17 to account for /var/lib/xenstored
not being present, but we didn't apply the same adjustment to
the systemd packages.

We move the service packaging to the 4.16 versioned recipe, as
anything newer than that, won't have the .mount file.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-01-20 12:16:33 -05:00
Xiangyu Chen
9e30cf3058 libvirt: fix libraries contain build folder path cause QA warning
libvirt debug trace contains source path, and some utils was located to
yocto sysroot folder, those full source path cause yocto QA buildpath
check failed and report "xxxx contains reference to TMPDIR" warnings.

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-01-19 15:44:04 -05:00
Xiangyu Chen
f13ced4d8d libvirt: fix soruce code comments contain build folder path cause QA Issue warning
gendispatch.pl add build dir in code comments which was generated
by itself. those build dir information would cause yocto qa report
warnings like:

WARNING: libvirt-8.1.0-r0 do_package_qa: QA Issue:
File /usr/src/debug/libvirt/8.1.0-r0/src/access/viraccessapicheckqemu.h in package libvirt-src contains reference to TMPDIR
File /usr/src/debug/libvirt/8.1.0-r0/src/access/viraccessapichecklxc.h in package libvirt-src contains reference to TMPDIR
File /usr/src/debug/libvirt/8.1.0-r0/src/access/viraccessapicheckqemu.c in package libvirt-src contains reference to TMPDIR
File /usr/src/debug/libvirt/8.1.0-r0/src/access/viraccessapichecklxc.c in package libvirt-src contains reference to TMPDIR
File /usr/src/debug/libvirt/8.1.0-r0/src/access/viraccessapicheck.h in package libvirt-src contains reference to TMPDIR
File /usr/src/debug/libvirt/8.1.0-r0/src/access/viraccessapicheck.c in package libvirt-src contains reference to TMPDIR [buildpaths]

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-01-19 15:43:53 -05:00
Michal Orzel
3581dd56aa xen: Add recipes for stable Xen 4.17 release and update master
Add recipes for xen and tools for the newly released 4.17 version and
take the opportunity to update master recipes.

Reflect 4.17 tools changes in xen-tools.inc:
 - add test-paging-mempool to test package,
 - add init-dom0less script to xl package,
 - add localstatedir to xencommons package (this is needed as from 4.17
   onwards, there is no /var/lib/xenstored resulting in /var being
   installed but not shipped in any package).

Reviewed-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Michal Orzel <michal.orzel@amd.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-01-10 13:58:07 -05:00
Michal Orzel
e6cae31cda xen: Bump SRCREV of 4.16 recipes to 4.16.3
Update 4.16 recipes to use the latest 4.16.3 release.
Also, remove the GCC 12 fix patch as it seems to be no longer needed.

Reviewed-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Michal Orzel <michal.orzel@amd.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-01-10 13:58:07 -05:00
Mingli Yu
d95762855e virt-viewer: add opengl to REQUIRED_DISTRO_FEATURES
Fixes:
  ERROR: Nothing PROVIDES 'spice-gtk' (but /build/layers/meta-virtualization/recipes-extended/virt-viewer/virt-viewer_11.0.bb DEPENDS on or otherwise requires it)
spice-gtk was skipped: missing required distro feature 'opengl' (not in DISTRO_FEATURES)
  ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
  Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'virt-viewer', 'spice-gtk']

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-12-22 10:32:59 -05:00
Bruce Ashfield
e675e3ebbf kvmtool: refresh crosscompiler patch
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-12-07 16:12:33 -05:00
Joakim Roubert
3002a90c6d upx: Use git fetcher instead of gitsm
The current upx will trigger the Bitbake Fetcher Error added in
Kirkstone 4.0.5 189a6d452e3037c9e94ccdf6af38359fc6058064 commit. This
patch replaces gitsm with git and explicitly adds the git submodules
with the corresponding commits.

Change-Id: I1b1231f06481f7a1e25dc35277d0f1725c7631e0
Signed-off-by: Joakim Roubert <joakimr@axis.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-12-07 16:12:33 -05:00
Bruce Ashfield
bf28d97358 upx: update to latest devel release
The upx development branch history has been rebaseed, so we update
our SRCREV to match.

As part of this update, we can drop our patch as it has now been
merged into the project.

The cmake structure has changed slightly, so we inherit cmake-native
to make it available as part of the Makefile driven build.

And finally, the name and location of the binary has changed, so
we adapt our install rule to match.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-12-07 16:12:33 -05:00
Markus Volk
4169fae169 libvirt-glib: fix pointer-sign issue
Update to latest commit to fix a build issue with latest glib-2-0

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-12-07 16:12:33 -05:00
Bruce Ashfield
c66e392d8e virt-viewer: fix buildpaths QA warning
The file virt-viewer-enums.c in the virt-viewer src is generated by
glib-mkenums. glib-mkenums is embedding full paths into this file.
There's no option for this utility to use a sysroot style variable.

So to avoid QA errors, we sed WORKDIR out of the generated file
(after build, before packaging) and make its includes relative.

The file can then be packaged into virt-viewer-src without a QA
error.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-12-07 16:12:33 -05:00
Markus Volk
eb411d0c5b virt-viewer: add recipe
virt-viewer is a minimal tool for displaying the graphical console of a virtual machine.
The console is accessed using the VNC or SPICE protocol. The guest can be referred to
based on its name, ID, or UUID. If the guest is not already running, then the viewer can
be told to wait until it starts before attempting to connect to the console. The viewer
can connect directly to both local and remotely hosted machines , optionally using SSL/TLS
encryption.

virt-viewer is the required client for the debian based proxmox ve. That's also the environ-
ment for which it was tested at runtime (only on x86_64).

I have successfully compiled it for x86_64, aarch64 and qemumips. Other platforms might work
(as long as gobject-introspection is available), but are untested.
Adding the vnc protocol would pull in a layer dependency on meta-gnome.

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-12-07 16:12:33 -05:00
Markus Volk
3fc29f569e libvirt-glib: add recipe
libvirt-glib wraps libvirt to provide a high-level object-oriented API better
suited for glib-based applications, via three libraries:

  - libvirt-glib - GLib main loop integration & misc helper APIs
  - libvirt-gconfig - GObjects for manipulating libvirt XML documents
  - libvirt-gobject - GObjects for managing libvirt objects

It is needed as a dependency for glib based projects that make use of libvirt e.g.
virt-manager, virt-viewer or gnome boxes.

Compilation was tested for x86_64, aarch64 and qemumips

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-12-07 16:12:33 -05:00
sakib.sajal@windriver.com
d2cfa7fac8 ceph: support python 3.11
python3 has been upgraded to 3.11 in oe-core causing
ceph do_configure to fail with the error:
|   Could NOT find Python3 (missing: Python3_LIBRARY Python3_INCLUDE_DIR
|   Development) (found suitable version "3.6.9", minimum required is "3")

Support python 3.11 to fix the issue

Upstream-Status: sent to upstream (https://github.com/ceph/ceph/pull/48947)

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-11-22 23:32:02 -05:00
Kai Kang
0d2f235a4a libvirt: remove package config qemu for powerpc and riscv32
qemu is not compatible with ppc32 and riscv32, so remove libvirt's
package config 'qemu' for them.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-10-26 10:09:38 -04:00
Christopher Clark
a2c5c5280f xen, xen-tools: remove the version 4.15 recipes
The existing 4.16 recipes are the current preferred Xen version, so
per the Xen version update policy, the 4.15 recipes can now be removed.

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-10-08 22:59:54 -04:00
Christopher Clark
0daf29cfdf xen, xen-tools: Bump SRCREV of the 4.16 recipes to 4.16.2
Update to use the latest stable 4.16 release.

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-10-08 22:59:42 -04:00
Dan McGregor
de747b18ac cloud-init: add Apache-2.0 as a LICENSE option
cloud-init has been dual licensed for a while.  According to the
LICENSE file this package is dual-licensed Apache 2 and GPL 3. This has
been the case since commit b2a9f3361 in 2016. This has applied to every
release since 17.1.

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-10-04 16:55:09 -04:00
Dan McGregor
fb780101a1 cloud-init: package nonarch_libdir
cloud-init installs its data in nonarch_libdir, not libdir, so package
that. On non-multilib builds this wouldn't be noticed.

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-10-04 16:53:38 -04:00
sakib.sajal@windriver.com
5bc9ecc2a7 ceph: fix compile issue
rocksdb has been updated to 7.5.3 in meta-oe causing
ceph compilation to fail.

Backport necessary patches to allow ceph to work with
newer versions rocksdb.

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-10-04 16:39:50 -04:00
Bruce Ashfield
cec0d5ce99 kvmtool: update to latest
Bumping kvmtool to latest, which comprises the following commits:

    336751f Makefile: Introduce LIBFDT_DIR to specify libfdt location
    6c88c26 virtio/rng: Zero-initialize the device
    fe21827 virtio/pci: Deassert IRQ line on ISR read
    ae22ac7 Makefile: Fix ARCH override
    3863f34 Makefile: Add missing build dependencies
    6a1f699 arm64: pvtime: Use correct region size
    c86ef0b virtio/pci: Remove VIRTIO_PCI_F_SIGNAL_MSI
    3d5cefc virtio/pci: Initialize all vectors to VIRTIO_MSI_NO_VECTOR
    5fe5eb0 virtio: Add support for modern virtio-mmio
    22a0823 virtio: Move MMIO transport to mmio-legacy
    b0d56e3 virtio: Add support for modern virtio-pci
    930876d virtio: Move PCI transport to pci-legacy
    3c8f82b virtio: Prepare for more feature bits
    de166e5 virtio/net: Set vhost backend after queue address
    73fd136 virtio/pci: Use the correct eventfd for vhost notification
    21c9bc7 virtio/pci: Make doorbell offset dynamic
    d060729 virtio: Extract init_vq() for PCI and MMIO
    c6590f7 virtio/pci: Delete MSI routes
    8b91a18 arm64: Allow the user to specify the RAM base address
    3f7e48f Introduce kvm__arch_default_ram_address()
    a37dad0 arm/arm64: Consolidate RAM initialization in kvm__init_ram()
    5e9c654 kvm__arch_init: Remove hugetlbfs_path and ram_size as parameters
    a9c24ec builtin_run: Allow standard size specifiers for memory
    d6d4220 arm/arm64: Kill the ARM_HIMAP_MAX_MEMORY() macro
    1af57dc arm/arm64: Kill the ARM_MAX_MEMORY() macro
    cce5a4f arm/arm64: Fail if RAM size is too large for 32-bit guests
    abe3f28 builtin-run: Add arch hook to validate VM configuration
    28b9625 builtin-run: Rework RAM size validation
    9d65519 builtin-run: Always use RAM size in bytes
    024c331 Use MB for megabytes consistently
    d9fdaad arm: gic: fdt: fix PPI CPU mask calculation
    f44af23 virtio/pci: Factor MSI route creation
    4842789 virtio/blk: Implement VIRTIO_F_ANY_LAYOUT feature
    e74b56e virtio/console: Add VIRTIO_F_ANY_LAYOUT feature
    6daffe5 virtio/net: Implement VIRTIO_F_ANY_LAYOUT feature
    b231683 virtio/net: Prepare for modern virtio
    8b27bcf virtio/net: Offload vnet header endianness conversion to tap
    c492534 Add memcpy_fromiovec_safe
    902a8ec virtio: Remove set_guest_features() device op
    17ad9fd virtio/console: Remove unused callback
    867b15c virtio: Fix device-specific config endianness
    15e6c4e virtio: Add config access helpers
    609ee90 virtio: Support modern virtqueue addresses
    fd41cde virtio: Factor virtqueue initialization
    a8e397b virtio/vsock: Remove redundant state tracking
    3a1e36e virtio: Remove redundant test
    7efc262 virtio: Add NEEDS_RESET to the status mask
    b4531b2 riscv: Add missing asm/kernel.h header
    6f6f384 mips: Do not emulate a serial device
    8ec1e8b arm64: Honor --vcpu-affinity for aarch32 guests
    1a992bb include: add new virtio uapi header files
    e539078 include: update virtio UAPI headers
    393e218 util: include virtio UAPI headers in sync
    7e22099 update virtio_mmio.h
    a68a52c kvmtool: Have stack be not executable on x86
    31e0eac virtio: Check for overflows in QUEUE_NOTIFY and QUEUE_SEL
    e473028 virtio: Sanitize config accesses
    3510a7f virtio/9p: Fix virtio_9p_config allocation size
    06e1e6f virtio: Use u32 instead of int in pci_data_in/out
    52d4ee7 mmio: Sanitize addr and len
    143ffa2 kvmtool: Add WARN_ONCE macro
    bc77bf4 stat: Add descriptions for new virtio_balloon stat types
    3a13530 virtio/balloon: Fix a crash when collecting stats
    324cc09 aarch64: Give up with MTE for AArch32 guest
    4639b72 arm64: Add --vcpu-affinity command line argument
    1393bda arm64: Add support for KVM_ARM_VCPU_PMU_V3_SET_PMU
    083a976 update_headers.sh: Sync ABI headers with Linux v5.18-rc2
    0febaae Add cpumask functions
    83713e7 arm64: Rework set_pmu_attr()
    f57ce44 arm: Make the PMUv3 emulation code arm64 specific
    b23aed2 arm: Get rid of the ARM_VCPU_FEATURE_FLAGS() macro
    412ee13 arm: Move arch specific VCPU features to the arch specific function
    5898515 arm/arm64: pmu.h: Add missing header guards
    d9b64eb linux/bitops.h: Include wordsize.h to provide the __WORDSIZE define
    443cd88 linux/err.h: Add missing stdbool.h include
    5657dd3 aarch64: Add support for MTE
    af1b793 update_headers.sh: Sync ABI headers with Linux v5.17
    ffa8654 Make --no-pvtime command argument arm specific
    faae833 Revert "kvm tools: Filter out CPU vendor string"

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-09-21 16:22:30 -04:00
He Zhe
46f9004365 irqbalance: Use built-in irqbalance.service instead of local one
The local irqbalanced.service was written long before when there wasn't one in
upstream. Then upstream created temporary runtime directory /run/irqbalance in
its irqbalanced.service, but no one did this for this recipe. Which renders the
following error.

/usr/sbin/irqbalance[314]: Daemon couldn't be bound to the file-based socket.

This patch starts to use upstream irqbalance.service instead and remove the
local one.

root@qemux86-64:~# systemctl status irqbalanced
* irqbalanced.service - irqbalance daemon
     Loaded: loaded (/lib/systemd/system/irqbalanced.service; enabled; preset: enabled)
     Active: active (running) since Mon 2022-08-22 10:10:22 UTC; 3s ago
       Docs: man:irqbalance(1)
             https://github.com/Irqbalance/irqbalance
   Main PID: 208 (irqbalance)
      Tasks: 2 (limit: 263)
     Memory: 1.4M
     CGroup: /system.slice/irqbalanced.service
             `-208 /usr/sbin/irqbalance --foreground

Aug 22 10:10:22 qemux86-64 systemd[1]: Started irqbalance daemon.
root@qemux86-64:~# ls -l /run/irqbalance/irqbalance208.sock
srwxr-xr-x 1 root root 0 Aug 22 10:10 /run/irqbalance/irqbalance208.sock

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-08-23 21:43:33 -04:00
Joe Slater
dccd964570 ceph: Fix CVE-2021-3979
Ceph-volume does not properly control key sizes.

Cherry-pick from github.com/ceph/ceph.git.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-08-20 23:23:08 -04:00
Christopher Clark
fb52b8d574 xen-image-minimal: reduce the x86 wic build dependencies
The Xen image recipe provides a default WKS_FILE for x86 builds to enable
booting the image either in qemu or directly on hardware. Add settings
for WKS_FILE_DEFAULT_DEPENDS that specify the wic image build
dependencies, which are lower than the defaults used without it.

This change reduces the amount of build resources required for CI of
this image and images that are derived from it.

Since WKS_FILE is specified separately for x86-64 and qemux86-64
overrides, do the same for WKS_FILE_DEFAULT_DEPENDS, even though the
dependencies for the two separate WKS_FILEs are currently the same.

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-07-20 16:04:53 -04:00
Andrei Gherzan
21cd0c24e3 fuse-overlayfs: Update to v1.9
Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-07-15 17:13:35 -04:00
Andrei Gherzan
81d62914ce fuse-overlayfs: Fix buffer overflow bug on workdir path
Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-07-15 17:11:58 -04:00
Ross Burton
11c1003e87 xen: remove obsolete sdl PACKAGECONFIG
Nothing in Xen respects --enable-sdl, and nothing in Xen links to libSDL,
so this PACKAGECONFIG is obsolete.

It looks like the last user of SDL in Xen was removed in "Remove
internal tools/ioemu tree"[1] back in 2008.

[1] xen 19dc3860dcfde9bc4ec4ef35bb1337e13276f630

Signed-off-by: Ross Burton <ross.burton@arm.com>
Reviewed-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-07-13 16:31:43 -04:00
Christopher Clark
40a4c292e3 xen, xen-tools: pass prefix maps to fix buildpaths reproducible build issues
To fix warnings when the buildpaths QA test is enabled, pass the file
and debug prefix map options that were previously supplied only for
reproducible builds, adding them to the DEBUG_PREFIX_MAP variable
and supplying that to CC.

Testing indicates that passing the prefix maps needs to be via CC
rather than the EXTRA_CFLAGS_XEN_CORE/TOOLS variables.

Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-07-10 21:25:42 -04:00
Jeremy Puhlman
320f44c6e9 cloud-init: install sysvinit initscripts
The redhat versions work with out modification.

Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-06-27 23:38:33 -04:00
Jeremy Puhlman
c40479b735 cloud-init: add rdpends for netifaces and charset-normalizer
Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-06-27 23:38:33 -04:00
Jeremy Puhlman
66a2fa470b cloud-init: add depend on udev in sysvinit case.
Just as with systemd, the build needs the dev manager installed
as a dependancy

Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-06-27 23:38:33 -04:00
Ross Burton
55bf71938e xen: make LZO dependency optional
xen-tools has an optional dependency on LZO.  As this is a unmaintained
compression format with better alternatives (such as Zstd), disable it
by default.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-25 11:39:14 -04:00
Chen Qi
d9189db0aa ceph: fix gcc-12 compile failure
Add two patches to fix gcc-12 compile failure.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-25 11:39:13 -04:00
Bertrand Marquis
3e6c50b794 xen: Fix class inherit in xen-image
Remove inherit of qemuboot classes when not build for qemu in
xen-image-minimal.
When reverted the handling for only adding inherited classes for qemu
was kept but the line always inheriting them was kept to.
This patch is fixing that so that qemuboot classes are now only added
when the image is built for qemu.

This fixes commit 27e5ade0ab

Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-18 13:52:14 -04:00
He Zhe
b7e5662405 libvirt: Fix keeping restarting
LIBVIRTD_ARGS has been moved to libvirtd.service since v8.1.0. Move our mode
setting accordingly, otherwise libvirt would keep restarting and VMs would be
constantly stopped.

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-18 13:52:14 -04:00
Khem Raj
aa86460a93 ipxe: Pin to use gcc
Use single quote instead of double quotes to help bitabake syntax
highlighter do right job

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-12 00:01:51 -04:00
Khem Raj
d32042ea1a xen-tools: Fix build with GCC 12
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-09 13:08:06 -04:00
Khem Raj
6a43be4c3e seabios: Upgrade to 1.16 release
Pin to use gcc as compiler always

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-09 13:08:06 -04:00
Bruce Ashfield
27e5ade0ab Revert "qemuboot, xen-image-minimal: enable runqemu for qemuarm Xen images"
This reverts commit 1c746a9768.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-09 12:22:11 -04:00
Bruce Ashfield
bd66956ceb xen/4.16: fix gcc 12 build
There's no fix in the xen repository to fix gcc 12 issues yet, but
there is one in the opensuse infrastructure.

We import that change from: https://build.opensuse.org/package/view_file/openSUSE:Factory/xen/gcc12-fixes.patch?expand=1
to at least get things building and allow runtime testing against gcc
12.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-09 09:12:09 -04:00
Christopher Clark
d7a2d1b7ab xen images, qemuboot: configure xenbr0 bridge for runqemu, testimage
Networking for Xen guest virtual machines is commonly configured via
bridging in the host system between a physical interface and the
guest virtual interfaces.

To make it easier to test networking and use testimage with Xen guest
virtual machines, extend the bbclass that provides network configuration
for qemu machines for the Xen images to configure a Xen bridge and put
eth0 onto it when QB_XEN_HOST_BRIDGE is set.

Signed-off-by: Christopher Clark <christopher.clark@starlab.io>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-09 08:08:31 -04:00
Christopher Clark
1c746a9768 qemuboot, xen-image-minimal: enable runqemu for qemuarm Xen images
The Xen hypervisor built for Arm 32-bit targets can be launched with
runqemu by providing a u-boot script and configuration for Qemu, which
enables interactive testing of Xen images.

Add qemuboot-xen-u-boot.bbclass to add a new bitbake task for generating
the u-boot script. Since this increases the number of qemuboot-specific
classes that are inherited by the xen-image-minimal recipe, change the
inherit of all of these to only apply to qemu machines with the qemuall
override.

Update qemuboot-xen-defaults.bbclass to supply working default
parameters for the qemuarm machine needed to boot successfully in
testing. Also change all the arch-specific variable overrides into
narrower qemu platform overrides instead to avoid unnecessary
interactions with other Arm platform machines.

Signed-off-by: Christopher Clark <christopher.clark@starlab.io>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-09 08:08:25 -04:00
Christopher Clark
da1e54ca79 xen, xen-tools: add recommendation for Qemu for non-hvm x86
The Spectre and Meltdown mitigations for Xen run PV guests within
HVM virtual machines, so Qemu is no longer only needed for systems
configured to run HVM guests.

With the split xen hypervisor and tools recipes, the bios dependencies
belong in the tools recipe, so move them and replace the hvm
PACKAGECONFIG option with the recommendation based on target arch.

Signed-off-by: Christopher Clark <christopher.clark@starlab.io>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-09 08:08:20 -04:00
Bruce Ashfield
b9e18c1dae xen-tools: correct xencommons initscript for systemd
commit [xen-tools: don't declare xencommons as an initscript for
systemd] was wrong in an amazing two ways. It has an extranenous
} and it has inverted logic.

The result is that xencommons is not being properly declared as
an initscript for sysvinit, and hence we don't fully boot. It
isn't a problem for most systemd configurations, so we were
booting as the initscript wasn't firing.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-08 23:22:07 -04:00
Ross Burton
973c8d0964 xen: use vgabios 0.8a
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-02 14:07:30 -04:00
Ross Burton
8386caefb7 vgabios: upgrade to 0.8a and cleanup recipe
Upgrade to 0.8a.

License checksum updated as the FSF street address changed.

Apply a patch to use the correct host compiler when building biossums,
removing the need for a separate biossums-native recipe.

Don't hardcode /usr/share, use ${datadir}.

Install all found firmware (including the new Banshee BIOS in 0.8a) and
the debug files which were not installed but intended to be packaged.

Remove redundant PR and S assignments, as these are the default values.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-02 14:07:30 -04:00
Ross Burton
36433bfef3 dev86: fix a build race
Fix a race in cpp/ where token[12].h are written to a temporary file
with the same name.

Also update the status of cross.patch.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-05-02 14:07:30 -04:00
Bertrand Marquis
21a5c29a10 xen: Add missing space in append to IMAGE_INSTALL
Add a space before doing an append in IMAGE_INSTALL on x86.
This is solving issues happening if someone is using IMAGE_INSTALL in
local.conf to add things to the generated image.

Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-04-26 23:03:42 -04:00
He Zhe
c21e22e8e6 libvirt: Fix error on undefining domain and segfault on libvirt_driver_qemu.so
Backport a patch to fix segfault when undefining virtual machines.

virsh undefine vm
rpc-libvirtd[9725]: segfault at 18 ip 00007f8b0a5f17a9 sp 00007f8b3f8cbb60
error 4 in libvirt_driver_qemu.so[7f8b0a56e000+113000]
error: Code: a4 01 0f 84 89 03 00 00 4c 89 ff e8 d1 ed f7 ff 85 c0 0f 88 b9
             02 00 00 48 8b 45 b8 48 8b b0 80 00 00 00 48 8b 86 b0 02 00 00
             <48> 8b 78 18 48 85 ff 0f 84 42 01 00 00 e8 b5 02 f8 ff 48 89 45 c0
Disconnected from qemu:///system due to end of file
error: Failed to undefine domain 'vm'
error: End of file while reading data: Input/output error

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-04-26 17:03:20 -04:00