From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-f54.google.com (mail-vk0-f54.google.com [209.85.213.54]) by dpdk.org (Postfix) with ESMTP id 892395A6B for ; Mon, 11 Jan 2016 21:26:13 +0100 (CET) Received: by mail-vk0-f54.google.com with SMTP id a123so200414212vkh.1 for ; Mon, 11 Jan 2016 12:26:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bigswitch-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=x2ulQnPmJOC5XEa+YV4s1/nLpvv9DSWqTk+/Rot59LM=; b=nLHnSTPdVN4KqC03zxyh5v2Zk8tpvvhgLq+xy2qA8Zg4vQZhxylmq1JoxOZFlvD4D6 f9x2TxxYK7K1sY4KxP3b/x916320OvQlkvUh/yqr7hN/wytxohD4nKWx+df1J0m72Wos JrLNLqShp4BVSOQWf/4ONDqb1k0flyet8luR2OlMza/J6j551fC4xMyktS1PiheY/43m PbtpguqvNgzCGS14ZnngJDhU1MoGFJRdiHiJ/WUDhVupdPJ4NMl2OtvH0uDAODGGBUR8 R3GwFqYXSq9IJQkPQSn+lrCSfJWDjy0Vcb+L9XjE4E6o51vrWdAO8uy29Mi+Gki948Ac +DzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=x2ulQnPmJOC5XEa+YV4s1/nLpvv9DSWqTk+/Rot59LM=; b=TDSq7ZJdPFlIYtOniVB9t1t3ZpWIpEz+nvCAz0IaYaaonQIfmFwvXkLWlrLAhKuR9W SXM4cnldO9Nu0BAxn1FavgOEuEVARlOLf4Tfd4efGB1vTOiZEJ78jgxT1jZxsjerFxYd bnW3HUfWd/6XvHOp5V+1IEz3hZeICRgIMne2s92VHc7y1YkDzGHgWAQEB6MOS433Wgor 2P2WB6/Hcn4iUkNol95Zdqjwwu49+6L6ObXKysxkFq/7k6h+ZOfgltILFjOvZ5GIi9+z bVaZGSIy3twLK4mtDvxzijY1vJqVZ8WtT3xFy4HMFgIGP+A11eeV0a5M56R0zUsxoH6d d8Gg== X-Gm-Message-State: ALoCoQmaKFTFzbPLLnmk+4CaZ37ML2gWrJrX1deK5uFfvPGdInq9gv8jRQZ0SYOSREmiqoNvrUko1UO4fwOdCNoWLazDZjpNZFw7g7xR2D/3NmSR9zJpKMk= MIME-Version: 1.0 X-Received: by 10.31.162.82 with SMTP id l79mr22769601vke.76.1452543972918; Mon, 11 Jan 2016 12:26:12 -0800 (PST) Received: by 10.31.129.9 with HTTP; Mon, 11 Jan 2016 12:26:12 -0800 (PST) In-Reply-To: <1452426182-86851-3-git-send-email-jianfeng.tan@intel.com> References: <1446748276-132087-1-git-send-email-jianfeng.tan@intel.com> <1452426182-86851-1-git-send-email-jianfeng.tan@intel.com> <1452426182-86851-3-git-send-email-jianfeng.tan@intel.com> Date: Mon, 11 Jan 2016 12:26:12 -0800 Message-ID: From: Rich Lane To: Jianfeng Tan Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: nakajima.yoshihiro@lab.ntt.co.jp, "Michael S. Tsirkin" , dev@dpdk.org, ann.zhuangyanying@huawei.com Subject: Re: [dpdk-dev] [PATCH 2/4] mem: add API to obstain memory-backed file info 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: Mon, 11 Jan 2016 20:26:14 -0000 On Sun, Jan 10, 2016 at 3:43 AM, Jianfeng Tan wrote: > @@ -1157,6 +1180,20 @@ rte_eal_hugepage_init(void) > mcfg->memseg[0].len = internal_config.memory; > mcfg->memseg[0].socket_id = socket_id; > > + hugepage = create_shared_memory(eal_hugepage_info_path(), > + sizeof(struct hugepage_file)); > + hugepage->orig_va = addr; > + hugepage->final_va = addr; > + hugepage->physaddr = rte_mem_virt2phy(addr); > + hugepage->size = pagesize; > Should this be "hugepage->size = internal_config.memory"? Otherwise the vhost-user memtable entry has a size of only 2MB.