From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.7 required=3.0 tests=DATE_IN_PAST_96_XX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D5B8C5DF62 for ; Wed, 6 Nov 2019 07:29:53 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2C2682173B for ; Wed, 6 Nov 2019 07:29:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2C2682173B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nutanix.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:53360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSFlI-000511-8z for qemu-devel@archiver.kernel.org; Wed, 06 Nov 2019 02:29:52 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58686) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iSFkZ-0004TO-KO for qemu-devel@nongnu.org; Wed, 06 Nov 2019 02:29:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iSFkX-00018O-VE for qemu-devel@nongnu.org; Wed, 06 Nov 2019 02:29:06 -0500 Received: from [192.146.154.1] (port=29260 helo=mcp01.nutanix.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iSFkX-00017t-Q8 for qemu-devel@nongnu.org; Wed, 06 Nov 2019 02:29:05 -0500 Received: from localhost.corp.nutanix.com (unknown [10.40.36.164]) by mcp01.nutanix.com (Postfix) with ESMTP id 7CEBA1007D2C; Wed, 6 Nov 2019 07:29:04 +0000 (UTC) From: Raphael Norwitz To: qemu-devel@nongnu.org Subject: [PATCH] [RFC] vhost-user: clean up set_mem_table functions Date: Wed, 30 Oct 2019 19:12:04 -0400 Message-Id: <1572477125-25344-1-git-send-email-raphael.norwitz@nutanix.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=y Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 192.146.154.1 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Raphael Norwitz Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" The functions sending vhost-user set memory table messages are getting convoluted. The amount of nested logic is getting in the way of my development and it looks like some identical logic should be refractored out anyways. Here=E2=80=99s an RFC which cleans these functions up a bit. Raphael Raphael Norwitz (1): vhost-user: Refractor vhost_user_set_mem_table Functions hw/virtio/vhost-user.c | 140 +++++++++++++++++++++++--------------------= ------ 1 file changed, 65 insertions(+), 75 deletions(-) --=20 1.8.3.1