From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E89BB15827B for ; Tue, 26 Aug 2025 15:26:34 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id C8FA134108C for ; Tue, 26 Aug 2025 15:26:34 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id A5066110561; Tue, 26 Aug 2025 15:26:31 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 9E236110561 for ; Tue, 26 Aug 2025 15:26:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 51086340FA3 for ; Tue, 26 Aug 2025 15:26:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E7ED734D3 for ; Tue, 26 Aug 2025 15:26:29 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1756221932.1d5cfbbf84ca69ab68caf979f2f3c03b037695c7.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/qemu-guest-agent/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emulation/qemu-guest-agent/qemu-guest-agent-8.2.0.ebuild app-emulation/qemu-guest-agent/qemu-guest-agent-9.2.0.ebuild X-VCS-Directories: app-emulation/qemu-guest-agent/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 1d5cfbbf84ca69ab68caf979f2f3c03b037695c7 X-VCS-Branch: master Date: Tue, 26 Aug 2025 15:26:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9d6ec508-738c-4120-8684-cc2f2e38d31d X-Archives-Hash: 5e03366bcc08bfd777d52e12aaa806d5 commit: 1d5cfbbf84ca69ab68caf979f2f3c03b037695c7 Author: Michal Privoznik gmail com> AuthorDate: Wed Nov 6 20:27:22 2024 +0000 Commit: Sam James gentoo org> CommitDate: Tue Aug 26 15:25:32 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d5cfbbf app-emulation/qemu-guest-agent: Check for VIRTIO_CONSOLE kernel config To control guests from inside qemu-guest-agent is used. By default, it listens on a virtio-serial device (/dev/virtio-ports/org.qemu.guest_agent.0, see [1]) which is available iff CONFIG_VIRTIO_CONSOLE kernel config is enabled. Due to a bug in qemu-guest-agent where it daemonizes itself before opening the device, init scripts are unable to tell whether startup was successful. Check for the kernel config knob and hope that users will notice it while emerging the package. There is a fix for the bug [2] but it's contained in 10.0.0 release. 1: https://gitlab.com/qemu-project/qemu/-/blob/88f72048d2f5835a1b9eaba690c7861393aef283/qga/main.c#L46 2: https://gitlab.com/qemu-project/qemu/-/commit/c6f5dd7ac8ef62dcdec4cdeda1467c658161afff Closes: https://bugs.gentoo.org/810628 Signed-off-by: Michal Privoznik gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/43567 Signed-off-by: Sam James gentoo.org> app-emulation/qemu-guest-agent/qemu-guest-agent-8.2.0.ebuild | 9 ++++++++- app-emulation/qemu-guest-agent/qemu-guest-agent-9.2.0.ebuild | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/app-emulation/qemu-guest-agent/qemu-guest-agent-8.2.0.ebuild b/app-emulation/qemu-guest-agent/qemu-guest-agent-8.2.0.ebuild index 066994a80738..a4e4b3ee8fe2 100644 --- a/app-emulation/qemu-guest-agent/qemu-guest-agent-8.2.0.ebuild +++ b/app-emulation/qemu-guest-agent/qemu-guest-agent-8.2.0.ebuild @@ -6,7 +6,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..13} ) PYTHON_REQ_USE="ensurepip(-),ncurses,readline" -inherit edo systemd toolchain-funcs python-any-r1 udev +inherit edo linux-info python-any-r1 systemd toolchain-funcs udev MY_PN="qemu" MY_P="${MY_PN}-${PV}" @@ -39,6 +39,13 @@ python_check_deps() { python_has_version "dev-python/distlib[${PYTHON_USEDEP}]" } +pkg_setup() { + # While qemu-ga supports multiple modes, virtio-serial is the + # default. Make sure it's enabled in kernel. + CONFIG_CHECK="~VIRTIO_CONSOLE" + linux-info_pkg_setup +} + src_configure() { tc-export AR LD OBJCOPY RANLIB diff --git a/app-emulation/qemu-guest-agent/qemu-guest-agent-9.2.0.ebuild b/app-emulation/qemu-guest-agent/qemu-guest-agent-9.2.0.ebuild index 066994a80738..a4e4b3ee8fe2 100644 --- a/app-emulation/qemu-guest-agent/qemu-guest-agent-9.2.0.ebuild +++ b/app-emulation/qemu-guest-agent/qemu-guest-agent-9.2.0.ebuild @@ -6,7 +6,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..13} ) PYTHON_REQ_USE="ensurepip(-),ncurses,readline" -inherit edo systemd toolchain-funcs python-any-r1 udev +inherit edo linux-info python-any-r1 systemd toolchain-funcs udev MY_PN="qemu" MY_P="${MY_PN}-${PV}" @@ -39,6 +39,13 @@ python_check_deps() { python_has_version "dev-python/distlib[${PYTHON_USEDEP}]" } +pkg_setup() { + # While qemu-ga supports multiple modes, virtio-serial is the + # default. Make sure it's enabled in kernel. + CONFIG_CHECK="~VIRTIO_CONSOLE" + linux-info_pkg_setup +} + src_configure() { tc-export AR LD OBJCOPY RANLIB