Message ID | 20230912030008.3599514-1-lulu@redhat.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <kvm-owner@vger.kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9C7D9CA0ECE for <kvm@archiver.kernel.org>; Tue, 12 Sep 2023 03:24:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236698AbjILDYm (ORCPT <rfc822;kvm@archiver.kernel.org>); Mon, 11 Sep 2023 23:24:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229676AbjILDYZ (ORCPT <rfc822;kvm@vger.kernel.org>); Mon, 11 Sep 2023 23:24:25 -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 B0B93194FE for <kvm@vger.kernel.org>; Mon, 11 Sep 2023 20:00:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694487622; 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=MumJ9o5JXVxAbebjLulZIizThr/71Vjllh+w3Zaocc25gB22M4/R8q17kW1OG48sD/JV6B dNzNwxTz3rhvMPdw5VLE0pSR08+mh1Q4y4qEWfchTnsLzX+C37OierakdVxo3ADysvgEQT kZ8XDhhFYaCXfiMZ/MpqzI1kMq6zo7o= 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 <lulu@redhat.com> 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: <kvm.vger.kernel.org> X-Mailing-List: kvm@vger.kernel.org |
Series | Support reconnection in vduse | expand |
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 <lulu@redhat.com> 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(+)