Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18872617rwd; Wed, 28 Jun 2023 01:41:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7AxvsWDkBdVzGsOhbdWH6WAVmPYd2YTWdbDI1o6DuPMholJn5JRlM3qdfOy51pAGEMMwGa X-Received: by 2002:a17:907:1c9c:b0:982:8de1:aad9 with SMTP id nb28-20020a1709071c9c00b009828de1aad9mr31853041ejc.64.1687941713294; Wed, 28 Jun 2023 01:41:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687941713; cv=none; d=google.com; s=arc-20160816; b=tB5TIUNn+Jk3gncBzlbwNVjY8i71Pjvr9zoNxEmKqv/vTzUxsuWXQk/6A8ReD8+pzF qA2v1FqwB3Y2CE+bndqECGN6YL/HDGl9fvRIlekZRS638u7U87rAr7mTx9ABSRYs8NDg AVFc6A8ef9cMh1p1Ns8JOrABxqDdwOPa3niPlxRfEC6SpLIMfqG0UUgtOCOr+D/mzA5U 1IdZ+XEuWfeiaEmvE177L/ztvctHhD1QhwMROqvQPdS4iizIGoHFvlKDaGzOkmrNtCEx tsK1HEqIyFv/3Bzh0Q0n/0h/IAKmKypdxqQaBSzaLgou5PPn5a6rvF9I88e6mVtrnLn+ uNPw== 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 :message-id:date:subject:to:from:dkim-signature; bh=If/NIFLMKu1pHmU36jyH1nSFqHTvzR8BXIpiRJwo1tQ=; fh=NOG8CJEG4WJu4DlPLKvyF6THcrTOjShCi1CeGqtRM/E=; b=xXpHqtMDhzSLtLkkidwbAopHrGfk3GvavcPdyB5YtqgX/FRDQHEGVEahjQPZ4DnYxv vvhq3rUoZfXK/FN3tSkGZzQiI2JKFG3rZ2OgdtYVOParP2pDseqsixvV/5YlbtgkWxEG nAK3ery13oK6YJMRJkGCnP8iqpigX/Gk7FSlzr91Q7U+Z3sE41abgkutFGsRi4Qs/1K1 XZK1Z8RiNjBSJhNOdR8ebTGTvlVW0DJ//2xEpUwQ68QHop0Pnes5KT6hcmJ5ocPICco8 Z4YMoSLgWSWzHaQHKRMdjk+imOnv8VvL5y/RACjCni6neJnDky7GFRsCAMhS3klJOy/Q ZN3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=C7EE0CDm; 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 bm6-20020a170906c04600b00987e9092601si4942671ejb.387.2023.06.28.01.41.29; Wed, 28 Jun 2023 01:41:53 -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=C7EE0CDm; 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 S232915AbjF1IDT (ORCPT + 99 others); Wed, 28 Jun 2023 04:03:19 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:20621 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232202AbjF1IBO (ORCPT ); Wed, 28 Jun 2023 04:01:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687939224; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=If/NIFLMKu1pHmU36jyH1nSFqHTvzR8BXIpiRJwo1tQ=; b=C7EE0CDmPTbHMfpTxHFFYzf7Yd8njUL0k79shrW6PI7442nZ2yGJzYsPwQRkUOP1miWZAd PUAlfh9z4MgYKCGXYn71GfhIbHNHZ1hHqEAFpX13ER3qbR5aVs6tsw6sqRYrOLyHfgA1nO mXIDZNcFGMABhtvkmEatNjmgTklkFcs= 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-171-ahSWMK_PObiHDB3lryCl3g-1; Wed, 28 Jun 2023 02:59:27 -0400 X-MC-Unique: ahSWMK_PObiHDB3lryCl3g-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 ACD6A2812946; Wed, 28 Jun 2023 06:59:26 +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 235F1492B02; Wed, 28 Jun 2023 06:59:22 +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 0/4] reconnect support in vduse Date: Wed, 28 Jun 2023 14:59:15 +0800 Message-Id: <20230628065919.54042-1-lulu@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=y 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 Hi all Here is the reconnect support in vduse, The steps is map the pages from kernel to userland, usespace     app will wirte the vq_info in the pages And then sync this information in kernel/user-space I just the split mode, So only use the last_avail_idx here, Will send the patch for DPDK later Tested in vduse + dpdk test-pmd Cindy Lu (4): vduse: Add the struct to save the vq reconnect info vduse: Add file operation for mmap vduse: Add the function for get/free the mapp pages vduse: update the vq_info in ioctl drivers/vdpa/vdpa_user/vduse_dev.c | 107 +++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) -- 2.34.3