From nobody Sun Feb 8 21:47:13 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF7281B6559 for ; Thu, 29 Aug 2024 16:13:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724948026; cv=none; b=bVn6tuP0TgoTC/R90/dHcyjq/xL01HML+OB2jYF7OJQ6oFdhBibJ01Ad0iAR250M/OttMhVwsWjO1NubPtmjCN85r+uQVWnUC6sPme/j4/oKo61PhymG4M5EnOmeYZqWwV+39Mh+hrPYXS+UZ37r0apsmOW+KNWQKnyCdviyisw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724948026; c=relaxed/simple; bh=cOkyuS/zD7QL6cWoaY/bqydY0jYXRoKOvV7Ranrv/Jc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=j1xNj0O7Bah6oGFFFt33I+VZWXEChs0IpWS5zyawOuW7rty/GLMZ1RvLQeIys6OpgHi5veSLdjHfRiY+9EZe8rAoIBvZdSAqTkMi0uIzXGczByTgoLFE7V5sEju0iPpQDj9AYk3iLV9QKJODwzgcSFd6rRyTCcuLWiAdoqbN9/s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=Le+ZkWRy; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Le+ZkWRy" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1724948021; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PtSiYz+D15CV1ChqO1OH2LgkiaCj9sIiJpBCK1lkoa4=; b=Le+ZkWRyZ1MnWDiif1poIStEa94KvnKeXBk882O/c8a/uB7zF1H1kyWjfWQxLJbIgR/uc8 5WosSf0Oo2r+nHsHgD54iBKFfzfv/33xhmJPx0mzRp5eC0qvyf6eIBTMArAIjJg9ZJPMTu CjXotK5hHv7kNcF5rYSbxKSLe3h1qgA= Received: from mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-328-b-hN3lV4OrapPRMNLgy-NA-1; Thu, 29 Aug 2024 12:13:35 -0400 X-MC-Unique: b-hN3lV4OrapPRMNLgy-NA-1 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 692D51955D4C; Thu, 29 Aug 2024 16:13:30 +0000 (UTC) Received: from laptop.redhat.com (unknown [10.39.194.81]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 0BC5F19560AA; Thu, 29 Aug 2024 16:13:24 +0000 (UTC) From: Eric Auger To: eric.auger.pro@gmail.com, eric.auger@redhat.com, treding@nvidia.com, vbhadram@nvidia.com, jonathanh@nvidia.com, mperttunen@nvidia.com, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, alex.williamson@redhat.com, clg@redhat.com, alexandre.torgue@foss.st.com, joabreu@synopsys.com Cc: msalter@redhat.com Subject: [RFC PATCH 4/5] vfio-platform: Add a new handle to store reset data Date: Thu, 29 Aug 2024 18:11:08 +0200 Message-ID: <20240829161302.607928-5-eric.auger@redhat.com> In-Reply-To: <20240829161302.607928-1-eric.auger@redhat.com> References: <20240829161302.607928-1-eric.auger@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 Content-Type: text/plain; charset="utf-8" Add a new field to store data used by the reset modules. Signed-off-by: Eric Auger --- drivers/vfio/platform/vfio_platform_private.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/vfio/platform/vfio_platform_private.h b/drivers/vfio/p= latform/vfio_platform_private.h index 528b01c56de6..0d689241be23 100644 --- a/drivers/vfio/platform/vfio_platform_private.h +++ b/drivers/vfio/platform/vfio_platform_private.h @@ -68,6 +68,8 @@ struct vfio_platform_device { =20 const struct vfio_platform_reset_ops *reset_ops; bool reset_required; + /* This field can be used by reset driver to store some data */ + void *reset_opaque; }; =20 /** --=20 2.41.0