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=4x1tc4Igg5YoTxW+5zQh77RBgiER9FL6JJ3O9ro8xesJCA891tyi7q8IidKyekaob7Tl p+MPNoJoM2xyesWqJpkw+oQaHXToJZEL420fqF5PE+2XswrVDoxqteWRz1Z23OKcrM1iP DdVr478TVQFfZ1j3VwD607C2/RnnRwtj3CbfGFKTOB9auh5dJxI3RWHnZPwdo+AtqRBZT keeipmsKJm/yfC0dAQpzROvCtHv6be7LThPAfawQ6zDzbVwxvxQ+WqYIqwO2p9xVtk1+x 8W1CnGtFf4p8Y06xSio8qbXxxCR83eKV44jLeyXcbYF/OAfKZgIxBkV5v8RabAibP6A== 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=EE8hqR3TwL59aRPlhXauqq2YKXpdvnRCTRP8W4LC3UKnlGwLfJvg4v8M25hefmVWfndE 61h1VDd8RuVndSdadm09mVXdpPU2AdZ2jSdGo0xQHI8v6tDIur9rHN9S6oNqXNO9c3s4L 9Jlege9qSEGquYJPqjTPj9yOo1EwkkdTiVchHjdWmyuPTY3q5Zg44GOutH3gEX58rDqfs 4urCKJYZE4ppsACIfvXfcxZkYOkyOK0TdVW/d2eYySDUERcZAZod6ptEyFQJ3Zw0LAoni j305fl/VvTl24l7lQ8/gxosqsDNnv6SWzRukfFvwHYAG1Ca3dYN8x7xaFT1das8kT+Q== 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=M7iSu0ni; 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 53A86606A31A for ; Tue, 1 Dec 2026 13:32:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 53A86606A31A 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=M7iSu0ni Received: by mail-qk1-f175.google.com with SMTP id af79cd13be357-9495d543b91so717281585a.0 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=vger.kernel.org; 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=M7iSu0niydB51M/cnDfbDxWjc6P7BeK6N1TSiJKj/AZhV+JJatRBRGZ9mlZ48dpnu9 vwETVncMUyT9VExTcgYw2McsGas7twKMT9y7RErd729ahzDrKjqrx6om/W8ixnp8czMc ipHs6YWdweamxJ920R9FW0liFqeSREJoYoM2ECO1voP0AyGYa9XjCk4wVC9keYTETIIf lgY3DNO0iRgSDKp0iefPN5e37nh9tgwOwkWFhtaz9X8Om5cmU8q60/Uv/1K0uOJ/4adL gyco3s6z12xI0YPL52blSob26fO7CQhkZ38wg3tZu3tfjmvjjaRPtM1K93R5lZXxqUqK LLPQ== 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=sFHvqn2r2peZKxU3prEQW0RNi4/HTWlVnMlzhIWXqsKP6RXpfe5LIHEveU79YNUv/M V8wXrhIqiiu3Ah8ZF6hU4Ph10AH4ipO30rJZWccSHTcFuZhz5IFRc28Y6xg+Vfyo32VB Y528yffnu8nVuPOauaiZYKylt2EATx0nN3Cz3Gvpnycy1qWQhwKhKrrBXwzNe/lxLCxb 8LgR006YkMk/lDG2M36MYVmOEKMbWYZgTELnz0o9P4D2vgYh7gSoVLCptOwEe+FDQiPP lArXXakis2hMT3urixS/MEbR3eizcYsrE5UwFwnBa0Y0bapXabNq87g7g43Q7ELQ0a48 J4HA== X-Forwarded-Encrypted: i=1; AL+hErEJJHcPizXy34ky3mrUV9IVYxlgJhF8S0NzR+gWOu6fM9zmyudoWC8jKZoK/F37JpwKFqq7Zjkl6fE=@vger.kernel.org X-Gm-Message-State: APuU4Z/H+v78USCNt29fHajQTyVl3VMsRgT7vR1maM0zoKxTA8RDdqX2 ltvaPDRhdGBrrEtu1qZPSMTsFu+OiDXR1jJ26rqNkrenyxo1hYCnUxtVa1SEI3jR4jw= X-Gm-Gg: AZFdTZcHoo+qlmvFPFBxx5itWw9hOjB33pGT6+sFIQyd56sKnsRJWEyQJn/SrmvS90e Dg50vN9MRYepcEdRolLKYY3VclhCOHghZkqii02ctl1vv6gR4fmhkjg5cvfdOKPptJyFPI8/Y6O K9EBgESvgCI70fZ/CUyvW8xneWinW1ilvZQk3BEVZU8pWDiAdbVnCG5Tl8FsPRwtYnM6fgHJVp8 Pvw9uURCz5wFvh9KdXEIA4cLrqIYg91NItdyaOX5bZtFdoHUQ2jdADBrTvRIssaFXiBTBroNU8R 0AtEI6nb8qNfIB0hv+GH4kQ00vgKeVA4aj1ZhJ1UMf7ODn/FdSUpcen6NU9tL7/O8Kem+SnwWKM 3Cb/W2Bipde9DE34FkBCbSz/g8cxo+rH0+oZlWF39acGBJ6CAXcKFMNuLICfpeG8BtIVkLCmGDL uLNXV44PCPb7NBKwX3biBIUGr4ONlFTtlg9F8FZIDdHqmS9bhCEJumZzdwv9GgagQKv2Wn1J4Vq FMxWcMx/uK77gsM4TOMKloj3MuWn16xhNnX1xg+JIE501otBSaunjCuxkrC0ZP0/o83QfRu5vLj 5ooQ 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-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=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