Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3191621rdb; Wed, 13 Sep 2023 05:10:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEj9lwVpHOoKPwKfJh+Sqbt7pujqCrwi8qTTn0yX5lnIj6PhDMEHLMk9Fkdq6PY0uMoz0K8 X-Received: by 2002:a17:903:1103:b0:1c3:f745:1cec with SMTP id n3-20020a170903110300b001c3f7451cecmr107295plh.5.1694607056121; Wed, 13 Sep 2023 05:10:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694607056; cv=none; d=google.com; s=arc-20160816; b=job0sKuCHVRHoKbtGVZ78TPrTXfUgvhhvWF0zYDGABR/mpqKr18NJwPgcl1T+qIrO6 c2Ds+2XSXfjz1wEuASdGCL+Yav/IQCT0GG8zZsYAyZyGA6V7ZEJnJC9o0u5OFCtWLu/u wJLdSQtwTcJCjo3eTNEhbje3tD9/sBXMCuoz/TLIxiDDXnTETHcXQFYzUHvsysWKK1Fa rmxJmL8SWT3P4PVaPH5dJ3VdbfvcokXOaYfMDveFhHY7qcRD2+pXJuo7hwdIR1KmyVKW KpQKkOd0IpxcXih3XLZ8HCaeVkW+DNmXUEMkhArEvwoMpRveBe20APwNb2cdYdid72j5 ExvA== 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:cc:to:from:dkim-signature; bh=hXx0uPfpQ2OseSGqC6KpCXLbCPjx1dHAmP+3Zup+enc=; fh=E8uCy2UoKRrKjgDakfUdRLlW20LdfkTjtJs3toefLrk=; b=oDRJrzcGMQwlHK6ivF/Jdxad/GNTKm6/6+f67H9X1xTKLIDZIenaIySjPq31uOTOUO fGfOMRRcOt6Tu1FTxrh94tSD2O6/ZzmE/dCh3aAPyY6mh+EUhEp1GefAzfkVVJpPUPdW /LQB0yNwO3Zlh7iooPt1a0HD/zWn+pMgw13xCrXpjMpd1ILZ9p7dvBq4It/xMunKL2PA q8sFSV0TmHcYtRdcTgwFsxp6Q38dApmERHbQdhMVgSZhXMeo7fx84d36uD2NJYS2FhKT OvlUQcbV800yNm9dmDMDymgE4rPlvJT5rw0p18GzLCb0GxVQZPIm/9LIRAWda41mJvAp ZqsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hGNb8Q9H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id kj6-20020a17090306c600b001b8867a7ce2si9664151plb.273.2023.09.13.05.10.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 05:10:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hGNb8Q9H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 06FC68354521; Mon, 11 Sep 2023 21:46:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238089AbjILDwz (ORCPT + 99 others); Mon, 11 Sep 2023 23:52:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238094AbjILDwk (ORCPT ); Mon, 11 Sep 2023 23:52:40 -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 ESMTP id CED6D2911E for ; Mon, 11 Sep 2023 20:00:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694487624; 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; bh=hXx0uPfpQ2OseSGqC6KpCXLbCPjx1dHAmP+3Zup+enc=; b=hGNb8Q9HV3bR2Ure65hm+YKjk2Z4TkPtrymyZzIVl11sa4dxghPrCmxrve+R5t3kTplOgT ZcLjZuXVaisITNZL2voa6BvvWayw75KPhdfUr4RmsXsfDcEPe8xdR5d1UKVdHFW2pHlCBd MeRF/VTS0tP44o0hhThhLUu3CgjSY1k= Received: from mimecast-mx02.redhat.com (mx-ext.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-607-dX0xmJGyOVWLsQw3fKnJug-1; Mon, 11 Sep 2023 23:00:20 -0400 X-MC-Unique: dX0xmJGyOVWLsQw3fKnJug-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 200C13C0D842; Tue, 12 Sep 2023 03:00:20 +0000 (UTC) Received: from server.redhat.com (unknown [10.72.112.22]) by smtp.corp.redhat.com (Postfix) with ESMTP id 044E240C6EA8; Tue, 12 Sep 2023 03:00:15 +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 Cc: stable@vger.kernel.org Subject: [RFC v2 0/4] Support reconnection in vduse Date: Tue, 12 Sep 2023 11:00:04 +0800 Message-Id: <20230912030008.3599514-1-lulu@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 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 (snail.vger.email [0.0.0.0]); Mon, 11 Sep 2023 21:46:24 -0700 (PDT) These patches add the reconnect support in vduse, The steps is map the pages from kernel to userspace, userspace app will sync the reconnection status and vq_info in the pages Also, add the new IOCTL VDUSE_GET_RECONNECT_INFO userspace app will use this information to mmap the memory Will send the patch for DPDK later Tested in vduse + dpdk test-pmd Signed-off-by: Cindy Lu Cindy Lu (4): vduse: Add function to get/free the pages for reconnection vduse: Add file operation for mmap vduse: update the vq_info in ioctl vduse: Add new ioctl VDUSE_GET_RECONNECT_INFO drivers/vdpa/vdpa_user/vduse_dev.c | 177 +++++++++++++++++++++++++++++ include/uapi/linux/vduse.h | 21 ++++ 2 files changed, 198 insertions(+) -- 2.34.3