75 Commits

Author SHA1 Message Date
Andy Chiang e161cf1dde qemu-ga: skip starting on bare metal device
The same firmware image may be deployed on either bare metal device or
virtualized platforms (e.g., Proxmox VE).

On bare metal device, `qemu-ga` may still be started even though no
virtio-serial channel is available, resulting in repeated attempts to
access /dev/virtio-ports/org.qemu.guest_agent.0.

This causes continuous service respawning by procd and unnecessary log
spam.

This commit adds a pre-check for /dev/virtio-ports to avoid starting
`qemu-ga` when virtio-serial support is not present.

Signed-off-by: Andy Chiang <AndyChiang_git@outlook.com>
2026-05-23 13:23:48 +03:00
Yanase Yuki b0d8a3d384 treewide: cleanup URLs
This commit converts plain HTTP URLs to HTTPS, and updates
old or outdated URLs.

Signed-off-by: Yanase Yuki <dev@zpc.st>
2026-05-08 22:28:27 +02:00
Vladimir Ermakov 4e6c2674af qemu: update to 10.1.3
- Update version
- No patch refresh needed

Changelog: https://www.mail-archive.com/qemu-devel@nongnu.org/msg1156310.html

Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
2025-12-14 12:58:30 +01:00
Vladimir Ermakov e93f03aadd qemu: update to 10.1.2
- Update version
- No patch changed

Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
2025-12-04 17:23:42 +01:00
Vladimir Ermakov 06aff2bb49 qemu: update to 10.1.0
- Update to 10.1.0
- Refresh patches
- Disable DBUS Display #27036

Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
2025-10-25 08:38:52 +03:00
Vladimir Ermakov 2fdc4601cc qemu: update to 10.0.2
- Update version to 10.0.2
- Refresh patches

Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
2025-06-22 09:54:52 +02:00
Vladimir Ermakov 8ff1f55791 qemu: refresh patches to include git headers
Use git format-patch to be able to use git am later, to fix openwrt/openwrt#10272 .
Remove patch to skip tests as not needed anymore.
Then apply refresh.

Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
2025-06-22 09:54:52 +02:00
Vladimir Ermakov 40a439bfa8 qemu: update to 10.0.0
- Update version to 10.0.0
- Update sanitizer config options names
- Add patch to fix meson cross compiler sanitiz check build

Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
2025-06-22 09:54:52 +02:00
Vladimir Ermakov 72b20db976 qemu: update to 9.1.3
- Update version
- Refresh patches

Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
2025-04-24 19:46:08 +08:00
Vladimir Ermakov 1268618b49 qemu: fix guest agent patch
Replace to fix #25209

Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
2025-04-24 19:46:08 +08:00
Vladimir Ermakov 6ee7a479bc qemu: update to 9.1.2
- Update to 9.1.2
- Refresh the patches

Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
2025-01-06 19:25:04 -08:00
Erwan MAS bba5282ff6 qemu: add build for qemu-ga & virtio-console-helper on x86 target
Signed-off-by: Erwan MAS <erwan@mas.nom.fr>
2024-12-14 11:32:54 -08:00
Erwan MAS edad451a84 qemu: fix error on python dependency at build
qemu need a recent version of python build , this is visible when you build with the docker image of the sdk see https://github.com/openwrt/docker/
error generated during the build : found no usable tomli, please install it

Signed-off-by: Erwan MAS <erwan@mas.nom.fr>
2024-12-13 11:22:53 -08:00
Vladimir Ermakov 850b2609c6 qemu: fix guest agent patch
I've used wrong type in qemu guest agent patch, found by: @curtdept
Fixes https://github.com/vooon/openwrt-packages/commit/d9da6e792a25e8b34c271d4c3752c7185c77878d#r147673510

Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
2024-10-10 18:45:07 +02:00
Vladimir Ermakov e1d8f3c800 qemu: update to 9.1.0
- Update version
- Refresh patches
- Remove unsupported config options:
  - `--enable-live-block-migration`
  - `--disable-pvrdma`

Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
2024-10-02 13:28:48 -07:00
Vladimir Ermakov b44065ec62 qemu: update version to 9.0.2
- Update version
- Refresh patchset

Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
2024-08-12 09:27:27 +08:00
Vladimir Ermakov 48e103ef0d qemu: update to 9.0.0
- update version: 9.0.0
- refresh patches

Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
2024-04-30 13:45:48 -07:00
krant 0f4591537a qemu: update to 8.2.2
- Use HTTPS for URLs

