From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bob Liu Subject: [PATCH v2 00/11] tmem: some basic cleanup Date: Fri, 8 Nov 2013 09:03:46 +0800 Message-ID: <1383872637-15486-1-git-send-email-bob.liu@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VeaUk-00053I-7z for xen-devel@lists.xenproject.org; Fri, 08 Nov 2013 01:04:18 +0000 Received: by mail-pb0-f52.google.com with SMTP id rr4so1381580pbb.39 for ; Thu, 07 Nov 2013 17:04:14 -0800 (PST) List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Bob Liu , keir@xen.org, ian.campbell@citrix.com, JBeulich@suse.com List-Id: xen-devel@lists.xenproject.org When I try to read tmem source code, I found it's not very straightforward. There are too many typedefs and referenced once functions in tmem, perhaps the reason was tmem was designed can be ported to other hypersivor easily. But I don't think it's really neccessary nowadays, this patchset try to clean up it. And I will continue to try make tmem more readable and better. Changelog v2: Forgot to set client->domain in [patch 07/11]. Bob Liu (11): tmem: cleanup: drop COMPARE_COPY_PAGE_SSE2 tmem: cleanup: drop pfp_t typedef tmem: cleanup: drop tmem_cli_mfn_t typedef tmem: cleanup: rename 'tmh_' with 'tmem_' tmem: cleanup: drop most of the typedefs tmem: cleanup: drop tmem_alloc/free_infra tmem: cleanup: drop tmem_client_t tmem: cleanup: drop useless wrap function tmem: cleanup: drop unused function 'domain_fully_allocated' tmem: cleanup: drop useless _subpage function wrap tmem: cleanup: drop unneeded functions xen/common/tmem.c | 851 ++++++++++++++++++++++---------------------- xen/common/tmem_xen.c | 171 +++------ xen/include/public/tmem.h | 3 +- xen/include/xen/tmem_xen.h | 252 ++++--------- 4 files changed, 541 insertions(+), 736 deletions(-) -- 1.7.10.4