From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 042B2362154 for ; Sat, 13 Jun 2026 20:35:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781382921; cv=none; b=ddrkaQLxn6j9V66aU73oSm9hFTXS5gtvkXr2sHp6bXtaA1gfBLknEAusz3aMdVuqGgPv+ZCimlEe5JripXdfesDAlZKqk0PN8DeZfZoLiPbhPMQIHg2QOqwkoBJn+FxAfUPwEFasNS7kAHBqmtMJ8b8tPXiezn6/rLOf40C9pZ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781382921; c=relaxed/simple; bh=jY+5h6BEqTigLHC2QbDztdBxYdYvY/v+aeeg3os3Dn0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sGUWRCdVXjmJRPQYpGGT8Js6yE2mw7VdJ8LdaxDSesw32HCSzaF5THVt4AqKQ3pNATCchR9vzfc9eruepmtpO1Wk8xy8Z5TUf+jb0ojDOy3DkNa5oQD7tVFBvwKXHHFvLGunJcNfRyTzmZWj6QmFkJWPFx3DB4yJ2zRf1cOKH7c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=apg+IHY5; arc=none smtp.client-ip=209.85.214.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="apg+IHY5" Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-2bf22c18ad3so80275ad.0 for ; Sat, 13 Jun 2026 13:35:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1781382918; x=1781987718; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=lFug7r9V2IZ6ttYLRSwXSuZdIzMUMmjx+agrhP1KloM=; b=apg+IHY5EFWnXL9g1EiX77U0u3H94ggPa3gh7pfv66zbsk/wGcEXkLBDF1x+tuOJbT OG9kWhMBf4pRXF9uda/m+Wf/TarWhsEIjVQaZ9T9KArd3A3JpI0/Iv4qfU/VCZjvJPa9 EnCUPtX9aDVaFD2qbKeVOIjiQ+DEJ0IUoKptnGg4DfwtIoMF7zoAql3n+ABfVZ8kGtux MnhSSd2tVIHs2ejfZ0Yq+NWkdKoEbi6hAOJhH17k0OPEhbx6KAoOCfJX3kLPIhGwPpK+ 5YWwyZMdvpvVfGz4wBgst87wGUSpoyNPgWGVc2nDOs4Oi6GI7DG6/Xj3V8U88AwStaeP yepg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781382918; x=1781987718; h=in-reply-to:content-disposition: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; bh=lFug7r9V2IZ6ttYLRSwXSuZdIzMUMmjx+agrhP1KloM=; b=h4JYixX+j4wrVWfYnmb5Zqm26PNuEobsTj6Ix7tD1GjsFljAucNNGVMwKOQIUrC55m NCUlnzwG9owg9BuOos4mPq8lekFe6BMBTsQ+CFUNvyz6TrVr0e+QmGEYUGDPVdK8NG2U cUKovCK9M/IGzqqXaSMSn6J8mwovz7N89ezJVL66XOl1YtjslczZhZUNb6tDySwXnopM si5zCdgCUw3AQUPZT6pqAzHhUvXljXsPGr2maRyWNvtD5tbdKZuslByfa4CZcCrmhKTE ipYzsISll5Gd0mJ5YGCpmb29ZtFFTEqQqQ/PTC/ucZwnG5V9xwHCvplYwCI0r7se3EgT QjuA== X-Forwarded-Encrypted: i=1; AFNElJ/Bf6YllFUAYjNuw+I7e8Y5x52fiWP28XOlt0/sj+EsaXD+kVKpiedIuPT5mWRTp5fSGvqmRky/FnI93Qs=@vger.kernel.org X-Gm-Message-State: AOJu0YwPkrltntyXDpeXWmSfgsLPfnZq0u0SrZW0KmbWFJqAQ39jq7wk naxC3d5FEz6xsaTRDi1wAOjcFp21e7ShodLMN3X7KiPd9R0PAvcfaphToa8k5RJZFA== X-Gm-Gg: Acq92OGtTKXv89JYD/9KgljvsGKRdIeu0ge0Mz/LDnFJepUiGtWJYqNiBDoyRlns1lL 6d8tJSvE1e+zTt4i18znNt7p64Eq1BEgnL15PLf4rxdQwDWFZnh3+fDgga5tj4Vn/5lSPtMdAtp BbPcYxl7NVFYr43M4PG5RVNU+cbnGzOqLQMTnhIultCt4LH6V0gelXoGulGE3Oujkp3Zmr1hJqi S6w0eAZCv6CgmyJPyd/wTqBErCUGcZAdK0zKyrgDmcpmx8mGcsMSpLzshy5D3JcUhCzQK2941Q/ uMTBkIg/4D3RK4hcnqv+x1SS/tRBkn8RbjQy4k6MVUInE0kRhWr8hVuxY/TSvel0Ri7creKftLn JczkQhY2yv/U8Ky9Z+29oXUCSKWWIK+YlheYvBKAapBUyyhGI9pFcLfsxYooQTr4S9aV/KmyHQ7 eowLzKTEeEFcMh6lEZrcXf0WsyjZYUlhCgo/Hqrw3ZImCCz7vEW3iyxTMPyCmw X-Received: by 2002:a17:903:24f:b0:2bf:3741:5b76 with SMTP id d9443c01a7336-2c665e34838mr1217385ad.3.1781382917803; Sat, 13 Jun 2026 13:35:17 -0700 (PDT) Received: from google.com (199.255.142.34.bc.googleusercontent.com. [34.142.255.199]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2c4327ac7fbsm59623015ad.42.2026.06.13.13.35.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jun 2026 13:35:16 -0700 (PDT) Date: Sat, 13 Jun 2026 20:35:10 +0000 From: Pranjal Shrivastava To: Pranjal Arya Cc: Alex Williamson , Bjorn Helgaas , David Matlack , Shuah Khan , linux-arm-msm@vger.kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-kselftest@vger.kernel.org, Manivannan Sadhasivam Subject: Re: [PATCH RFC 0/3] vfio/pci: Hide and optionally override the PCIe Device Serial Number Message-ID: References: <20260613-pcie_vfio-v1-0-09168188f3f2@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260613-pcie_vfio-v1-0-09168188f3f2@oss.qualcomm.com> On Sat, Jun 13, 2026 at 11:13:35PM +0530, Pranjal Arya wrote: Hi Pranjal, > vfio-pci has no perm_bits entry for the PCIe Device Serial Number (DSN) > Extended Capability, so guest reads of the serial > number currently fall through to the physical device. The DSN is a > unique, persistent hardware serial number that identifies the physical > component (the functions of a Multi-Function Device report the same > value; Root Complex integrated Endpoints may implement it independently), > so exposing it lets a guest fingerprint the host hardware and correlate > it across VMs. For multi-tenant passthrough this is an unnecessary > host-identifier leak. > + 1 to what Alex said here, QEMU / VMM should be able to trap and present the desired values here, we shouldn't need this in the vconfig. Thus, I believe this is better suited to QEMU (maybe this should be a patch to QEMU?) > > Signed-off-by: Pranjal Arya > --- > Pranjal Arya (3): > vfio/pci: Virtualize and scrub Device Serial Number from guests > vfio/pci: Allow userspace to set a virtual Device Serial Number > selftests/vfio: Add PCIe Device Serial Number test > > MAINTAINERS | 6 + > drivers/vfio/pci/vfio_pci_config.c | 98 +++++++++++ > drivers/vfio/pci/vfio_pci_core.c | 2 + > drivers/vfio/pci/vfio_pci_priv.h | 2 + > include/uapi/linux/pci_regs.h | 5 + > include/uapi/linux/vfio.h | 18 ++ > tools/testing/selftests/vfio/Makefile | 1 + > tools/testing/selftests/vfio/vfio_pci_dsn_test.c | 206 +++++++++++++++++++++++ > 8 files changed, 338 insertions(+) > --- > base-commit: c425609d6ac4012c8bbf01ec2e10e801b1923a7b > change-id: 20260613-pcie_vfio-48506602ec6a A few minor things, we don't use change-id upstream and no need to add a MAINTAINERS entry per test, we already have an entry to maintain tools/testing/selftests/vfio. Thanks, Praan