From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f49.google.com (mail-qv1-f49.google.com [209.85.219.49]) (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 4B58F33987 for ; Tue, 6 Jan 2026 01:22:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767662559; cv=none; b=TO3tuY0OlP318oqVyZsmBaTheno9zE5kzSQQiRisMiJQODDoO08o4XqEH5yK35J8yovnZQz2/D/hqEJVTKK6CpwHLNOJSNqBpO6paBq6TDqoStRpr4B4Eg61qypCkccLihz1vLaW0N3LfwD1KbIpK1u/udR5owiuTTG+zmawjls= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767662559; c=relaxed/simple; bh=mf215Bsa4OZ4GFhTmkkQox24BB3kx7SzucOQ9uwqDKg=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=t7pGU4YF6CkDTOGCqZYoyN9qDLWjn+B08YHvuwM9uV6aWVT1tqD3HvRq5Mawds8UIg54TLGuh3VJYYrbI/mBdPHJm74Yp5G8HDPNC30d3Aa2lK1YaOt0MiL9tWW+44XG1Q/Hu4Z/sXgOR8IU7kRvWSLwbabPdfUv05oI3sibvD4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=TqrDTOwj; arc=none smtp.client-ip=209.85.219.49 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.b="TqrDTOwj" Received: by mail-qv1-f49.google.com with SMTP id 6a1803df08f44-88a3bba9fd4so4522196d6.2 for ; Mon, 05 Jan 2026 17:22:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1767662557; x=1768267357; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=mf215Bsa4OZ4GFhTmkkQox24BB3kx7SzucOQ9uwqDKg=; b=TqrDTOwjz6fSGo0ZF+XuLdJSbjBY0eDt55jeHuKkXmR4vuDZDnYVhGY4h69TPzKdBn 79uYHQeKTp2jdebNIoLyC6JXZLOWBhhLqVCML7Bs1SusmdmL5WhkCSYvUj8RtCF0mBZX TXae6VzxuDteAlGeIP+IPok+OffPS09rb3UfUZRwKnanQA4Iwf1AckEo+Ow+3ebL9oLs Hg7PSFJFNMDeF2qyLYb08X9jSNnGRmrNeedow1HiTqtrJx2oZjK2XG3r0ZyqbDRua5ci tJuehSuFoN18SbREgFVFEZnjg88PS7s/+YTXXy0p13sFNazpAakbWRtEtQlIInu+h5rX q87Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767662557; x=1768267357; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=mf215Bsa4OZ4GFhTmkkQox24BB3kx7SzucOQ9uwqDKg=; b=Epm/C4ymZcymApDFqTkF7Z1lyYuklAodUBONeI8Zu2z6xqoeZxqVBzJSia/+sD7FE7 7+H+UxGyYOEKNsjrbJlCwm0vXWQjmfTBx7Z4wO9m9Kfzcof0St7HlOD0At7F+wr9iOvM nt7vYMDsVVK1SWNRPk+6eW5xuL9tRGEWr/OUPQczCRqlydI9S1127orRbB/Zc0dsu38V um3cLM5wREzz0HS6jPRUDjK0OFHat11xSbF3eVCiy/5ludJJefqJi7PT95zdvXQddZEY aI6I0rl9GLnj08fwGPb0TVoz/mfXeMHc5+q12Dm2EP7NYmdZw/ydRiFUVAzB6w1QBJQF EMnA== X-Forwarded-Encrypted: i=1; AJvYcCXhIhV6qY7MNodNdXYK8Pu071Dqk3xe2fSkiPzu8rNNlVU8uptKd80ecY2zeI95HJyl2gfgCRTIo4rpfFo=@vger.kernel.org X-Gm-Message-State: AOJu0YyPC5COQVzb0lpBkLpKQFQim+DQRnvqZNSwSaN5JtV+pkvCAk2k A7cMmSDetcL0BUcZ2tG7JItxdde6szL8xmWjKDoh0s7aSrrrxgHIgn3HdMhK8S8vW2M= X-Gm-Gg: AY/fxX533r9lXpWjr9zqYVTsCkYsnTRlnLqLm2Sty1/fIDZ/sTkH4llBvyx3I3lj+06 qts3qs46DCWp6wgcj1I3DFNKaeBhTu00WQvgvReCqRp1+emylV8waSsZkThp2H4nUWNhwB+XVLn O4ICXORu0W4/t6XwtBlWnxxWcBISC13emYOlxBVTI6CljYKQjE2xVQPd0p8CFkWyf+8Jv658ime 13swYtIIU9gAu90ZjV+NeeR/84MDP5luOx6eygnMC9j5h8cSe+YwfqmI/gEg0ORj81at2iPv16x 2WdQ3kZOusPu0KVmzLMiHDq8dRe4sw6wlqL522/Bhw4ZezwydKE7kxA0XbFc5PkiitkqwiYldiD kL5eZ7l7DWmyaemshDpo9JNRdZZIvtiH4AAgzSW4gdMv8XPsD+tHvFfydPiSWTzXUWzZ8Hrx4rg jW0wQt2PCmfIQyFzDrWQ9ZksbbKAQzAJ4jLs6823nWpFdbjzyRx6pPzpVlfFH6U7sTICY= X-Google-Smtp-Source: AGHT+IEM15GR/5Y9ogD77tynVPoOaSnflk3CNBwLM7mh9tKkkP1Pq//+VzH0PJSrypNvdcoLpzXtUw== X-Received: by 2002:a05:6214:f07:b0:880:54ac:79f8 with SMTP id 6a1803df08f44-89075ecfd7dmr24591926d6.48.1767662557174; Mon, 05 Jan 2026 17:22:37 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-162-112-119.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.112.119]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8907724f06asm4814886d6.40.2026.01.05.17.22.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jan 2026 17:22:36 -0800 (PST) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1vcvmO-00000001EhY-0HWP; Mon, 05 Jan 2026 21:22:36 -0400 Date: Mon, 5 Jan 2026 21:22:36 -0400 From: Jason Gunthorpe To: Danilo Krummrich , Bjorn Helgaas , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?utf-8?B?QmrDtnJu?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Abdiel Janulgue , Daniel Almeida , Robin Murphy , Greg Kroah-Hartman , Dave Ertman , Ira Weiny , Leon Romanovsky , linux-pci@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, Alexandre Courbot , Alistair Popple , Joel Fernandes , John Hubbard , Zhi Wang Subject: Re: [PATCH 3/8] rust: pci: add {enable,disable}_sriov(), to control SR-IOV capability Message-ID: <20260106012236.GR125261@ziepe.ca> References: <20251119-rust-pci-sriov-v1-0-883a94599a97@redhat.com> <20251119-rust-pci-sriov-v1-3-883a94599a97@redhat.com> <20251121232833.GH233636@ziepe.ca> 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: On Tue, Dec 23, 2025 at 02:17:12PM -0500, Peter Colberg wrote: > Further, enable_sriov() is prevented during remove() using a new > flag inhibit_enable in the pci_sriov structure that is set before > and cleared after the PF driver is unbound from the device. Doesn't this need something concurrent safe like a revocable? Jason