Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18864171rwd; Wed, 28 Jun 2023 01:32:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6porNcuaF9zW0mC6v6R1bBVq/HvaIO89GUN0OuzlyxM135Ftwn5EIa7qWQlrwWqrig/BuN X-Received: by 2002:a05:6a00:816:b0:66e:aad9:d9ab with SMTP id m22-20020a056a00081600b0066eaad9d9abmr1223769pfk.3.1687941147325; Wed, 28 Jun 2023 01:32:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687941147; cv=none; d=google.com; s=arc-20160816; b=leIYRxT2sFQUZao3g2IBD8bD/E+GZgmJ/AT5P++gM4yRQdfDmKpHcoQwKsIRJWgnRb YlYvFiw69kPfhzM2tg29jXPqZqVmnNyttAVN5Bpd89Pt3SVx/teObzvJ5IR8LGbcFKUx rPB/7K4nuiLuXwW7SC2uBRmc8MxTMLTEB83fygceAeA3LBniwrsrnG2mP1fX1iw/8Cic IaSSs7z8Ls+dd3w6QEhvMxl9Bju6xGkon0s0PrOpM0owHKAA7jCO5rO7ueiwX7ActfmY PnH3lDZliK4OCUzXdBFURSBZ4Zz/r0U9t5g8KpoM+TCbv1KnjNgmbsDuC/njEX0l1xma 0PQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=Rjet8Ukl1WyvnmqebMgJ6muk1ycBNL7JSNW8bedLLZI=; fh=NOG8CJEG4WJu4DlPLKvyF6THcrTOjShCi1CeGqtRM/E=; b=P7WkVyO0m/DN8iOgt8QuvPz7hzdJgiXAKcqtGnKY6bU6mjXGJ6NeJ3l6wQeNg2CrXf Z/Nkea+gtj45gSwz0wnjZmTg1aXY/jh4N21FVXEbhn5gOOlkqfv26uWotHli0z5K8fcL WBhZ82wZsDGzhXWyCDutZ6Al6j/zNrWHZXFBWRABOp6T3Sm04ARRA44XlpmU8b2IJ38Z nsc9Bj3yNnetkSbV2BI9qV9KhS9C0EXn2ks1ZRbkRSS3oFBpR5CycC4HQzvAET9/WvYQ E2chf9wx494uluZSPpvgykgH4SFJqCmWipq5ZdUGVVo2K2UDUBWgvVYDze2G++tIYq5D naHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SMImhwbE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p9-20020a056a0026c900b006689f320421si4811265pfw.150.2023.06.28.01.32.14; Wed, 28 Jun 2023 01:32:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SMImhwbE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232925AbjF1IGW (ORCPT + 99 others); Wed, 28 Jun 2023 04:06:22 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:33752 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232303AbjF1IBx (ORCPT ); Wed, 28 Jun 2023 04:01:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687939263; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Rjet8Ukl1WyvnmqebMgJ6muk1ycBNL7JSNW8bedLLZI=; b=SMImhwbEG6F8hlscNlTedfggDK//rdQE3nRtDkiymxSNkBUdind3SpDpPd0WULwdfXXCBe 2geYUJWwZo4QntG66qlWsAio4TBQcWlRn5a3CcD7t/jGKTRhRuGbU7nAs2UiFF8nF5hQZw odsNnZNgW3sab4vZT73ILVI0KgV3hVs= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-645-9O6KTV6nMZyR72Za4PuBZQ-1; Wed, 28 Jun 2023 02:59:31 -0400 X-MC-Unique: 9O6KTV6nMZyR72Za4PuBZQ-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D90621C05156; Wed, 28 Jun 2023 06:59:30 +0000 (UTC) Received: from server.redhat.com (ovpn-13-142.pek2.redhat.com [10.72.13.142]) by smtp.corp.redhat.com (Postfix) with ESMTP id 51A62492B02; Wed, 28 Jun 2023 06:59:27 +0000 (UTC) From: Cindy Lu To: lulu@redhat.com, jasowang@redhat.com, mst@redhat.com, maxime.coquelin@redhat.com, xieyongji@bytedance.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org Subject: [RFC 1/4] vduse: Add the struct to save the vq reconnect info Date: Wed, 28 Jun 2023 14:59:16 +0800 Message-Id: <20230628065919.54042-2-lulu@redhat.com> In-Reply-To: <20230628065919.54042-1-lulu@redhat.com> References: <20230628065919.54042-1-lulu@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Your Name this struct is to save the reconnect info struct, in this struct saved the page info that alloc to save the reconnect info Signed-off-by: Cindy Lu --- drivers/vdpa/vdpa_user/vduse_dev.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/vdpa/vdpa_user/vduse_dev.c b/drivers/vdpa/vdpa_user/vduse_dev.c index 26b7e29cb900..f845dc46b1db 100644 --- a/drivers/vdpa/vdpa_user/vduse_dev.c +++ b/drivers/vdpa/vdpa_user/vduse_dev.c @@ -72,6 +72,12 @@ struct vduse_umem { struct page **pages; struct mm_struct *mm; }; +struct vdpa_reconnect_info { + u32 index; + phys_addr_t addr; + unsigned long vaddr; + phys_addr_t size; +}; struct vduse_dev { struct vduse_vdpa *vdev; @@ -106,6 +112,7 @@ struct vduse_dev { u32 vq_align; struct vduse_umem *umem; struct mutex mem_lock; + struct vdpa_reconnect_info reconnect_info[64]; }; struct vduse_dev_msg { -- 2.34.3