From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.222.171 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796131967; b=zPAZI7lb0DwOOFvzvZ8EdJFMYGMSFpkv4BqxkuSTbB2NdM4OU5H7clUZ9hQmSkO0A1SO X1Ls/eQTuWaj4tuGvrVdY3zGHJFLe3m6dtBcDZHAFu6wkEA868rKP1TGGiLWQ4X9c0YQj GlGAhL2diqH1ML+TnLy8D7RU/cdGuBLJ6M/iYDZVyITlUPh3M9mpQJzJCpBfp7zwaP+wy ihnvirJkxgVDA9mQlVrpKa/P+dyB/CSC1NGuJhRmEXvaMPuLE54tYN3nOyPOMda51uEqY tAqddKmbKrgzbBATMJg32kI63GRxk0bAJmCkp+Ol8Gzj7LPJkIuKpyHtzZjaRgZCGzw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796131967; 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:In-Reply-To; bh=T3wdSUtvh3b5noX4vPr7Kanz2WiFkhEv7ivn6i/6sMA=; b=ofrUJBq1IFeDlL68+Mqfc5K9CaE6i0lOEPFR0Jbno3Z77gAKnpez0dVFgESjmEvO6HJm WobmYrpRwJvJG167scAAcu1UM64sDsRxFmipnTUXRvTkUEKDHcp2ho+J8kVeDX51fUtB0 uYS59jn0DsUAK9AE/netIKF1JYvjC7pghx9cLvpGATInPM+5FjMmhAi0xZqbuccojfEcE 3dFWKYAbsk5xtfMo74Z59ibs0Rj4H7mowNWHAiTkdDCzdrn+H9A8PrVjakvzQewKZK+O1 UNpIQvnQuaGfNIep6n5+pJHv7QWD/6P+whykBaf7AMBIcZLd5oMdo4QYtMv4VDpYRHA== 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=KIhbfMDy; arc=none smtp.remote-ip=209.85.222.171 Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) (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 63AF6606A325 for ; Tue, 1 Dec 2026 13:32:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 63AF6606A325 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=KIhbfMDy Received: by mail-qk1-f171.google.com with SMTP id af79cd13be357-9495c633eb5so663522485a.1 for ; Tue, 01 Dec 2026 05:32:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1796131966; x=1796736766; darn=lists.linux.dev; h=in-reply-to: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=T3wdSUtvh3b5noX4vPr7Kanz2WiFkhEv7ivn6i/6sMA=; b=KIhbfMDyE/Bp3gfEN1V2XI7Khsmii+GfMmXZ0gUlvq/0Rz3kBT8KxO7VfD5MmPgKJq /X6qontQvCqrSinW70Vqjwkom3E87nVQeT+y3Qkihvc0MfarA2IEMyPkQEOZN4+M26Ud I4q2VOMHf17XtOlBqr1elVr7x5PTr1VQ1RB/WmonyPRCiWyR6k4y7jfCw4poKb+cFx58 kcpdza9PJoezsuedp9TOQsAm7/5rCPL6TeYeXRg2mjH1mxSE/7ak6RWPVZxcN3V7shCw sODXnlHhwv2CZ94kzI6HSpR3r7uDi3J1ZQScZAKi9q403nSxqH9bpRcdFefzHVk7d8Ya UJkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796131966; x=1796736766; h=in-reply-to: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=T3wdSUtvh3b5noX4vPr7Kanz2WiFkhEv7ivn6i/6sMA=; b=t3o3zYVKFXozxThRDkiK3KZjqq5x8P7DumAHXLnPQnihftcxZKrd6BfhG68/VdfpB4 8MzSZQ/R+McH108GmiKCYY43mfzX9DGAwhT3J5iERPWUblAJGPeuVod++9n/jkXXZjvG WLY6mGrFQ3ixS85mmKSBdA+zFQuXNUFoiMs8LEil/Nq/ciJjCUAgfAy5Jh2BS8HhIGer mnMroyMSxZfuxK9sZ2xVjliFo9BEbhK/apzaFm5BXloU3w1XeXghSNI24Rl6jpuliTMR cn2EUwmZr9Mniczwwp5+SG03u55fk+9WZ5W27ABolsrxRWAjA79VSrr8XldCUP+7uVMD YN5Q== X-Forwarded-Encrypted: i=1; AL+hErGe7TKXBD97L8aqId0gyIiFWSZ8gqgglJAVuxkrB2t4ArCM61mG5SkLsbhVqahrZdUJJmTkmCwl19KJ@lists.linux.dev X-Gm-Message-State: APuU4Z/isWeXaU31fV/WXkKA9AwIiolczOTDquZa968AxZPr+2r56uve cqlqHBl6o41+STMhOYc3GihT+uOuE+I5p4GAc/PI4706VEZ3qAu7FN6NtR/sHMMts18= X-Gm-Gg: AZFdTZcbcYppVb75Tg87Z77qDYlGp9wLlIOss6yoWmsqLSD+vV2DoRdEDgV0tD0cr4I WYcZV0BtCwZv4rC3mMhjawTvvQBu/Je4u6ufH/1GvAFLZ69rvE9oOp84b/RqI4zN+5yj+2jdvUh 3ZEBKOpaE5OdwUe4AfdFLrH9YhNKpo609YIadSfW1bKusU2DJSUWzKn3y84lBTNld+3bhe6Eicf hV4goIcGoGxREGHouGSsURXYaO3D1jU6X94JQ44eotCaftybTg1hsFT2H3TlzQv7LjrZ3OUxLL4 5KqEXn2ZYMTVYFPGFsLWPbjjNUZ2eN3cAu5SJm3mC+CfWKhXUtxW+kXXybZ4yg0m8cdLtYu7uCQ 3SqBYru2B+8xLBnq1d76xn0T3JKtAK1g5ieCRctGngdnKf1JcWjnZxuaa/nR9puDBpH7VM5YTQc BbyWM7q3zn1Q8O+Dsc2Py7aS+iPbMFzdI4ALFKMZJdSUMNPZingZ8BMJoeNv0g1DpcuC6qr/Iq5 HWDw7YYKNT5nOH5Dqt4XMsOPfNgBFChA3UrBSZPZViGzFhiR80w7YlOb0XDEmtFqluXw71Z60bl 2vK3 X-Received: by 2002:a05:620a:2401:10b0:949:c503:ce40 with SMTP id af79cd13be357-949c503d18cmr4657980685a.56.1796131966198; Tue, 01 Dec 2026 05:32:46 -0800 (PST) Received: from ziepe.ca ([142.177.118.84]) by smtp.gmail.com with ESMTPSA id af79cd13be357-94a0175c67fsm1808666185a.31.2026.12.01.05.32.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 05:32:45 -0800 (PST) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1xYNyP-00000000obo-0T2P; Tue, 01 Dec 2026 09:32:45 -0400 Date: Tue, 1 Dec 2026 09:32:45 -0400 From: Jason Gunthorpe To: "Reshetova, Elena" Cc: "Aneesh Kumar K.V" , "linux-coco@lists.linux.dev" , Dan Williams , Leon Romanovsky , Bjorn Helgaas , Jonathan Cameron , Xu Yilun , Alexey Kardashevskiy , Greg Kroah-Hartman , "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 08/10] PCI/TSM: Add sysfs lock and unlock for guest-assigned devices Message-ID: <20261201133245.GE1856591@ziepe.ca> References: <20261123083337.2731019-1-aneesh.kumar@kernel.org> <20261123083337.2731019-9-aneesh.kumar@kernel.org> <20261123152738.GF179082@ziepe.ca> X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Nov 30, 2026 at 04:18:28PM +0000, Reshetova, Elena wrote: > I have a question on this: > "Independent host audit must not change guest-visible > data; current CCA has no separate host-audit measurement operation." > > TDX is the same, i.e. there is a single command on the host to collect > measurements from the device with a supplied nonce > (RMI_VDEV_GET_MEASUREMENTS in your case, TDH.SPDM.MNG > (GET_MEASUREMENTS) in our case). TDX is not quite the same, RMI_VDEV_GET_MEASUREMENTS requires a realm to exist before you can even call it, so it is impossible for the host to get measurements at all. This is obviously broken and ARM will fix it. TDX at least doesn't seem to have that limitation, but it does have the issue that the TDH.SPDM.MNG always changes guest visible information. So the TSM driver must block the host from calling TDH.SPDM.MNG once an iommufd vdevice exists, to prevent guest corruption. Intel should correct this so they can have full host audit as well. I imagine this will just be some simple ERRNO return. AMD seems to be similar to Intel. Jason