Signed-off-by: krant <aleksey.vasilenko@gmail.com>
2024-04-10 16:15:28 -07:00
Vladimir Ermakov 196955742c qemu: update to 8.2.0
- Refresh patches.
- Disable new features like AF XDP, Rutabaga VGA, libkeyutils
- Delete removed features such as HAX hypervisor

Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
2024-02-18 09:18:23 +08:00
Vladimir Ermakov a517b7660b qemu: update to 8.1.2
Changes:
- Update to 8.1.2
- Refresh patches
- Replace absent option --with-git-submodules with --disable-download

Fix #22530

Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
2023-10-30 18:21:11 +01:00
Mathew McBride 821bbcdf8b qemu: enable host support for armsr/armv8
As of OpenWrt main branch commit e505873e65f72 ("armsr: armv8:
enable KVM host") [merged 2023-08-15], armsr/armv8 has
KVM host support. We can now enable QEMU host for this
target.

For example, you can run OpenWrt armsr/armv8 as a guest
like so:
qemu-system-aarch64 -nographic -M virt -cpu host --enable-kvm \
	-bios u-boot.bin -smp 1 -m 1024 \
	-drive file=openwrt-armsr-armv8-generic-ext4-combined.img,format=raw,index=0,media=disk

A compatible u-boot.bin can be obtained from u-boot-qemu_armv8/u-boot.bin
that is built with the armsr target and available from
downloads.openwrt.org.

Signed-off-by: Mathew McBride <matt@traverse.com.au>
2023-08-16 11:02:28 +08:00
Vladimir Ermakov 73ee68a597 qemu: update to 8.0.2
Update version and refresh patches.

Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
2023-06-16 13:58:04 +08:00
Tianling Shen e007556915 qemu: change references from armvirt to armsr
armvirt target has been renamed to armsr (Arm SystemReady) [1],
so the dependency need to be changed as well.

https://github.com/openwrt/openwrt/commit/40b02a230167626def69389452f19b7109aaeac1

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-06-16 12:30:32 +08:00
Vladimir Ermakov 6035e4884d qemu: add zstd option
Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
2023-04-23 18:35:39 +08:00
Vladimir Ermakov 65d052d9b8 qemu: update to 8.0.0
- Update version to 8.0.0
- Refresh patches
- Update configure opttions to disable libdw

Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
2023-04-23 18:35:39 +08:00
Andre Heider 565866a472 treewide: refactor to use PKG_BUILD_FLAGS:=no-mips16
See commit 5c545bdb "treewide: replace PKG_USE_MIPS16:=0 with
PKG_BUILD_FLAGS:=no-mips16" on the main repository.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2023-04-08 08:38:54 +02:00
Vladimir Ermakov e93a9d0063 qemu: update to 7.2.0
drop disas and bios patches
refresh patches

qemu: vhost-scsi does not exist, drop unsupported vhost options

qemu: disable VDUSE by default

qemu: slirp and vnc-png option gone

Note: libpng still needed if vnc enabled.

Link: https://github.com/openwrt/packages/pull/18623
Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
(squash commits)
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2023-03-01 17:15:27 +08:00
Nicola Corna b3ea2c4fca qemu: enable usb passthrough by default
The total uncompressed size increase (qemu-system-x86_64 and the new libusb
dependency) is less than 1%.

Signed-off-by: Nicola Corna <nicola@corna.info>
2022-11-11 15:18:46 -08:00
Vladimir Ermakov df6cf458c4 qemu: add seccomp feature
Patch add an option to enable seccomp support,
adds dependency on libseccomp.

Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
2022-01-18 12:53:27 +08:00
Vladimir Ermakov 421fb2fea4 qemu: update to 6.2.0
Qemu version updated to 6.2.0, patch set refreshed for it.

Options --disable-jemalloc --disable-tcmalloc was replaced
by --enable-malloc=CHOICE, defaults to system.

Libudev search was moved from configure to meson.build, and now it's
not so easy to disable it. Even though --disable-mpath present.

Delete patches 0008-falloc and 0009-fs - they're already in 6.2.0.

Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
2022-01-18 12:53:27 +08:00
Tianling Shen 11265308c7 qemu: add libslirp dependency
It has been integrated in QEMU to provide user mode networking.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-12-16 13:27:47 +08:00
Rosen Penev 0b349d9ea3 qemu: disable libfuse
Fixes x86 build.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-11-02 10:38:49 +08:00
Rosen Penev 5ccd4d1c25 treewide: compile with tools/meson
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-09-17 22:06:52 -07:00
Rosen Penev e28f2db374 qemu: fix compilation on 64 bit platforms
Last patch is for mips. Second is an upstream backport. First is needed
for at least musl 1.2.x

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-09-16 15:19:29 +08:00
Vladimir Ermakov b8ef617993 qemu: update to 6.1.0, add usb passthrough option
One of big change is that QEMU has switched to Meson build system.
That result in few changes to build scripts to fix python interpreter
usage.
Second change that it's not possible to select binaries to build, so
now we have to build all targets at once (that require --enable-tools).

Options --disable-sheepdog and --disable-vxhs was removed from qemu
6.1.0 and 6.0.0 accordingly.

Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
2021-09-14 21:28:45 +08:00
Rosen Penev 39bc254663 treewide: remove uClibc++ support
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-03-05 15:07:46 -08:00
Ilya Lipnitskiy 5d8d4fbbcb treewide: Run refresh on all packages
The crude loop I wrote to come up with this changeset:

  find -L package/feeds/packages/ -name patches | \
  sed 's/patches$/refresh/' | sort | xargs make

Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
2021-02-20 16:02:15 -08:00
Yousong Zhou 31abcf26de qemu: remove ref to now non-existent TARGET_arm64
It was removed in base system commit 88468f7e ("armvirt: merge arm64 as
subtarget 64") in 2017

No change in packaged content

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2020-12-18 20:29:06 +08:00
Yousong Zhou 33bbeceaa7 qemu: add patch for qga guest-shutdown command
Ref: https://github.com/openwrt/packages/issues/14244
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2020-12-17 17:08:40 +08:00
Yousong Zhou 1e836cb41a qemu: fix build failure caused by ld cannot find iconv
This was caused by upstream project commit db5adeaa ("build-sys: clean
up flags included in the linker command line")

Reported-by: W. Michael Petullo <mike@flyn.org>
Link: https://github.com/openwrt/packages/issues/13081
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2020-08-12 00:05:37 +08:00
Yousong Zhou 100bd27e4d qemu: use $(ICONV_DEPENDS)
In case CONFIG_BUILD_NLS was enabled

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2020-08-12 00:05:37 +08:00
Yousong Zhou 7a98f0b370 qemu: explictly --disable-linux-io-uring
Fixes openwrt/packages#12808

Reported-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2020-07-14 21:24:39 +08:00
Yousong Zhou ba6e5fc393 qemu: filter out configure args with predefined macros
Reported-by: https://github.com/openwrt/packages/commit/a3033406eae94105b50ea9d57ea4a032b34a87a1#commitcomment-39321758
Suggested-by: Lucian Cristian <lucian.cristian@gmail.com>
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2020-05-21 11:16:07 +08:00
Yousong Zhou a3033406ea qemu: ignore configure option --disable-ipv6
Fixes: https://github.com/openwrt/packages/issues/12194
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2020-05-20 23:32:01 +08:00
Yousong Zhou f40420d456 qemu: bump to version 5.0.0
The slirp patch was included in this QEMU release

CXX_DEPENDS is now added for all host components otherwise we get
errors like the following

  Package qemu-img is missing dependencies for the following libraries:
  libuClibc++.so.0
  Package qemu-nbd is missing dependencies for the following libraries:
  libuClibc++.so.0

--disable-bluez was removed from configure args because upstream
deprecated bluetooth subsystem since qemu v3.1 and remove the code in
commit 1d4ffe8dc77c ("Remove the core bluetooth code")

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2020-05-11 17:02:16 +08:00
Yousong Zhou 47d9bf8418 qemu: fix building on mips arch
Add fallback zero value definition for MAP_SYNC etc. even when building
for CONFIG_LINUX.

Fixes openwrt/packages#11067

Reported-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2020-03-30 13:23:39 +08:00
Yousong Zhou ca7ea1402c qemu: add ui options to PKG_CONFIG_DEPENDS
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2020-03-20 17:27:13 +08:00
Yousong Zhou bdac2c8289 qemu: enable guest_agent no matter whether softmmu is enabled
Fixes: openwrt/packages#11067

Reported-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2020-02-07 03:12:54 +08:00
Yousong Zhou 14ee7cd3bf qemu: bump to version 4.2.0 2019-12-16 02:50:15 +00:00
Yousong Zhou df4811c6c3 qemu: bump to version 4.1.1
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-11-18 02:54:51 +00:00