Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp23496679rwd; Sat, 1 Jul 2023 02:48:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlEvHMzDnhJutfAVepb86luDZpnxF603D394CUkflIXo4a5g1hxwdHC8OcwZi448noL5pbL5 X-Received: by 2002:a81:a50c:0:b0:56c:f8f1:eed5 with SMTP id u12-20020a81a50c000000b0056cf8f1eed5mr5347745ywg.6.1688204937127; Sat, 01 Jul 2023 02:48:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688204937; cv=none; d=google.com; s=arc-20160816; b=vEvOaSpn58heh0ze1iBC7CxVOdiwrCgR0xLAV7MvW3hmYnv+1zwet1L8Nj4PCKshqk Hyq11ySlmk7RAjJvBJtSFOa4qSi7QWr48MW5VlTI0U/yHTtQ2jV9DbTBF/HIeYzWDf85 Zw+9Uz5TG3mYdn2YXfFyJDHBEUOLHzajYF5FV6IiPKuQ7hdG7dvUZ6AW2wOFfzgSPT/H QljflOP/yA8oV2jsfcNp+Eq8BcHqbRQgg/y/Hh/BQTIDF5kVpaBMVzYANE6QRdZTBpux J4iaji1y/sRN2M2TGM/V66+B8y6sTA99ogWSZuCsGBGjILveWxppdEBCZEHQIl2i0fmX L+Ow== 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=nM2gJH27BA1TX1GMcZ4aVIIbGI0tWJqJTUWx2rBsc7Y=; fh=4KS9QWE9q09ZSbTleiNzsOVk0H1OOcry1/tTw6y0rHs=; b=eQiA6Y1jBhG7KCBGT7p15nSolTaRwn3ysGgsxjKC14Sw9HhCgb9Ji2nvTolDS84Y6R pYjpDmDHVjPI7358eoUBXcrH2g0MYmgD7RKP3Z5cW6X2TB43ZULCKpgy0AZCrnGHQEZX pV+hIwX9cQ/Qzo+6Ajql64I4dr/h5DqTDlJdrz6tFn7qWtK3xGbBCUAEug/f/Whu6NSO PI0/tCiOnImvBqdPQ4BPwZN6ex67Y9UFtP9XYj7lbzcOQpOFUN3jNBFIe5cr/l6ofRyC DHs5BM0SJ9pzsZ4UEOe08PKYSpLx1clLdqwycWRprE64ZAvBXdhAM7qTRp24xAsmw92i U0/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZLT10rsU; 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 q62-20020a17090a4fc400b0024e35ef410fsi13991105pjh.131.2023.07.01.02.48.39; Sat, 01 Jul 2023 02:48:57 -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=ZLT10rsU; 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 S229776AbjGAJ0a (ORCPT + 99 others); Sat, 1 Jul 2023 05:26:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjGAJ01 (ORCPT ); Sat, 1 Jul 2023 05:26:27 -0400 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 68AC2170C for ; Sat, 1 Jul 2023 02:25:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688203543; 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=nM2gJH27BA1TX1GMcZ4aVIIbGI0tWJqJTUWx2rBsc7Y=; b=ZLT10rsUPsKbhk/Ows2YIW1t006zIomiUneT+v24iW23KiMKi0XpOyBHyzbbXNMJaoakkA NzRp4VMSUxTeTyMjzdrk9MByBZX1LGKgcdbIAS7ZXXsfA2vDIJUHefsMD+p/nyQcW3Z/QM m1YtfFK0nyZGkKbqee2XPZFH1HC24yE= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-247-qiYCab2FMca-S36jkwz8AQ-1; Sat, 01 Jul 2023 05:25:42 -0400 X-MC-Unique: qiYCab2FMca-S36jkwz8AQ-1 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-3fb40d0623bso12639185e9.1 for ; Sat, 01 Jul 2023 02:25:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688203540; x=1690795540; 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=nM2gJH27BA1TX1GMcZ4aVIIbGI0tWJqJTUWx2rBsc7Y=; b=RHCHdE1yFo0IV8pI6liD8bvUEPkC1i4CKFW5RIYBDrUy3TfeWIRVbZziR6J8bGRLrS xksM4Qxi5kpBpPhQwXDLlfjgFh4i0tI05YGFprhOVFRUw3pUwM9p8Dxk3vVYokDp7Xme nFjH6tbAhklDlstkHEjUKXRJ3O6XaFT4DP85EtAikhknYnf1DiEcOK8Go+qhmph4tGag pJniZA1Y8Qt48nUFdXlgx9MhxdieqIqQtMDD1DMBVubDWxParyq6Uc2DAMbOZW9sCvj8 DXHH8rz26lEnD+oivL2AMwRAxR7XpmTcfmmzVy6a48Ff/nuTp1sidCRTnBiphW8seqxB PoYQ== X-Gm-Message-State: AC+VfDxbejKTXfiDqZM+efEnKWqpQKHEvdIooq3i1KKGZcApF68OuGuJ C3YHrkBXY6uIPb69aOBYPTO4YdpvMCF+BdvdIP+5pyGFuBcnjc5LtB1zkWZN74inzs8dy6Pr/4b a2V9Lj6n1rjzYjX0WxF0b8Al0pHo8TarS3kvdDxuNOVmqoxe8qP4= X-Received: by 2002:a1c:7704:0:b0:3f7:e7a2:25f6 with SMTP id t4-20020a1c7704000000b003f7e7a225f6mr4603084wmi.17.1688203540068; Sat, 01 Jul 2023 02:25:40 -0700 (PDT) X-Received: by 2002:a1c:7704:0:b0:3f7:e7a2:25f6 with SMTP id t4-20020a1c7704000000b003f7e7a225f6mr4603078wmi.17.1688203539779; Sat, 01 Jul 2023 02:25:39 -0700 (PDT) MIME-Version: 1.0 References: <20230628065919.54042-1-lulu@redhat.com> <20230628065919.54042-2-lulu@redhat.com> In-Reply-To: From: Cindy Lu Date: Sat, 1 Jul 2023 17:24:57 +0800 Message-ID: Subject: Re: [RFC 1/4] vduse: Add the struct to save the vq reconnect info To: Jason Wang Cc: 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 28, 2023 at 4:04=E2=80=AFPM Jason Wang wr= ote: > > On Wed, Jun 28, 2023 at 2:59=E2=80=AFPM Cindy Lu wrote: > > > > From: Your Name > > It looks to me your git is not properly configured. > > > > > 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_use= r/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; > > +}; > > Please add comments to explain each field. And I think this should be > a part of uAPI? > > Thanks > Will add the new ioctl for this information Thanks Cindy > > > > 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 > > >