Commit Graph

642 Commits

Author SHA1 Message Date
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
Bruce Ashfield
48ef7901ab xen-tools: don't declare xencommons as an initscript for systemd
We previously disabled init.d/xencommons when systemd is the
init system (to fix duplicate initialization of some resources),
but during rootfs install, update-rc.d will look for the script
if xencommons is declared as an initscript package.

We match the installation and only delcare it as an initscript
in a non systemd configuration.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-04-21 11:58:56 -04:00
Michal Orzel
7df9b0f1e1 xen: Remove 4.14 recipes and related patches
We shall only have recipes for the last two stable releases, thus
get rid of the 4.14 recipes and the corresponding patches.

Signed-off-by: Michal Orzel <michal.orzel@arm.com>
Reviewed-by: Christopher Clark <christopher.w.clark@gmail.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-04-20 14:09:30 -04:00
Michal Orzel
265518e689 xen: Add recipes for stable Xen 4.16 release and update master
Add recipes for Xen 4.16 release as, according to the documentation
we shall have recipes for the latest stable major version of Xen
before the next Yocto release. Bump PREFERED_VERSION to 4.16 as well.

Take the opportunity to update SRCREV of xen recipes for master
and bump XEN_REL version to 4.17 as this is the current development
version.

Signed-off-by: Michal Orzel <michal.orzel@arm.com>
Reviewed-by: Christopher Clark <christopher.w.clark@gmail.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-04-20 14:09:23 -04:00
Michal Orzel
aa4ebb5dad xen: Bump SRCREV of 4.15 recipes to 4.15.2
Bump SRCREV version of xen recipes to use the latest 4.15 release
which is 4.15.2.

Signed-off-by: Michal Orzel <michal.orzel@arm.com>
Reviewed-by: Christopher Clark <christopher.w.clark@gmail.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-04-20 14:09:15 -04:00
Bruce Ashfield
51e404af98 xen-tools: remove unused systemd/sysvinit files
The commit [ xen: only package xencommon systemd components if systemd
is enabled] attempted to only package init.d scripts for non-systemd
systems (and vice-versa for unit files).

But the xen-tools builds installs the files uncondtionally, so we can
end up with unpackaged files in some configurations. We can test on
the init system and removed the unused versions of the init to avoid
both packging and runtime issues.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-04-19 20:11:39 -04:00
He Zhe
1f9c37e1a6 libvmi: Fix out of box build failure with xen disabled
vbd was added for xen based VMs since
bdee00fac9b4 ("Disk reading interface for Xen based VMs and example")
and should be built only when xen is enabled, otherwise there would not be
necessary xen headers and cause the following failure.

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-04-13 23:16:49 -04:00
Bruce Ashfield
d4f84ae3cd libvirt: fix QA packaging issue when multlib is enabled
The uprev of libvirt introduced a new sysctl file:
60-qemu-postcopy-migration.conf

In a standard configuration, the FILES variable of
python-libvirt picks up the fiel, but in a multiconfig setup,
the definition of ${libdir} changes and the file is missed.

Since systcl always looks in /usr/lib, we can't rely only
on ${libdir}, so we explicitly add the new .conf file into
the packaging. This will allow new additions in the future
to be considered as to in which package they belong.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Preeti Sachan <preeti.sachan@intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-04-11 10:16:46 -04:00
Ross Burton
98575878df virt-what: add new recipe
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-04-07 17:48:39 -04:00
Bruce Ashfield
f17c020e20 irqbalance: update to 1.8.0-tip
Bumping irqbalance to version v1.6.0-154-gb3adb5f, which comprises the following commits:

    0f594a6 Separate variable declaration from assignment
    9b004c6 Ensure that we get all of a unix message
    df7b543  Add '\0' to the end of strings to avoid heap buffer overflow
    f8bdd0e ui/ui.c: always use "%s"-style format for printf()-style functions
    efab272 Drop CapabilityBoundingSet from irqbalance service

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-03-29 10:06:20 -04:00
Bruce Ashfield
c77f64d100 kvmtool: update to -tip
Bumping kvmtool to latest, which comprises the following commits:

    faae833 Revert "kvm tools: Filter out CPU vendor string"
    1b76b6e Add --no-pvtime command line argument
    7d4671e aarch64: Add stolen time support
    ff69582 aarch64: Populate the vCPU struct before target->init()
    95f4796 arm: pci: Generate "msi-parent" property only with a MSI controller
    c334a68 arm: Use pr_debug() to print memory layout when loading a firmware image
    9b681b0 Remove initrd magic check
    2108c86 virtio/pci: Signal INTx interrupts as level instead of edge
    20b93be x86: Set the correct APIC ID
    d4d6f15 x86: Fix initialization of irq mptable
    cdd7d8c riscv: Generate PCI host DT node
    721da16 riscv: Handle SBI calls forwarded to user space
    7c9aac0 riscv: Generate FDT at runtime for Guest/VM
    762224e riscv: Add PLIC device emulation
    42bfe44 riscv: Implement Guest/VM VCPU arch functions
    867159a riscv: Implement Guest/VM arch functions
    2e99678 riscv: Initial skeletal support
    5968b5f update_headers: Sync-up ABI headers with Linux-5.16-rc1
    642f35b Makefile: Calculate the correct kvmtool version
    7a60af0 arm/pci: update interrupt-map only for legacy interrupts
    39181fc vfio/pci: Align MSIX Table and PBA size to guest maximum page size
    b20d6e3 vfio/pci: Print an error when offset is outside of the MSIX table or PBA
    f93acc0 vfio/pci: Rework MSIX table and PBA physical size allocation
    5f44d5d vfio/pci: Rename PBA offset in device descriptor to fd_offset
    34bfe5f pci: Fix pci_dev_* print macros
    3d3dca0 vfio/pci.c: Remove double include for assert.h
    e3b0ade arm/gicv2m: Set errno when gicv2_update_routing() fails
    dc66461 arm64: Be more permissive when parsing the kernel header
    5303f09 arm64: Use the default offset when the kernel image magic is not found
    5613ae2 Add --nodefaults command line argument
    a5253f7 builtin-run: Move kernel command line generation to a separate function
    39ab3a0 Use kvm->nr_disks instead of kvm->cfg.image_count
    cce9616 builtin-run: Abstract argument validation into a separate function
    638630c builtin-run: Do not attempt to find vmlinux if --firmware
    6cbec43 builtin-run: Warn when ignoring initrd because --firmware was specified
    6810e75 builtin-run: Treat specifying both --kernel and --firmware as an error
    2e7380d virtio/pci: Size the MSI-X bar according to the number of MSI-X
    bdb86d0 kvmtool: arm64: Configure VM with the minimal required IPA space
    066b5c0 kvmtool: arm64: Use the maximum supported IPA size when creating the VM
    4250819 kvmtool: Abstract KVM_VM_TYPE into a weak function
    25c1dc6 arm/arm64: vfio: Add PCI Express Capability Structure
    e69b766 arm/arm64: Add PCI Express 1.1 support
    6b74f68 arm/fdt.c: Don't generate the node if generator function is NULL
    070fb91 Move fdt_irq_fn typedef to fdt.h
    415f92c arm: Fail early if KVM_CAP_ARM_PMU_V3 is not supported

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-03-29 10:04:49 -04:00
Bruce Ashfield
cd8f8873a0 libvmi: update to 0.14-tip
Bumping libvmi to version v0.10-1073-g41600b6, which comprises the following commits:

    41600b6 Actually define __XS_EVENT_REASON_MAX (#1016)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-03-29 08:11:27 -04:00