From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id B86C4C762 for ; Thu, 18 Jun 2015 19:00:06 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 18 Jun 2015 10:00:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,640,1427785200"; d="scan'208";a="713404993" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga001.jf.intel.com with ESMTP; 18 Jun 2015 10:00:01 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t5IGxxGW014252; Fri, 19 Jun 2015 00:59:59 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t5IGxuiK023135; Fri, 19 Jun 2015 00:59:58 +0800 Received: (from hxie5@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t5IGxuYM023131; Fri, 19 Jun 2015 00:59:56 +0800 From: Huawei Xie To: dev@dpdk.org Date: Fri, 19 Jun 2015 00:59:54 +0800 Message-Id: <1434646796-23101-1-git-send-email-huawei.xie@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1433474005-597-1-git-send-email-huawei.xie@intel.com> References: <1433474005-597-1-git-send-email-huawei.xie@intel.com> Subject: [dpdk-dev] [PATCH v2 0/2] vhost: numa aware allocation of vhost device and queues X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jun 2015 17:00:07 -0000 The vhost device and queues should be allocated on the same numa node as vring descriptor table. When we firstly allocate the vhost device and queues, we don't know the numa node of vring descriptor table. When we receive the VHOST_SET_VRING_ADDR message, we get the numa node of vring descriptor table, we will try to reallocate vhost device and queues to the same numa node. Huawei Xie (2): use rte_malloc to allocate vhost device and queues reallocate vhost device and queues when we get the address of vring descriptor table config/common_linuxapp | 1 + lib/librte_vhost/Makefile | 4 ++ lib/librte_vhost/virtio-net.c | 112 ++++++++++++++++++++++++++++++++++++++---- mk/rte.app.mk | 4 ++ 4 files changed, 112 insertions(+), 9 deletions(-) -- 1.8.1.4