From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.222.175 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796131967; b=nlmsTZ1mVQR0TadiaoknRsOHCeNTjS4XQzfVLP8I6hvZ8oHKhoji9gwe88vdqY/Tf36D 1WUNTDSzAQ2dnz0ty85XT/WDDJOZ5q9SSnPorGRoXKu0LuclE7vgbPioNga/sJ2hBsX9i DK0QoWZCrn6UJb2kRumXHZ3msCBYfQxrX6xF+4fR1hDZ65QUZBBmCaOtMVCnHRQflGuOa 1kiWhTFwdjZMAD78cNbpSCSxObXDGKD1tdpRQ0WE4YokvkpJ4JhXxeyH6tQBttagDxW4f gZE3hOCB7l+9YrZt2oPAkQPeqy0xMnHjwPv47fmm7CC3LYQtmXWPwUDV/r8jPoyErlA== 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=WBLBVUSYxK75nJXZuhkHWVQaNhM30/9ocRB+g5Kn4WAEE/3ToRYJ/Y+fshtZcj7KB2Vu wmujnpoRzdoKoUToNLkq0GXqIGn7zSiClOkQ6DWdzeI9CnuxY35OQsfidsN81hJGst5Gh 9XT/6DS84pPpxSk0mlhsyKx/blmb2uInEIGUSK47zoqr8vzWqXKlyKif7nmzDFJYcK7o3 MTdHWDKnu3qbkZ9Ys0VGKUsRtQDCYXmnYc13jNfMV88Czqdzz1Oz3R3whpIrwdjvpn+SW YMmDN2NWU7/0hqmcz5zkHowNUy8Klx1w9ZvIH6GX9IXmufVpmrBgevBoE4Jn5rYbIcQ== 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.175 Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) (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 53B26606A320 for ; Tue, 1 Dec 2026 13:32:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 53B26606A320 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-f175.google.com with SMTP id af79cd13be357-94962d80d34so663407685a.2 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=By26cuKKlvrsOR4I26ItwpWRPBNNg9LjE3hFg1lNZ4UoXWmX91CbWPdpLavWuf+DMI 0MAKHWWlCQqmOnO/mmRkiw3fzTbJAXYj2HJCtKMaHPySsUwSwVfCfXKdi8BQRj3BYtkg r81WzdTj90n0Th4V6bS6rN6W3u4kwxdUKxJ3LjUJhFEVu2MGpzT7559s4ZboM+OCKdDQ fbAyzUqT+A6EWj8E8ehtYKl2N7VH9laauArY/JM4hAqUMXAqaDXojaoFrWBp4OdUdqoO fk4QZYeDTpC1W2oUmlfl04cAg6vQk2BVPrNyo1PqbcEIocBDhMCN6dBdYO3KAymMWd3i QSPA== X-Forwarded-Encrypted: i=1; AL+hErGpfAV2oANgkH3Xj3RqcQRWfxrFnCczhuJ4u8pRU3DWnTK0CGR+hwpJ/NQ1AkniBjfNsChaOh7PyYlW3g==@lists.linux.dev X-Gm-Message-State: APuU4Z9Z4Zvf5Ct3i8n0z9J9uvbXwHlnn7U43fRhGYNoSPKhh0qTWnry DgBWWBiYHvtwd0W5/lTJ8M8ObchjTSaIYa/ySB9nt04QPcvG9lDcly4MvpCenBWZA8Y= X-Gm-Gg: AZFdTZcojBmEvC+RHFT94Z/2ASShjnbkquhJnkzXQJZ5TFKwex3MlYJZ9YZC/sfaFaC vZx8B26gEY93mZa2ZQF5vtNpt8wHWVzNU7qp+vQIUuTFqRRP7KcqG+xuUQlwMouxkaAwXlDjvzF tyHc2MBzs1hMPwczTLTaEd1vRJAU5lnTTc/zfzi1fkcde6pzAUwUi5gXpjckrCIhlPknauj8wjY Y0o6HEL+AmemcHsqGcD/r64xcoYL7pUr3RpwRXmQf6HxJRptJUIjzYK6M/PIKik+pmYLHTA42qp w+sirMYTTf9Piw0A6YHq8H0a6yNCC8BhY0J7yD/WCWIWBriH4Ryn/h1RwkT0x22nhJtbnEAnEb9 z79xhZgwGdVmjhPlhaERWs6P+J08qy5hjBB2kmnU916uEMBOyzO+SDduwhNAZDWJeD+VxmMFz1M RXkfLftt47lzWYhc4oCE/z2MHQKS+KnbEKtqZLZtyC/x5rYRZ8520UL1wgAEmTvVtXECJX/aUyc LYSptobzCAbYwVrUxUxRd6cwbnwmCVBDYQzUk4WHQHkMNymBqGRaXDEDVZWexYhrUoyXMOSTMOm utor 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: driver-core@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