From mboxrd@z Thu Jan 1 00:00:00 1970 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 AFE23606A32C for ; Thu, 3 Dec 2026 09:38:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=b9DxT91w; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=ixDAZQl9 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xZ3Ge-0002Lq-47; Thu, 03 Dec 2026 04:38:21 -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 1xZ3GS-0002IW-6O for qemu-devel@nongnu.org; Thu, 03 Dec 2026 04:38:08 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xZ3GQ-0007kF-GF for qemu-devel@nongnu.org; Thu, 03 Dec 2026 04:38:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796290684; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Yr0+lXEIbEC8K3gYk6KEHQhTM5gP/OpnuYjuXPWPWuY=; b=b9DxT91wHmLWf+XpMYfFvBTfDHGxgngcJHfutlBGpSQVBN4+GQqRJmhvoDaCNL7IIcMbbl a3RaRr57CWIeT4lrdCKU7NZwm0Ryd1bwdzDnxZxRW9Q1GkbqSWizf8BbYuKLusq1xsbSjI aS+7iJ/oSWQd1jd0zhStFdwnJM1V4wg= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-394-R5bTYGMnNN-FG9qJUQQbKQ-1; Thu, 3 Dec 2026 09:38:03 +0000 X-MC-Unique: R5bTYGMnNN-FG9qJUQQbKQ-1 X-Mimecast-MFC-AGG-ID: R5bTYGMnNN-FG9qJUQQbKQ_1796290682 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-4a35e1d2dddso114267895e9.0 for ; Thu, 03 Dec 2026 01:38:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1796290682; x=1796895482; darn=nongnu.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Yr0+lXEIbEC8K3gYk6KEHQhTM5gP/OpnuYjuXPWPWuY=; b=ixDAZQl9UOiqSmZof3E9ztA3zo6Nb1q5crVJ2+xwy0TJZ2zBDZv6IZYrBxeaKYeixM PD74o9lOZu0hOPsvHTZ6f/xWKUQvBvAuBalLNvdV/fKx2q2z6gN/MBQoMb7MyPmbLE8q oxa4wfiz0AnaGxc3oLyr54DZ2j7A/dsp7TyisVkbcx/GU0wTLeLX2Xoq2SKdhxl5lhfm /vf8pZv1OHuwUb1VWUe4HrY0PuDLX4OcpzCaVtdVulsFGHDV7iohluGG2iYqAISnGTsB XKk8XXEijLE0rs19hZ63NJ02eWJJ0/ZokjyotLXuDBglll7hVsTnY69GwGLbTi/UKy+v H42g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796290682; x=1796895482; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Yr0+lXEIbEC8K3gYk6KEHQhTM5gP/OpnuYjuXPWPWuY=; b=BEM3EujBR/1+yS8ZbXG48/nv2rofSCC+mDcbsVEAgy6E96it6rXVw2OUSjGpX8tg5Z O0bI1E0hxwRY/RQg1CbqDz0dkUT3J2Lcd2PCQL1/uns6cMi20NRIOLWLXdyGFRvf7yy4 QHhSyeQWFjXWT8DzZFhPQ6Y76HFUhSEiXOQtdJbWh4zreWHFRKw7LVU3FTt9C64x+UwE fdVhXoVrlWvHuPJW+JseOFdF17Hl6RDKouyDTYuZ7tN6iNNY3mi/kmT/mvPZVpeEprmf zK4CKwd5/HoQ6IVTkziZkUSsrU1KrAS7xhG9mDmJLT3qpmh0YeGtTtXgtu+TRfR1dn8K wUuQ== X-Forwarded-Encrypted: i=1; AL+hErFmMhvZjsYek0p+C4Ck+jQ8EakInkAuxRoJTCR1H7vV+xSTh4SQGmQnJNQyIaJtLNASpfmNmz8i/Tf6@nongnu.org X-Gm-Message-State: APuU4Z9umhO5L0Z48/qF3b4SX9AKQmiBbvMU24OEdh2pjzQVFK15A9HJ W8LTTg96qZKvZUisY0suUHl1JrqncHdpJsYhGMWNtls1vHqAsOmyMRsbR6wh8jeNxbrXAgfpoUT Ir9kZmlK3crwgp3o0gOMkYctY7i08hFWu6/GY56yZpJac5C5f29R1oToy X-Gm-Gg: AZFdTZeUa8IqOYL1fA7PZsQLbr6ZDX8ZBNDyTeNtdfCYlLfsIaNZXhaTVm0wAY5FEkg CQxuRzHlI1e1UesSKEfTnU3JKjpdvyM11k82IgfzimojiMqUE67Qpig7ObydvtnelhHie/eK239 tT50SRTOgjpvEtslBrl/EYJMaeFAwNmVjL3DdO8fDZmCAhRAOvVqGNYmAW/yC2BnY6JVxNW2GT5 vjwJojtgTkUuqc30x5Id/l512YIPBuMAM/9Nm2s5jpGB6UGHjC3e2nFpQaqNDLhoqL/O7VYG6v+ cX8G3OwFVuVLFtsK+Ej8ABzQHwLX+0QAqkPSV0p2cPEeBd+MmpdiFR+027oaj7NlijHWpulNwV9 IU3WgRih4LxRQXMmSR9xc1OcJ5bigHysnL6f1O6U8HZtYEQQYzrRQyZ8dgqE0ze+zMtIvR2MZbB AajKEHDhmWBuDDA+o= X-Received: by 2002:a05:600c:4e45:b0:4bb:e633:e0f0 with SMTP id 5b1f17b1804b1-4bbe633e2c7mr4939505e9.29.1796290681995; Thu, 03 Dec 2026 01:38:01 -0800 (PST) X-Received: by 2002:a05:600c:4e45:b0:4bb:e633:e0f0 with SMTP id 5b1f17b1804b1-4bbe633e2c7mr4939135e9.29.1796290681617; Thu, 03 Dec 2026 01:38:01 -0800 (PST) Received: from ?IPV6:2a01:e0a:f0e:9070:af16:8320:54ea:4bc9? ([2a01:e0a:f0e:9070:af16:8320:54ea:4bc9]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6bb989e3sm85140661f8f.52.2026.12.03.01.38.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Dec 2026 01:38:00 -0800 (PST) Message-ID: Date: Thu, 3 Dec 2026 10:37:59 +0100 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 00/35] hw/arm/smmuv3: Support Secure state for SMMUv3 To: Jim MacArthur , Tao Tang Cc: Peter Maydell , Leif Lindholm , Eric Auger , "Michael S . Tsirkin" , Igor Mammedov , Ani Sinha , =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= , Zhao Liu , Pierrick Bouvier , qemu-devel@nongnu.org, qemu-arm@nongnu.org, Mostafa Saleh , Chao Liu , Chen Baozi References: <20261114154623.3599750-1-tangtao1634@phytium.com.cn> Content-Language: en-US From: Eric Auger In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=170.10.133.124; envelope-from=eauger@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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: 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=-7.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 Hi Jim, Tao, On 12/3/26 10:24 AM, Jim MacArthur wrote: > On Sat, Nov 14, 2026 at 11:46:23PM +0800, Tao Tang wrote: >> Hi all, >> >> This is v6 of the Secure SMMUv3 series. >> >> Many thanks to everyone who reviewed the earlier versions. This version contains >> 35 commits in total. Most of them are confined to the Arm SMMU model. But a few >> commits also touch the PCI device model, and the virt machine model. >> >> Secure Stage 2 is not implemented. Secure STEs which enable Stage 2 are >> rejected with C_BAD_STE. Realm and Root programming interfaces are outside the >> scope of this series. >> >> >> Commits layout: >> --------------- >> The commits are roughly grouped as follows: >> >> 1. (#30, hw/pci only) Add a PCIDevice "sec-sid" property so boards can mark a >> device's SEC_SID (system integration knob). >> 2. (#1-2, #31-35) Core data-structure and plumbing refactors. >> 3. (#3-8) Introduce SEC_SID through caches, notifiers, and helpers. >> 4. (#9-12) Page table walk related updates (e.g. NSCFG/PTE helpers). >> 5. (#13-20) EVTQ/CMDQ handling and invalidation paths. >> 6. (#21-29) MMIO/register access checks and architectural corner cases. >> >> >> Changes since v5: >> ---------------- >> - Split the invalidation and register-check patches, separate secure-impl >> from migration, and move S2 walker changes into the page-table walk patch. >> - Add fixes for Secure S1 VMID tagging (#18) and ATC_INV checks (#20). >> - Validate sec-sid in the PCI setter, reject incompatible devices through >> the PCI IOMMU check, and refresh SEC_SID on device reuse. >> - Wire Secure IRQs on virt and sbsa-ref, and update CMDQV IRQ indexing. >> - Document secure-impl and preserve the previous default for older >> machine types. >> - Drop the temporary [NOT-MERGE] Hafnium bring-up patch. >> >> >> Testing notes: >> -------------- >> - Testing MMIO accesses >> I also tested Secure-bank register reads and writes using Hafnium >> firmware as described in [1]. >> >> - Testing DMA translation >> I integrated this series with the latest RFCing QTest memory-attribute >> extensions from [2]. The test integration also includes the iommu-testdev DMA >> readback fix and the SMMUv3 security-space tests. It is available in [3]. >> >> All five SMMUv3 test cases passed: >> -- Non-secure Stage 1. >> -- Non-secure Stage 2. >> -- Non-secure nested translation. >> -- Secure Stage 1. >> -- Secure Stage 2 rejection with C_BAD_STE. >> >> The first three cases has upstreamed. For the last two cases: >> >> QTEST_QEMU_BINARY=./build/qemu-system-aarch64 \ >> ./build/tests/qtest/iommu-smmuv3-test --tap -k \ >> -p /aarch64/iommu-testdev/translation/secure-s1-only >> >> QTEST_QEMU_BINARY=./build/qemu-system-aarch64 \ >> ./build/tests/qtest/iommu-smmuv3-test --tap -k \ >> -p /aarch64/iommu-testdev/translation/secure-s2-only-bad-ste >> >> >> The patches also available at [4]. The CI [5] passed with warnings from two jobs, >> which also occured in upstream CI. >> >> Best regards, >> Tao > > Thanks Tao. As far as I can see all patches in this series have been reviewed > now. If those with previous comments on V5 could take another look, that would > be very useful to us, as this underpins work we're trying to add for Realm and > Root support in SMMUv3. Yes I will do it asap Thanks Eric > > Jim