From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.48 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792760497; b=U35W/5NOJcojb+BwI1HQOzuYqK7M2kcwcjsrW0H3afYpfflRatkQoV29YwwlZcuaT+kn SA1SxBuuk4NGaetQCaNOvhmTBKo9yldF2Fo7uOTMkISlp9x6JNceERCC/oBxT/8xnPm1g QZ83YX58cTHrVWSswVYBsXHM0Be0E0SwyunMHxhLTrGn8tmUHhRV7lj602yKRIzjp5eas YftHnp5PM1yPF9vnt9NPMQDz/MSdOEb5XJiBShX1DWSPEa/Qf1hEF1od9pXn6gnpSf+vy 1h12Gdx7YPhfQiPWvxuYWpeEDIqHO2vXCpzIUfOeZuNF0K5ysLpRugavP95h5B6EllQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792760497; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=1f6kYcZtrUYkUfjtStdqQg00V0eNduZavh/6mKW3Q/4=; b=EA4KvjdVjexK/rfX3/1p0p/o7o7YNz0f/cbldmRNZYrH1BOdIMLVQzeFi/kdsFflWTtq ttjEgYIuqLkH+8F2ZzRbya/skREbxG/UerhvU2rt84tpmU075VnuqetmkwJ37h2Qm6fXG qO4q3L6B10OAOvC5teWokLd//GQjV14V9aF2yxuHM2KOxbXwa7HnHxbOixUwN1WHV6qnj f4bofDIY4gt9o/g9kPRy/4p3XmXxa2VW76PqCdVWin+iuvGH+B35HODEhUV02JkMz7EzI uTUqxDA2gEdFZl20GivRoHLDtWjkiys7tTzj+rrUYucer82Ip8WV6q2pA5U4x1EcX9Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=resnulli.us; spf=pass smtp.mailfrom=resnulli.us; dkim=pass header.d=resnulli.us header.i=@resnulli.us header.a=rsa-sha256 header.s=google header.b=dA+0fYF5; arc=none smtp.remote-ip=209.85.221.48 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (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 A4490606A31D for ; Fri, 23 Oct 2026 13:01:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A4490606A31D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=resnulli.us Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=resnulli.us Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=resnulli.us header.i=@resnulli.us header.a=rsa-sha256 header.s=google header.b=dA+0fYF5 Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-48e09aa5264so505749f8f.2 for ; Fri, 23 Oct 2026 06:01:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli.us; s=google; t=1792760495; x=1793365295; 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=1f6kYcZtrUYkUfjtStdqQg00V0eNduZavh/6mKW3Q/4=; b=dA+0fYF5NJO5vxhD6WsfE3GuOrunJPEPXuH20p/OWeGyCAQgyez/yng8gcWtHHKDRW aNNEpTkgJ/DjomFukcZkpeb6Q7E/kWVRL9G1dBUB0P9OUUvF+ziO60N0H3rvhfPEkMkS 8IPds4ztnx4D+xQpBrTJ0QwMrWzos9Yj4MBRMbVDPujBjU79BQGF9Oxb7qG76rknzGE4 a5iwk9PZe8SqreUHjx76aszDfzAo9TOoODm74vaYhGYt/lMjoiSK1vLwpZFU3R4Zw7F0 7HoIGhXLOxKs0+6hz0CBwmLnam0DcpMdiubzbHtmfRhLHWC4gJvsvSCGUFlitbgTI2Kv /hog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792760495; x=1793365295; 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=1f6kYcZtrUYkUfjtStdqQg00V0eNduZavh/6mKW3Q/4=; b=ELoQsjIHlE7XQcRAzjypQR22XYWmsAQ7Myvj7s6hOvOEXzfBsvTkz7XaNOSKH3ZtZR DhjHWOkxup1UzTzS4gX5T7ybC+5oKY3HLE5vtgZvh+ssZOr7dvaBzRZ6oOjD0bfnq8f/ 4xOg604FL1l7KVihM7S/qcK82m0sTEqX9QYpQ2PKoAZ3gfAw+d1waOv6sCWEuPIQCTHN jPcfLAAq/w1uc1OVl0daE4wZESpCyGQ2CgQL/901hQreP3f/GXXxEiYZc6Gy7XbpzDDG +LK9gzG5DPfDAkND5uGkKnfPs3Lbs2sew6xKERpjyb6ijU73e4+AqmyongW9auigXG52 BL8w== X-Forwarded-Encrypted: i=1; AKwUvBzKd0TOYHELP2gK6+mBT3ECzkIMNaQ3Cqvldclm8kMRHVu7FJA+u+A/BKQMyDv8oVdRk/3fGcTAE/0=@vger.kernel.org X-Gm-Message-State: AFq9FYJ0D5YP6Ib35RGfihEDaaJ/BTrPO9JgdUfb+RYiBW+rQfcujSkk RLDymDI2LkIh1cWje3Fy49F8frV93DabsJS7bKW2QvrBpjSV8LHjYYmAalvsZTdg1fQ= X-Gm-Gg: AYBFou2B90QRvcZdCJ3EHiMYfQsh06EB50D5tRJNZUk2AhdLePzevk+wbYID/EeuiCo P2aHtEMVoniCwP4CsRPW7A1pHhogVsWJrhgoyIecEjFt7H839MfF/ZqHodtLQyDDEI5VUjvjkUT ImQgRyATsG5Ocx2W1QmwDg00wUCDHRkUTKrwIDEtsQghXVWwx3UKghM0FwmhlyNn3Zt9Bt5hHu5 49ay4FF8umsHFSW4/7fHSg3wE6Y8lVT6cCWPoBWi1ZppUtkOCXvBZ8qksmPe0UpsfmNgniohHT9 vb9RNCOBuE9qBALdjBQ48qD++nW0/bkn4JTpFbxTbLlNRGxXnnaJuzuBIQXkGwHFLHF3uGxcTbw ZKDmdEpFuPRtavr7oDpzOrfU/4A4IoSlgpIxMRzTKHsK9xAto+BS+YzH6q4Bq6zBnx4+3Kf0ZN6 AonsBjTTH0jJ1INN0R4M7n8tpMIJDoI7CUlMzFvRxa4qNKn8MCkmrrT9dBvyranKb+JlG/PcO9u iEiBEow8BXUDVhKcp8lEXDaiZYOXDzmvLAtG6KNzXokjJRx6c14vN+fNgFxt1EUGS4= X-Received: by 2002:a05:600c:19ca:b0:4a2:397:73f6 with SMTP id 5b1f17b1804b1-4a211c8fa81mr35809955e9.8.1792760494721; Fri, 23 Oct 2026 06:01:34 -0700 (PDT) Received: from localhost ([140.209.217.211]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a29cdb75cfsm3940865e9.9.2026.10.23.06.01.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Oct 2026 06:01:34 -0700 (PDT) Date: Fri, 23 Oct 2026 15:01:30 +0200 From: Jiri Pirko To: Jason Gunthorpe Cc: linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, x86@kernel.org, kvm@vger.kernel.org, linux-doc@vger.kernel.org, david.quigley@intel.com, lukas@wunner.de, ksinyuk@kernel.org, rodrigo.vivi@intel.com, cedric.xing@intel.com, sameo@meta.com, drdeeglaze@gmail.com, James.Bottomley@hansenpartnership.com, aik@amd.com, jpiotrowski@nvidia.com, qinkun@google.com, pgonda@google.com, jic23@kernel.org, alistair.francis@wdc.com, ankita@nvidia.com, suzuki.poulose@arm.com, kas@kernel.org, rick.p.edgecombe@intel.com, elena.reshetova@intel.com, dave.hansen@linux.intel.com, sathyanarayanan.kuppuswamy@linux.intel.com, peter.fang@intel.com Subject: Re: [PATCH RFC 13/20] Documentation: ctlv: Describe how to write a family Message-ID: References: <20261015145053.3664509-1-jiri@resnulli.us> <20261015145053.3664509-14-jiri@resnulli.us> <179245258505.58760.3972297562218204862.b4-review@b4> <20261021144951.GR3008132@nvidia.com> <20261021164857.GT3008132@nvidia.com> <20261022192118.GC3746973@nvidia.com> X-Mailing-List: linux-doc@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: <20261022192118.GC3746973@nvidia.com> Thu, Oct 22, 2026 at 09:21:18PM +0200, jgg@nvidia.com wrote: >On Thu, Oct 22, 2026 at 10:22:55AM +0200, Jiri Pirko wrote: > >> >But it does work well here, and matches what rdma and fwctl did as >> >well. So maybe iommufd is weird. >> >> Well, one CTLV chardev is always backed by one device. I think this 1:1 >> mapping is clear in the device model. Iommufd indeed looks weird in this >> matter. > >iommufd doesn't do 1:1 with a device.. > >It is more like netlink where it talks to all the devices in the >system concurrently. > >> >> Depends on the user/subsystem. Either families_dump op could be used of >> >> udev uvevents that also carry family inheritance chain: >> >> CTLV_FAMILY=ctlv-attestation-tdx >> >> CTLV_COMPATIBLE_0=ctlv >> >> CTLV_COMPATIBLE_1=ctlv-attestation >> >> CTLV_COMPATIBLE_2=ctlv-attestation-tdx >> >> CTLV_COMPATIBLE_N=3 >> > >> >I wouldn't try to link it to udev either, by the time some userspace >> >uses the cdev the udev information is gone, and may be unreachable >> >from inside a container or similar.. >> >> This just gives possibility for udev to work properly. Depends on >> the user/usecase if it's going to be used or not. Not sure what you mean >> by "udev information is gone". Udev might use these uevent info to do >> aliases, similar to dev/disk/by-* > >I don't know if you can encode N compatible strings into a file name. Yeah, the udev rule would have to have some logic on top of them, sure. > >And in a container or something you can't get the uevent, so no client >software could rely on this information. Okay. > >Jason