From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) (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 218F82F7AAF for ; Tue, 2 Dec 2025 21:16:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764710170; cv=none; b=rchhXTCT7muSqVoIOnDbTnFYPT4XhxUqwWuTWJkXFYKUEDvYdQfD+RpKO5dFvYJ5xy+B6uZUqO0LQfVyF2rwEnv2u0/0M4USJZo55j0JIvlz1KR//5dF6/4P7ZnhPThrEHL+zfLutaLCF0tOq9Ji/n8bjRmSIFLN7S3FMTKffSA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764710170; c=relaxed/simple; bh=psZAockS1smX2jz734Lq+oNYVMo3hSN9xQqCt2oRORk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MeMDxqXSqsatUckTZv4PU/zUZVRZgkV08v6zc7126/1s4iB8cPBjcXVHhFhu4jsfhlQbm4MiUp03Kb+aMNz5o/D+vhGjp8m9GYu0LC/kQJ/hbPxgLhCdWwrm5pDeRFYEqteQN+cwtgqNTO10xFgGlaI9IYfiN2c7m3Vc+otpJg4= 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=K4tuE5iw; arc=none smtp.client-ip=209.85.216.54 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="K4tuE5iw" Received: by mail-pj1-f54.google.com with SMTP id 98e67ed59e1d1-340ba29d518so3993466a91.3 for ; Tue, 02 Dec 2025 13:16:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1764710168; x=1765314968; 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=z6k+A4j7YgFCIkzTerT25SkFiFrWoSonSfbJHItUpuU=; b=K4tuE5iw/UPhRNBsNF1cx0XDlFMbr/Li5JZl4zvKXMRk2d4HRVc4nRpHH+vwrDCZBU 3qtqNzOfucQtVmm2rGEwYmuZoTflNZgwoO+zd8ugFd7RtPfYjpyDoeZq1ll15LY4J/Ov 9Z4uIEH+W+8ZEHGJNkB2pyny3DnlTg9c7N/12dyhgLJoVkvX80OYjJ/zkeOg6htJ88gV ovjB/Kf7rMYuIS73X8u8Cffw3cM3L52uVs+icGp3Hs4jzlst5cgdZLtK9GJIizY2VumI tEAdOuH4hBECZdRoU2UJTxI7F5KPWl/grf5Ax2UZ97mZYoQQnbsgBf7yW34WYi4CZCh4 dVpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764710168; x=1765314968; 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=z6k+A4j7YgFCIkzTerT25SkFiFrWoSonSfbJHItUpuU=; b=vq/qWckrKyJyjnWDr5Zim6TIFg7mnG33ZsFHsEgXQp5idqfmi8Zu3eyBd95RsrQUTx NXmNsF+Oq6B4CfqaL5yAWPpD9+C+Grsc0Ak/7cJE/vICPG80BJvIeHTGhR9vOersUMgB J2mkvvYdcFlIjP6V5cGgQDf9HIpIA20GtyYwGV1gM0uedSKVjYnroNuVrh71PhqRX/Vw XFhB9jZ91HggYTKOhoG/uIYnly8sM5D7N0LaUpp0MFtIJSKIkG00mTu/HqhFafj4AwRb Mri34Q+oWvu7R2y04wkAwe068r6rjiIEU47/Q84MWNO4EPlWuR2v+PN88ahqvSCmBUPe p1YQ== X-Forwarded-Encrypted: i=1; AJvYcCXrjdTBqCDZRXLkV7fujS5OnvY2yLxy1zxPXHBVT0sXMz5TJxUasGUVD44CHvdYXlDdEzrhuB/imdd0ef4=@vger.kernel.org X-Gm-Message-State: AOJu0Ywl3tBUfk7/lF2tZwn8ey2Jc58ICeDIOHf5leeBbEQkX5HnOc/n J0S+1WNovNEZ78l1Np+vRufIahqRHEAqW2yTlMPdrfsPm1DPCx1lahi7lxga95xrAg== X-Gm-Gg: ASbGncsGHxI6v7F/ppAHlk1dATB54fz4F7YLfuGZayvXviTd9Y3yo+u1UgOHa14Shbb BWu7Z0sBlPDrM5ZqOT5Ybat6j46nLrcC4OA9eEKMk1ZW+T2pJKoslKAiuVZmO0Lsr3DUg0IcXuZ OLJDduxA9pExmZaA3EtkZV5btSJ0QfI/tmrAkk7KuBOSfcHm6DiH9iYzl/SXH4I9kS/kzUzotL5 k7OivoqECNuxAyq5HvKTPyU+dODO+NmOauCCbu2E5lmB//j1Di5lbz1VlPgU5+1LXe1pkXpsBL9 vtCe/soD7sOVUaUxGJvpKNJDnp5OB8nmV4mkJnOdimJkQpjIXHuVb5pIljrCPGynZzs7ECIxW/W si8+A83zowZF92s7Sl3h4DWXV6YIkabT8v3pqISQVFwBySOOjVUSVwVjWeJgfLu7kfmjc6XA9Y0 3sF9Dz1vg0YJMmF4PA50aptAS8BsRN8n9lnP0M3pgit/5vJjM= X-Google-Smtp-Source: AGHT+IFJXXKi/z9g/exKb7UhaYzAGIOAf3+2xvy64dR1yHz7NR+ujWfrh1Xuyci/C1t+g660+I6Fuw== X-Received: by 2002:a17:90b:4d91:b0:341:315:f4ed with SMTP id 98e67ed59e1d1-349125ff915mr64801a91.10.1764710168053; Tue, 02 Dec 2025 13:16:08 -0800 (PST) Received: from google.com (28.29.230.35.bc.googleusercontent.com. [35.230.29.28]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-be4fb434e8esm15829923a12.4.2025.12.02.13.16.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Dec 2025 13:16:06 -0800 (PST) Date: Tue, 2 Dec 2025 21:16:02 +0000 From: David Matlack To: Alex Williamson Cc: Adithya Jayachandran , Alex Mastro , Alistair Popple , Andrew Morton , Bjorn Helgaas , Chris Li , David Rientjes , Jacob Pan , Jason Gunthorpe , Jason Gunthorpe , Josh Hilke , Kevin Tian , kvm@vger.kernel.org, Leon Romanovsky , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-pci@vger.kernel.org, Lukas Wunner , Mike Rapoport , Parav Pandit , Pasha Tatashin , Philipp Stanner , Pratyush Yadav , Saeed Mahameed , Samiullah Khawaja , Shuah Khan , Tomita Moeko , Vipin Sharma , William Tu , Yi Liu , Yunxiang Li , Zhu Yanjun Subject: Re: [PATCH 03/21] PCI: Require driver_override for incoming Live Update preserved devices Message-ID: References: <20251126193608.2678510-1-dmatlack@google.com> <20251126193608.2678510-4-dmatlack@google.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: <20251126193608.2678510-4-dmatlack@google.com> On 2025-11-26 07:35 PM, David Matlack wrote: > Require driver_override to be set to bind an incoming Live Update > preserved device to a driver. Auto-probing could lead to the device > being bound to a different driver than what was bound to the device > prior to Live Update. > > Delegate binding preserved devices to the right driver to userspace by > requiring driver_override to be set on the device. > > This restriction is relaxed once a driver calls > pci_liveupdate_incoming_finish(). > > Signed-off-by: David Matlack After some offline discussion with Jason and Pasha, I will drop this patch from the next version to avoid hard-coding a policy in the kernel. Instead, for the time being, it will be the user's responsibility to only preserve devices that do not have any built-in drivers that will bind to the device during boot following a Live Update.