From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Liu Subject: [PATCH 0/4] xl: consolidate adhoc parsers Date: Fri, 22 Jan 2016 11:50:50 +0000 Message-ID: <1453463454-4114-1-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aMaEu-000087-6e for xen-devel@lists.xenproject.org; Fri, 22 Jan 2016 11:50:52 +0000 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 Cc: Wei Liu List-Id: xen-devel@lists.xenproject.org This patch series consolidates adhoc parsers in xl. There are currently 4 types of devices: 1. block 2. netowrk 3. vtpm 4. pci that support hotplug as well as being specified in config file. Block and pci devices are fine because they use libxlu to parse configuration strings. Network and vtpms config parsers are not in a very good state, which need to be consolidated. Note that there is code repetition in the newly introduced parser code. We either need to have very long macro definition or code repetition. I chose the latter. Let me know your opinion. Wei. Wei Liu (4): xl: remove unused macros xl: wrap long lines where possible xl: rework vif config parsing code xl: rework vtpm config parsing code tools/libxl/xl_cmdimpl.c | 312 +++++++++++++++++++++++++++++++---------------- 1 file changed, 207 insertions(+), 105 deletions(-) -- 2.1.4