From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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 F351716132A for ; Thu, 26 Feb 2026 23:31:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772148711; cv=none; b=E+xHyH/Gj50a9DGgsbvTcK2l++G9lJlcATFoSZuWww4qxwn9c/0Mdbf5POd2papfXyozBr54kKGQsDUmT5b7spL/SrIk+Gkh7PtEgGgPNy7QB9ZFRVW6azF/tXHQUErNp77UIgpDHKfD+T4yzG1yR4kDEp8E5LXVBWqbrTGzrOw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772148711; c=relaxed/simple; bh=AAF7fByBTFvHIdoynRYlkawoyRHswdrvQIY2msLKBYU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iVA5kOdG3bxYwCXoHP91ZDKImQJFVPsHs5cXuimLrQU1fxmNO1WrvH5GwyBkDYQe01tSIZSYAuoZPHttPdR4w9aUfJXXgDjrwVBIfz4nsJAnZ1hMC9TtqrhNjgVmPC7mhL3iwXAhLUUwuEWOiQih6z4enV6afrHFMsE/qKd/+Ac= 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=fdeHi2ng; arc=none smtp.client-ip=209.85.214.173 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="fdeHi2ng" Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-2aaed195901so7132505ad.0 for ; Thu, 26 Feb 2026 15:31:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1772148708; x=1772753508; 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=UQ19nP7LWyVtbwlYCJ4KZaeb2FLacueUWULaQoURJXE=; b=fdeHi2ngbLtudCw29sk0ANC/rvY74LDswMpIo85pe4L3DkXLDhoUtfu8d+zS8xmVaE oRn+nKfDrOM3MM2ecdwfWBeSB6fMIevw/Q7E9Fx8bMXF87+Z9BT6bi+VFc7uxKsao7kU lXcbvqou7XO441ypiWEiPy/vA9UUU8lnXEaFDQUAXIxAkRUl0MaNOrr5/c0A8HAezZVi G+lFe5WWH9dSPNva19h3f5d1xpGnEy2QvV/3sUK1b5Wteov/d1Kw8QfEz45XEjcFv/64 Is6AsNwWAXfLHYr/rVy4zp5U0hvwu2bk6MxXt2B9lIaPCfGz7PeJ+dzb1npIRYp9tSrU 6q7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772148708; x=1772753508; 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=UQ19nP7LWyVtbwlYCJ4KZaeb2FLacueUWULaQoURJXE=; b=XGr7rjDRHzsS8K5SY5jFgbPVFJml9SDKPZpO5tr5+HALu8IMD33TbbCAhDBgVIKgaN lg3yADAt35m14XzQ/zHDjSqu1ZQMK4BMb3ZPncYVclCIxvxndUh1NY3mS50zh9JkA5gS x+kigtRWBVZ7NH293Ka39iCJCgKL3KW4WApWZxJEoe20IW1kkcGQbahf3Xu4pKzS2qQC WlUrtbglZi3IafavV2wGxx5m+6WLRXVEWeKY0DvLvGLqlt5rfQ/c9omD1XoQk9JjTE8m JS0mbV4pbfko7BFeKYjmWZaGUQwtrqK9FEqYonLRHXZqXoiPBw3n4mQwkZqCgsGeGIoQ DxIQ== X-Forwarded-Encrypted: i=1; AJvYcCVFI4G4djPpRb9WORFId3oKIKWBSzlIVuCGoauchxSjkkjSRrStYmAGBV6kz8Fsqru+GcQZxo48ejm8g74=@vger.kernel.org X-Gm-Message-State: AOJu0YxcZDu9zmdoEo9sogR6te27ob+TmIuC/d6QrFh7QFrdOhPCxJar AaXBbhZuzCRAtqP0RjFaGq9zKXspyFTuVxSfxMAeVTJXMt0d/3y737meZyE/TR1lvA== X-Gm-Gg: ATEYQzzv+SSqXS9IswTtP/3WQNhMbEshh8G9JRgOtjB++Olg677fzt5MA/fxk3W1ubt 8AtX5Yu5Z6kiXEXbUYhbNvWt56chp+hiRsHK6h0kRVonY8nhg07PV22hedT3EuvCWjEjbYsY9OK Qn6ejrZz1KV9TiPxpHrdYAs1FVaGPeaYzGbiNeljpds+MDxn5rnP2nGJuwf7OQlzmEl+vNKpf29 EeWLqQl952Tsr5FreyDb5yxLqplkF2b1PBmw4tkTxEw6FttekyLk+Wifv45OoUEdUQsQTHoYyEk XwTpHF2kmJxIB7Vd548klAAvPa7TUv3wk/uIgn4uoadR4F/w1DW6m8kbRzb7QtBuVKbGDVl8Y0l t0rhaGvOjpvRaNxjKjYS6pWV3W65i+XuQlmgJ5yNMvUwn9TPY1V5lj5uxoQMJAv7FreLlMTaSxA ZyJ7doYiiNmkXVfgadOIs4bHeIFcQeCQcBsaVPxYiqlHoBL2ADl7QmYIV/RmyHUw== X-Received: by 2002:a17:902:dacb:b0:2a7:919c:34c6 with SMTP id d9443c01a7336-2ae2e4cd74bmr5371545ad.38.1772148707814; Thu, 26 Feb 2026 15:31:47 -0800 (PST) Received: from google.com (239.23.105.34.bc.googleusercontent.com. [34.105.23.239]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2adfb6a0432sm53850525ad.52.2026.02.26.15.31.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Feb 2026 15:31:46 -0800 (PST) Date: Thu, 26 Feb 2026 23:31:43 +0000 From: David Matlack To: Alex Williamson Cc: Adithya Jayachandran , Alexander Graf , Alex Mastro , Alistair Popple , Andrew Morton , Ankit Agrawal , Bjorn Helgaas , Chris Li , David Rientjes , Jacob Pan , Jason Gunthorpe , Jason Gunthorpe , Jonathan Corbet , Josh Hilke , Kevin Tian , kexec@lists.infradead.org, kvm@vger.kernel.org, Leon Romanovsky , Leon Romanovsky , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, linux-pci@vger.kernel.org, Lukas Wunner , =?utf-8?Q?Micha=C5=82?= Winiarski , Mike Rapoport , Parav Pandit , Pasha Tatashin , Pranjal Shrivastava , Pratyush Yadav , Raghavendra Rao Ananta , Rodrigo Vivi , Saeed Mahameed , Samiullah Khawaja , Shuah Khan , Thomas =?iso-8859-1?Q?Hellstr=F6m?= , Tomita Moeko , Vipin Sharma , Vivek Kasireddy , William Tu , Yi Liu , Zhu Yanjun Subject: Re: [PATCH v2 07/22] vfio/pci: Notify PCI subsystem about devices preserved across Live Update Message-ID: References: <20260129212510.967611-1-dmatlack@google.com> <20260129212510.967611-8-dmatlack@google.com> <20260226160353.6f3371bc@shazbot.org> 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: <20260226160353.6f3371bc@shazbot.org> On 2026-02-26 04:03 PM, Alex Williamson wrote: > On Thu, 29 Jan 2026 21:24:54 +0000 David Matlack wrote: > > diff --git a/drivers/vfio/pci/vfio_pci_liveupdate.c b/drivers/vfio/pci/vfio_pci_liveupdate.c > > index 7f4117181fd0..ad915352303f 100644 > > --- a/drivers/vfio/pci/vfio_pci_liveupdate.c > > +++ b/drivers/vfio/pci/vfio_pci_liveupdate.c > > @@ -53,6 +53,8 @@ static int vfio_pci_liveupdate_preserve(struct liveupdate_file_op_args *args) > > if (IS_ERR(ser)) > > return PTR_ERR(ser); > > > > + pci_liveupdate_outgoing_preserve(pdev); > > Why do we get to ignore the return value here? Ugh, we do not. This is a bug, thanks for catching. > > @@ -203,5 +225,6 @@ void vfio_pci_liveupdate_cleanup(void) > > if (!liveupdate_enabled()) > > return; > > > > + WARN_ON_ONCE(pci_liveupdate_unregister_fh(&vfio_pci_liveupdate_fh)); > > This is propagation of a poor API choice in liveupdate, the unregister > should return void, it shouldn't be allowed to fail, IMO. Thanks, Ack. I'll make pci_liveupdate_unregister_fh() unable to fail and follow up with the maintainers of LUO about liveupdate_unregister_flb().