From patchwork Fri Aug 16 16:13:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 819742 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c8:0:b0:367:895a:4699 with SMTP id m8csp367840wrb; Fri, 16 Aug 2024 09:14:36 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWNgE2F2hFzwWjCB8zq0+snJfR8g6fuaPamKyP37ZK/A3IaenBqHMAb/C+z3Guuu757dQM50qubu+R2j06JSnSu X-Google-Smtp-Source: AGHT+IEyeHea3Lxgluznv6NnP4OPsIchVEtkgswbHh6fHW65rp7U0AKku5pw8dDX5xiTXwj+RLD/ X-Received: by 2002:a05:6830:6602:b0:708:d84d:f62a with SMTP id 46e09a7af769-70cac89c004mr4405624a34.22.1723824876000; Fri, 16 Aug 2024 09:14:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1723824875; cv=none; d=google.com; s=arc-20160816; b=licgrQ34SAFJpYrInhiTkjaym9v0MbsVKJ0e1uLu7JBgLCNHIe0FWm1MVFvbZ57TB4 kFu8lMklaYahDEr315+/0LKRC6l6JGugQXpazX2RPiPtvHwQCAp2DozOQengnX34X5IT 0nTS6mwjkS7hHQhYsXcdsJkE/X8hpdQX2XjZGLSm3Fewc7fB50SgX9xGIWxE3/OfJej0 q4bxPcY9x+nqsZewZB9G9VzlTTfo1Yt728PhlCFvjz5i/wbVIya1spB32IFlVmJOxRZG pC84FVL8FrfHw3Tyj0ohjDiBYDtVmrH1Mz7jQEwPbdaH8JW9Vty2N7MmgAIxThDmyg7P GJVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=EI4M/gvSdt6iePTxzBiDbXKkI/BlDGQe8UMEpTZU8r8=; fh=49KERWZa7YdLoH659yGTY+GjvmTaPqtfpzHmIA0hW6w=; b=yfZvhwXEG2qlvYTWSoegcjVc0dq//KZlbRG/pKfzwv6ltXd0Hhhy3vBwjwaOxtKj/o Gif0VKQNJfQ4BJ85WCCzKALnqqOq/ZfuM64STjVjJQtAfunK5UKrnPiyF4yU0tFANa1d 7t2DHco/0GGKT95jHRM4py+rtcdYhwN/XYNFvBEYfZsrFUosi4NtG4939xhX9pQFa0uB Ef8mKwD0ZVM4FY8+JM46bgGk42HjrQu7oN1nUSwGmW81lROulya7+Pc1TajtEbbNEdIF 2wA/WOGvKcUDcqamSzeZyp7mcCcemEBfZaTSjVnrOf1Ta5lxz2QbyzCQvC5RDTJntBdc pNaQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KV0C3aNa; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7a4ff0e5c21si441372685a.398.2024.08.16.09.14.35 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Aug 2024 09:14:35 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KV0C3aNa; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sezaQ-0008Fq-EZ; Fri, 16 Aug 2024 12:13:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sezaO-00088v-Kq for qemu-devel@nongnu.org; Fri, 16 Aug 2024 12:13:56 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sezaL-0007dN-PU for qemu-devel@nongnu.org; Fri, 16 Aug 2024 12:13:56 -0400 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-3718e416297so722120f8f.2 for ; Fri, 16 Aug 2024 09:13:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723824832; x=1724429632; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=EI4M/gvSdt6iePTxzBiDbXKkI/BlDGQe8UMEpTZU8r8=; b=KV0C3aNajCMzQDRfbMfKHBD+tCNW7cyC8BdV0tpad85pw86DuqpbBOfJrq0+T9KtWO ZuY9H2I/3mzUwltd028cgBCRWGiQcWky2EhPkXVTbIJgmC2TIF9g/wAME6OJXRpSIlDS eHLeLAebc7QltobslS63db6sBh6AcgxwDV6L49NyQklsJMSm7fmXJ8LlkEi5/LsVxp4h MaxJY6oMVlWR3VYu32rfa/1bhY+VUZmzNrUb0yhVaU5nX+/1hTBX96TfJiuZaEAP7YFS a0014dN6P8PWMQLZD/T8sJtYwCOD8NYPKLolo3rXN57K2J3NdkvuenKNZanMlb3Xloz2 EOLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723824832; x=1724429632; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EI4M/gvSdt6iePTxzBiDbXKkI/BlDGQe8UMEpTZU8r8=; b=qUDjrjJ3D6axlbeQbKDRNe0aey11hOi0CsgnVkAsypdc/UajJQwmuqrd9IJwGAT7h3 xUX+2JaQ8qTF5/hKYDxL3Uk5JyUCDHjQV/RzAD7KSL7efA5IontcIanYvu6dU+Kxrr74 asXZIlKSx3vtFXtC4IXgfe2nskW0BstuMLR1GtkO24ICbUdya3Q/wzFUfrLu1GsjlBKO aKCVvWNEF9RBYzUkimlH09gZzkOm2WSr7gbuZNqcoKPAYOzTP0VtxWC9+b0bZqHgirNe wP4yxXLVISGNVuBMObNGzAWV9hokY1zz0t9+rJi9p700fy+FXSHunq1aa+pYL4L1q2IS K6AA== X-Forwarded-Encrypted: i=1; AJvYcCVCciAfgrN9wW/U/0wzUXjYUlnP9nEpgdSZpRpx0TZkLETOXcb4dSD+r2c7oHAEAjxmEqmZQRh4DHAwqkRIP06vZ9ts+bc= X-Gm-Message-State: AOJu0YzpTkwFuCoaTxIClfNOeuKDN68obOLC5IVmZrfX6R4tiJCFBebp zancGqERYCckCBRVhE1r/SkWE5CUF/NqfYG2gRKjM2HZQnRmZUIsCVVBdgYIOm4= X-Received: by 2002:a5d:44ce:0:b0:367:8a2e:b550 with SMTP id ffacd0b85a97d-371946ace2fmr1958411f8f.60.1723824831771; Fri, 16 Aug 2024 09:13:51 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-371898bb588sm3912269f8f.115.2024.08.16.09.13.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Aug 2024 09:13:51 -0700 (PDT) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: Leif Lindholm , Marcin Juszkiewicz , Eric Auger , Radoslaw Biernacki Subject: [PATCH 0/4] hw/arm: Enable 'nested' SMMU in virt, sbsa-ref Date: Fri, 16 Aug 2024 17:13:46 +0100 Message-Id: <20240816161350.3706332-1-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x435.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This patchset enables support for nested (two stage) translations in the SMMU in the virt and sbsa-ref boards. Patch 1 is Cornelia's compat-machine machinery patch, which we need to make this change only happen for virt-9.2 and later; patch 2 is a trivial "missing comment update" change; patches 3 and 4 are the board changes. Enabling nested support should be transparent to guests, which will only enable stage 2 if they actually want it. thanks -- PMM Cornelia Huck (1): hw: add compat machines for 9.2 Peter Maydell (3): hw/arm/smmuv3: Update comment documenting "stage" property hw/arm/virt: Default to two-stage SMMU from virt-9.2 hw/arm/sbsa-ref: Use two-stage SMMU include/hw/arm/virt.h | 1 + include/hw/boards.h | 3 +++ include/hw/i386/pc.h | 3 +++ hw/arm/sbsa-ref.c | 1 + hw/arm/smmuv3.c | 1 + hw/arm/virt.c | 19 +++++++++++++++++-- hw/core/machine.c | 3 +++ hw/i386/pc.c | 3 +++ hw/i386/pc_piix.c | 15 ++++++++++++--- hw/i386/pc_q35.c | 13 +++++++++++-- hw/m68k/virt.c | 11 +++++++++-- hw/ppc/spapr.c | 17 ++++++++++++++--- hw/s390x/s390-virtio-ccw.c | 14 +++++++++++++- 13 files changed, 91 insertions(+), 13 deletions(-) Reviewed-by: Eric Auger