From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.219.44 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795527859; b=VEuD2s4puvLWkKGJ0n5u2HI/xX1JuK5Z3K1Cq2J0A7Qr1VbhVze0g0hdKJSiD1EQUVeT O2zDJoUJD5Q/G4CxuddcEYroAgfjMzoFcG1B2TWfKhKk4Ozu0kvyuafB5KwH6e/xoxCJh l2rMrG7UxkG1hEQI/JTfMiR0gXVdC9ijPPkrVtjE5KeFbL315QIRc/Ymn2tG0LeD0L3Mo fewnyBX/hEEk6kvY0+fr8m/k7YwuvY4JDP1a4/d1O2UotcJLxVwQfo0NaW3/1ByStHxY7 +4vHXkNCd8F2SXRocaNe5Db2PJu9vhXMQwG6hZhOxJOm/0SoHl5jWXsBmrx5Xutctqg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795527859; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Received:Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:Content-Transfer-Encoding: In-Reply-To; bh=GOO2liEeh3ZNTv2cYVirV3xpcqc+Z2dTdYpM4j0pd4M=; b=Mqg/0S+Czg/EEgBuCQRtXqYNjTryKGlre86/GukzeP+vhTD3p7yY6HiLbA9SxFGr97bd R/Qy6oBWyDQDEFDgr2FClI3ciy4KSOZ8RSVGsmZ1XmBxpSjStN5+aKE9P3n742/t7Oat2 S+M52nucX1H1QyxEVyMzbzEo6DI9n95RleJ9Ri+VHHZQp3IT+TkeZT81SYuOKDOl+D9tj QMP+mk0ChZggpe33g232IFCuIAYibN+DVNzz55VvSagU1S3iFpwe2H1t+b5Q8EHFLLm/g j0jjIqrPg7Kke2fq8TP0/6fw0Cr3uZFVlKmb8JRMBkRJ6MFtJs0m/dzUQCzSgmW4lxg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass header.d=ziepe.ca header.i=@ziepe.ca header.a=rsa-sha256 header.s=google header.b=QFVqpham; arc=none smtp.remote-ip=209.85.219.44 Received: from mail-qv1-f44.google.com (mail-qv1-f44.google.com [209.85.219.44]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0613A606A322 for ; Tue, 24 Nov 2026 13:44:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0613A606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.a=rsa-sha256 header.s=google header.b=QFVqpham Received: by mail-qv1-f44.google.com with SMTP id 6a1803df08f44-92130d3ee15so45185796d6.3 for ; Tue, 24 Nov 2026 05:44:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1795527858; x=1796132658; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to:content-type; bh=GOO2liEeh3ZNTv2cYVirV3xpcqc+Z2dTdYpM4j0pd4M=; b=QFVqphamGJ1ouvGn3fy7DcoC6ssGniIZezfuz//pt46JGumakdr+cRGns4bSFps3Qj X8b1F0lxTXf+X5dCf0Y0HDXx/Jk1PXjUQCgV6KFAu8CagoWzWdkIWklx6cE4wFSeB9bN e9mGCAtBGvFTP5PeM5y+c1two32aaS1vMig5INZymr+NiUvfSEnSGK7beegxMVlf7d/t cGIlIhcNn4pE5iQFUBfX7/0TZBeRtLLhpozmoDxRfm/Lp0GZPcMs6trRg8dtYKgSJ/G9 KQKgVZRVUtZs3pg+Hryz1s5zqC7nE9nUSqjyQ8UBX8YiXIFq3rbsNdg86dvEfsDxpoXt 59sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795527858; x=1796132658; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=GOO2liEeh3ZNTv2cYVirV3xpcqc+Z2dTdYpM4j0pd4M=; b=pvuzrhAqRTX/oMkH/zxXikvKl3SGkuzBrgpCy3f2669QEr5wLH1FTwvbkJ5y7gV4iI LU8YbAoOw1vvc0Gbx2BwRB2NePh6UnOy7tisOKRrCjvpuXK1P5+4e8Rep0nvQvflre07 2tYy3Trj+lfyuFVzjnXPoVPmhljQjbtp5GVZgmQcAO5bw9+SP6+1X2q4YsSpU9LkEEEC onLxoCQoEnCQTbiuPHDb5IZn9Lmpxx+zMKIsNH9wJ56AWesbgw5EnOiG1wHEx0v0tZLt /5hx8FFc1aVE53p7US52TgxJUkTQLplgds4oe+Gv4tF1qAZ+VaqFLJlXX/NM6VTYYFj3 RS+w== X-Forwarded-Encrypted: i=1; AL+hErHyB/zaIqa7t05QQXftKr0X+btuFdxT2um++jJ3HLdjE44R8ms8bQYkXlwq9kYJGwwJwkuVkRD6Tpg=@vger.kernel.org X-Gm-Message-State: APuU4Z/pnXSfLC2l+sybpyPQC/Wcr3kFm+BCvhRSoo4HQvZ6VeIVZn91 9JD2pk/z+M+xy0YTlK1QSG9oFVyQN3SUA43Nk7MfTF6uDxx7+zbu+3O7M35y+yzSq+0= X-Gm-Gg: AZFdTZfewHLYv8PWcWPDHcobQPU5UGbGMO41FRvJ+jDr1wVuDDRyZGd+4EA355uQKBM tIai4ztjElqk7Kc32flw9pUux5ljPS269lu/CDVFDUaYRPJxcnOJWykRcmrHER1KqfMRX/jwDtB 5Ty+HiOpWJP+qParO5xv2TvzcqZdxkXkCIsHlroP7ZR8mklAt0faitN6Wu6ocSEn3ggX2owlYsK OoRKHj31+EoWTQS5C8ElZgx1nGv2n2USKhhuQeihD28IN8IfZBRexEMwO5DN32eGSlx4V8jUNpw PydwHpetBTXTSrX15KLhMwrIg+NNhp42yTCLnc4LHEqskxTiATfLSbJp2mzhboFYrFhgICGpnOb h/AXeygR3xAGFWm5MymYPM+006H3sAN0Pobx+gdPbXzebK6pZOrpf038hVAykc8LOm8xiliDUrJ M7tUlwkw9ZCddXRn8JPHVWDnWbiF9qgBWRJlbVjUheu4FADBrW1xsfJK08XugBPwc1rgOQrPN1L J3d/VE4xq3fGzEb3nVzWejiI7tDZ87H/XnAOoqp3Kt75IDTXhaTpSY/g9XnK1pzoglZtGKB5F74 G5VnQw== X-Received: by 2002:a05:620a:6c01:b0:93e:c12c:43f9 with SMTP id af79cd13be357-949bab6e243mr2406376285a.70.1795527857835; Tue, 24 Nov 2026 05:44:17 -0800 (PST) Received: from ziepe.ca ([142.177.118.84]) by smtp.gmail.com with ESMTPSA id af79cd13be357-949bb3ba04bsm1055445785a.24.2026.11.24.05.44.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 05:44:17 -0800 (PST) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1xVqoi-00000000QDP-3RBH; Tue, 24 Nov 2026 09:44:16 -0400 Date: Tue, 24 Nov 2026 09:44:16 -0400 From: Jason Gunthorpe To: Leon Romanovsky Cc: Nicolin Chen , "Aneesh Kumar K.V" , Greg Kroah-Hartman , linux-coco@lists.linux.dev, Dan Williams , Bjorn Helgaas , Jonathan Cameron , Xu Yilun , Alexey Kardashevskiy , "Rafael J . Wysocki" , Steven Price , Suzuki K Poulose , Lukas Wunner , Ashish Kalra , Tom Lendacky , Herbert Xu , driver-core@lists.linux.dev, linux-pci@vger.kernel.org, kvm@vger.kernel.org, patches@lists.linux.dev Subject: Re: [PATCH v1 00/10] PCI/TSM: Support guest TSM drivers Message-ID: <20261124134416.GH9566@ziepe.ca> References: <2026112325-emit-squeezing-5d96@gregkh> <20261123090623.GK14811@unreal> <20261123115803.GN14811@unreal> <20261123135638.GO14811@unreal> <20261123152533.GE179082@ziepe.ca> <20261123185826.GP14811@unreal> <20261124131754.GF9566@ziepe.ca> <20261124132536.GS14811@unreal> X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20261124132536.GS14811@unreal> On Tue, Nov 24, 2026 at 03:25:36PM +0200, Leon Romanovsky wrote: > On Tue, Nov 24, 2026 at 09:17:54AM -0400, Jason Gunthorpe wrote: > > On Mon, Nov 23, 2026 at 08:58:26PM +0200, Leon Romanovsky wrote: > > > On Mon, Nov 23, 2026 at 11:25:33AM -0400, Jason Gunthorpe wrote: > > > > On Mon, Nov 23, 2026 at 03:56:38PM +0200, Leon Romanovsky wrote: > > > > > > >> >> But it should not, as you are making driver core changes that will > > > > > > >> >> mirror the same thing that that patchset is attempting to do. Please > > > > > > >> >> work together on this. > > > > > > >> > > > > > > > >> > +10000000, > > > > > > >> > > > > > > > >> > Greg, > > > > > > >> > > > > > > > >> > This series came as a surprise to me given the fact that device trust > > > > > > >> > series is exactly for that - allow confidential computing. > > > > > > > > Device trust's primary role in enabling confidential computing is to > > > > give space for the userspace to do all the TSM and attestation stuff > > > > to get the device into T=1 private DMA mode. > > > > > > <...> > > > > > > > Getting the device into T=1 should influence how the userspace decides > > > > to set the trust level, but it doesn't interact inside the kernel. > > > > > > The point is that I’m describing the reverse relationship: the trust > > > level should determine how the device is configured, not the other > > > way around, as you suggest. > > > > They are unrelated. Neither influences the other. The user gets to > > make orthogonal choices if they want T=1 DMA and if they want > > adverserial. All combinations are useful and valid. > > Our proposal is to represent these combinations with an internal trust-level > enum and manage them in the kernel through that FSM, rather than maintaining > two parallel sysfs flows that permit every possible combination. We already talked about this when Dan proposed it. Combining entirely orthogonal things into a huge enum is not a good idea. It creates a combinatoral explosion, there are more security related knobs than just these two :\ It is not even a FSM, it is a bitmap of enabled functions, and that isn't an enum. They are orthogonal subsystems, they should remain orthogonal in the uAPI and we definitely don't want to use trust level to control the TSM, that would make a mess of the SPDM flows. All this was already discussed, it is why these two series look the way they do.. Jason