summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/qemu/qemu.inc
AgeCommit message (Collapse)Author
2021-03-04qemu: Backport patch to avoid assertion fails on icache line sizeAndrei Gherzan
Due to a bug in glibc 2.33, the value of the icache line size is now reported as unsupported option. This breaks qemu at runtime with: cacheinfo.c:182: init_cache_info: Assertion `(isize & (isize - 1)) == 0' failed. Aborted (core dumped) We haven't caught this one yet because we were already on qemu 5.2.0 when we started to play with glibc 2.33 so it was only reproducible on dunfell. Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
2020-12-14qemu: fix CVE-2020-25723Lee Chee Yang
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
2020-11-19qemu: fix CVE-2020-24352Lee Chee Yang
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
2020-11-02qemu: fix CVE-2019-20175Steve Sakoman
CVE: CVE-2019-20175 Signed-off-by: Steve Sakoman <steve@sakoman.com>
2020-10-21qemu: change TLBs number to 64 in 34Kf mips cpu modelVictor Kamensky
Replace OE private qemu patch with one that got upstreamed and solves the same problem: increase qemumips CI performance by increasing number of TLBs in CPU model and reduce need to run software TLB refill code. Signed-off-by: Victor Kamensky <kamensky@cisco.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit a99dace7463d310688f4098a51316dc0743651e2) Signed-off-by: Steve Sakoman <steve@sakoman.com>
2020-09-28qemu : fix CVE-2020-16092Chee Yang Lee
Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
2020-09-08qemu: fix CVE-2020-14364 CVE-2020-14415Lee Chee Yang
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
2020-08-07qemu: fix CVE-2020-15863Lee Chee Yang
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
2020-07-06qemu: fix CVE-2020-10702/10761/13362/13659/13800Lee Chee Yang
fix these CVE: CVE-2020-10702 CVE-2020-10761 CVE-2020-13362 CVE-2020-13659 CVE-2020-13800 Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
2020-06-18qemu: fix CVE-2020-13361Lee Chee Yang
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 2dcef5dfb5c4c57fd793d04ac936a9ff73aae844) Signed-off-by: Steve Sakoman <steve@sakoman.com>
2020-05-21qemu: fix CVE-2020-11869Lee Chee Yang
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Steve Sakoman <steve@sakoman.com> (cherry picked from commit 5f01d45266bbc0d0f1a32d10c0841326193cc9c1) Signed-off-by: Steve Sakoman <steve@sakoman.com>
2020-04-30qemu-system-native: Fix commented out PACKAGECONFIGJeremy Puhlman
Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Steve Sakoman <steve@sakoman.com>
2020-04-07qemu: fix CVE-2020-11102Lee Chee Yang
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-30qemu: Add check for missing headerOleksiy Obitotskyy
Header missing and configure script detect this. Add check before include header (if_alg.h). Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-24qemu.inc: Always disable compile time git updatingMark Hatle
If the SRC_URI is switched to be git based, QEMU will automatically update itself at compile time for select git submodules. This by passes the bitbake git fetcher. These modules are always present in the release tarballs, so only are problematic when used with git based SRC_URIs. These switches will have no effect on a tarball based SRC_URI. Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-23qemu/slirp: fix CVE-2020-7211Chee Yang Lee
fix CVE-2020-7211 for qemu slirp submodule see : https://www.openwall.com/lists/oss-security/2020/01/17/2 https://gitlab.freedesktop.org/slirp/libslirp/commit/14ec36e107a8c9af7d0a80c3571fe39b291ff1d4 Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-21qemu-system-native: disable options not included in extended tarballJeremy Puhlman
* Add PACKAGECONFIG option for xkbcommon qemu-keymap.c:16:10: fatal error: xkbcommon/xkbcommon.h: No such file or directory * Add PACKAGECONFIG option and patch for libudev commands-posix.c:53:10: fatal error: libudev.h: No such file or directory * Add PACKAGECONFIG option for libxml2 util/osdep.c:136: undefined reference to `fcntl64' - Without specifying libxml2, configure searches the system and pulls in the system libxml2 if it is present. In the process it adds -L/usr/lib64 which causes the system libc to be linked instead of the one from the extended tarball. None of the above libraries appear to be included in the depends for any of the qemu builds, so if they are getting linked in, its probably not intentionally. Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-12qemu: fix CVE-2020-7039Changqing Li
Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-12qemu: Fix reproducibilty issuesJeremy Puhlman
tests/qemu-iotests/common.env is generated from configure which we pass ${HOSTTOOLS_DIR}/python3 as our python to use, which gets copied into the ptests. Correct python3 path. Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-03-06qemu: update Xen packages names for the xen-tools recipeChristopher Clark
The Xen recipe has been divided into separate recipes for the hypervisor and tools in meta-virtualization commit 545461ba, so the package name references in the qemu recipe need to be updated to the new xen-tools packages. This change allows the temporary bbappend applied to qemu in meta-virtualization in that change to be retired. Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-28qemu: Fix CVE-2020-1711Lee Chee Yang
see https://git.qemu.org/?p=qemu.git;a=commit;h=693fd2acdf14dd86c0bf852610f1c2cca80a74dc Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-02-14qemu: Upgrade to 4.2.0Alistair Francis
While we are upgrading let's refresh patches and remove the outdated patches. Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-22qemu: Enable ppc64le support for qemu-usermodeKhem Raj
glibc defines minimum kernel needed to be 3.10.0 for LE ppc64 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-30qemu: Replace stime() API with clock_settimeKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-28qemu: Add PACKAGECONFIG for glusterfsshohei.maruyama@cybertrust.co.jp
This commit adds PACKAGECONFIG for glusterfs. glusterfs is not required f- or runqemu, so it should be optional to reduce build time. Signed-off-by: Shohei Maruyama <shohei.maruyama@cybertrust.co.jp> Signed-off-by: Ross Burton <ross.burton@intel.com>
2019-10-28qemu: Avoid potential build configuration contaminationRichard Purdie
Changing the gl options to qemu doesn't result in a correctly rebuilt binary, the GL linkage can persist from a build where it was enabled to one where it was not. As well as clearly being incorrect and non-reproducible, this caused some mystery failures on the autobuilder. Cleaning ${B} at do_configure time avoids this. Most recipes (e.g. autotools derived ones) already clean ${B} as appropriate and avoid this issue. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-19qemu: Fix CVE-2019-12068Changqing Li
Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-07meta: add missing some description in devtoolsMaxime Roussin-Bélanger
Signed-off-by: Maxime Roussin-Bélanger <maxime.roussinbelanger@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-10-07qemu: Add ppc64 to QEMU_TARGETSKhem Raj
helps with qemuppc target Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-09-15qemu: Security Advisory - qemu - CVE-2019-15890Li Zhou
Backporting patch from https://gitlab.freedesktop.org/slirp/libslirp/commit/c5927943 to solve CVE-2019-15890. Signed-off-by: Li Zhou <li.zhou@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2019-09-06qemu: Fix dependency of PACKAGECONFIG libcurlHe Zhe
When PACKAGECONFIG libcurl is enabled, we would get the following build failure. ERROR: Nothing PROVIDES 'libcurl' (but perf.bb DEPENDS on or otherwise requires it). Close matches: The dependency should be curl. Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2019-09-06qemu: Add pkg-config handling for libgcryptHe Zhe
When PACKAGECONFIG libgcrypt is enabled, we would get the following error. ERROR: /usr/bin/libgcrypt-config should not be used, use an alternative such as pkg-config In oe-core, libgcrypt has been turned to be configured with pkg-config instead of libgcrypt-config, but qemu configure script does not contain pkg-config related part for libgcrypt to handle it. Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2019-08-21qemu: Upgrade to version 4.1Alistair Francis
Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-07-31qemu: add a patch fixing the native build on newer kernelsBartosz Golaszewski
The build fails on qemu-native if we're using kernels after commit 0768e17073dc527ccd18ed5f96ce85f9985e9115. This adds an upstream patch that fixes the issue. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-07-18qemu: fix CVE-2019-12155Anuj Mittal
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-07-15qemu: use Python 3 to buildRoss Burton
As part of the mission to remove the use of Python 2, explicitly use Python 3 when building qemu. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-07-15meta: Remove remnants of bluez4 supportAdrian Bunk
bluez4 was removed from meta-oe 2 years ago. Simplfy the setup of the two level bluetooth and bluez4/bluez5 distro features by removing the bluez4/bluez5 distro features. This also removes the no longer required bluetooth class. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-06-12qemu: fix qemu ptest cannot workChangqing Li
do_install_ptest in recipe is covered by default function in ptest.bbclass since inherit ptest write in wrong place, fix it by move it to top. Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-27qemu: Backport the arm segfault fixAlistair Francis
When we updated to QEMU 4.0 we saw a segfault when running tests on the qemuarm machine. At the time we just reverted the offending patch from QEMU. Now that the fix has been merged into upstream let's remove that revert patch and replace it with the correct backport. Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-05-02qemu: Upgrade from 3.1.0 to 4.0.0Alistair Francis
This commit upgrade QEMU to the latest 4.0.0 release. - The COPYING.LIB file has changed SHA to: "Synchronize the LGPL 2.1 with the version from gnu.org" - SDL 1.2 has been removed, along with the --with-sdlabi command line arg - The backported patches have been removed - Al the other patches have been refreshed and the numbering has been updated Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-04-30qemu: split out vte into seperate PACKAGECONFIGAndreas Müller
* vte-native requires host compiler supporting c++17. Some distros we support ship comilers not supporting c++17 currently. * oe-self-test 'test_testimage_virgl_gtk' sets PACKAGECONFIG_append_pn-qemu-system-native = " gtk+". With vte enabled by 'gtk+'-config, build fails on hosts with ancient compilers [1]. * Alexander Kanavin did some tests: Without vte in PACKAGECONFIG there is still a working terminal available with reduced functionality [2]. * Users wanting 'full' terminal in system-qemu back should add PACKAGECONFIG_append_pn-qemu-system-native = " vte" in their local.conf. The idea of this patch was coming from Ross Burton - thanks! [1] http://lists.openembedded.org/pipermail/openembedded-core/2019-April/281637.html [2] http://lists.openembedded.org/pipermail/openembedded-core/2019-April/281727.html Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-04-23qemu: Add PACKAGECONFIG for snappyRobert Joslyn
In addition to toggling libsnappy support, this allows a qemu-native build to explicitly disable snappy support. When building qemu-native, the configure script will detect libsnappy on the build machine and improperly enable snappy support. This can corrupt the sstate cache if the cache is populated with a qemu-native build with snappy improperly enabled, and the cached qemu-native gets used on another build machine that does not have libsnappy. Signed-off-by: Robert Joslyn <robert.joslyn@redrectangle.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-03-24qemu: fix CVE-2019-3812Ross Burton
Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-03-19qemu: backport patches to fix cvesKai Kang
CVE: CVE-2018-16872 CVE: CVE-2018-20124 CVE: CVE-2018-20125 CVE: CVE-2018-20126 CVE: CVE-2018-20191 CVE: CVE-2018-20216 Patches 0015-fix-CVE-2018-20124.patch and 0017-fix-CVE-2018-20126.patch are rebased on current source code. Others are not modified. Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-02-28qemu: remove glx/virgl/gtk options from darwin/mingw targetsAlexander Kanavin
As they are not supported, and would lead to build failures. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-02-28qemu: split the native version into usermode and system partsAlexander Kanavin
The rationale is to streamline the overall build. The system parts are only needed to run target images, and so can be built towards the end of the build process. At the same time, the system parts may need gtk+-native and mesa-native which add significantly to the build time. On the other hand, the usermode parts have almost no dependencies and can be built quickly. They are needed at recipes build time to run target binaries, and so are required quite early in the typical build process. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-02-25qemu: add environment variable wrappers to make qemu look good with gtk frontendAlexander Kanavin
GTK_THEME instructs gtk to use its built-in theme. Otherwise gtk attempts to use the theme from the host, which may be from a totally mismatching gtk version. On the other hand FONTCONFIG_PATH tells it to use the host fonts, as providing fonts in the native sysroot and instructing the components to use them is a lot more tricky. GDK_PIXBUF_MODULE_FILE is set, because otherwise qemu works but fills stdout with error messages, which eventually fill the pipe they go into. That pipe is read from only when qemu exits (to collect any error messages) by runqemu script. The pipe fill-up causes the qemu process to lock up. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-02-25qemu: add a gettext-native dependency to gtk optionAlexander Kanavin
xgettext/msgmerge is used during do_install() when gtk is enabled: https://github.com/qemu/qemu/blob/master/Makefile#L743 Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-02-06qemu: remove --with-gtkabi=3.0 configure flagChris Patterson
Upstream dropped support for GTK2 (in v3.1.0) and this flag was dropped. Relevant upstream commit ID: 89d85cde75143325205e332dd97bf1bb8402d7c1 Signed-off-by: Chris Patterson <pattersonc@ainfosec.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-07-02qemu: Add RISC-V supportAlistair Francis
Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Ross Burton <ross.burton@intel.com>