Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2231719/?format=api
{ "id": 2231719, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2231719/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260501101505.3485916-26-peter.maydell@linaro.org/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/1.1/projects/14/?format=api", "name": "QEMU Development", "link_name": "qemu-devel", "list_id": "qemu-devel.nongnu.org", "list_email": "qemu-devel@nongnu.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20260501101505.3485916-26-peter.maydell@linaro.org>", "date": "2026-05-01T10:15:02", "name": "[PULL,25/28] hvf: arm: disable SME when nested virt is active", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "93b0115678cb9d63315caea31005d6507dbe3e8b", "submitter": { "id": 5111, "url": "http://patchwork.ozlabs.org/api/1.1/people/5111/?format=api", "name": "Peter Maydell", "email": "peter.maydell@linaro.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260501101505.3485916-26-peter.maydell@linaro.org/mbox/", "series": [ { "id": 502437, "url": "http://patchwork.ozlabs.org/api/1.1/series/502437/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=502437", "date": "2026-05-01T10:14:41", "name": "[PULL,01/28] hw/arm/fsl-imx8mp: Do not create redundant unimplemented devices", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/502437/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2231719/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2231719/checks/", "tags": {}, "headers": { "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=Ap27P3zO;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g6Rmf5Ccsz1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 01 May 2026 20:17:22 +1000 (AEST)", "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wIkuO-00046B-Tz; Fri, 01 May 2026 06:15:44 -0400", "from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <peter.maydell@linaro.org>)\n id 1wIkuK-00043i-6b\n for qemu-devel@nongnu.org; Fri, 01 May 2026 06:15:40 -0400", "from mail-wm1-x330.google.com ([2a00:1450:4864:20::330])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <peter.maydell@linaro.org>)\n id 1wIkuI-0000G8-Ij\n for qemu-devel@nongnu.org; Fri, 01 May 2026 06:15:39 -0400", "by mail-wm1-x330.google.com with SMTP id\n 5b1f17b1804b1-488a9033b2cso16033095e9.2\n for <qemu-devel@nongnu.org>; Fri, 01 May 2026 03:15:38 -0700 (PDT)", "from lanath.. (wildly.archaic.org.uk. [81.2.115.145])\n by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-48a8fede418sm12863335e9.6.2026.05.01.03.15.36\n for <qemu-devel@nongnu.org>\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 01 May 2026 03:15:36 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1777630537; x=1778235337; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:from:to:cc:subject:date:message-id\n :reply-to; bh=FNx1Ywj4Qu3y0jOumawWKaDs7AucOHa5C++JOEYBlgo=;\n b=Ap27P3zOp70CiIHWgic7Bs5v7IO/1c2PgVHQ3CrscKwaxf0SwIjHchQhRTdzmaqAaY\n zQmJyaWJ55J5MJrk7uyKrauXEoxPggW0Rtn2FzAZeTfnJ2s4P1VCTdfPnaeB3nxFqRG3\n lw07Z7DbT35Q0xB+FRfaZatxIPFkBTBUXWuIqlKLcWqbpEvy+L+rmdyf79sxYPmahELp\n aLZfOABsgPcEfYAGhJ4mxAYebWq5VN47DXsNUfKTyxzPijTrCDgGEqySUCkyxpTt7nXO\n cKgD2+gRZ2so/ex5mK/1bOsy84Puul+2huTO1jYFus/+hbAeNtXS9pviYRZEHKxmIARz\n mRlw==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777630537; x=1778235337;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=FNx1Ywj4Qu3y0jOumawWKaDs7AucOHa5C++JOEYBlgo=;\n b=pct2+yGKHu1Nenxf7mNVcfZ78/gQ/4lISOp0BN1NFcx1Yp0G82mJq9XCDlVAoyVeLi\n go6Fj3esj+eg9u16CQiXA1AS1JiewusJjjLLm+0AUSSHYpldQEwi57rB2rRy7FZdf8d6\n 6Zvsl8CArhj2mfwBx74eMroUehbIBSz1CObiG3l9kU5U+Qvdq/BazqxScHDvFBFPKnNm\n wN8z/u5I/yjao8dIdNiOTZyNcAh1xEmrOglCzswM3nsYiAOhKVLTPGMjzqjSN4Wj7Pn4\n 6BuOBCPWnfcQtH1d//FYSNyu2AJL/lvmJcGHdYSBtnpjfnH88z8SfhumfIfgsb288+7y\n RFHA==", "X-Gm-Message-State": "AOJu0YyzUb/aEdSfAPy9eAF5RL5osCSRhwO2K+J4RSk/QMjB0+nmT8TL\n 3jtaRGyJgHU4eUkdi21Ix97CQEdsT/vigjq4h2T9WmZNgRmyNjurQcWr2ZztjNOy1DXyWqePKJB\n /9RM+", "X-Gm-Gg": "AeBDiesFoa7VS0pX2p9zkoew88HWEEA0Ps27VFQNbdSdGo+mowH9YOwo6nSJkSO/cXQ\n 032vnaqBviGkB3+wW1C+Nrn+vf/KtsPCEzOmLulkjpKvX7qc0ldViBRDyYsA01UtqY82Vq0JkS9\n L9+rAfRb8lCnA4PoqiDNoZuOtwlwlLGAadUDbpmmGCeEQ5XZFph3UHRnPJL1vD24D4+SbRwT0QB\n kUM80DDj3ASMrxaIrBEwUyjGdDogQDR+/olDTlGZGEQrjMteQ6TUlgSPgypc0j2Aw71RxNHBG8T\n ERPgp8G2Fbq6BWF85d0ef9PGIfz9Eudf5Y898G9hhGpRd7LSrk4LqoLFno6550t0e/G+H0KQKPY\n 3PpgjbEy1PPw8c+Zu+sDOye0STt6F9phk/2j9/2AJ8ehW1a4XUMNkn43sG7j23WYVxqgtJgvmFK\n 8cjQDa18WcS4BElgsSJ1Lj47oTt96YRSu94AZVatNeH+MiWDLaLEhQLrkhPLZ/DvAFdqTQRy2/8\n RSDvQWKzfsimgXRG0EPjVSfhGUBrEq3fzWjjzmoiA==", "X-Received": "by 2002:a05:600c:8b21:b0:48a:6fd4:d3d3 with SMTP id\n 5b1f17b1804b1-48a8eb99216mr39064985e9.20.1777630537073;\n Fri, 01 May 2026 03:15:37 -0700 (PDT)", "From": "Peter Maydell <peter.maydell@linaro.org>", "To": "qemu-devel@nongnu.org", "Subject": "[PULL 25/28] hvf: arm: disable SME when nested virt is active", "Date": "Fri, 1 May 2026 11:15:02 +0100", "Message-ID": "<20260501101505.3485916-26-peter.maydell@linaro.org>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20260501101505.3485916-1-peter.maydell@linaro.org>", "References": "<20260501101505.3485916-1-peter.maydell@linaro.org>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "Received-SPF": "pass client-ip=2a00:1450:4864:20::330;\n envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x330.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,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n 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 <qemu-devel.nongnu.org>", "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>", "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-devel>", "List-Post": "<mailto:qemu-devel@nongnu.org>", "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>", "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>", "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org", "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org" }, "content": "From: Mohamed Mediouni <mohamed@unpredictable.fr>\n\nCurrently, Apple doesn't support the nested virtualisation + SME combination.\n\nSigned-off-by: Mohamed Mediouni <mohamed@unpredictable.fr>\nReviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>\nMessage-id: 20260429190532.26538-13-mohamed@unpredictable.fr\nSigned-off-by: Peter Maydell <peter.maydell@linaro.org>\n---\n target/arm/hvf/hvf.c | 5 +++++\n target/arm/hvf_arm.h | 5 +++++\n 2 files changed, 10 insertions(+)", "diff": "diff --git a/target/arm/hvf/hvf.c b/target/arm/hvf/hvf.c\nindex 1894be6b0e..6062e08c49 100644\n--- a/target/arm/hvf/hvf.c\n+++ b/target/arm/hvf/hvf.c\n@@ -1206,6 +1206,11 @@ static bool hvf_arm_get_host_cpu_features(ARMHostCPUFeatures *ahcf)\n FIELD_DP64_IDREG(&host_isar, ID_AA64DFR0, PMUVER, 0x1);\n }\n \n+ if (hvf_nested_virt_enabled()) {\n+ /* SME is not implemented with nested virt on the Apple side */\n+ FIELD_DP64_IDREG(&host_isar, ID_AA64PFR1, SME, 0);\n+ }\n+\n ahcf->isar = host_isar;\n \n /*\ndiff --git a/target/arm/hvf_arm.h b/target/arm/hvf_arm.h\nindex 8029d48caf..59e19f6e84 100644\n--- a/target/arm/hvf_arm.h\n+++ b/target/arm/hvf_arm.h\n@@ -11,6 +11,7 @@\n #ifndef QEMU_HVF_ARM_H\n #define QEMU_HVF_ARM_H\n \n+#include \"system/hvf.h\"\n #include \"target/arm/cpu-qom.h\"\n \n /**\n@@ -35,6 +36,10 @@ void hvf_arm_set_cpu_features_from_host(ARMCPU *cpu);\n if (__builtin_available(macOS 15.2, *)) {\n size_t svl_bytes;\n hv_return_t result = hv_sme_config_get_max_svl_bytes(&svl_bytes);\n+ /* Nested virt not supported together with SME right now. */\n+ if (hvf_nested_virt_enabled()) {\n+ return false;\n+ }\n if (result == HV_UNSUPPORTED) {\n return false;\n }\n", "prefixes": [ "PULL", "25/28" ] }