From patchwork Tue Jan 5 12:57:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Coquelin X-Patchwork-Id: 85984 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (xvm-189-124.dc0.ghst.net [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 618A1A09FF; Tue, 5 Jan 2021 13:58:07 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DF5AC16082C; Tue, 5 Jan 2021 13:58:06 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mails.dpdk.org (Postfix) with ESMTP id 33CC3160829 for ; Tue, 5 Jan 2021 13:58:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1609851484; 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=eLmILP8UBwyA0EsgekuKPdPN1/iE6QSUSn3IhiGO27w=; b=Fr/36WYlylqphFDVpoOuCFDVhwBvWyF6l3Rg18p5pHNODI88oKeVuNLIOr3Qm5WxLsHr24 0MAGfCJqhTEH2lQ1BR/yTUKgC+QVKPN4+9UCSghcHSsOaFTRTWSKoUswGaQxFDKn5pQ69Z TBrj6FTArwCe3yUkrmoH6omDERtxCLs= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-244-CYD7qywMOZqSp7gI0Alngw-1; Tue, 05 Jan 2021 07:58:03 -0500 X-MC-Unique: CYD7qywMOZqSp7gI0Alngw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E87EB802B40; Tue, 5 Jan 2021 12:58:01 +0000 (UTC) Received: from max-t490s.redhat.com (unknown [10.36.110.9]) by smtp.corp.redhat.com (Postfix) with ESMTP id A18946F43C; Tue, 5 Jan 2021 12:57:56 +0000 (UTC) From: Maxime Coquelin To: dev@dpdk.org, chenbo.xia@intel.com, xuan.ding@intel.com Cc: Maxime Coquelin Date: Tue, 5 Jan 2021 13:57:25 +0100 Message-Id: <20210105125728.102413-1-maxime.coquelin@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=maxime.coquelin@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [dpdk-dev] [PATCH v2 0/3] vhost: vhost_user_set_mem_table refactoring X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The goal of this series is to refactor vhost_user_set_mem_table function, to make it easier to understand and maintain. Changes in v2: ============== - Tag unused args when userfaultfd disabled (Chenbo). Maxime Coquelin (3): vhost: refactor postcopy region registration vhost: refactor postcopy registration vhost: refactor memory regions mapping lib/librte_vhost/vhost_user.c | 347 +++++++++++++++++++--------------- 1 file changed, 195 insertions(+), 152 deletions(-)