Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1943008rdh; Sat, 25 Nov 2023 07:56:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IE2OWlCYVGX4puZ9Djkj8UqsXUmFzAMXDI6L8mayQGrWNFHMLQ8BXtJmc1gXxpsw7ddg9Hd X-Received: by 2002:a05:6a20:7d81:b0:18b:d31d:c460 with SMTP id v1-20020a056a207d8100b0018bd31dc460mr7901522pzj.2.1700927788344; Sat, 25 Nov 2023 07:56:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700927788; cv=none; d=google.com; s=arc-20160816; b=uGsxGZ0tei6h1u1Nkr6qXlrMB/87SxufX/aSOE5VLWn1snYWfYc04lAxRJcBGb8gVZ kxTCnc+0OD0Ydlzi9zLuvGXWuxTjtWlk0lT5sDRCZrScr34r3/SSNYcLLRvw8TIjPpWW /lvUYr82Zl5HSDP5GLhPNubZdL+q+wo78PTzr6ekGMcB5OdQ1Pl2Ahq0xEW1u+tYMhWl 4jnYpEPvkcw+s9ct4EHQ1Ci7FB8sANhCVBGJ9MJ2zVqoBqpO5oRSyQhIbTqO1ZaaUiBp FqWYhUoz7Yu6nbMvBgI9EdlSf1sKjGEt1PCn76r1dltMvu5FAZvi09vwqMEyBA3C+tks tVdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ITUkrmkbZWcZNgsW2eehSenWGBo+lAyWapOpmCpE3O0=; fh=TmxyV9StQkcgFH4hhCMIjzlkLv0tCXp94UQKsxwRs/o=; b=Xd/PpS2S/KrpcWsY1DlQ/ANhLpL5HgLv4QYgSCFm5Q6vBM2Ni1cd2QjSOQdZTFegTq oTCewNpVtuLzVsnb3Pz07WPV0ZfBOJGe3HMgF1k2r+ZHDy7mnC0h45kOVEVEZ6y8ov1b dx5HMzwFrgxBdZ8Yyc6RXs2xhSqI8S6UayyH9JP2GcYjz4ByvGvO2Y96Fw7AE4iwA3T4 VTfLxH3115E71BTcZeag7SPCy4wy3Qr/dVjL9jMcYy9Eg1gT6mkcOfVmM1DyrzFDWu7N WcrgG3AsF93holJLQ7Pd8Bm1ASQKVIJuAOn+rk4WDyaNJXkLf06S42uqKHrn5sHrnz6t 9Frg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WLNgD9e1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id y3-20020a17090322c300b001cf5cf1ca6asi6248171plg.511.2023.11.25.07.56.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 07:56:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WLNgD9e1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 28F56803EBAD; Sat, 25 Nov 2023 07:56:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232177AbjKYP4M (ORCPT + 99 others); Sat, 25 Nov 2023 10:56:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232261AbjKYP4K (ORCPT ); Sat, 25 Nov 2023 10:56:10 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A662EA for ; Sat, 25 Nov 2023 07:56:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700927776; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ITUkrmkbZWcZNgsW2eehSenWGBo+lAyWapOpmCpE3O0=; b=WLNgD9e1kJ7Me6SS2trRl0ueWtx1V93a9qMZjhASYEcucqJTX9qt8wEXocq44MeAVYZP4B Xsjj6XG0D3v7muU386a28e6aRC9rBxvyNeSsMzzPqID43ANukGpG9p+0hVoTsRHoNUuUVO nQMCMTwZPhc8Qk2Dl0lTIYL+8EgWW1A= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-537-ww3KlR8YMH6fPWGnN4hzTw-1; Sat, 25 Nov 2023 10:56:14 -0500 X-MC-Unique: ww3KlR8YMH6fPWGnN4hzTw-1 Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-a03337f7851so203999866b.2 for ; Sat, 25 Nov 2023 07:56:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700927773; x=1701532573; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ITUkrmkbZWcZNgsW2eehSenWGBo+lAyWapOpmCpE3O0=; b=I840b1i39Q1Bru9RIQjIT0zYYtO8kdW4Vhs7x7SSI+y/8PHqtic075Dz3ffHG3Zg0p DBVtGwcRW1KWSH1UidOAoEK37+i/C0UJE244EzKqNV9AiO66hpj+yXE3UWmt4pEb+Aah 7/tNr8V7b+KYEBC4yGfQujIECdUJLtCkE9aJclKDVuEBBrhAeAJySkzcsvq6eKrXV6hG 0hPuZ07KeAWmSeGA8ow7P0noky+eba1f1H5ic/AAtDj6+7DaQ8XlL6sE4nB3d92QfDRE xelUJ2pD5q19ruBOUt7Pf1bC+Oxdx5DCyhlShgd1Gi1nunRMc076PycaallZyocLusNe 0LBw== X-Gm-Message-State: AOJu0Yx0/lTp387Hq18XMq/TEYNh/jDXtBlb6XyexpyoNgw0H7z0xMKy 55xD6kJHuNQB5IQRbWkajiNriLsOfS5Cj/aoLsUZ/ZF5ibfAetK9vIAXkFvr7jgUe5BXRITEeo9 em9kwJPlat2cNoVmaHyMStCGnUdJIySFDHy0WBF3z X-Received: by 2002:a17:907:9728:b0:9be:7b67:1673 with SMTP id jg40-20020a170907972800b009be7b671673mr5812017ejc.1.1700927773553; Sat, 25 Nov 2023 07:56:13 -0800 (PST) X-Received: by 2002:a17:907:9728:b0:9be:7b67:1673 with SMTP id jg40-20020a170907972800b009be7b671673mr5812009ejc.1.1700927773307; Sat, 25 Nov 2023 07:56:13 -0800 (PST) MIME-Version: 1.0 References: <20231121073050.287080-1-lulu@redhat.com> In-Reply-To: From: Cindy Lu Date: Sat, 25 Nov 2023 23:55:36 +0800 Message-ID: Subject: Re: [PATCH v2 0/5] vduse: Add support for reconnection To: Jason Wang Cc: mst@redhat.com, xieyongji@bytedance.com, linux-kernel@vger.kernel.org, maxime.coquelin@redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Sat, 25 Nov 2023 07:56:26 -0800 (PST) On Wed, Nov 22, 2023 at 2:11=E2=80=AFPM Jason Wang wr= ote: > > On Tue, Nov 21, 2023 at 3:30=E2=80=AFPM Cindy Lu wrote: > > > > Here is the reconnect support in vduse, > > > > kernel will allocted pages for reconnection > > userspace need use ioctl VDUSE_GET_RECONNECT_INFO to > > get the mmap related information and then mapping these pages > > to userspace. > > kernel and userspace will use these pages to sync > > the reconnect information > > kernel will use VDUSE_VQ_GET_INFO to sync the information > > userspace App will call during the "user_app_dev_start()". > > It would be better to describe the uAPI instead of duplicating the > logic of the codes. > sure will rewrite this part > > > > change in V2 > > 1. Address the comments from v1 > > It's better to be more verbose here, people can easily forget the > comments since V1. > will fix this problem > Thanks > > > 2. Add the document for reconnect process > > > > Cindy Lu (5): > > vduse: Add function to get/free the pages for reconnection > > vduse: Add file operation for mmap > > vduse: Add new ioctl VDUSE_GET_RECONNECT_INFO > > vduse: update the vq_info in ioctl > > Documentation: Add reconnect process for VDUSE > > > > Documentation/userspace-api/vduse.rst | 29 ++++ > > drivers/vdpa/vdpa_user/vduse_dev.c | 198 +++++++++++++++++++++++++- > > include/uapi/linux/vduse.h | 50 +++++++ > > 3 files changed, 276 insertions(+), 1 deletion(-) > > > > -- > > 2.34.3 > > >