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 B4851606A332 for ; Mon, 30 Nov 2026 13:17:22 +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=sxEcl55r Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xY1EJ-0001w5-76; Mon, 30 Nov 2026 08:15:39 -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 1xY1EF-0001uK-Jm for qemu-devel@nongnu.org; Mon, 30 Nov 2026 08:15:36 -0500 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xY1EC-0005Na-VZ for qemu-devel@nongnu.org; Mon, 30 Nov 2026 08:15:35 -0500 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-4acb44dcd7bso9327512f8f.0 for ; Mon, 30 Nov 2026 05:15:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1796044531; x=1796649331; 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=9mVFT/5BuvwxjiXpdcTlacIQ0WEdSwBU4Whj9gdfZ54=; b=sxEcl55rJyhE/l6qO4mOhCyOJc1zkUw3Ym7AB1hYMeI/3CcC+eLZb472QIG33voRZu dEr9Xr7+pSUENqVXwgEX9IZvs8dyiE7tuLEfwzM06YmanMeKnW/JjTyPlgJQkc7QzrWd ynYlBA7/wZNgiXMcTMyzuLtuy88jmh2R3jiABG8LUI2BloD56ME1ofWqUeDRUKB43WzL YJdca+nQ+YeD2MeEVWYBOO8ekA2qIcMyvtN+WbEwO/aC9r4u4nbarAw5R3T7lhI0f5cz wK8nJITefi6C+TZXmbme4bVeLa2u6W9osdoopy7wM1gIBRdXZdRcD8AJYEib0Ika3O0G 3JDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796044531; x=1796649331; 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=9mVFT/5BuvwxjiXpdcTlacIQ0WEdSwBU4Whj9gdfZ54=; b=jHUD0u9wi+dVqtvSfm2IJocPdle3nz0FXCyHuf6NTjr9hECUCfcEAywBLfY5K2pOI0 kIvJMZhk4mgkKdxDoVVG8q040qvWGgFsOXtlJnrZ07tNqhTdJsEbmmMaWXdLCLfwnSpz Pm13BU75ISqoFvWjB49O8C/uuzHUyjdbfrZMpyGpXxl2WhKWxDLjogxcsf8JPn/7pCW3 3wn5dGEtDTktlNw4jmqLjjv7949YHGPjOuikClcP2kZrOztwCFFjl2Q+5jYlZpGVhFr5 mgwkSgcmV9d+u8hF4ap2jnBTAG0s6eIMPRM6AL2MiIMEARkT+0vBGI8KcTq9yZ8I63WV 7xpw== X-Gm-Message-State: APuU4Z/bOZo2NLA5Kmf1W80Q0MAszcV0sSs7EifbvF+9jLlRCVGXjEiL sGc06jtPPPa/f+yyYPok4dr5FfkT/xfjNmJRSLrLhg9vChlpbT7S6sYSGPg0iz9Lz3I= X-Gm-Gg: AZFdTZfbP2aOet0KCAtD5gun+lvedbAuJMi1GAdG/00aO+nVtx6x3fAEPNOZPQEVihW 0TmxqjvQxrPLAtE80DnYBr5MwLacXaJedwGmlnk+sMPhN2C4aNbSuc03AXSwx7R4YJxVE7x2CUQ GPK19ANurT9wRhp7CyLB1yiJg0FwKsAffrZcI0ZNVB47/IraAJjBWGV6pq4dQhUGo/jw/pIcSpe /sQ0cDviLrig8Kt262zwCAvi+uwcBi48jSmFDo6VVoPcptoIg2AJyIfsYNZlc0gjXR8wSqAMSGY Jh3wNjjLRutIDwidpVomfzPRJwTFQVNgcSNCvxnjRHYSd/5/YK8hucRdHNDlt70E4B0qxtMKDKV 7gGqsQomkWrWDR2JRU/fQSWqGswWPUKKpTkfl3EHk8xTFCXV/RYvKrWZCBarnqlQWWmOb0UCpyn eyZ7dYNhzxxAOQ+Jo9Ei3JPF9QgBcJWbQxNMr1KlCujxz/NWK1xeTYP9o+6+LA1bxTpDgtREGsq APOLnnOJWGDE3e92zhsrHSdrvCYR6WuNi6kXienEqWGO6Qa5bFp5CocEAZLmmQDy31PDvgc2qfr mHjKy3pQGdBrUZEWiiXhWvr2UMzL X-Received: by 2002:a05:6000:1889:b0:48d:ee35:b3fe with SMTP id ffacd0b85a97d-4abab5ea3b3mr79761320f8f.8.1796044531364; Mon, 30 Nov 2026 05:15:31 -0800 (PST) Received: from draig.lan ([185.124.0.158]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab69bf61e8sm67310817f8f.11.2026.11.30.05.15.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 05:15:29 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 0FC086005B; Mon, 30 Nov 2026 13:15:25 +0000 (GMT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Akihiko Odaki , Dmitry Osipenko , Pierrick Bouvier Subject: [PULL 8/8] docs/virtio: add note about virtio-gpu acceleration Date: Mon, 30 Nov 2026 13:15:23 +0000 Message-ID: <20261130131524.35590-9-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261130131524.35590-1-alex.bennee@linaro.org> References: <20261130131524.35590-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::42d; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42d.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. Reviewed-by: Marc-André Lureau Message-ID: <20261126143607.2374676-9-alex.bennee@linaro.org> Signed-off-by: Alex Bennée 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