Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 335AA606A321 for ; Thu, 26 Nov 2026 14:37:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=LOmABge0 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xWaaY-0007yD-EH; Thu, 26 Nov 2026 09:36:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xWaaC-0007eG-IO for qemu-devel@nongnu.org; Thu, 26 Nov 2026 09:36:21 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xWaa6-0001h7-UU for qemu-devel@nongnu.org; Thu, 26 Nov 2026 09:36:20 -0500 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-4bb70074ab2so75741605e9.0 for ; Thu, 26 Nov 2026 06:36:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1795703773; x=1796308573; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=DW+Tq9s7bAuq40IVRsHiajWOijY47D/nSd/bFeQOF/4=; b=LOmABge0HkzZn6E9ebjnoyAoX7VW1d+uPf14xY8S8f7l4qyvH/hrJAYWYvvf8BeZaZ EQ/M0OlXnNWe4CKQvNUKPTuX2GQzoopLluLHw4AI9WwN+OAS8kUWE8x0BBUomoXAWNE3 0XdzTmJrVAUqFSZCwrgLohl7g14MWzGY7d+ZrkleCTKN/RphHzSebXl1eOlSApSVq2As uLTs2XDlG8BzhS84dYervC4RlyNRBMZrHKyNH705z5YhdBWxh04LOByrRy0HQhUUAFtn my5s4UDMPO2Y+JiaIdWN3kH0TVsgUnPB4f6AkuZt/wNwYQO2XAFkwm6sjLRAj0cLZ1s9 jS+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795703773; x=1796308573; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=DW+Tq9s7bAuq40IVRsHiajWOijY47D/nSd/bFeQOF/4=; b=cmLksPpy0mbJZf3ZZCGLu4H9onUoeUQQu54/p5FLbQMUF0rWS0NaGLX9XFylA8IACV 0xqdknk2qbAt4g3IA1Qv7PKSlcLbOruUh72kaD2+sIR3q/QVDYjWm9c150YQ0iEaixOL xTxXWQBhhmUmLv0X7PU6KEap8UIZWVtYvd6e94LT5lHEeir1eJhwANE5FJQrniVACyoZ xQ3TjCUed4hzV3/zm0qHWN3DGYvVEnv8VfBF5UTy/R/+XaFH24mXGudnu7z9SdnydZxp 7A0w5cCIaErnRX/4eeRnmTQgzSKFP+rNCzmmD99hzvScwVoIRdSwpECfeXzO51erPO0O +TCA== X-Gm-Message-State: APuU4Z+87lJXciShuRusFrB0D+6Q6wE2n1lswlST+52EQ3XlbbQiqdmN 9TUcOMode5IF0Q3FpaE38SM2RpaKTSob0BSG9L0W4qw4quNcvdwdr+YbFK0QeIYejSU= X-Gm-Gg: AZFdTZcDXu1ZdO6MUeEnHeDHgJu3U1O6qc9XQ45Z/LV8haV2a+wqM0RkUErbSO8K7C5 fciUNYapz58bhI/9oyG7qiZL+MTDp8J6XkcIQY/3qJwJuSsmZ/PNIu/+habFR4bIbfmIdc5SkMp leovR9bYZnRp666xLlNnsBMWOgHM11Q3Lxikkw6AbDA2CcfFrMrLcnarXqZvBOdmGbeDnICLd8E VBEL8Qn/xeNFPg87nQfaVzNIH2GTx5ABpWlhiH7OLaS1vk71gr4V5drYTIC6sAceEtKbShX3mkv FVgfQl1GKtLo2igpxvTiwxOA3z+gg7LnB7fiUITGenFfluaekZ3OZpEAVHMKHkt/AoOCv7DDNWB TnVHNmaChYMaSt/dk6mELPHbwfuuQSDVBwI5u0RwT4wIk6UU8bFBM+2JZBpHQ6hFAMI1miK+u6I wIdwhlfUzOq/P2D59Lg9qCB4JMR24lXZEhY0xnBSoExzLtdGwCx6RygD+Qqoh/Fci4g3spfktcu M+iypvG9VmO6fDN5CqcB/QAPAeaDDv745nEn7d/bFZ25C7boKVM7ElgFIffAldeSzyT4BqoNvon sDSwbwfTHjcw50AiWaX36AGMkb/O X-Received: by 2002:a05:600c:4584:b0:4a7:c366:d791 with SMTP id 5b1f17b1804b1-4bb887e266amr412153615e9.1.1795703773310; Thu, 26 Nov 2026 06:36:13 -0800 (PST) Received: from draig.lan ([185.124.0.158]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb8d4f9aa8sm577987155e9.4.2026.11.26.06.36.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2026 06:36:11 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 4C4C05FAC3; Thu, 26 Nov 2026 14:36:08 +0000 (GMT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , qemu-s390x@nongnu.org, Richard Henderson , Laurent Vivier , Eric Farman , LIU Zhiwei , Zhao Liu , Dmitry Osipenko , qemu-arm@nongnu.org, "Michael S. Tsirkin" , Matthew Rosato , Palmer Dabbelt , Anirudh Srinivasan , Portia Stephens , Halil Pasic , qemu-riscv@nongnu.org, Joel Stanley , Chao Liu , Akihiko Odaki , Michael Ellerman , Alistair Francis , Peter Maydell , Nicholas Piggin , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Weiwei Li , Kuan-Wei Chiu , Paolo Bonzini , Fabiano Rosas , Daniel Henrique Barboza , Christian Borntraeger , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Subject: [PATCH 8/8] docs/virtio: add note about virtio-gpu acceleration Date: Thu, 26 Nov 2026 14:36:07 +0000 Message-ID: <20261126143607.2374676-9-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261126143607.2374676-1-alex.bennee@linaro.org> References: <20261126143607.2374676-1-alex.bennee@linaro.org> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x331.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 3d acceleration has a bunch of issues and is considered hard to secure in our current setup. As we have dropped it from the virtualisation use case lets call that out in the docs. Signed-off-by: Alex Bennée Reviewed-by: Marc-André Lureau --- v2 - also mention in security.rst --- docs/system/devices/virtio/virtio-gpu.rst | 12 ++++++++++++ docs/system/security.rst | 5 +++++ 2 files changed, 17 insertions(+) diff --git a/docs/system/devices/virtio/virtio-gpu.rst b/docs/system/devices/virtio/virtio-gpu.rst index d05f8cb8e3f..06e60ec6782 100644 --- a/docs/system/devices/virtio/virtio-gpu.rst +++ b/docs/system/devices/virtio/virtio-gpu.rst @@ -29,6 +29,18 @@ host's GPU and for the best performance be able to reliably share GPU memory with the guest. Details of 3D acceleration requirements are described in a further sections. +.. warning:: + + As 3D acceleration by its very nature involves giving the guest + fairly complete access to a bus master processing unit in the host + GPU we consider this outside the virtualisation use case with + respect to security. You should only ever enable 3D acceleration + with trusted guests. There is still the option of off-loading 3D + acceleration to a separate process via :ref:`vhost_user_proto` + depending on what guarantees that process can make and how well + confined it can be if things go wrong. + + QEMU virtio-gpu variants ------------------------ diff --git a/docs/system/security.rst b/docs/system/security.rst index c0254fef113..322ef003536 100644 --- a/docs/system/security.rst +++ b/docs/system/security.rst @@ -99,6 +99,11 @@ an issue as a normal bug. crashes / undesirable behaviour in QEMU will **not** be treated as security flaws, but should be fixed as hardening bugs. +* **virtio-gpu** with 3D acceleration. While VirtIO is generally + preferred for the virtualisation use case we make an exception for + 3D acceleration given the potentially large attack surface it + presents. You should only use 3D acceleration with trusted guests. + * **memory allocation bounds**. There are many ways in which a QEMU process can legitimately consume an amount of memory that is significantly larger than the assigned guest RAM. QEMU's worst -- 2.47.3