Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1711770rdh; Fri, 24 Nov 2023 23:44:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IFtw5GnljJmVo6wRurx55McpPZmMm7rF39KqS1nWrcUHWxZz43LOHYaf7alb59zqvdLpgsY X-Received: by 2002:a17:902:da8e:b0:1cf:b190:ea07 with SMTP id j14-20020a170902da8e00b001cfb190ea07mr2625216plx.21.1700898288023; Fri, 24 Nov 2023 23:44:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700898288; cv=none; d=google.com; s=arc-20160816; b=XpXiWkWbH/l0XGHn0QICPUwbQR2cuUl8XGkrZ3qj3/lIfXj2bBlyd58rPEDyE3WTO9 Q31bEuIx822r7xmNVT/7fx4hdNN9Uxqsx1Go5W5QY2+e/iY21Ms8fEu04gUtrWNxyqON tpxCRZqEg4Pfcipdi1NpO0Imextav5XWuHm971bKMgRcQyC7PhlI3JpYChOCJ8RZWKQd hDsZNpaO0KYiHcaTre9xPVMJwcF3ATJmZrB02iRX/NQIxRCz00rf6DdPJaFvLZ8E4Vbe LNAZ5NpmyFJZoeQuAiFEPSMl7zPH0suoCr4mh1Mz8+lvMGo3OxSIbQeq0UTAuxD9pU3a UfPA== 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=FPcp2kfkJWwJkN3y6bMbR5mAObAMJOnKE0qW0hK6n2c=; fh=TmxyV9StQkcgFH4hhCMIjzlkLv0tCXp94UQKsxwRs/o=; b=PC+YlMz7n+GYC+DKMpxy+6qH6/1oqPm3e7roNbNVGbljAhDFggehjzfxQbQRrVr7Gn N5+7EMbLD/eV4R9L/pIxo/MTivlh05aFqPsVKk7+jDVL0oGVBAwsZMsGl44gLghFYPwG vb3ng56d3shE4VK8pmyM/YD6gfsW8Cv9y6YFDZPNzxFke1uVAy+/KzZjlUC1F6LyHRwA JoxtWs8GC4ialeWPpdS+Wyr4a6X7cVmfPV62hVew1yox1SdZYJatt9KvRzeoZaHx4Crs 0EHiYkRTB72VZf1crTrzMuVHZXH/1jZ5aCd5luWM4mKfEn/VTgp1i1MXTvfNniILipTl d9Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=X7HxousY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id t16-20020a170902e85000b001cfad613daesi1926670plg.426.2023.11.24.23.44.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 23:44:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=X7HxousY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id C35348266247; Fri, 24 Nov 2023 23:44:45 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231760AbjKYHoR (ORCPT + 99 others); Sat, 25 Nov 2023 02:44:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231967AbjKYHoA (ORCPT ); Sat, 25 Nov 2023 02:44:00 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F62A10F7 for ; Fri, 24 Nov 2023 23:43:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700898225; 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=FPcp2kfkJWwJkN3y6bMbR5mAObAMJOnKE0qW0hK6n2c=; b=X7HxousYPPff3f+OxMxQrqy3Bvxy2JKAlTwR30/HfM1o8WNdfE0ppXx9iFwV4NRdpm4128 1q8XmNJWphP5EV2eNVghPBiNwSbLhC89/cBAYKNR1uwXt3xaudh2XT7uffc8APIrzil23U JAp9CqLNZeIr1ykeRsgcqGSRpYmF7sc= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-410-ove06uA9OCCzM7Henf4tFg-1; Sat, 25 Nov 2023 02:43:43 -0500 X-MC-Unique: ove06uA9OCCzM7Henf4tFg-1 Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-a01c7b09335so193537566b.1 for ; Fri, 24 Nov 2023 23:43:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700898222; x=1701503022; 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=FPcp2kfkJWwJkN3y6bMbR5mAObAMJOnKE0qW0hK6n2c=; b=i8HYQQN+c7zLOLkafGp0Q5uNTWNSn1iNSmtyphPG5ix1VkvqHUwskoAc4uN4N+C6cp r8ZZ7gNYlibNdAN9OwssDS8eUWdjNGr96K3o2RAUEANDTDCrr0CBd9MsT421kbsfvgaN dQSdxR4dHIHmO7iouv7RxsgRKKaDRvvdnCLc59ZoUoypM3RMMHilQXcb9ahpmxdu3sGA khyGxxUEwk0zXByKQkPqGeJRCRa55+En9F7G7FAnaGJ1hK1oyi4EzXSNkUaSk0Wq4V1C Lx4gY+6Ay20Q1biCEy/h0jVMpWznapn0Wn0SULb7D3v5kJsx8nUiRvjZxyM/lMNLfhn6 8mbQ== X-Gm-Message-State: AOJu0YyUc735kPBevFv/ygPAkqIQxPHqKEuvK4eyi4iDDF/mliEW0c0S 7Tlb6983ZB4zJ1rabUDPuie+J+BQoWdeODACZWOarBmuTyLImWnriwOe1gXV0M/zvA1hRoDWMOk oV2zfGaOBuBL2VEGAn3PC/ozyZrgk7VN7g6T6dGVe X-Received: by 2002:a50:a6d4:0:b0:54b:1aae:8560 with SMTP id f20-20020a50a6d4000000b0054b1aae8560mr1088154edc.15.1700898222342; Fri, 24 Nov 2023 23:43:42 -0800 (PST) X-Received: by 2002:a50:a6d4:0:b0:54b:1aae:8560 with SMTP id f20-20020a50a6d4000000b0054b1aae8560mr1088147edc.15.1700898222118; Fri, 24 Nov 2023 23:43:42 -0800 (PST) MIME-Version: 1.0 References: <20231121073050.287080-1-lulu@redhat.com> <20231121073050.287080-5-lulu@redhat.com> In-Reply-To: From: Cindy Lu Date: Sat, 25 Nov 2023 15:43:04 +0800 Message-ID: Subject: Re: [PATCH v2 4/5] vduse: update the vq_info in ioctl 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 groat.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 (groat.vger.email [0.0.0.0]); Fri, 24 Nov 2023 23:44:45 -0800 (PST) On Wed, Nov 22, 2023 at 3:12=E2=80=AFPM Jason Wang wr= ote: > > On Tue, Nov 21, 2023 at 3:31=E2=80=AFPM Cindy Lu wrote: > > > > In VDUSE_VQ_GET_INFO, the driver will sync the last_avail_idx > > For driver, did you mean virtio driver? > > > with reconnect info, After mapping the reconnect pages to userspace > > The userspace App will update the reconnect_time in > > struct vhost_reconnect_vring, If this is not 0 then it means this > > vq is reconnected and will update the last_avail_idx > > I have a hard time understanding the above. > sure, I will re-write this part thanks cindy > Thanks >