From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (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 24E8C3A785D for ; Thu, 13 Aug 2026 22:30:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786660253; cv=none; b=mWQZjZJpnu/KK11lTvUK3JcgvvQiDYg8EOZH0zTLsc/QKSErmwiuAzt2qgeHsc+StsKvEHs8FtB2ZCcD4NppWHkIVPX4pvRqWVi190qzIYFP+aronyUJcrwO8ugMlD/w+DfDSbfs11VeL47p9FqANvtm/luE6fOypMB1z1Rp+bw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786660253; c=relaxed/simple; bh=ydV8iJa09LG4r4BdRCrjhfRiSf/IPCM8ckDhn20Glmk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sj106ES/cEPktGLImqSV4MK9iticd/LN/Mm5w70mWmzvOBABD2hE0jKBcgSiBE2fP8RfhBWxUBdjnSysu3wVItnXGUcC63Uek2lhsntC65wjdJvWogsSlWCwLq9jWAaaFj0nXPbZHXXbdDGaq7BxAYOfwiUu6dZSL1PHykf8MF0= 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=PRe1C+lw; arc=none smtp.client-ip=209.85.214.172 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="PRe1C+lw" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-2d3b445a84fso16215ad.1 for ; Thu, 13 Aug 2026 15:30:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1786660250; x=1787265050; 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=tIavDDllQ28C0Bh1Wmg+i6CoIbJikihxQ8b9JBFX7+o=; b=PRe1C+lwGVZFJWcaQsXGg30FtCPogDEnYY3CL3404L58dWJIH4zFaauOAJW5lYk7PA OU9sRyoyrmjUB1D5PfRDXqohNcqdgzCIVLNwtLutM1E8j3cFKcparorVRNXbsTyBnKQB paxGlPO9X1R4PfBwwMUzaHiLuVc8msplG1nSiVOsBWMJIfw6JyRipqRHBMxcsf9HnITv jo5/gid8iWHf4C7dCljZHwUBWYq8QST7lDnKkhiEFp06l9RDbSxxdzKgbukQEr9/WRUm QIU3bH2FEVnmnPS3u5+L1TudSETi7PXZSn3JRMYxhJwVbDzbCrYHZiTJYolWh50dK6Gv vsGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786660250; x=1787265050; 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=tIavDDllQ28C0Bh1Wmg+i6CoIbJikihxQ8b9JBFX7+o=; b=KqNEoztVymMvJEvviGhDm/ImqwxXFFYQy8PAz4WdF7GT8exzWZhhsEbbH9AzF5+F8r wVM1WmE73kfmMPg4kD7+UAwcIVQwuAXIHfp4VmnMYhBdMNeoYechPKyd6FgyNRHgbKFQ 4lKdNQWGE0uLNhANCsVO8cSW9wGdHgE/aB/uMa/1oHmLhIM9ABMsPJeOsx8vJV29TPFX bJ61hHuF/+pUmIqdk5/1RmJvaDExlq8uePWwW347kTNYM/GGUTHZRZPXu2efcot8lnJ0 z/GQU6wByNhVQoYlhnivMEMboUMQgsOkfR7WOzTtn+nc5lxRilHX3NQGh6lUh79AvQn1 Urzg== X-Forwarded-Encrypted: i=1; AHgh+Rpj2DWurq8A6Bdy+8gqboTbjmQrFCYBszMNhxWx1Vr4V+LXWVUtbKdjT/EuysvN0sCSu8eJTSt01bzQayY=@vger.kernel.org X-Gm-Message-State: AOJu0YzIfn3eoUdAOZ2yuucZ4YwmW29k/dgKeeis61dlEf4T5/iRQwGx 1lNIh8IJWxkbFDojKFNorNorBtPxdwzkcV2d2XJehDSmG4DO4X1pKP/ihUCA22Q/IA== X-Gm-Gg: AR+sD13YS6VTM0gCo2A0zdCK+oBVUnNm1gmztDSyxhXAnEb66yZYUCcTGeKTOH+jUJ0 m+dUmDqdymlcnsSkmjsFk44CUKyOttB/T9B4pWiO7bENRD5P7+pT1R2kN5WIEW7IfoO06BYo7wD BHlKGmy1vK3nRJlmqmmhLkyP58ACG7gG5kbz3KCn2KYXjOAMXXn1qMXvBjKUaV+OEMfngw59UOC 3cI7jGEcL4eike7DzT/TBCZcfL1kGZ6UaVVnMiINpkhUnmYpdISjiDv82oZndaavrMEOz0EeNEE DuSrm0PgpMmsq+8ZiTt86zG+uf8YwNsB0pQbrcGNrXlN/wNwhiyVNK3nDFVRhFq1mh9IXL0r553 lcpmUaDaY3zJhA8hvipRlIlT5XtpP62d5RLjoYL3pX7ql0gxN5yQn2s0j7trCqSiGUEuUbRcPjj 7la+SDrSqen5QnWoK1LdyohjIWA4KuWH+QolqG8swlNkpgnKCWVND60G0/af8vGGHAoT5aCXNp2 5RXXnBmQBiua/jZsC86WAKnsuVKWsro+7kSi0KginuRbS7Hlkkhe9B+5dSF7TWkT5ZZUA== X-Received: by 2002:a17:902:ea03:b0:2c9:bd54:cf with SMTP id d9443c01a7336-2d3aef5eff0mr3779055ad.4.1786660249602; Thu, 13 Aug 2026 15:30:49 -0700 (PDT) Received: from google.com (210.87.127.34.bc.googleusercontent.com. [34.127.87.210]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3931ced4dc0sm5019116a91.10.2026.08.13.15.30.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Aug 2026 15:30:49 -0700 (PDT) Date: Thu, 13 Aug 2026 22:30:45 +0000 From: Samiullah Khawaja To: Alex Williamson Cc: kvm , Alex Williamson , Jason Gunthorpe , Bjorn Helgaas , Kevin Tian , linux-kernel , linux-pci Subject: Re: [RFC PATCH 0/5] PCI/vfio-pci: Guard resets against active SR-IOV VFs Message-ID: References: <20260812045325.2733631-1-alex.williamson@nvidia.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; format=flowed Content-Disposition: inline In-Reply-To: <20260812045325.2733631-1-alex.williamson@nvidia.com> On Tue, Aug 11, 2026 at 10:53:18PM -0600, Alex Williamson wrote: >It's recently been found[1] that vfio-pci doesn't restrict resets on PFs >while SR-IOV is enabled. This can not only result in an uncoordinated >disruption of the use of the associated VFs, but the ongoing use of and >access to the VF has the potential to result in machine checks. > >This series proposes that this gap is largely an oversight of >pci_reset_function() to recognize that a PF reset affecting SR-IOV VFs >violates the scope boundary of the pci_reset_function() API. Hi Alex, Thanks for sending out the RFC to fix this issue. I cherry-picked it into my environment to verify that whether it fixes the issue I was experiencing and it does fix it. I will continue to do more testing, but when you send this as a formal v1, you can add: Tested-by: Samiullah Khawaja Reported-by: Samiullah Khawaja Sami